diff --git a/api-specs.json b/api-specs.json index 2187614d8f1c..e2f7de958adf 100644 --- a/api-specs.json +++ b/api-specs.json @@ -50,6 +50,10 @@ "source": "specification/eventgrid/data-plane/readme.md", "args": "--multiapi" }, + "hdinsight/resource-manager": { + "source": "specification/hdinsight/resource-manager/readme.md", + "args": "--multiapi --fluent" + }, "iotcentral/resource-manager": { "source": "specification/iotcentral/resource-manager/readme.md", "args": "--multiapi --fluent", @@ -68,10 +72,18 @@ "source": "specification/keyvault/resource-manager/readme.md", "args": "--multiapi --fluent" }, + "loganalytics/data-plane": { + "source": "specification/operationalinsights/data-plane/readme.md", + "args": "--payload-flattening-threshold=1 --override-client-name=LogAnalyticsDataClient" + }, "logic/resource-manager": { "source": "specification/logic/resource-manager/readme.md", "args": "--multiapi --fluent" }, + "notificationhubs/resource-manager": { + "source": "specification/notificationhubs/resource-manager/readme.md", + "args": "--multiapi --fluent" + }, "mediaservices/resource-manager": { "source": "specification/mediaservices/resource-manager/readme.md", "args": "--multiapi --fluent" diff --git a/cognitiveservices/data-plane/language/bingspellcheck/pom.xml b/cognitiveservices/data-plane/language/bingspellcheck/pom.xml index 11852af03000..a175bc04e384 100755 --- a/cognitiveservices/data-plane/language/bingspellcheck/pom.xml +++ b/cognitiveservices/data-plane/language/bingspellcheck/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml - 1.0.1 + 1.0.2 azure-cognitiveservices-spellcheck jar Microsoft Azure SDK for Cognitive Service Spell Check This package contains Microsoft Cognitive Service Spell Check SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/language/bingspellcheck + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/language/bingspellcheck The MIT License (MIT) diff --git a/cognitiveservices/data-plane/language/luis/authoring/pom.xml b/cognitiveservices/data-plane/language/luis/authoring/pom.xml index 095807a44801..878d915c0ed1 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/pom.xml +++ b/cognitiveservices/data-plane/language/luis/authoring/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../../pom.xml - azure-cognitiveservices-languageunderstanding-authoring - 1.0.1-beta + azure-cognitiveservices-luis-authoring + 1.0.2-beta jar Microsoft Azure SDK for Cognitive Service Language Understanding (LUIS) This package contains Microsoft Cognitive Service Language Understanding (LUIS). - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/language/luis/authoring + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/language/luis/authoring The MIT License (MIT) 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/language/luis/runtime/pom.xml b/cognitiveservices/data-plane/language/luis/runtime/pom.xml index 0a9c466893d3..e8beb8142586 100755 --- a/cognitiveservices/data-plane/language/luis/runtime/pom.xml +++ b/cognitiveservices/data-plane/language/luis/runtime/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../../pom.xml azure-cognitiveservices-luis-runtime - 1.0.1-beta + 1.0.2-beta jar Microsoft Azure SDK for Cognitive Service Language Understanding (LUIS) Runtime This package contains Microsoft Cognitive Service Language Understanding (LUIS) Runtime. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/language/luis/runtime + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/language/luis/runtime The MIT License (MIT) diff --git a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/LuisRuntimeAPI.java b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/LuisRuntimeAPI.java index e2b302758c11..4cdc67e772bd 100644 --- a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/LuisRuntimeAPI.java +++ b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/LuisRuntimeAPI.java @@ -9,7 +9,6 @@ package com.microsoft.azure.cognitiveservices.language.luis.runtime; import com.microsoft.azure.AzureClient; -import com.microsoft.azure.cognitiveservices.language.luis.runtime.models.AzureRegions; import com.microsoft.rest.RestClient; /** @@ -36,21 +35,6 @@ public interface LuisRuntimeAPI { */ 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 - */ - LuisRuntimeAPI withAzureRegion(AzureRegions azureRegion); - /** * Gets Gets or sets the preferred language for the response.. * diff --git a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/LuisRuntimeManager.java b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/LuisRuntimeManager.java index 8cdeadb8df60..a70dc9de8371 100644 --- a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/LuisRuntimeManager.java +++ b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/LuisRuntimeManager.java @@ -7,7 +7,6 @@ package com.microsoft.azure.cognitiveservices.language.luis.runtime; import com.microsoft.azure.cognitiveservices.language.luis.runtime.implementation.LuisRuntimeAPIImpl; -import com.microsoft.azure.cognitiveservices.language.luis.runtime.models.AzureRegions; import com.microsoft.rest.RestClient; import com.microsoft.rest.credentials.ServiceClientCredentials; import okhttp3.Interceptor; @@ -24,13 +23,11 @@ public class LuisRuntimeManager { /** * Initializes an instance of Language Understanding (LUIS) Runtime API client. * - * @param region Supported Azure regions for Cognitive Services endpoints. * @param subscriptionKey the Language Understanding (LUIS) Runtime API key * @return the Language Understanding Runtime API client */ - public static LuisRuntimeAPI authenticate(AzureRegions region, String subscriptionKey) { - return authenticate("https://{AzureRegion}.api.cognitive.microsoft.com/luis/v2.0/apps/", subscriptionKey) - .withAzureRegion(region); + public static LuisRuntimeAPI authenticate(String subscriptionKey) { + return authenticate("https://api.cognitive.microsoft.com/luis/v2.0/", subscriptionKey); } /** @@ -65,13 +62,11 @@ public Response intercept(Chain chain) throws IOException { /** * Initializes an instance of Language Understanding (LUIS) Runtime API client. * - * @param region Supported Azure regions for Cognitive Services endpoints. * @param credentials the management credentials for Azure * @return the Language Understanding (LUIS) Runtime API client */ - public static LuisRuntimeAPI authenticate(AzureRegions region, ServiceClientCredentials credentials) { - return authenticate("https://{AzureRegion}.api.cognitive.microsoft.com/luis/v2.0/apps/", credentials) - .withAzureRegion(region); + public static LuisRuntimeAPI authenticate(ServiceClientCredentials credentials) { + return authenticate("https://api.cognitive.microsoft.com/luis/v2.0/", credentials); } /** diff --git a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/Predictions.java b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/Predictions.java index aeb26a576e3a..76c3d6d1462d 100755 --- a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/Predictions.java +++ b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/Predictions.java @@ -30,7 +30,7 @@ public interface Predictions { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the LuisResult object if successful. */ - + @Deprecated LuisResult resolve(String appId, String query, ResolveOptionalParameter resolveOptionalParameter); /** @@ -43,7 +43,7 @@ public interface Predictions { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the LuisResult object */ - + @Deprecated Observable resolveAsync(String appId, String query, ResolveOptionalParameter resolveOptionalParameter); /** diff --git a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/implementation/LuisRuntimeAPIImpl.java b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/implementation/LuisRuntimeAPIImpl.java index fad2218eb896..391f1cc5d8a5 100644 --- a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/implementation/LuisRuntimeAPIImpl.java +++ b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/implementation/LuisRuntimeAPIImpl.java @@ -11,7 +11,6 @@ import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; import com.microsoft.azure.cognitiveservices.language.luis.runtime.LuisRuntimeAPI; -import com.microsoft.azure.cognitiveservices.language.luis.runtime.models.AzureRegions; import com.microsoft.azure.cognitiveservices.language.luis.runtime.Predictions; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; @@ -31,29 +30,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 LuisRuntimeAPIImpl withAzureRegion(AzureRegions azureRegion) { - this.azureRegion = azureRegion; - return this; - } - /** Gets or sets the preferred language for the response. */ private String acceptLanguage; @@ -142,7 +118,7 @@ public Predictions predictions() { * @param credentials the management credentials for Azure */ public LuisRuntimeAPIImpl(ServiceClientCredentials credentials) { - this("https://{AzureRegion}.api.cognitive.microsoft.com/luis/v2.0/apps", credentials); + this("https://api.cognitive.microsoft.com/luis/v2.0", credentials); } /** @@ -181,6 +157,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "LuisRuntimeAPI", "v2.0 preview"); + return String.format("%s (%s, %s)", super.userAgent(), "LuisRuntimeAPI", "2.0"); } } diff --git a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/implementation/PredictionsImpl.java b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/implementation/PredictionsImpl.java index 31813ef4b6c4..bda630f0ca0d 100755 --- a/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/implementation/PredictionsImpl.java +++ b/cognitiveservices/data-plane/language/luis/runtime/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/runtime/implementation/PredictionsImpl.java @@ -11,7 +11,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.runtime.models.ResolveOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.runtime.Predictions; -import com.google.common.base.Joiner; import com.google.common.reflect.TypeToken; import com.microsoft.azure.cognitiveservices.language.luis.runtime.models.APIErrorException; import com.microsoft.azure.cognitiveservices.language.luis.runtime.models.LuisResult; @@ -57,8 +56,8 @@ public PredictionsImpl(Retrofit retrofit, LuisRuntimeAPIImpl client) { */ interface PredictionsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.runtime.Predictions resolve" }) - @POST("{appId}") - Observable> resolve(@Path("appId") String appId, @Body String query, @Query("timezoneOffset") Double timezoneOffset, @Query("verbose") Boolean verbose, @Query("staging") Boolean staging, @Query("spellCheck") Boolean spellCheck, @Query("bing-spell-check-subscription-key") String bingSpellCheckSubscriptionKey, @Query("log") Boolean log, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + @POST("apps/{appId}") + Observable> resolve(@Path("appId") String appId, @Body String query, @Query("timezoneOffset") Double timezoneOffset, @Query("verbose") Boolean verbose, @Query("staging") Boolean staging, @Query("spellCheck") Boolean spellCheck, @Query("bing-spell-check-subscription-key") String bingSpellCheckSubscriptionKey, @Query("log") Boolean log, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -120,9 +119,6 @@ public LuisResult call(ServiceResponse response) { * @return the observable to the LuisResult object */ public Observable> resolveWithServiceResponseAsync(String appId, String query, ResolveOptionalParameter resolveOptionalParameter) { - 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."); } @@ -154,17 +150,13 @@ public Observable> resolveWithServiceResponseAsync(S * @return the observable to the LuisResult object */ public Observable> resolveWithServiceResponseAsync(String appId, String query, Double timezoneOffset, Boolean verbose, Boolean staging, Boolean spellCheck, String bingSpellCheckSubscriptionKey, Boolean log) { - 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 (query == null) { throw new IllegalArgumentException("Parameter query is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.resolve(appId, query, timezoneOffset, verbose, staging, spellCheck, bingSpellCheckSubscriptionKey, log, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.resolve(appId, query, timezoneOffset, verbose, staging, spellCheck, bingSpellCheckSubscriptionKey, log, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/cognitiveservices/data-plane/language/textanalytics/pom.xml b/cognitiveservices/data-plane/language/textanalytics/pom.xml index be225a8a9289..3f19296b1569 100755 --- a/cognitiveservices/data-plane/language/textanalytics/pom.xml +++ b/cognitiveservices/data-plane/language/textanalytics/pom.xml @@ -10,11 +10,11 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-textanalytics - 1.0.1-beta + 1.0.2-beta jar Microsoft Azure SDK for Cognitive Service Text Analytics This package contains Microsoft Cognitive Service Text Analytics SDK. diff --git a/cognitiveservices/data-plane/pom.xml b/cognitiveservices/data-plane/pom.xml index 5d98292a6c7c..9736fb1b6ade 100755 --- a/cognitiveservices/data-plane/pom.xml +++ b/cognitiveservices/data-plane/pom.xml @@ -7,7 +7,7 @@ 4.0.0 com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 pom Microsoft Azure Cognitive Services SDK Parent @@ -300,6 +300,7 @@ ./language/luis/authoring ./language/luis/runtime ./language/textanalytics + ./search/bingautosuggest ./search/bingcustomimagesearch ./search/bingcustomsearch ./search/bingentitysearch @@ -310,6 +311,8 @@ ./search/bingwebsearch ./vision/computervision ./vision/contentmoderator + ./vision/customvision/prediction + ./vision/customvision/training ./vision/faceapi \ No newline at end of file diff --git a/cognitiveservices/data-plane/search/bingautosuggest/pom.xml b/cognitiveservices/data-plane/search/bingautosuggest/pom.xml new file mode 100644 index 000000000000..115e1708562a --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/pom.xml @@ -0,0 +1,89 @@ + + + 4.0.0 + + com.microsoft.azure.cognitiveservices + azure-cognitiveservices-parent + 1.0.2 + ../../pom.xml + + azure-cognitiveservices-autosuggest + 1.0.2-beta + jar + Microsoft Azure SDK for Cognitive Services Auto Suggest + This package contains Microsoft Cognitive Service Auto Suggest SDK. + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingautosuggest + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + UTF-8 + + + + + microsoft + Microsoft + + + + + ossrh + Sonatype Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + true + default + + + + + com.microsoft.azure + azure-client-runtime + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
\ No newline at end of file diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearch.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearch.java new file mode 100644 index 000000000000..5c6485bb8f70 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearch.java @@ -0,0 +1,286 @@ +/** + * 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.search.autosuggest; + +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.AutoSuggestOptionalParameter; +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.ErrorResponseException; +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.ResponseFormat; +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.SafeSearch; +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.Suggestions; +import java.util.List; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in BingAutoSuggestSearch. + */ +public interface BingAutoSuggestSearch { + /** + * The AutoSuggest API lets you send a search query to Bing and get back a list of suggestions. This section + * provides technical details about the query parameters and headers that you use to request suggestions and + * the JSON response objects that contain them. + * + * @param query The user's search term. + * @param autoSuggestOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Suggestions object if successful. + */ + @Deprecated + Suggestions autoSuggest(String query, AutoSuggestOptionalParameter autoSuggestOptionalParameter); + + /** + * The AutoSuggest API lets you send a search query to Bing and get back a list of suggestions. This section + * provides technical details about the query parameters and headers that you use to request suggestions and + * the JSON response objects that contain them. + * + * @param query The user's search term. + * @param autoSuggestOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Suggestions object + */ + @Deprecated + Observable autoSuggestAsync(String query, AutoSuggestOptionalParameter autoSuggestOptionalParameter); + + /** + * The AutoSuggest API lets you send a search query to Bing and get back a list of suggestions. This section + * provides technical details about the query parameters and headers that you use to request suggestions and + * the JSON response objects that contain them. + * + * @return the first stage of the autoSuggest call + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithQuery autoSuggest(); + + /** + * Grouping of autoSuggest definition stages. + */ + interface BingAutoSuggestSearchAutoSuggestDefinitionStages { + /** + * The stage of the definition to be specify query. + */ + interface WithQuery { + /** + * The user's search term. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withQuery(String query); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * A comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing + * order of preference. For additional information, including expected format, see + * [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the setLang query + * parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the + * [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#cc) query + * parameter. To determine the market to return results for, Bing uses the first supported language it finds + * from the list and combines it with the cc parameter value. If the list does not include a supported + * language, Bing finds the closest language and market that supports the request or it uses an aggregated or + * default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use + * this header and the cc query parameter only if you specify multiple languages. Otherwise, use the + * [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#mkt) and + [set* Lang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#setlang) + * query parameters. A user interface string is a string that's used as a label in a user interface. There are + * few user interface strings in the JSON response objects. Any links to Bing.com properties in the response + * objects apply the specified language. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withAcceptLanguage(String acceptLanguage); + + /** + * By default, Bing returns cached content, if available. To prevent Bing from returning cached content, set + * the Pragma header to no-cache (for example, Pragma: no-cache). + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withPragma(String pragma); + + /** + * The user agent originating the request. Bing uses the user agent to provide mobile users with an optimized + * experience. Although optional, you are encouraged to always specify this header. The user-agent should be + * the same string that any commonly used browser sends. For information about user agents, see [RFC + * 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The following are examples of user-agent + * strings. Windows Phone: Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; + * ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 (Linux; U; Android 2.3.5; en - us; SCH - I500 Build / + * GINGERBREAD) AppleWebKit / 533.1 (KHTML; like Gecko) Version / 4.0 Mobile Safari / 533.1. iPhone: Mozilla / + * 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit / 536.26 (KHTML; like Gecko) Mobile / 10B142 + * iPhone4; 1 BingWeb / 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / 7.0; Touch; + * rv:11.0) like Gecko. iPad: Mozilla / 5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit / 537.51.1 (KHTML, + * like Gecko) Version / 7.0 Mobile / 11A465 Safari / 9537.53. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withUserAgent(String userAgent); + + /** + * Bing uses this header to provide users with consistent behavior across Bing API calls. Bing often flights + * new features and improvements, and it uses the client ID as a key for assigning traffic on different + * flights. If you do not use the same client ID for a user across multiple requests, then Bing may assign the + * user to multiple conflicting flights. Being assigned to multiple conflicting flights can lead to an + * inconsistent user experience. For example, if the second request has a different flight assignment than the + * first, the experience may be unexpected. Also, Bing can use the client ID to tailor web results to that + * client ID’s search history, providing a richer experience for the user. Bing also uses this header to help + * improve result rankings by analyzing the activity generated by a client ID. The relevance improvements help + * with better quality of results delivered by Bing APIs and in turn enables higher click-through rates for the + * API consumer. IMPORTANT: Although optional, you should consider this header required. Persisting the client + * ID across multiple requests for the same end user and device combination enables 1) the API consumer to + * receive a consistent user experience, and 2) higher click-through rates via better quality of results from + * the Bing APIs. Each user that uses your application on the device must have a unique, Bing generated client + * ID. If you do not include this header in the request, Bing generates an ID and returns it in the + * X-MSEdge-ClientID response header. The only time that you should NOT include this header in a request is the + * first time the user uses your app on that device. Use the client ID for each Bing API request that your app + * makes for this user on the device. Persist the client ID. To persist the ID in a browser app, use a + * persistent HTTP cookie to ensure the ID is used across all sessions. Do not use a session cookie. For other + * apps such as mobile apps, use the device's persistent storage to persist the ID. The next time the user uses + * your app on that device, get the client ID that you persisted. Bing responses may or may not include this + * header. If the response includes this header, capture the client ID and use it for all subsequent Bing + * requests for the user on that device. If you include the X-MSEdge-ClientID, you must not include cookies in + * the request. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withClientId(String clientId); + + /** + * The IPv4 or IPv6 address of the client device. The IP address is used to discover the user's location. Bing + * uses the location information to determine safe search behavior. Although optional, you are encouraged to + * always specify this header and the X-Search-Location header. Do not obfuscate the address (for example, by + * changing the last octet to 0). Obfuscating the address results in the location not being anywhere near the + * device's actual location, which may result in Bing serving erroneous results. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withClientIp(String clientIp); + + /** + * A semicolon-delimited list of key/value pairs that describe the client's geographical location. Bing uses + * the location information to determine safe search behavior and to return relevant local content. Specify the + * key/value pair as <key>:<value>. The following + * are the keys that you use to specify the user's location. lat (required): The latitude of the client's + * location, in degrees. The latitude must be greater than or equal to -90.0 and less than or equal to +90.0. + * Negative values indicate southern latitudes and positive values indicate northern latitudes. long + * (required): The longitude of the client's location, in degrees. The longitude must be greater than or equal + * to -180.0 and less than or equal to +180.0. Negative values indicate western longitudes and positive values + * indicate eastern longitudes. re (required): The radius, in meters, which specifies the horizontal accuracy + * of the coordinates. Pass the value returned by the device's location service. Typical values might be 22m + * for GPS/Wi-Fi, 380m for cell tower triangulation, and 18,000m for reverse IP lookup. ts (optional): The UTC + * UNIX timestamp of when the client was at the location. (The UNIX timestamp is the number of seconds since + * January 1, 1970.) head (optional): The client's relative heading or direction of travel. Specify the + * direction of travel as degrees from 0 through 360, counting clockwise relative to true north. Specify this + * key only if the sp key is nonzero. sp (optional): The horizontal velocity (speed), in meters per second, + * that the client device is traveling. alt (optional): The altitude of the client device, in meters. are + * (optional): The radius, in meters, that specifies the vertical accuracy of the coordinates. Specify this key + * only if you specify the alt key. Although many of the keys are optional, the more information that you + * provide, the more accurate the location results are. Although optional, you are encouraged to always specify + * the user's geographical location. Providing the location is especially important if the client's IP address + * does not accurately reflect the user's physical location (for example, if the client uses VPN). For optimal + * results, you should include this header and the X-MSEdge-ClientIP header, but at a minimum, you should + * include this header. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withLocation(String location); + + /** + * A 2-character country code of the country where the results come from. This API supports only the United + * States market. If you specify this query parameter, it must be set to us. If you set this parameter, you + * must also specify the Accept-Language header. Bing uses the first supported language it finds from the + * languages list, and combine that language with the country code that you specify to determine the market to + * return results for. If the languages list does not include a supported language, Bing finds the closest + * language and market that supports the request, or it may use an aggregated or default market for the results + * instead of a specified one. You should use this query parameter and the Accept-Language query parameter only + * if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. This + * parameter and the mkt query parameter are mutually exclusive—do not specify both. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withCountryCode(String countryCode); + + /** + * The market where the results come from. You are strongly encouraged to always specify the market, if known. + * Specifying the market helps Bing route the request and return an appropriate and optimal response. This + * parameter and the cc query parameter are mutually exclusive—do not specify both. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withMarket(String market); + + /** + * Filter suggestions for adult content. The following are the possible filter values. Off: Return suggestions + * with adult text, images, or videos. Moderate: Return suggestion with adult text but not adult images or + * videos. Strict: Do not return news articles with adult text, images, or videos. If the request comes from a + * market that Bing's adult policy requires that safeSearch is set to Strict, Bing ignores the safeSearch value + * and uses Strict. If you use the site: query operator, there is the chance that the response may contain + * adult content regardless of what the safeSearch query parameter is set to. Use site: only if you are aware + * of the content on the site and your scenario supports the possibility of adult content. Possible values + * include: 'Off', 'Moderate', 'Strict'. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withSafeSearch(SafeSearch safeSearch); + + /** + * The language to use for user interface strings. Specify the language using the ISO 639-1 2-letter language + * code. For example, the language code for English is EN. The default is EN (English). Although optional, you + * should always specify the language. Typically, you set setLang to the same language specified by mkt unless + * the user wants the user interface strings displayed in a different language. This parameter and the + * Accept-Language header are mutually exclusive; do not specify both. A user interface string is a string + * that's used as a label in a user interface. There are few user interface strings in the JSON response + * objects. Also, any links to Bing.com properties in the response objects apply the specified language. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withSetLang(String setLang); + + /** + * The media type to use for the response. The following are the possible case-insensitive values: JSON, + * JSONLD. The default is JSON. If you specify JSONLD, the response body includes JSON-LD objects that contain + * the search results. + * + * @return next definition stage + */ + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute withResponseFormat(List responseFormat); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends BingAutoSuggestSearchAutoSuggestDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the Suggestions object if successful. + */ + Suggestions execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the Suggestions object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of autoSuggest definition. + */ + interface BingAutoSuggestSearchAutoSuggestDefinition extends + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithQuery, + BingAutoSuggestSearchAutoSuggestDefinitionStages.WithExecute { + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearchAPI.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearchAPI.java new file mode 100644 index 000000000000..2b9d34807b2b --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearchAPI.java @@ -0,0 +1,89 @@ +/** + * 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.search.autosuggest; + +import com.microsoft.azure.AzureClient; +import com.microsoft.rest.RestClient; + +/** + * The interface for BingAutoSuggestSearchAPI class. + */ +public interface BingAutoSuggestSearchAPI { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets Gets or sets the preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets Gets or sets the preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + BingAutoSuggestSearchAPI withAcceptLanguage(String acceptLanguage); + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + BingAutoSuggestSearchAPI 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.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + BingAutoSuggestSearchAPI withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Gets the BingAutoSuggestSearch object to access its operations. + * @return the BingAutoSuggestSearch object. + */ + BingAutoSuggestSearch bingAutoSuggestSearch(); + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearchManager.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearchManager.java new file mode 100644 index 000000000000..aebe947e10ca --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/BingAutoSuggestSearchManager.java @@ -0,0 +1,92 @@ +/** + * 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.search.autosuggest; + +import com.microsoft.azure.cognitiveservices.search.autosuggest.implementation.BingAutoSuggestSearchAPIImpl; +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 Bing Auto Suggest Search manager. + */ +public class BingAutoSuggestSearchManager { + /** + * Initializes an instance of Bing Auto Suggest Search API client. + * + * @param subscriptionKey the Bing Search API key + * @return the Bing Custom Search API client + */ + public static BingAutoSuggestSearchAPI authenticate(String subscriptionKey) { + return authenticate("https://api.cognitive.microsoft.com/bing/v7.0/", subscriptionKey); + } + + /** + * Initializes an instance of Bing Auto Suggest Search API client. + * + * @param baseUrl the base URL of the service + * @param subscriptionKey the Bing Search API key + * @return the Bing Custom Search API client + */ + public static BingAutoSuggestSearchAPI authenticate(String baseUrl, final String subscriptionKey) { + ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() { + @Override + public void applyCredentialsFilter(OkHttpClient.Builder builder) { + builder.addNetworkInterceptor( + new Interceptor() { + @Override + public Response intercept(Chain chain) throws 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); + } + + /** + * Initializes an instance of Bing Auto Suggest Search API client. + * + * @param credentials the management credentials for Azure + * @return the Bing Auto Suggest Search API client + */ + public static BingAutoSuggestSearchAPI authenticate(ServiceClientCredentials credentials) { + return authenticate("https://api.cognitive.microsoft.com/bing/v7.0/", credentials); + } + + /** + * Initializes an instance of Bing Auto Suggest Search API client. + * + * @param baseUrl the base URL of the service + * @param credentials the management credentials for Azure + * @return the Bing Custom Image Search API client + */ + public static BingAutoSuggestSearchAPI authenticate(String baseUrl, ServiceClientCredentials credentials) { + return new BingAutoSuggestSearchAPIImpl(baseUrl, credentials); + } + + /** + * Initializes an instance of Bing Auto Suggest Search API client. + * + * @param restClient the REST client to connect to Azure. + * @return the Bing Custom Image Search API client + */ + public static BingAutoSuggestSearchAPI authenticate(RestClient restClient) { + return new BingAutoSuggestSearchAPIImpl(restClient); + } +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/BingAutoSuggestSearchAPIImpl.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/BingAutoSuggestSearchAPIImpl.java new file mode 100644 index 000000000000..001edc324aa5 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/BingAutoSuggestSearchAPIImpl.java @@ -0,0 +1,162 @@ +/** + * 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.search.autosuggest.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.cognitiveservices.search.autosuggest.BingAutoSuggestSearch; +import com.microsoft.azure.cognitiveservices.search.autosuggest.BingAutoSuggestSearchAPI; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the BingAutoSuggestSearchAPIImpl class. + */ +public class BingAutoSuggestSearchAPIImpl extends AzureServiceClient implements BingAutoSuggestSearchAPI { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** Gets or sets the preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets Gets or sets the preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets Gets or sets the preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public BingAutoSuggestSearchAPIImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public BingAutoSuggestSearchAPIImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public BingAutoSuggestSearchAPIImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The BingAutoSuggestSearch object to access its operations. + */ + private BingAutoSuggestSearch bingAutoSuggestSearch; + + /** + * Gets the BingAutoSuggestSearch object to access its operations. + * @return the BingAutoSuggestSearch object. + */ + public BingAutoSuggestSearch bingAutoSuggestSearch() { + return this.bingAutoSuggestSearch; + } + + /** + * Initializes an instance of BingAutoSuggestSearchAPI client. + * + * @param credentials the management credentials for Azure + */ + public BingAutoSuggestSearchAPIImpl(ServiceClientCredentials credentials) { + this("https://api.cognitive.microsoft.com/bing/v7.0", credentials); + } + + /** + * Initializes an instance of BingAutoSuggestSearchAPI client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public BingAutoSuggestSearchAPIImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of BingAutoSuggestSearchAPI client. + * + * @param restClient the REST client to connect to Azure. + */ + public BingAutoSuggestSearchAPIImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.bingAutoSuggestSearch = new BingAutoSuggestSearchImpl(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s)", super.userAgent(), "BingAutoSuggestSearchAPI", "1.0"); + } +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/BingAutoSuggestSearchImpl.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/BingAutoSuggestSearchImpl.java new file mode 100644 index 000000000000..01a322eaef73 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/BingAutoSuggestSearchImpl.java @@ -0,0 +1,304 @@ +/** + * 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.search.autosuggest.implementation; + +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.AutoSuggestOptionalParameter; +import retrofit2.Retrofit; +import com.microsoft.azure.cognitiveservices.search.autosuggest.BingAutoSuggestSearch; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.ErrorResponseException; +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.ResponseFormat; +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.SafeSearch; +import com.microsoft.azure.cognitiveservices.search.autosuggest.models.Suggestions; +import com.microsoft.rest.CollectionFormat; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in BingAutoSuggestSearch. + */ +public class BingAutoSuggestSearchImpl implements BingAutoSuggestSearch { + /** The Retrofit service to perform REST calls. */ + private BingAutoSuggestSearchService service; + /** The service client containing this operation class. */ + private BingAutoSuggestSearchAPIImpl client; + + /** + * Initializes an instance of BingAutoSuggestSearchImpl. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public BingAutoSuggestSearchImpl(Retrofit retrofit, BingAutoSuggestSearchAPIImpl client) { + this.service = retrofit.create(BingAutoSuggestSearchService.class); + this.client = client; + } + + /** + * The interface defining all the services for BingAutoSuggestSearch to be + * used by Retrofit to perform actually REST calls. + */ + interface BingAutoSuggestSearchService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.search.autosuggest.BingAutoSuggestSearch autoSuggest" }) + @GET("Suggestions") + Observable> autoSuggest(@Header("X-BingApis-SDK") String xBingApisSDK, @Header("Accept-Language") String acceptLanguage, @Header("Pragma") String pragma, @Header("User-Agent") String userAgent, @Header("X-MSEdge-ClientID") String clientId, @Header("X-MSEdge-ClientIP") String clientIp, @Header("X-Search-Location") String location, @Query("cc") String countryCode, @Query("mkt") String market, @Query("q") String query, @Query("safeSearch") SafeSearch safeSearch, @Query("setLang") String setLang, @Query("ResponseFormat") String responseFormat); + + } + + + /** + * The AutoSuggest API lets you send a search query to Bing and get back a list of suggestions. This section provides technical details about the query parameters and headers that you use to request suggestions and the JSON response objects that contain them. + * + * @param query The user's search term. + * @param autoSuggestOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Suggestions object if successful. + */ + public Suggestions autoSuggest(String query, AutoSuggestOptionalParameter autoSuggestOptionalParameter) { + return autoSuggestWithServiceResponseAsync(query, autoSuggestOptionalParameter).toBlocking().single().body(); + } + + /** + * The AutoSuggest API lets you send a search query to Bing and get back a list of suggestions. This section provides technical details about the query parameters and headers that you use to request suggestions and the JSON response objects that contain them. + * + * @param query The user's search term. + * @param autoSuggestOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture autoSuggestAsync(String query, AutoSuggestOptionalParameter autoSuggestOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(autoSuggestWithServiceResponseAsync(query, autoSuggestOptionalParameter), serviceCallback); + } + + /** + * The AutoSuggest API lets you send a search query to Bing and get back a list of suggestions. This section provides technical details about the query parameters and headers that you use to request suggestions and the JSON response objects that contain them. + * + * @param query The user's search term. + * @param autoSuggestOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Suggestions object + */ + public Observable autoSuggestAsync(String query, AutoSuggestOptionalParameter autoSuggestOptionalParameter) { + return autoSuggestWithServiceResponseAsync(query, autoSuggestOptionalParameter).map(new Func1, Suggestions>() { + @Override + public Suggestions call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The AutoSuggest API lets you send a search query to Bing and get back a list of suggestions. This section provides technical details about the query parameters and headers that you use to request suggestions and the JSON response objects that contain them. + * + * @param query The user's search term. + * @param autoSuggestOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Suggestions object + */ + public Observable> autoSuggestWithServiceResponseAsync(String query, AutoSuggestOptionalParameter autoSuggestOptionalParameter) { + if (query == null) { + throw new IllegalArgumentException("Parameter query is required and cannot be null."); + } + final String acceptLanguage = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.acceptLanguage() : null; + final String pragma = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.pragma() : null; + final String userAgent = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.userAgent() : this.client.userAgent(); + final String clientId = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.clientId() : null; + final String clientIp = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.clientIp() : null; + final String location = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.location() : null; + final String countryCode = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.countryCode() : null; + final String market = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.market() : null; + final SafeSearch safeSearch = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.safeSearch() : null; + final String setLang = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.setLang() : null; + final List responseFormat = autoSuggestOptionalParameter != null ? autoSuggestOptionalParameter.responseFormat() : null; + + return autoSuggestWithServiceResponseAsync(query, acceptLanguage, pragma, userAgent, clientId, clientIp, location, countryCode, market, safeSearch, setLang, responseFormat); + } + + /** + * The AutoSuggest API lets you send a search query to Bing and get back a list of suggestions. This section provides technical details about the query parameters and headers that you use to request suggestions and the JSON response objects that contain them. + * + * @param query The user's search term. + * @param acceptLanguage A comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the setLang query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#cc) query parameter. To determine the market to return results for, Bing uses the first supported language it finds from the list and combines it with the cc parameter value. If the list does not include a supported language, Bing finds the closest language and market that supports the request or it uses an aggregated or default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use this header and the cc query parameter only if you specify multiple languages. Otherwise, use the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#mkt) and [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#setlang) query parameters. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Any links to Bing.com properties in the response objects apply the specified language. + * @param pragma By default, Bing returns cached content, if available. To prevent Bing from returning cached content, set the Pragma header to no-cache (for example, Pragma: no-cache). + * @param userAgent The user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are encouraged to always specify this header. The user-agent should be the same string that any commonly used browser sends. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The following are examples of user-agent strings. Windows Phone: Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 (Linux; U; Android 2.3.5; en - us; SCH - I500 Build / GINGERBREAD) AppleWebKit / 533.1 (KHTML; like Gecko) Version / 4.0 Mobile Safari / 533.1. iPhone: Mozilla / 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit / 536.26 (KHTML; like Gecko) Mobile / 10B142 iPhone4; 1 BingWeb / 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / 7.0; Touch; rv:11.0) like Gecko. iPad: Mozilla / 5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit / 537.51.1 (KHTML, like Gecko) Version / 7.0 Mobile / 11A465 Safari / 9537.53 + * @param clientId Bing uses this header to provide users with consistent behavior across Bing API calls. Bing often flights new features and improvements, and it uses the client ID as a key for assigning traffic on different flights. If you do not use the same client ID for a user across multiple requests, then Bing may assign the user to multiple conflicting flights. Being assigned to multiple conflicting flights can lead to an inconsistent user experience. For example, if the second request has a different flight assignment than the first, the experience may be unexpected. Also, Bing can use the client ID to tailor web results to that client ID’s search history, providing a richer experience for the user. Bing also uses this header to help improve result rankings by analyzing the activity generated by a client ID. The relevance improvements help with better quality of results delivered by Bing APIs and in turn enables higher click-through rates for the API consumer. IMPORTANT: Although optional, you should consider this header required. Persisting the client ID across multiple requests for the same end user and device combination enables 1) the API consumer to receive a consistent user experience, and 2) higher click-through rates via better quality of results from the Bing APIs. Each user that uses your application on the device must have a unique, Bing generated client ID. If you do not include this header in the request, Bing generates an ID and returns it in the X-MSEdge-ClientID response header. The only time that you should NOT include this header in a request is the first time the user uses your app on that device. Use the client ID for each Bing API request that your app makes for this user on the device. Persist the client ID. To persist the ID in a browser app, use a persistent HTTP cookie to ensure the ID is used across all sessions. Do not use a session cookie. For other apps such as mobile apps, use the device's persistent storage to persist the ID. The next time the user uses your app on that device, get the client ID that you persisted. Bing responses may or may not include this header. If the response includes this header, capture the client ID and use it for all subsequent Bing requests for the user on that device. If you include the X-MSEdge-ClientID, you must not include cookies in the request. + * @param clientIp The IPv4 or IPv6 address of the client device. The IP address is used to discover the user's location. Bing uses the location information to determine safe search behavior. Although optional, you are encouraged to always specify this header and the X-Search-Location header. Do not obfuscate the address (for example, by changing the last octet to 0). Obfuscating the address results in the location not being anywhere near the device's actual location, which may result in Bing serving erroneous results. + * @param location A semicolon-delimited list of key/value pairs that describe the client's geographical location. Bing uses the location information to determine safe search behavior and to return relevant local content. Specify the key/value pair as <key>:<value>. The following are the keys that you use to specify the user's location. lat (required): The latitude of the client's location, in degrees. The latitude must be greater than or equal to -90.0 and less than or equal to +90.0. Negative values indicate southern latitudes and positive values indicate northern latitudes. long (required): The longitude of the client's location, in degrees. The longitude must be greater than or equal to -180.0 and less than or equal to +180.0. Negative values indicate western longitudes and positive values indicate eastern longitudes. re (required): The radius, in meters, which specifies the horizontal accuracy of the coordinates. Pass the value returned by the device's location service. Typical values might be 22m for GPS/Wi-Fi, 380m for cell tower triangulation, and 18,000m for reverse IP lookup. ts (optional): The UTC UNIX timestamp of when the client was at the location. (The UNIX timestamp is the number of seconds since January 1, 1970.) head (optional): The client's relative heading or direction of travel. Specify the direction of travel as degrees from 0 through 360, counting clockwise relative to true north. Specify this key only if the sp key is nonzero. sp (optional): The horizontal velocity (speed), in meters per second, that the client device is traveling. alt (optional): The altitude of the client device, in meters. are (optional): The radius, in meters, that specifies the vertical accuracy of the coordinates. Specify this key only if you specify the alt key. Although many of the keys are optional, the more information that you provide, the more accurate the location results are. Although optional, you are encouraged to always specify the user's geographical location. Providing the location is especially important if the client's IP address does not accurately reflect the user's physical location (for example, if the client uses VPN). For optimal results, you should include this header and the X-MSEdge-ClientIP header, but at a minimum, you should include this header. + * @param countryCode A 2-character country code of the country where the results come from. This API supports only the United States market. If you specify this query parameter, it must be set to us. If you set this parameter, you must also specify the Accept-Language header. Bing uses the first supported language it finds from the languages list, and combine that language with the country code that you specify to determine the market to return results for. If the languages list does not include a supported language, Bing finds the closest language and market that supports the request, or it may use an aggregated or default market for the results instead of a specified one. You should use this query parameter and the Accept-Language query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. This parameter and the mkt query parameter are mutually exclusive—do not specify both. + * @param market The market where the results come from. You are strongly encouraged to always specify the market, if known. Specifying the market helps Bing route the request and return an appropriate and optimal response. This parameter and the cc query parameter are mutually exclusive—do not specify both. + * @param safeSearch Filter suggestions for adult content. The following are the possible filter values. Off: Return suggestions with adult text, images, or videos. Moderate: Return suggestion with adult text but not adult images or videos. Strict: Do not return news articles with adult text, images, or videos. If the request comes from a market that Bing's adult policy requires that safeSearch is set to Strict, Bing ignores the safeSearch value and uses Strict. If you use the site: query operator, there is the chance that the response may contain adult content regardless of what the safeSearch query parameter is set to. Use site: only if you are aware of the content on the site and your scenario supports the possibility of adult content. Possible values include: 'Off', 'Moderate', 'Strict' + * @param setLang The language to use for user interface strings. Specify the language using the ISO 639-1 2-letter language code. For example, the language code for English is EN. The default is EN (English). Although optional, you should always specify the language. Typically, you set setLang to the same language specified by mkt unless the user wants the user interface strings displayed in a different language. This parameter and the Accept-Language header are mutually exclusive; do not specify both. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Also, any links to Bing.com properties in the response objects apply the specified language. + * @param responseFormat The media type to use for the response. The following are the possible case-insensitive values: JSON, JSONLD. The default is JSON. If you specify JSONLD, the response body includes JSON-LD objects that contain the search results. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Suggestions object + */ + public Observable> autoSuggestWithServiceResponseAsync(String query, String acceptLanguage, String pragma, String userAgent, String clientId, String clientIp, String location, String countryCode, String market, SafeSearch safeSearch, String setLang, List responseFormat) { + if (query == null) { + throw new IllegalArgumentException("Parameter query is required and cannot be null."); + } + Validator.validate(responseFormat); + final String xBingApisSDK = "true"; + String responseFormatConverted = this.client.serializerAdapter().serializeList(responseFormat, CollectionFormat.CSV); + return service.autoSuggest(xBingApisSDK, acceptLanguage, pragma, userAgent, clientId, clientIp, location, countryCode, market, query, safeSearch, setLang, responseFormatConverted) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = autoSuggestDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse autoSuggestDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters autoSuggest() { + return new BingAutoSuggestSearchAutoSuggestParameters(this); + } + + /** + * Internal class implementing BingAutoSuggestSearchAutoSuggestDefinition. + */ + class BingAutoSuggestSearchAutoSuggestParameters implements BingAutoSuggestSearchAutoSuggestDefinition { + private BingAutoSuggestSearchImpl parent; + private String query; + private String acceptLanguage; + private String pragma; + private String userAgent; + private String clientId; + private String clientIp; + private String location; + private String countryCode; + private String market; + private SafeSearch safeSearch; + private String setLang; + private List responseFormat; + + /** + * Constructor. + * @param parent the parent object. + */ + BingAutoSuggestSearchAutoSuggestParameters(BingAutoSuggestSearchImpl parent) { + this.parent = parent; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withQuery(String query) { + this.query = query; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withPragma(String pragma) { + this.pragma = pragma; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withClientIp(String clientIp) { + this.clientIp = clientIp; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withLocation(String location) { + this.location = location; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withCountryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withMarket(String market) { + this.market = market; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withSafeSearch(SafeSearch safeSearch) { + this.safeSearch = safeSearch; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withSetLang(String setLang) { + this.setLang = setLang; + return this; + } + + @Override + public BingAutoSuggestSearchAutoSuggestParameters withResponseFormat(List responseFormat) { + this.responseFormat = responseFormat; + return this; + } + + @Override + public Suggestions execute() { + return autoSuggestWithServiceResponseAsync(query, acceptLanguage, pragma, userAgent, clientId, clientIp, location, countryCode, market, safeSearch, setLang, responseFormat).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return autoSuggestWithServiceResponseAsync(query, acceptLanguage, pragma, userAgent, clientId, clientIp, location, countryCode, market, safeSearch, setLang, responseFormat).map(new Func1, Suggestions>() { + @Override + public Suggestions call(ServiceResponse response) { + return response.body(); + } + }); + } + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/package-info.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/package-info.java new file mode 100644 index 000000000000..0611f6894deb --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for BingAutoSuggestSearchAPI. + * The AutoSuggest Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for AutoSuggest](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference). + */ +package com.microsoft.azure.cognitiveservices.search.autosuggest.implementation; diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Action.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Action.java new file mode 100644 index 000000000000..1ecb70dce45b --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Action.java @@ -0,0 +1,86 @@ +/** + * 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.search.autosuggest.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The Action model. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Action.class) +@JsonTypeName("Action") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "SearchAction", value = SearchAction.class) +}) +public class Action extends CreativeWork { + /** + * The result property. + */ + @JsonProperty(value = "result", access = JsonProperty.Access.WRITE_ONLY) + private List result; + + /** + * The displayName property. + */ + @JsonProperty(value = "displayName", access = JsonProperty.Access.WRITE_ONLY) + private String displayName; + + /** + * The isTopAction property. + */ + @JsonProperty(value = "isTopAction", access = JsonProperty.Access.WRITE_ONLY) + private Boolean isTopAction; + + /** + * The serviceUrl property. + */ + @JsonProperty(value = "serviceUrl", access = JsonProperty.Access.WRITE_ONLY) + private String serviceUrl; + + /** + * Get the result value. + * + * @return the result value + */ + public List result() { + return this.result; + } + + /** + * Get the displayName value. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Get the isTopAction value. + * + * @return the isTopAction value + */ + public Boolean isTopAction() { + return this.isTopAction; + } + + /** + * Get the serviceUrl value. + * + * @return the serviceUrl value + */ + public String serviceUrl() { + return this.serviceUrl; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Answer.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Answer.java new file mode 100644 index 000000000000..ae1eb42c3950 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Answer.java @@ -0,0 +1,24 @@ +/** + * 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.search.autosuggest.models; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Defines an answer. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Answer.class) +@JsonTypeName("Answer") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "SearchResultsAnswer", value = SearchResultsAnswer.class) +}) +public class Answer extends Response { +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/AutoSuggestOptionalParameter.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/AutoSuggestOptionalParameter.java new file mode 100644 index 000000000000..89b563796edc --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/AutoSuggestOptionalParameter.java @@ -0,0 +1,444 @@ +/** + * 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.search.autosuggest.models; + +import java.util.List; + +/** + * The AutoSuggestOptionalParameter model. + */ +public class AutoSuggestOptionalParameter { + /** + * A comma-delimited list of one or more languages to use for user + * interface strings. The list is in decreasing order of preference. For + * additional information, including expected format, see + * [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This + * header and the setLang query parameter are mutually exclusive; do not + * specify both. If you set this header, you must also specify the + * [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#cc) + * query parameter. To determine the market to return results for, Bing + * uses the first supported language it finds from the list and combines it + * with the cc parameter value. If the list does not include a supported + * language, Bing finds the closest language and market that supports the + * request or it uses an aggregated or default market for the results. To + * determine the market that Bing used, see the BingAPIs-Market header. Use + * this header and the cc query parameter only if you specify multiple + * languages. Otherwise, use the + * [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#mkt) + * and + * [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference#setlang) + * query parameters. A user interface string is a string that's used as a + * label in a user interface. There are few user interface strings in the + * JSON response objects. Any links to Bing.com properties in the response + * objects apply the specified language. + */ + private String acceptLanguage; + + /** + * By default, Bing returns cached content, if available. To prevent Bing + * from returning cached content, set the Pragma header to no-cache (for + * example, Pragma: no-cache). + */ + private String pragma; + + /** + * The user agent originating the request. Bing uses the user agent to + * provide mobile users with an optimized experience. Although optional, + * you are encouraged to always specify this header. The user-agent should + * be the same string that any commonly used browser sends. For information + * about user agents, see [RFC + * 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The + * following are examples of user-agent strings. Windows Phone: Mozilla/5.0 + * (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; + * ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 (Linux; U; Android + * 2.3.5; en - us; SCH - I500 Build / GINGERBREAD) AppleWebKit / 533.1 + * (KHTML; like Gecko) Version / 4.0 Mobile Safari / 533.1. iPhone: Mozilla + * / 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit / 536.26 + * (KHTML; like Gecko) Mobile / 10B142 iPhone4; 1 BingWeb / + * 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / + * 7.0; Touch; rv:11.0) like Gecko. iPad: Mozilla / 5.0 (iPad; CPU OS 7_0 + * like Mac OS X) AppleWebKit / 537.51.1 (KHTML, like Gecko) Version / 7.0 + * Mobile / 11A465 Safari / 9537.53. + */ + private String userAgent; + + /** + * Bing uses this header to provide users with consistent behavior across + * Bing API calls. Bing often flights new features and improvements, and it + * uses the client ID as a key for assigning traffic on different flights. + * If you do not use the same client ID for a user across multiple + * requests, then Bing may assign the user to multiple conflicting flights. + * Being assigned to multiple conflicting flights can lead to an + * inconsistent user experience. For example, if the second request has a + * different flight assignment than the first, the experience may be + * unexpected. Also, Bing can use the client ID to tailor web results to + * that client ID’s search history, providing a richer experience for the + * user. Bing also uses this header to help improve result rankings by + * analyzing the activity generated by a client ID. The relevance + * improvements help with better quality of results delivered by Bing APIs + * and in turn enables higher click-through rates for the API consumer. + * IMPORTANT: Although optional, you should consider this header required. + * Persisting the client ID across multiple requests for the same end user + * and device combination enables 1) the API consumer to receive a + * consistent user experience, and 2) higher click-through rates via better + * quality of results from the Bing APIs. Each user that uses your + * application on the device must have a unique, Bing generated client ID. + * If you do not include this header in the request, Bing generates an ID + * and returns it in the X-MSEdge-ClientID response header. The only time + * that you should NOT include this header in a request is the first time + * the user uses your app on that device. Use the client ID for each Bing + * API request that your app makes for this user on the device. Persist the + * client ID. To persist the ID in a browser app, use a persistent HTTP + * cookie to ensure the ID is used across all sessions. Do not use a + * session cookie. For other apps such as mobile apps, use the device's + * persistent storage to persist the ID. The next time the user uses your + * app on that device, get the client ID that you persisted. Bing responses + * may or may not include this header. If the response includes this + * header, capture the client ID and use it for all subsequent Bing + * requests for the user on that device. If you include the + * X-MSEdge-ClientID, you must not include cookies in the request. + */ + private String clientId; + + /** + * The IPv4 or IPv6 address of the client device. The IP address is used to + * discover the user's location. Bing uses the location information to + * determine safe search behavior. Although optional, you are encouraged to + * always specify this header and the X-Search-Location header. Do not + * obfuscate the address (for example, by changing the last octet to 0). + * Obfuscating the address results in the location not being anywhere near + * the device's actual location, which may result in Bing serving erroneous + * results. + */ + private String clientIp; + + /** + * A semicolon-delimited list of key/value pairs that describe the client's + * geographical location. Bing uses the location information to determine + * safe search behavior and to return relevant local content. Specify the + * key/value pair as <key>:<value>. The following are the keys + * that you use to specify the user's location. lat (required): The + * latitude of the client's location, in degrees. The latitude must be + * greater than or equal to -90.0 and less than or equal to +90.0. Negative + * values indicate southern latitudes and positive values indicate northern + * latitudes. long (required): The longitude of the client's location, in + * degrees. The longitude must be greater than or equal to -180.0 and less + * than or equal to +180.0. Negative values indicate western longitudes and + * positive values indicate eastern longitudes. re (required): The radius, + * in meters, which specifies the horizontal accuracy of the coordinates. + * Pass the value returned by the device's location service. Typical values + * might be 22m for GPS/Wi-Fi, 380m for cell tower triangulation, and + * 18,000m for reverse IP lookup. ts (optional): The UTC UNIX timestamp of + * when the client was at the location. (The UNIX timestamp is the number + * of seconds since January 1, 1970.) head (optional): The client's + * relative heading or direction of travel. Specify the direction of travel + * as degrees from 0 through 360, counting clockwise relative to true + * north. Specify this key only if the sp key is nonzero. sp (optional): + * The horizontal velocity (speed), in meters per second, that the client + * device is traveling. alt (optional): The altitude of the client device, + * in meters. are (optional): The radius, in meters, that specifies the + * vertical accuracy of the coordinates. Specify this key only if you + * specify the alt key. Although many of the keys are optional, the more + * information that you provide, the more accurate the location results + * are. Although optional, you are encouraged to always specify the user's + * geographical location. Providing the location is especially important if + * the client's IP address does not accurately reflect the user's physical + * location (for example, if the client uses VPN). For optimal results, you + * should include this header and the X-MSEdge-ClientIP header, but at a + * minimum, you should include this header. + */ + private String location; + + /** + * A 2-character country code of the country where the results come from. + * This API supports only the United States market. If you specify this + * query parameter, it must be set to us. If you set this parameter, you + * must also specify the Accept-Language header. Bing uses the first + * supported language it finds from the languages list, and combine that + * language with the country code that you specify to determine the market + * to return results for. If the languages list does not include a + * supported language, Bing finds the closest language and market that + * supports the request, or it may use an aggregated or default market for + * the results instead of a specified one. You should use this query + * parameter and the Accept-Language query parameter only if you specify + * multiple languages; otherwise, you should use the mkt and setLang query + * parameters. This parameter and the mkt query parameter are mutually + * exclusive—do not specify both. + */ + private String countryCode; + + /** + * The market where the results come from. You are strongly encouraged to + * always specify the market, if known. Specifying the market helps Bing + * route the request and return an appropriate and optimal response. This + * parameter and the cc query parameter are mutually exclusive—do not + * specify both. + */ + private String market; + + /** + * Filter suggestions for adult content. The following are the possible + * filter values. Off: Return suggestions with adult text, images, or + * videos. Moderate: Return suggestion with adult text but not adult images + * or videos. Strict: Do not return news articles with adult text, images, + * or videos. If the request comes from a market that Bing's adult policy + * requires that safeSearch is set to Strict, Bing ignores the safeSearch + * value and uses Strict. If you use the site: query operator, there is the + * chance that the response may contain adult content regardless of what + * the safeSearch query parameter is set to. Use site: only if you are + * aware of the content on the site and your scenario supports the + * possibility of adult content. Possible values include: 'Off', + * 'Moderate', 'Strict'. + */ + private SafeSearch safeSearch; + + /** + * The language to use for user interface strings. Specify the language + * using the ISO 639-1 2-letter language code. For example, the language + * code for English is EN. The default is EN (English). Although optional, + * you should always specify the language. Typically, you set setLang to + * the same language specified by mkt unless the user wants the user + * interface strings displayed in a different language. This parameter and + * the Accept-Language header are mutually exclusive; do not specify both. + * A user interface string is a string that's used as a label in a user + * interface. There are few user interface strings in the JSON response + * objects. Also, any links to Bing.com properties in the response objects + * apply the specified language. + */ + private String setLang; + + /** + * The media type to use for the response. The following are the possible + * case-insensitive values: JSON, JSONLD. The default is JSON. If you + * specify JSONLD, the response body includes JSON-LD objects that contain + * the search results. + */ + private List responseFormat; + + /** + * Get the acceptLanguage value. + * + * @return the acceptLanguage value + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Set the acceptLanguage value. + * + * @param acceptLanguage the acceptLanguage value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** + * Get the pragma value. + * + * @return the pragma value + */ + public String pragma() { + return this.pragma; + } + + /** + * Set the pragma value. + * + * @param pragma the pragma value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withPragma(String pragma) { + this.pragma = pragma; + return this; + } + + /** + * Get the userAgent value. + * + * @return the userAgent value + */ + public String userAgent() { + return this.userAgent; + } + + /** + * Set the userAgent value. + * + * @param userAgent the userAgent value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + + /** + * Get the clientId value. + * + * @return the clientId value + */ + public String clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientIp value. + * + * @return the clientIp value + */ + public String clientIp() { + return this.clientIp; + } + + /** + * Set the clientIp value. + * + * @param clientIp the clientIp value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withClientIp(String clientIp) { + this.clientIp = clientIp; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the countryCode value. + * + * @return the countryCode value + */ + public String countryCode() { + return this.countryCode; + } + + /** + * Set the countryCode value. + * + * @param countryCode the countryCode value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withCountryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * Get the market value. + * + * @return the market value + */ + public String market() { + return this.market; + } + + /** + * Set the market value. + * + * @param market the market value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withMarket(String market) { + this.market = market; + return this; + } + + /** + * Get the safeSearch value. + * + * @return the safeSearch value + */ + public SafeSearch safeSearch() { + return this.safeSearch; + } + + /** + * Set the safeSearch value. + * + * @param safeSearch the safeSearch value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withSafeSearch(SafeSearch safeSearch) { + this.safeSearch = safeSearch; + return this; + } + + /** + * Get the setLang value. + * + * @return the setLang value + */ + public String setLang() { + return this.setLang; + } + + /** + * Set the setLang value. + * + * @param setLang the setLang value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withSetLang(String setLang) { + this.setLang = setLang; + return this; + } + + /** + * Get the responseFormat value. + * + * @return the responseFormat value + */ + public List responseFormat() { + return this.responseFormat; + } + + /** + * Set the responseFormat value. + * + * @param responseFormat the responseFormat value to set + * @return the AutoSuggestOptionalParameter object itself. + */ + public AutoSuggestOptionalParameter withResponseFormat(List responseFormat) { + this.responseFormat = responseFormat; + return this; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/CreativeWork.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/CreativeWork.java new file mode 100644 index 000000000000..7bdb0e6fae9d --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/CreativeWork.java @@ -0,0 +1,267 @@ +/** + * 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.search.autosuggest.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The most generic kind of creative work, including books, movies, + * photographs, software programs, etc. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = CreativeWork.class) +@JsonTypeName("CreativeWork") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Action", value = Action.class) +}) +public class CreativeWork extends Thing { + /** + * The URL to a thumbnail of the item. + */ + @JsonProperty(value = "thumbnailUrl", access = JsonProperty.Access.WRITE_ONLY) + private String thumbnailUrl; + + /** + * For internal use only. + */ + @JsonProperty(value = "about", access = JsonProperty.Access.WRITE_ONLY) + private List about; + + /** + * For internal use only. + */ + @JsonProperty(value = "mentions", access = JsonProperty.Access.WRITE_ONLY) + private List mentions; + + /** + * The source of the creative work. + */ + @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) + private List provider; + + /** + * The creator property. + */ + @JsonProperty(value = "creator", access = JsonProperty.Access.WRITE_ONLY) + private Thing creator; + + /** + * Text content of this creative work. + */ + @JsonProperty(value = "text", access = JsonProperty.Access.WRITE_ONLY) + private String text; + + /** + * The discussionUrl property. + */ + @JsonProperty(value = "discussionUrl", access = JsonProperty.Access.WRITE_ONLY) + private String discussionUrl; + + /** + * The commentCount property. + */ + @JsonProperty(value = "commentCount", access = JsonProperty.Access.WRITE_ONLY) + private Integer commentCount; + + /** + * The mainEntity property. + */ + @JsonProperty(value = "mainEntity", access = JsonProperty.Access.WRITE_ONLY) + private Thing mainEntity; + + /** + * The headLine property. + */ + @JsonProperty(value = "headLine", access = JsonProperty.Access.WRITE_ONLY) + private String headLine; + + /** + * The copyrightHolder property. + */ + @JsonProperty(value = "copyrightHolder", access = JsonProperty.Access.WRITE_ONLY) + private Thing copyrightHolder; + + /** + * The copyrightYear property. + */ + @JsonProperty(value = "copyrightYear", access = JsonProperty.Access.WRITE_ONLY) + private Integer copyrightYear; + + /** + * The disclaimer property. + */ + @JsonProperty(value = "disclaimer", access = JsonProperty.Access.WRITE_ONLY) + private String disclaimer; + + /** + * The isAccessibleForFree property. + */ + @JsonProperty(value = "isAccessibleForFree", access = JsonProperty.Access.WRITE_ONLY) + private Boolean isAccessibleForFree; + + /** + * The genre property. + */ + @JsonProperty(value = "genre", access = JsonProperty.Access.WRITE_ONLY) + private List genre; + + /** + * The isFamilyFriendly property. + */ + @JsonProperty(value = "isFamilyFriendly", access = JsonProperty.Access.WRITE_ONLY) + private Boolean isFamilyFriendly; + + /** + * Get the thumbnailUrl value. + * + * @return the thumbnailUrl value + */ + public String thumbnailUrl() { + return this.thumbnailUrl; + } + + /** + * Get the about value. + * + * @return the about value + */ + public List about() { + return this.about; + } + + /** + * Get the mentions value. + * + * @return the mentions value + */ + public List mentions() { + return this.mentions; + } + + /** + * Get the provider value. + * + * @return the provider value + */ + public List provider() { + return this.provider; + } + + /** + * Get the creator value. + * + * @return the creator value + */ + public Thing creator() { + return this.creator; + } + + /** + * Get the text value. + * + * @return the text value + */ + public String text() { + return this.text; + } + + /** + * Get the discussionUrl value. + * + * @return the discussionUrl value + */ + public String discussionUrl() { + return this.discussionUrl; + } + + /** + * Get the commentCount value. + * + * @return the commentCount value + */ + public Integer commentCount() { + return this.commentCount; + } + + /** + * Get the mainEntity value. + * + * @return the mainEntity value + */ + public Thing mainEntity() { + return this.mainEntity; + } + + /** + * Get the headLine value. + * + * @return the headLine value + */ + public String headLine() { + return this.headLine; + } + + /** + * Get the copyrightHolder value. + * + * @return the copyrightHolder value + */ + public Thing copyrightHolder() { + return this.copyrightHolder; + } + + /** + * Get the copyrightYear value. + * + * @return the copyrightYear value + */ + public Integer copyrightYear() { + return this.copyrightYear; + } + + /** + * Get the disclaimer value. + * + * @return the disclaimer value + */ + public String disclaimer() { + return this.disclaimer; + } + + /** + * Get the isAccessibleForFree value. + * + * @return the isAccessibleForFree value + */ + public Boolean isAccessibleForFree() { + return this.isAccessibleForFree; + } + + /** + * Get the genre value. + * + * @return the genre value + */ + public List genre() { + return this.genre; + } + + /** + * Get the isFamilyFriendly value. + * + * @return the isFamilyFriendly value + */ + public Boolean isFamilyFriendly() { + return this.isFamilyFriendly; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Error.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Error.java new file mode 100644 index 000000000000..7fc3ea564ffc --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Error.java @@ -0,0 +1,120 @@ +/** + * 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.search.autosuggest.models; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Defines the error that occurred. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Error.class) +@JsonTypeName("Error") +public class Error { + /** + * The error code that identifies the category of error. Possible values + * include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', + * 'InvalidAuthorization', 'InsufficientAuthorization'. + */ + @JsonProperty(value = "code", required = true) + private ErrorCode code; + + /** + * A description of the error. + */ + @JsonProperty(value = "message", required = true) + private String message; + + /** + * A description that provides additional information about the error. + */ + @JsonProperty(value = "moreDetails", access = JsonProperty.Access.WRITE_ONLY) + private String moreDetails; + + /** + * The parameter in the request that caused the error. + */ + @JsonProperty(value = "parameter", access = JsonProperty.Access.WRITE_ONLY) + private String parameter; + + /** + * The parameter's value in the request that was not valid. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private String value; + + /** + * Get the code value. + * + * @return the code value + */ + public ErrorCode code() { + return this.code; + } + + /** + * Set the code value. + * + * @param code the code value to set + * @return the Error object itself. + */ + public Error withCode(ErrorCode code) { + this.code = code; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the Error object itself. + */ + public Error withMessage(String message) { + this.message = message; + return this; + } + + /** + * Get the moreDetails value. + * + * @return the moreDetails value + */ + public String moreDetails() { + return this.moreDetails; + } + + /** + * Get the parameter value. + * + * @return the parameter value + */ + public String parameter() { + return this.parameter; + } + + /** + * Get the value value. + * + * @return the value value + */ + public String value() { + return this.value; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorCode.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorCode.java new file mode 100644 index 000000000000..d06c895ec29d --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorCode.java @@ -0,0 +1,53 @@ +/** + * 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.search.autosuggest.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ErrorCode. + */ +public final class ErrorCode extends ExpandableStringEnum { + /** Static value None for ErrorCode. */ + public static final ErrorCode NONE = fromString("None"); + + /** Static value ServerError for ErrorCode. */ + public static final ErrorCode SERVER_ERROR = fromString("ServerError"); + + /** Static value InvalidRequest for ErrorCode. */ + public static final ErrorCode INVALID_REQUEST = fromString("InvalidRequest"); + + /** Static value RateLimitExceeded for ErrorCode. */ + public static final ErrorCode RATE_LIMIT_EXCEEDED = fromString("RateLimitExceeded"); + + /** Static value InvalidAuthorization for ErrorCode. */ + public static final ErrorCode INVALID_AUTHORIZATION = fromString("InvalidAuthorization"); + + /** Static value InsufficientAuthorization for ErrorCode. */ + public static final ErrorCode INSUFFICIENT_AUTHORIZATION = fromString("InsufficientAuthorization"); + + /** + * Creates or finds a ErrorCode from its string representation. + * @param name a name to look for + * @return the corresponding ErrorCode + */ + @JsonCreator + public static ErrorCode fromString(String name) { + return fromString(name, ErrorCode.class); + } + + /** + * @return known ErrorCode values + */ + public static Collection values() { + return values(ErrorCode.class); + } +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorResponse.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorResponse.java new file mode 100644 index 000000000000..f5244f2167e2 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorResponse.java @@ -0,0 +1,48 @@ +/** + * 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.search.autosuggest.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The top-level response that represents a failed request. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = ErrorResponse.class) +@JsonTypeName("ErrorResponse") +public class ErrorResponse extends Response { + /** + * A list of errors that describe the reasons why the request failed. + */ + @JsonProperty(value = "errors", required = true) + private List errors; + + /** + * Get the errors value. + * + * @return the errors value + */ + public List errors() { + return this.errors; + } + + /** + * Set the errors value. + * + * @param errors the errors value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withErrors(List errors) { + this.errors = errors; + return this; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorResponseException.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorResponseException.java new file mode 100644 index 000000000000..ca666234a7fe --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ErrorResponseException.java @@ -0,0 +1,44 @@ +/** + * 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.search.autosuggest.models; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ +public class ErrorResponseException extends RestException { + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorResponseException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorResponseException(final String message, final Response response, final ErrorResponse body) { + super(message, response, body); + } + + @Override + public ErrorResponse body() { + return (ErrorResponse) super.body(); + } +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Identifiable.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Identifiable.java new file mode 100644 index 000000000000..5004a24ad0aa --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Identifiable.java @@ -0,0 +1,40 @@ +/** + * 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.search.autosuggest.models; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Defines the identity of a resource. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Identifiable.class) +@JsonTypeName("Identifiable") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Response", value = Response.class) +}) +public class Identifiable extends ResponseBase { + /** + * A String identifier. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /** + * Get the id value. + * + * @return the id value + */ + public String id() { + return this.id; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/QueryContext.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/QueryContext.java new file mode 100644 index 000000000000..141547f0054a --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/QueryContext.java @@ -0,0 +1,140 @@ +/** + * 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.search.autosuggest.models; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Defines the query context that Bing used for the request. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = QueryContext.class) +@JsonTypeName("QueryContext") +public class QueryContext { + /** + * The query string as specified in the request. + */ + @JsonProperty(value = "originalQuery", required = true) + private String originalQuery; + + /** + * The query string used by Bing to perform the query. Bing uses the + * altered query string if the original query string contained spelling + * mistakes. For example, if the query string is "saling downwind", the + * altered query string will be "sailing downwind". This field is included + * only if the original query string contains a spelling mistake. + */ + @JsonProperty(value = "alteredQuery", access = JsonProperty.Access.WRITE_ONLY) + private String alteredQuery; + + /** + * The query string to use to force Bing to use the original string. For + * example, if the query string is "saling downwind", the override query + * string will be "+saling downwind". Remember to encode the query string + * which results in "%2Bsaling+downwind". This field is included only if + * the original query string contains a spelling mistake. + */ + @JsonProperty(value = "alterationOverrideQuery", access = JsonProperty.Access.WRITE_ONLY) + private String alterationOverrideQuery; + + /** + * A Boolean value that indicates whether the specified query has adult + * intent. The value is true if the query has adult intent; otherwise, + * false. + */ + @JsonProperty(value = "adultIntent", access = JsonProperty.Access.WRITE_ONLY) + private Boolean adultIntent; + + /** + * A Boolean value that indicates whether Bing requires the user's location + * to provide accurate results. If you specified the user's location by + * using the X-MSEdge-ClientIP and X-Search-Location headers, you can + * ignore this field. For location aware queries, such as "today's weather" + * or "restaurants near me" that need the user's location to provide + * accurate results, this field is set to true. For location aware queries + * that include the location (for example, "Seattle weather"), this field + * is set to false. This field is also set to false for queries that are + * not location aware, such as "best sellers". + */ + @JsonProperty(value = "askUserForLocation", access = JsonProperty.Access.WRITE_ONLY) + private Boolean askUserForLocation; + + /** + * The isTransactional property. + */ + @JsonProperty(value = "isTransactional", access = JsonProperty.Access.WRITE_ONLY) + private Boolean isTransactional; + + /** + * Get the originalQuery value. + * + * @return the originalQuery value + */ + public String originalQuery() { + return this.originalQuery; + } + + /** + * Set the originalQuery value. + * + * @param originalQuery the originalQuery value to set + * @return the QueryContext object itself. + */ + public QueryContext withOriginalQuery(String originalQuery) { + this.originalQuery = originalQuery; + return this; + } + + /** + * Get the alteredQuery value. + * + * @return the alteredQuery value + */ + public String alteredQuery() { + return this.alteredQuery; + } + + /** + * Get the alterationOverrideQuery value. + * + * @return the alterationOverrideQuery value + */ + public String alterationOverrideQuery() { + return this.alterationOverrideQuery; + } + + /** + * Get the adultIntent value. + * + * @return the adultIntent value + */ + public Boolean adultIntent() { + return this.adultIntent; + } + + /** + * Get the askUserForLocation value. + * + * @return the askUserForLocation value + */ + public Boolean askUserForLocation() { + return this.askUserForLocation; + } + + /** + * Get the isTransactional value. + * + * @return the isTransactional value + */ + public Boolean isTransactional() { + return this.isTransactional; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Response.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Response.java new file mode 100644 index 000000000000..a6880820d88b --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Response.java @@ -0,0 +1,119 @@ +/** + * 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.search.autosuggest.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Defines a response. All schemas that could be returned at the root of a + * response should inherit from this. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Response.class) +@JsonTypeName("Response") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Answer", value = Answer.class), + @JsonSubTypes.Type(name = "Thing", value = Thing.class), + @JsonSubTypes.Type(name = "ErrorResponse", value = ErrorResponse.class) +}) +public class Response extends Identifiable { + /** + * The URL that returns this resource. + */ + @JsonProperty(value = "readLink", access = JsonProperty.Access.WRITE_ONLY) + private String readLink; + + /** + * The URL To Bing's search result for this item. + */ + @JsonProperty(value = "webSearchUrl", access = JsonProperty.Access.WRITE_ONLY) + private String webSearchUrl; + + /** + * The potentialAction property. + */ + @JsonProperty(value = "potentialAction", access = JsonProperty.Access.WRITE_ONLY) + private List potentialAction; + + /** + * The immediateAction property. + */ + @JsonProperty(value = "immediateAction", access = JsonProperty.Access.WRITE_ONLY) + private List immediateAction; + + /** + * The preferredClickthroughUrl property. + */ + @JsonProperty(value = "preferredClickthroughUrl", access = JsonProperty.Access.WRITE_ONLY) + private String preferredClickthroughUrl; + + /** + * The adaptiveCard property. + */ + @JsonProperty(value = "adaptiveCard", access = JsonProperty.Access.WRITE_ONLY) + private String adaptiveCard; + + /** + * Get the readLink value. + * + * @return the readLink value + */ + public String readLink() { + return this.readLink; + } + + /** + * Get the webSearchUrl value. + * + * @return the webSearchUrl value + */ + public String webSearchUrl() { + return this.webSearchUrl; + } + + /** + * Get the potentialAction value. + * + * @return the potentialAction value + */ + public List potentialAction() { + return this.potentialAction; + } + + /** + * Get the immediateAction value. + * + * @return the immediateAction value + */ + public List immediateAction() { + return this.immediateAction; + } + + /** + * Get the preferredClickthroughUrl value. + * + * @return the preferredClickthroughUrl value + */ + public String preferredClickthroughUrl() { + return this.preferredClickthroughUrl; + } + + /** + * Get the adaptiveCard value. + * + * @return the adaptiveCard value + */ + public String adaptiveCard() { + return this.adaptiveCard; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ResponseBase.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ResponseBase.java new file mode 100644 index 000000000000..1c61f3b18c88 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ResponseBase.java @@ -0,0 +1,24 @@ +/** + * 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.search.autosuggest.models; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Response base. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = ResponseBase.class) +@JsonTypeName("ResponseBase") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Identifiable", value = Identifiable.class) +}) +public class ResponseBase { +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ResponseFormat.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ResponseFormat.java new file mode 100644 index 000000000000..8a1ec67f9f1d --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ResponseFormat.java @@ -0,0 +1,41 @@ +/** + * 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.search.autosuggest.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ResponseFormat. + */ +public final class ResponseFormat extends ExpandableStringEnum { + /** Static value Json for ResponseFormat. */ + public static final ResponseFormat JSON = fromString("Json"); + + /** Static value JsonLd for ResponseFormat. */ + public static final ResponseFormat JSON_LD = fromString("JsonLd"); + + /** + * Creates or finds a ResponseFormat from its string representation. + * @param name a name to look for + * @return the corresponding ResponseFormat + */ + @JsonCreator + public static ResponseFormat fromString(String name) { + return fromString(name, ResponseFormat.class); + } + + /** + * @return known ResponseFormat values + */ + public static Collection values() { + return values(ResponseFormat.class); + } +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SafeSearch.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SafeSearch.java new file mode 100644 index 000000000000..409ce3aca1ff --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SafeSearch.java @@ -0,0 +1,44 @@ +/** + * 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.search.autosuggest.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SafeSearch. + */ +public final class SafeSearch extends ExpandableStringEnum { + /** Static value Off for SafeSearch. */ + public static final SafeSearch OFF = fromString("Off"); + + /** Static value Moderate for SafeSearch. */ + public static final SafeSearch MODERATE = fromString("Moderate"); + + /** Static value Strict for SafeSearch. */ + public static final SafeSearch STRICT = fromString("Strict"); + + /** + * Creates or finds a SafeSearch from its string representation. + * @param name a name to look for + * @return the corresponding SafeSearch + */ + @JsonCreator + public static SafeSearch fromString(String name) { + return fromString(name, SafeSearch.class); + } + + /** + * @return known SafeSearch values + */ + public static Collection values() { + return values(SafeSearch.class); + } +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ScenarioType.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ScenarioType.java new file mode 100644 index 000000000000..cfc756eec2bd --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/ScenarioType.java @@ -0,0 +1,56 @@ +/** + * 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.search.autosuggest.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ScenarioType. + */ +public final class ScenarioType extends ExpandableStringEnum { + /** Static value Unknown for ScenarioType. */ + public static final ScenarioType UNKNOWN = fromString("Unknown"); + + /** Static value Web for ScenarioType. */ + public static final ScenarioType WEB = fromString("Web"); + + /** Static value StoreApps for ScenarioType. */ + public static final ScenarioType STORE_APPS = fromString("StoreApps"); + + /** Static value SearchHistory for ScenarioType. */ + public static final ScenarioType SEARCH_HISTORY = fromString("SearchHistory"); + + /** Static value PersonalSearchDocuments for ScenarioType. */ + public static final ScenarioType PERSONAL_SEARCH_DOCUMENTS = fromString("PersonalSearchDocuments"); + + /** Static value PersonalSearchTags for ScenarioType. */ + public static final ScenarioType PERSONAL_SEARCH_TAGS = fromString("PersonalSearchTags"); + + /** Static value Custom for ScenarioType. */ + public static final ScenarioType CUSTOM = fromString("Custom"); + + /** + * Creates or finds a ScenarioType from its string representation. + * @param name a name to look for + * @return the corresponding ScenarioType + */ + @JsonCreator + public static ScenarioType fromString(String name) { + return fromString(name, ScenarioType.class); + } + + /** + * @return known ScenarioType values + */ + public static Collection values() { + return values(ScenarioType.class); + } +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchAction.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchAction.java new file mode 100644 index 000000000000..baf4b976051c --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchAction.java @@ -0,0 +1,67 @@ +/** + * 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.search.autosuggest.models; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The SearchAction model. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = SearchAction.class) +@JsonTypeName("SearchAction") +public class SearchAction extends Action { + /** + * The displayText property. + */ + @JsonProperty(value = "displayText", access = JsonProperty.Access.WRITE_ONLY) + private String displayText; + + /** + * The query property. + */ + @JsonProperty(value = "query", access = JsonProperty.Access.WRITE_ONLY) + private String query; + + /** + * Possible values include: 'WebSearch', 'HistorySearch', 'DocumentSearch', + * 'TagSearch', 'LocationSearch', 'CustomSearch'. + */ + @JsonProperty(value = "searchKind", access = JsonProperty.Access.WRITE_ONLY) + private SearchKind searchKind; + + /** + * Get the displayText value. + * + * @return the displayText value + */ + public String displayText() { + return this.displayText; + } + + /** + * Get the query value. + * + * @return the query value + */ + public String query() { + return this.query; + } + + /** + * Get the searchKind value. + * + * @return the searchKind value + */ + public SearchKind searchKind() { + return this.searchKind; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchKind.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchKind.java new file mode 100644 index 000000000000..1aef698621d8 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchKind.java @@ -0,0 +1,53 @@ +/** + * 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.search.autosuggest.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SearchKind. + */ +public final class SearchKind extends ExpandableStringEnum { + /** Static value WebSearch for SearchKind. */ + public static final SearchKind WEB_SEARCH = fromString("WebSearch"); + + /** Static value HistorySearch for SearchKind. */ + public static final SearchKind HISTORY_SEARCH = fromString("HistorySearch"); + + /** Static value DocumentSearch for SearchKind. */ + public static final SearchKind DOCUMENT_SEARCH = fromString("DocumentSearch"); + + /** Static value TagSearch for SearchKind. */ + public static final SearchKind TAG_SEARCH = fromString("TagSearch"); + + /** Static value LocationSearch for SearchKind. */ + public static final SearchKind LOCATION_SEARCH = fromString("LocationSearch"); + + /** Static value CustomSearch for SearchKind. */ + public static final SearchKind CUSTOM_SEARCH = fromString("CustomSearch"); + + /** + * Creates or finds a SearchKind from its string representation. + * @param name a name to look for + * @return the corresponding SearchKind + */ + @JsonCreator + public static SearchKind fromString(String name) { + return fromString(name, SearchKind.class); + } + + /** + * @return known SearchKind values + */ + public static Collection values() { + return values(SearchKind.class); + } +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchResultsAnswer.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchResultsAnswer.java new file mode 100644 index 000000000000..a07439ca03c6 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SearchResultsAnswer.java @@ -0,0 +1,40 @@ +/** + * 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.search.autosuggest.models; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Defines a search result answer. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = SearchResultsAnswer.class) +@JsonTypeName("SearchResultsAnswer") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Suggestions", value = Suggestions.class) +}) +public class SearchResultsAnswer extends Answer { + /** + * The queryContext property. + */ + @JsonProperty(value = "queryContext", access = JsonProperty.Access.WRITE_ONLY) + private QueryContext queryContext; + + /** + * Get the queryContext value. + * + * @return the queryContext value + */ + public QueryContext queryContext() { + return this.queryContext; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Suggestions.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Suggestions.java new file mode 100644 index 000000000000..8bb72858ef21 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Suggestions.java @@ -0,0 +1,48 @@ +/** + * 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.search.autosuggest.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The Suggestions model. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Suggestions.class) +@JsonTypeName("Suggestions") +public class Suggestions extends SearchResultsAnswer { + /** + * The suggestionGroups property. + */ + @JsonProperty(value = "suggestionGroups", required = true) + private List suggestionGroups; + + /** + * Get the suggestionGroups value. + * + * @return the suggestionGroups value + */ + public List suggestionGroups() { + return this.suggestionGroups; + } + + /** + * Set the suggestionGroups value. + * + * @param suggestionGroups the suggestionGroups value to set + * @return the Suggestions object itself. + */ + public Suggestions withSuggestionGroups(List suggestionGroups) { + this.suggestionGroups = suggestionGroups; + return this; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SuggestionsSuggestionGroup.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SuggestionsSuggestionGroup.java new file mode 100644 index 000000000000..cf3e184d658c --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/SuggestionsSuggestionGroup.java @@ -0,0 +1,75 @@ +/** + * 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.search.autosuggest.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The SuggestionsSuggestionGroup model. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = SuggestionsSuggestionGroup.class) +@JsonTypeName("Suggestions/SuggestionGroup") +public class SuggestionsSuggestionGroup { + /** + * Possible values include: 'Unknown', 'Web', 'StoreApps', 'SearchHistory', + * 'PersonalSearchDocuments', 'PersonalSearchTags', 'Custom'. + */ + @JsonProperty(value = "name", required = true) + private ScenarioType name; + + /** + * The searchSuggestions property. + */ + @JsonProperty(value = "searchSuggestions", required = true) + private List searchSuggestions; + + /** + * Get the name value. + * + * @return the name value + */ + public ScenarioType name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the SuggestionsSuggestionGroup object itself. + */ + public SuggestionsSuggestionGroup withName(ScenarioType name) { + this.name = name; + return this; + } + + /** + * Get the searchSuggestions value. + * + * @return the searchSuggestions value + */ + public List searchSuggestions() { + return this.searchSuggestions; + } + + /** + * Set the searchSuggestions value. + * + * @param searchSuggestions the searchSuggestions value to set + * @return the SuggestionsSuggestionGroup object itself. + */ + public SuggestionsSuggestionGroup withSearchSuggestions(List searchSuggestions) { + this.searchSuggestions = searchSuggestions; + return this; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Thing.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Thing.java new file mode 100644 index 000000000000..3641d2fc062e --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/Thing.java @@ -0,0 +1,41 @@ +/** + * 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.search.autosuggest.models; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Defines a thing. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Thing.class) +@JsonTypeName("Thing") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "CreativeWork", value = CreativeWork.class) +}) +public class Thing extends Response { + /** + * The URL to get more information about the thing represented by this + * object. + */ + @JsonProperty(value = "url", access = JsonProperty.Access.WRITE_ONLY) + private String url; + + /** + * Get the url value. + * + * @return the url value + */ + public String url() { + return this.url; + } + +} diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/package-info.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/package-info.java new file mode 100644 index 000000000000..33998dc70a68 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/models/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the models classes for BingAutoSuggestSearchAPI. + * The AutoSuggest Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for AutoSuggest](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference). + */ +package com.microsoft.azure.cognitiveservices.search.autosuggest.models; diff --git a/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/package-info.java b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/package-info.java new file mode 100644 index 000000000000..326a3f121092 --- /dev/null +++ b/cognitiveservices/data-plane/search/bingautosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for BingAutoSuggestSearchAPI. + * The AutoSuggest Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for AutoSuggest](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference). + */ +package com.microsoft.azure.cognitiveservices.search.autosuggest; diff --git a/cognitiveservices/data-plane/search/bingcustomimagesearch/pom.xml b/cognitiveservices/data-plane/search/bingcustomimagesearch/pom.xml index 74c231d9ec0e..4362d9179db5 100644 --- a/cognitiveservices/data-plane/search/bingcustomimagesearch/pom.xml +++ b/cognitiveservices/data-plane/search/bingcustomimagesearch/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-customimagesearch - 1.0.1-beta + 1.0.2-beta jar Microsoft Azure SDK for Cognitive Service Custom Image Search This package contains Microsoft Cognitive Service Custom Image Search SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/search/bingcustomimagesearch + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingcustomimagesearch The MIT License (MIT) diff --git a/cognitiveservices/data-plane/search/bingcustomimagesearch/src/main/java/com/microsoft/azure/cognitiveservices/search/customimagesearch/BingCustomImageSearchManager.java b/cognitiveservices/data-plane/search/bingcustomimagesearch/src/main/java/com/microsoft/azure/cognitiveservices/search/customimagesearch/BingCustomImageSearchManager.java new file mode 100644 index 000000000000..14368992df2b --- /dev/null +++ b/cognitiveservices/data-plane/search/bingcustomimagesearch/src/main/java/com/microsoft/azure/cognitiveservices/search/customimagesearch/BingCustomImageSearchManager.java @@ -0,0 +1,92 @@ +/** + * 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.search.customimagesearch; + +import com.microsoft.azure.cognitiveservices.search.customimagesearch.implementation.BingCustomImageSearchAPIImpl; +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 Bing Custom Image Search manager. + */ +public class BingCustomImageSearchManager { + /** + * Initializes an instance of Bing Custom Image Search API client. + * + * @param subscriptionKey the Bing Search API key + * @return the Bing Custom Search API client + */ + public static BingCustomImageSearchAPI authenticate(String subscriptionKey) { + return authenticate("https://api.cognitive.microsoft.com/bingcustomsearch/v7.0/", subscriptionKey); + } + + /** + * Initializes an instance of Bing Custom Image Search API client. + * + * @param baseUrl the base URL of the service + * @param subscriptionKey the Bing Search API key + * @return the Bing Custom Search API client + */ + public static BingCustomImageSearchAPI authenticate(String baseUrl, final String subscriptionKey) { + ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() { + @Override + public void applyCredentialsFilter(OkHttpClient.Builder builder) { + builder.addNetworkInterceptor( + new Interceptor() { + @Override + public Response intercept(Chain chain) throws 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); + } + + /** + * Initializes an instance of Bing Custom Image Search API client. + * + * @param credentials the management credentials for Azure + * @return the Bing Custom Image Search API client + */ + public static BingCustomImageSearchAPI authenticate(ServiceClientCredentials credentials) { + return authenticate("https://api.cognitive.microsoft.com/bingcustomsearch/v7.0/", credentials); + } + + /** + * Initializes an instance of Bing Custom Image Search API client. + * + * @param baseUrl the base URL of the service + * @param credentials the management credentials for Azure + * @return the Bing Custom Image Search API client + */ + public static BingCustomImageSearchAPI authenticate(String baseUrl, ServiceClientCredentials credentials) { + return new BingCustomImageSearchAPIImpl(baseUrl, credentials); + } + + /** + * Initializes an instance of Bing Custom Image Search API client. + * + * @param restClient the REST client to connect to Azure. + * @return the Bing Custom Image Search API client + */ + public static BingCustomImageSearchAPI authenticate(RestClient restClient) { + return new BingCustomImageSearchAPIImpl(restClient); + } +} diff --git a/cognitiveservices/data-plane/search/bingcustomsearch/pom.xml b/cognitiveservices/data-plane/search/bingcustomsearch/pom.xml index be4bf0559b0d..14c184488025 100644 --- a/cognitiveservices/data-plane/search/bingcustomsearch/pom.xml +++ b/cognitiveservices/data-plane/search/bingcustomsearch/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-customsearch - 1.0.1 + 1.0.2 jar Microsoft Azure SDK for Cognitive Service Custom Search This package contains Microsoft Cognitive Service Custom Search SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/search/bingcustomsearch + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingcustomsearch The MIT License (MIT) diff --git a/cognitiveservices/data-plane/search/bingentitysearch/pom.xml b/cognitiveservices/data-plane/search/bingentitysearch/pom.xml index 45e08e242914..58421872540f 100644 --- a/cognitiveservices/data-plane/search/bingentitysearch/pom.xml +++ b/cognitiveservices/data-plane/search/bingentitysearch/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-entitysearch - 1.0.1 + 1.0.2 jar Microsoft Azure SDK for Cognitive Service Entity Search This package contains Microsoft Cognitive Service Entity Search SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/search/bingentitysearch + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingentitysearch The MIT License (MIT) diff --git a/cognitiveservices/data-plane/search/bingimagesearch/pom.xml b/cognitiveservices/data-plane/search/bingimagesearch/pom.xml index e3266c6cf640..6ec62a353a1e 100644 --- a/cognitiveservices/data-plane/search/bingimagesearch/pom.xml +++ b/cognitiveservices/data-plane/search/bingimagesearch/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-imagesearch - 1.0.1 + 1.0.2 jar Microsoft Azure SDK for Cognitive Service Image Search This package contains Microsoft Cognitive Service Image Search SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/search/bingimagesearch + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingimagesearch The MIT License (MIT) diff --git a/cognitiveservices/data-plane/search/bingnewssearch/pom.xml b/cognitiveservices/data-plane/search/bingnewssearch/pom.xml index 855d383b5939..97d457b0420a 100644 --- a/cognitiveservices/data-plane/search/bingnewssearch/pom.xml +++ b/cognitiveservices/data-plane/search/bingnewssearch/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-newssearch - 1.0.1 + 1.0.2 jar Microsoft Azure SDK for Cognitive Service News Search This package contains Microsoft Cognitive Service News Search SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/search/bingnewssearch + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingnewssearch The MIT License (MIT) diff --git a/cognitiveservices/data-plane/search/bingvideosearch/pom.xml b/cognitiveservices/data-plane/search/bingvideosearch/pom.xml index b086a0e28272..149edcf09ea9 100644 --- a/cognitiveservices/data-plane/search/bingvideosearch/pom.xml +++ b/cognitiveservices/data-plane/search/bingvideosearch/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-videosearch - 1.0.1 + 1.0.2 jar Microsoft Azure SDK for Cognitive Service Video Search This package contains Microsoft Cognitive Service Video Search SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/search/bingvideosearch + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingvideosearch The MIT License (MIT) diff --git a/cognitiveservices/data-plane/search/bingvisualsearch/pom.xml b/cognitiveservices/data-plane/search/bingvisualsearch/pom.xml index 1415d6fc9303..bf6ba0b59e49 100644 --- a/cognitiveservices/data-plane/search/bingvisualsearch/pom.xml +++ b/cognitiveservices/data-plane/search/bingvisualsearch/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-visualsearch - 1.0.1-beta + 1.0.2-beta jar Microsoft Azure SDK for Cognitive Service Visual Search This package contains Microsoft Cognitive Service Visual Search SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/search/bingvisualsearch + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingvisualsearch The MIT License (MIT) diff --git a/cognitiveservices/data-plane/search/bingwebsearch/pom.xml b/cognitiveservices/data-plane/search/bingwebsearch/pom.xml index 3fefc532104e..82b74ceb2e93 100644 --- a/cognitiveservices/data-plane/search/bingwebsearch/pom.xml +++ b/cognitiveservices/data-plane/search/bingwebsearch/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-websearch - 1.0.1 + 1.0.2 jar Microsoft Azure SDK for Cognitive Service Web Search This package contains Microsoft Cognitive Service Web Search SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/search/bingwebsearch + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/search/bingwebsearch The MIT License (MIT) diff --git a/cognitiveservices/data-plane/vision/computervision/pom.xml b/cognitiveservices/data-plane/vision/computervision/pom.xml index b60fcda537b8..f585c51f9857 100755 --- a/cognitiveservices/data-plane/vision/computervision/pom.xml +++ b/cognitiveservices/data-plane/vision/computervision/pom.xml @@ -10,15 +10,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-computervision - 1.0.1-beta + 1.0.2-beta jar Microsoft Azure SDK for Cognitive Service Computer Vision This package contains Microsoft Cognitive Service Computer Vision SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/vision/computervision + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/vision/computervision The MIT License (MIT) diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVision.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVision.java index cddbaa3fe633..8f22f907307c 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVision.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVision.java @@ -8,14 +8,12 @@ package com.microsoft.azure.cognitiveservices.vision.computervision; -import com.microsoft.azure.cognitiveservices.vision.computervision.models.RecognizeTextInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.AnalyzeImageByDomainInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.TagImageInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.DescribeImageInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.RecognizePrintedTextInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.GenerateThumbnailInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.AnalyzeImageInStreamOptionalParameter; -import com.microsoft.azure.cognitiveservices.vision.computervision.models.RecognizeTextOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.AnalyzeImageByDomainOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.TagImageOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.DescribeImageOptionalParameter; @@ -33,6 +31,7 @@ import com.microsoft.azure.cognitiveservices.vision.computervision.models.OcrResult; import com.microsoft.azure.cognitiveservices.vision.computervision.models.TagResult; import com.microsoft.azure.cognitiveservices.vision.computervision.models.TextOperationResult; +import com.microsoft.azure.cognitiveservices.vision.computervision.models.TextRecognitionMode; import com.microsoft.azure.cognitiveservices.vision.computervision.models.VisualFeatureTypes; import java.io.InputStream; import java.util.List; @@ -43,98 +42,32 @@ * in ComputerVision. */ public interface ComputerVision { + /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called - * 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get - * Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field + * called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for + * your Get Recognize Text Operation Result operation. * * @param image An image stream. - * @param recognizeTextInStreamOptionalParameter the object representing the optional parameters to be set before calling this API + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ComputerVisionErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - - void recognizeTextInStream(byte[] image, RecognizeTextInStreamOptionalParameter recognizeTextInStreamOptionalParameter); + void recognizeTextInStream(byte[] image, TextRecognitionMode mode); /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called - * 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get - * Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field + * called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for + * your Get Recognize Text Operation Result operation. * * @param image An image stream. - * @param recognizeTextInStreamOptionalParameter the object representing the optional parameters to be set before calling this API + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return a representation of the deferred computation of this call if successful. */ - - Observable recognizeTextInStreamAsync(byte[] image, RecognizeTextInStreamOptionalParameter recognizeTextInStreamOptionalParameter); - - /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called - * 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get - * Handwritten Text Operation Result operation. - * - * @return the first stage of the recognizeTextInStream call - */ - ComputerVisionRecognizeTextInStreamDefinitionStages.WithImage recognizeTextInStream(); - - /** - * Grouping of recognizeTextInStream definition stages. - */ - interface ComputerVisionRecognizeTextInStreamDefinitionStages { - /** - * The stage of the definition to be specify image. - */ - interface WithImage { - /** - * An image stream. - * - * @return next definition stage - */ - ComputerVisionRecognizeTextInStreamDefinitionStages.WithExecute withImage(byte[] image); - } + Observable recognizeTextInStreamAsync(byte[] image, TextRecognitionMode mode); - /** - * The stage of the definition which allows for any other optional settings to be specified. - */ - interface WithAllOptions { - /** - * If 'true' is specified, handwriting recognition is performed. If this parameter is set to 'false' or is not - * specified, printed text recognition is performed. - * - * @return next definition stage - */ - ComputerVisionRecognizeTextInStreamDefinitionStages.WithExecute withDetectHandwriting(Boolean detectHandwriting); - - } - - /** - * The last stage of the definition which will make the operation call. - */ - interface WithExecute extends ComputerVisionRecognizeTextInStreamDefinitionStages.WithAllOptions { - /** - * Execute the request. - * - */ - void execute(); - - /** - * Execute the request asynchronously. - * - * @return a representation of the deferred computation of this call if successful. - */ - Observable executeAsync(); - } - } - - /** - * The entirety of recognizeTextInStream definition. - */ - interface ComputerVisionRecognizeTextInStreamDefinition extends - ComputerVisionRecognizeTextInStreamDefinitionStages.WithImage, - ComputerVisionRecognizeTextInStreamDefinitionStages.WithExecute { - } /** * This operation recognizes content within an image by applying a domain-specific model. The list of @@ -152,7 +85,7 @@ interface ComputerVisionRecognizeTextInStreamDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the DomainModelResults object if successful. */ - + @Deprecated DomainModelResults analyzeImageByDomainInStream(String model, byte[] image, AnalyzeImageByDomainInStreamOptionalParameter analyzeImageByDomainInStreamOptionalParameter); /** @@ -169,7 +102,7 @@ interface ComputerVisionRecognizeTextInStreamDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DomainModelResults object */ - + @Deprecated Observable analyzeImageByDomainInStreamAsync(String model, byte[] image, AnalyzeImageByDomainInStreamOptionalParameter analyzeImageByDomainInStreamOptionalParameter); /** @@ -217,8 +150,8 @@ interface WithImage { interface WithAllOptions { /** * The desired language for output generation. If this parameter is not specified, the default value is - * &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh'. * * @return next definition stage */ @@ -269,7 +202,7 @@ interface ComputerVisionAnalyzeImageByDomainInStreamDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the TagResult object if successful. */ - + @Deprecated TagResult tagImageInStream(byte[] image, TagImageInStreamOptionalParameter tagImageInStreamOptionalParameter); /** @@ -284,7 +217,7 @@ interface ComputerVisionAnalyzeImageByDomainInStreamDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TagResult object */ - + @Deprecated Observable tagImageInStreamAsync(byte[] image, TagImageInStreamOptionalParameter tagImageInStreamOptionalParameter); /** @@ -320,8 +253,8 @@ interface WithImage { interface WithAllOptions { /** * The desired language for output generation. If this parameter is not specified, the default value is - * &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh'. * * @return next definition stage */ @@ -372,7 +305,7 @@ interface ComputerVisionTagImageInStreamDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ImageDescription object if successful. */ - + @Deprecated ImageDescription describeImageInStream(byte[] image, DescribeImageInStreamOptionalParameter describeImageInStreamOptionalParameter); /** @@ -388,7 +321,7 @@ interface ComputerVisionTagImageInStreamDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ImageDescription object */ - + @Deprecated Observable describeImageInStreamAsync(byte[] image, DescribeImageInStreamOptionalParameter describeImageInStreamOptionalParameter); /** @@ -432,8 +365,8 @@ interface WithAllOptions { /** * The desired language for output generation. If this parameter is not specified, the default value is - * &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh'. * * @return next definition stage */ @@ -484,7 +417,7 @@ interface ComputerVisionDescribeImageInStreamDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OcrResult object if successful. */ - + @Deprecated OcrResult recognizePrintedTextInStream(boolean detectOrientation, byte[] image, RecognizePrintedTextInStreamOptionalParameter recognizePrintedTextInStreamOptionalParameter); /** @@ -500,7 +433,7 @@ interface ComputerVisionDescribeImageInStreamDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OcrResult object */ - + @Deprecated Observable recognizePrintedTextInStreamAsync(boolean detectOrientation, byte[] image, RecognizePrintedTextInStreamOptionalParameter recognizePrintedTextInStreamOptionalParameter); /** @@ -601,7 +534,7 @@ interface ComputerVisionRecognizePrintedTextInStreamDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the InputStream object if successful. */ - + @Deprecated InputStream generateThumbnailInStream(int width, int height, byte[] image, GenerateThumbnailInStreamOptionalParameter generateThumbnailInStreamOptionalParameter); /** @@ -618,7 +551,7 @@ interface ComputerVisionRecognizePrintedTextInStreamDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the InputStream object */ - + @Deprecated Observable generateThumbnailInStreamAsync(int width, int height, byte[] image, GenerateThumbnailInStreamOptionalParameter generateThumbnailInStreamOptionalParameter); /** @@ -723,7 +656,7 @@ interface ComputerVisionGenerateThumbnailInStreamDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ImageAnalysis object if successful. */ - + @Deprecated ImageAnalysis analyzeImageInStream(byte[] image, AnalyzeImageInStreamOptionalParameter analyzeImageInStreamOptionalParameter); /** @@ -734,7 +667,7 @@ interface ComputerVisionGenerateThumbnailInStreamDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ImageAnalysis object */ - + @Deprecated Observable analyzeImageInStreamAsync(byte[] image, AnalyzeImageInStreamOptionalParameter analyzeImageInStreamOptionalParameter); /** @@ -789,8 +722,8 @@ interface WithAllOptions { /** * The desired language for output generation. If this parameter is not specified, the default value is - * &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh'. * * @return next definition stage */ @@ -831,7 +764,7 @@ interface ComputerVisionAnalyzeImageInStreamDefinition extends * This interface is used for getting text operation result. The URL to this interface should be * retrieved from 'Operation-Location' field returned from Recognize Text interface. * - * @param operationId Id of the text operation returned in the response of the 'Recognize Handwritten Text'. + * @param operationId Id of the text operation returned in the response of the 'Recognize Text'. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ComputerVisionErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -843,105 +776,39 @@ interface ComputerVisionAnalyzeImageInStreamDefinition extends * This interface is used for getting text operation result. The URL to this interface should be * retrieved from 'Operation-Location' field returned from Recognize Text interface. * - * @param operationId Id of the text operation returned in the response of the 'Recognize Handwritten Text'. + * @param operationId Id of the text operation returned in the response of the 'Recognize Text'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TextOperationResult object */ Observable getTextOperationResultAsync(String operationId); + /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called - * 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get - * Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field + * called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for + * your Get Recognize Text Operation Result operation. * + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'. * @param url Publicly reachable URL of an image. - * @param recognizeTextOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ComputerVisionErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - - void recognizeText(String url, RecognizeTextOptionalParameter recognizeTextOptionalParameter); + void recognizeText(String url, TextRecognitionMode mode); /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called - * 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get - * Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field + * called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for + * your Get Recognize Text Operation Result operation. * + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'. * @param url Publicly reachable URL of an image. - * @param recognizeTextOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return a representation of the deferred computation of this call if successful. */ - - Observable recognizeTextAsync(String url, RecognizeTextOptionalParameter recognizeTextOptionalParameter); - - /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called - * 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get - * Handwritten Text Operation Result operation. - * - * @return the first stage of the recognizeText call - */ - ComputerVisionRecognizeTextDefinitionStages.WithUrl recognizeText(); - - /** - * Grouping of recognizeText definition stages. - */ - interface ComputerVisionRecognizeTextDefinitionStages { - /** - * The stage of the definition to be specify url. - */ - interface WithUrl { - /** - * Publicly reachable URL of an image. - * - * @return next definition stage - */ - ComputerVisionRecognizeTextDefinitionStages.WithExecute withUrl(String url); - } + Observable recognizeTextAsync(String url, TextRecognitionMode mode); - /** - * The stage of the definition which allows for any other optional settings to be specified. - */ - interface WithAllOptions { - /** - * If 'true' is specified, handwriting recognition is performed. If this parameter is set to 'false' or is not - * specified, printed text recognition is performed. - * - * @return next definition stage - */ - ComputerVisionRecognizeTextDefinitionStages.WithExecute withDetectHandwriting(Boolean detectHandwriting); - - } - - /** - * The last stage of the definition which will make the operation call. - */ - interface WithExecute extends ComputerVisionRecognizeTextDefinitionStages.WithAllOptions { - /** - * Execute the request. - * - */ - void execute(); - - /** - * Execute the request asynchronously. - * - * @return a representation of the deferred computation of this call if successful. - */ - Observable executeAsync(); - } - } - - /** - * The entirety of recognizeText definition. - */ - interface ComputerVisionRecognizeTextDefinition extends - ComputerVisionRecognizeTextDefinitionStages.WithUrl, - ComputerVisionRecognizeTextDefinitionStages.WithExecute { - } /** * This operation recognizes content within an image by applying a domain-specific model. The list of @@ -959,7 +826,7 @@ interface ComputerVisionRecognizeTextDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the DomainModelResults object if successful. */ - + @Deprecated DomainModelResults analyzeImageByDomain(String model, String url, AnalyzeImageByDomainOptionalParameter analyzeImageByDomainOptionalParameter); /** @@ -976,7 +843,7 @@ interface ComputerVisionRecognizeTextDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DomainModelResults object */ - + @Deprecated Observable analyzeImageByDomainAsync(String model, String url, AnalyzeImageByDomainOptionalParameter analyzeImageByDomainOptionalParameter); /** @@ -1024,8 +891,8 @@ interface WithUrl { interface WithAllOptions { /** * The desired language for output generation. If this parameter is not specified, the default value is - * &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh'. * * @return next definition stage */ @@ -1076,7 +943,7 @@ interface ComputerVisionAnalyzeImageByDomainDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the TagResult object if successful. */ - + @Deprecated TagResult tagImage(String url, TagImageOptionalParameter tagImageOptionalParameter); /** @@ -1091,7 +958,7 @@ interface ComputerVisionAnalyzeImageByDomainDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TagResult object */ - + @Deprecated Observable tagImageAsync(String url, TagImageOptionalParameter tagImageOptionalParameter); /** @@ -1127,8 +994,8 @@ interface WithUrl { interface WithAllOptions { /** * The desired language for output generation. If this parameter is not specified, the default value is - * &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh'. * * @return next definition stage */ @@ -1179,7 +1046,7 @@ interface ComputerVisionTagImageDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ImageDescription object if successful. */ - + @Deprecated ImageDescription describeImage(String url, DescribeImageOptionalParameter describeImageOptionalParameter); /** @@ -1195,7 +1062,7 @@ interface ComputerVisionTagImageDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ImageDescription object */ - + @Deprecated Observable describeImageAsync(String url, DescribeImageOptionalParameter describeImageOptionalParameter); /** @@ -1239,8 +1106,8 @@ interface WithAllOptions { /** * The desired language for output generation. If this parameter is not specified, the default value is - * &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh'. * * @return next definition stage */ @@ -1291,7 +1158,7 @@ interface ComputerVisionDescribeImageDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OcrResult object if successful. */ - + @Deprecated OcrResult recognizePrintedText(boolean detectOrientation, String url, RecognizePrintedTextOptionalParameter recognizePrintedTextOptionalParameter); /** @@ -1307,7 +1174,7 @@ interface ComputerVisionDescribeImageDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OcrResult object */ - + @Deprecated Observable recognizePrintedTextAsync(boolean detectOrientation, String url, RecognizePrintedTextOptionalParameter recognizePrintedTextOptionalParameter); /** @@ -1408,7 +1275,7 @@ interface ComputerVisionRecognizePrintedTextDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the InputStream object if successful. */ - + @Deprecated InputStream generateThumbnail(int width, int height, String url, GenerateThumbnailOptionalParameter generateThumbnailOptionalParameter); /** @@ -1425,7 +1292,7 @@ interface ComputerVisionRecognizePrintedTextDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the InputStream object */ - + @Deprecated Observable generateThumbnailAsync(int width, int height, String url, GenerateThumbnailOptionalParameter generateThumbnailOptionalParameter); /** @@ -1533,7 +1400,7 @@ interface ComputerVisionGenerateThumbnailDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ImageAnalysis object if successful. */ - + @Deprecated ImageAnalysis analyzeImage(String url, AnalyzeImageOptionalParameter analyzeImageOptionalParameter); /** @@ -1547,7 +1414,7 @@ interface ComputerVisionGenerateThumbnailDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ImageAnalysis object */ - + @Deprecated Observable analyzeImageAsync(String url, AnalyzeImageOptionalParameter analyzeImageOptionalParameter); /** @@ -1604,8 +1471,8 @@ interface WithAllOptions { /** * The desired language for output generation. If this parameter is not specified, the default value is - * &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh'. * * @return next definition stage */ diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionAPI.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionClient.java similarity index 68% rename from cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionAPI.java rename to cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionClient.java index ee57c7943c78..488e17359de4 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionAPI.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionClient.java @@ -9,13 +9,12 @@ package com.microsoft.azure.cognitiveservices.vision.computervision; import com.microsoft.azure.AzureClient; -import com.microsoft.azure.cognitiveservices.vision.computervision.models.AzureRegions; import com.microsoft.rest.RestClient; /** - * The interface for ComputerVisionAPI class. + * The interface for ComputerVisionClient class. */ -public interface ComputerVisionAPI { +public interface ComputerVisionClient { /** * Gets the REST client. * @@ -37,19 +36,19 @@ public interface ComputerVisionAPI { 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'. + * Gets Supported Cognitive Services endpoints. * - * @return the azureRegion value. + * @return the endpoint value. */ - AzureRegions azureRegion(); + String endpoint(); /** - * Sets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'. + * Sets Supported Cognitive Services endpoints. * - * @param azureRegion the azureRegion value. + * @param endpoint the endpoint value. * @return the service client itself */ - ComputerVisionAPI withAzureRegion(AzureRegions azureRegion); + ComputerVisionClient withEndpoint(String endpoint); /** * Gets Gets or sets the preferred language for the response.. @@ -64,7 +63,7 @@ public interface ComputerVisionAPI { * @param acceptLanguage the acceptLanguage value. * @return the service client itself */ - ComputerVisionAPI withAcceptLanguage(String acceptLanguage); + ComputerVisionClient withAcceptLanguage(String acceptLanguage); /** * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. @@ -79,7 +78,7 @@ public interface ComputerVisionAPI { * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself */ - ComputerVisionAPI withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); + ComputerVisionClient 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 +93,7 @@ public interface ComputerVisionAPI { * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself */ - ComputerVisionAPI withGenerateClientRequestId(boolean generateClientRequestId); + ComputerVisionClient withGenerateClientRequestId(boolean generateClientRequestId); /** * Gets the ComputerVision object to access its operations. diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionManager.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionManager.java index 6ed80f273437..f5a339218bed 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionManager.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionManager.java @@ -6,8 +6,7 @@ package com.microsoft.azure.cognitiveservices.vision.computervision; -import com.microsoft.azure.cognitiveservices.vision.computervision.implementation.ComputerVisionAPIImpl; -import com.microsoft.azure.cognitiveservices.vision.computervision.models.AzureRegions; +import com.microsoft.azure.cognitiveservices.vision.computervision.implementation.ComputerVisionClientImpl; import com.microsoft.rest.RestClient; import com.microsoft.rest.credentials.ServiceClientCredentials; import okhttp3.Interceptor; @@ -24,13 +23,11 @@ public class ComputerVisionManager { /** * Initializes an instance of Computer Vision API client. * - * @param region Supported Azure regions for Cognitive Services endpoints. * @param subscriptionKey the Computer Vision API key * @return the Computer Vision API client */ - public static ComputerVisionAPI authenticate(AzureRegions region, String subscriptionKey) { - return authenticate("https://{AzureRegion}.api.cognitive.microsoft.com/vision/v1.0/", subscriptionKey) - .withAzureRegion(region); + public static ComputerVisionClient authenticate(String subscriptionKey) { + return authenticate("https://{endpoint}/vision/v2.0/", subscriptionKey); } /** @@ -40,7 +37,7 @@ public static ComputerVisionAPI authenticate(AzureRegions region, String subscri * @param subscriptionKey the Computer Vision API key * @return the Computer Vision API client */ - public static ComputerVisionAPI authenticate(String baseUrl, final String subscriptionKey) { + public static ComputerVisionClient authenticate(String baseUrl, final String subscriptionKey) { ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() { @Override public void applyCredentialsFilter(OkHttpClient.Builder builder) { @@ -65,13 +62,13 @@ public Response intercept(Chain chain) throws IOException { /** * Initializes an instance of Computer Vision API client. * - * @param region Supported Azure regions for Cognitive Services endpoints. * @param credentials the management credentials for Azure + * @param endpoint Supported Cognitive Services endpoints. * @return the Computer Vision API client */ - public static ComputerVisionAPI authenticate(AzureRegions region, ServiceClientCredentials credentials) { - return authenticate("https://{AzureRegion}.api.cognitive.microsoft.com/vision/v1.0/", credentials) - .withAzureRegion(region); + public static ComputerVisionClient authenticate(ServiceClientCredentials credentials, String endpoint) { + return authenticate("https://{endpoint}/vision/v2.0/", credentials) + .withEndpoint(endpoint); } /** @@ -81,8 +78,8 @@ public static ComputerVisionAPI authenticate(AzureRegions region, ServiceClientC * @param credentials the management credentials for Azure * @return the Computer Vision API client */ - public static ComputerVisionAPI authenticate(String baseUrl, ServiceClientCredentials credentials) { - return new ComputerVisionAPIImpl(baseUrl, credentials); + public static ComputerVisionClient authenticate(String baseUrl, ServiceClientCredentials credentials) { + return new ComputerVisionClientImpl(baseUrl, credentials); } /** @@ -91,7 +88,7 @@ public static ComputerVisionAPI authenticate(String baseUrl, ServiceClientCreden * @param restClient the REST client to connect to Azure. * @return the Computer Vision API client */ - public static ComputerVisionAPI authenticate(RestClient restClient) { - return new ComputerVisionAPIImpl(restClient); + public static ComputerVisionClient authenticate(RestClient restClient) { + return new ComputerVisionClientImpl(restClient); } } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionAPIImpl.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionClientImpl.java similarity index 67% rename from cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionAPIImpl.java rename to cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionClientImpl.java index 78964fdd8475..24cd15950a4d 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionAPIImpl.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionClientImpl.java @@ -11,15 +11,14 @@ import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; import com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVision; -import com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionAPI; -import com.microsoft.azure.cognitiveservices.vision.computervision.models.AzureRegions; +import com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClient; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; /** - * Initializes a new instance of the ComputerVisionAPIImpl class. + * Initializes a new instance of the ComputerVisionClientImpl class. */ -public class ComputerVisionAPIImpl extends AzureServiceClient implements ComputerVisionAPI { +public class ComputerVisionClientImpl extends AzureServiceClient implements ComputerVisionClient { /** the {@link AzureClient} used for long running operations. */ private AzureClient azureClient; @@ -31,26 +30,26 @@ 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; + /** Supported Cognitive Services endpoints. */ + private String endpoint; /** - * Gets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'. + * Gets Supported Cognitive Services endpoints. * - * @return the azureRegion value. + * @return the endpoint value. */ - public AzureRegions azureRegion() { - return this.azureRegion; + public String endpoint() { + return this.endpoint; } /** - * Sets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'. + * Sets Supported Cognitive Services endpoints. * - * @param azureRegion the azureRegion value. + * @param endpoint the endpoint value. * @return the service client itself */ - public ComputerVisionAPIImpl withAzureRegion(AzureRegions azureRegion) { - this.azureRegion = azureRegion; + public ComputerVisionClientImpl withEndpoint(String endpoint) { + this.endpoint = endpoint; return this; } @@ -72,7 +71,7 @@ public String acceptLanguage() { * @param acceptLanguage the acceptLanguage value. * @return the service client itself */ - public ComputerVisionAPIImpl withAcceptLanguage(String acceptLanguage) { + public ComputerVisionClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; } @@ -95,7 +94,7 @@ public int longRunningOperationRetryTimeout() { * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself */ - public ComputerVisionAPIImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + public ComputerVisionClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; return this; } @@ -118,7 +117,7 @@ public boolean generateClientRequestId() { * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself */ - public ComputerVisionAPIImpl withGenerateClientRequestId(boolean generateClientRequestId) { + public ComputerVisionClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; return this; } @@ -137,31 +136,31 @@ public ComputerVision computerVision() { } /** - * Initializes an instance of ComputerVisionAPI client. + * Initializes an instance of ComputerVisionClient client. * * @param credentials the management credentials for Azure */ - public ComputerVisionAPIImpl(ServiceClientCredentials credentials) { - this("https://{AzureRegion}.api.cognitive.microsoft.com/vision/v1.0", credentials); + public ComputerVisionClientImpl(ServiceClientCredentials credentials) { + this("https://{Endpoint}/vision/v2.0", credentials); } /** - * Initializes an instance of ComputerVisionAPI client. + * Initializes an instance of ComputerVisionClient client. * * @param baseUrl the base URL of the host * @param credentials the management credentials for Azure */ - public ComputerVisionAPIImpl(String baseUrl, ServiceClientCredentials credentials) { + public ComputerVisionClientImpl(String baseUrl, ServiceClientCredentials credentials) { super(baseUrl, credentials); initialize(); } /** - * Initializes an instance of ComputerVisionAPI client. + * Initializes an instance of ComputerVisionClient client. * * @param restClient the REST client to connect to Azure. */ - public ComputerVisionAPIImpl(RestClient restClient) { + public ComputerVisionClientImpl(RestClient restClient) { super(restClient); initialize(); } @@ -181,6 +180,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "ComputerVisionAPI", "1.0"); + return String.format("%s (%s, %s)", super.userAgent(), "ComputerVisionClient", "2.0"); } } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionImpl.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionImpl.java index 6b05defde602..4dac231fbe27 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionImpl.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/ComputerVisionImpl.java @@ -8,14 +8,12 @@ package com.microsoft.azure.cognitiveservices.vision.computervision.implementation; -import com.microsoft.azure.cognitiveservices.vision.computervision.models.RecognizeTextInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.AnalyzeImageByDomainInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.TagImageInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.DescribeImageInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.RecognizePrintedTextInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.GenerateThumbnailInStreamOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.AnalyzeImageInStreamOptionalParameter; -import com.microsoft.azure.cognitiveservices.vision.computervision.models.RecognizeTextOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.AnalyzeImageByDomainOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.TagImageOptionalParameter; import com.microsoft.azure.cognitiveservices.vision.computervision.models.DescribeImageOptionalParameter; @@ -40,6 +38,7 @@ import com.microsoft.azure.cognitiveservices.vision.computervision.models.RecognizeTextInStreamHeaders; import com.microsoft.azure.cognitiveservices.vision.computervision.models.TagResult; import com.microsoft.azure.cognitiveservices.vision.computervision.models.TextOperationResult; +import com.microsoft.azure.cognitiveservices.vision.computervision.models.TextRecognitionMode; import com.microsoft.azure.cognitiveservices.vision.computervision.models.VisualFeatureTypes; import com.microsoft.rest.CollectionFormat; import com.microsoft.rest.ServiceCallback; @@ -73,7 +72,7 @@ public class ComputerVisionImpl implements ComputerVision { /** The Retrofit service to perform REST calls. */ private ComputerVisionService service; /** The service client containing this operation class. */ - private ComputerVisionAPIImpl client; + private ComputerVisionClientImpl client; /** * Initializes an instance of ComputerVisionImpl. @@ -81,7 +80,7 @@ public class ComputerVisionImpl implements ComputerVision { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public ComputerVisionImpl(Retrofit retrofit, ComputerVisionAPIImpl client) { + public ComputerVisionImpl(Retrofit retrofit, ComputerVisionClientImpl client) { this.service = retrofit.create(ComputerVisionService.class); this.client = client; } @@ -93,7 +92,7 @@ public ComputerVisionImpl(Retrofit retrofit, ComputerVisionAPIImpl client) { interface ComputerVisionService { @Headers({ "Content-Type: application/octet-stream", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVision recognizeTextInStream" }) @POST("recognizeText") - Observable> recognizeTextInStream(@Query("detectHandwriting") Boolean detectHandwriting, @Body RequestBody image, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> recognizeTextInStream(@Body RequestBody image, @Query("mode") TextRecognitionMode mode, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/octet-stream", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVision analyzeImageByDomainInStream" }) @POST("models/{model}/analyze") @@ -126,7 +125,7 @@ interface ComputerVisionService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVision recognizeText" }) @POST("recognizeText") - Observable> recognizeText(@Query("detectHandwriting") Boolean detectHandwriting, @Header("accept-language") String acceptLanguage, @Body ImageUrl imageUrl, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> recognizeText(@Query("mode") TextRecognitionMode mode, @Header("accept-language") String acceptLanguage, @Body ImageUrl imageUrl, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVision analyzeImageByDomain" }) @POST("models/{model}/analyze") @@ -159,43 +158,42 @@ interface ComputerVisionService { } - /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. * * @param image An image stream. - * @param recognizeTextInStreamOptionalParameter the object representing the optional parameters to be set before calling this API + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed' * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ComputerVisionErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void recognizeTextInStream(byte[] image, RecognizeTextInStreamOptionalParameter recognizeTextInStreamOptionalParameter) { - recognizeTextInStreamWithServiceResponseAsync(image, recognizeTextInStreamOptionalParameter).toBlocking().single().body(); + public void recognizeTextInStream(byte[] image, TextRecognitionMode mode) { + recognizeTextInStreamWithServiceResponseAsync(image, mode).toBlocking().single().body(); } /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. * * @param image An image stream. - * @param recognizeTextInStreamOptionalParameter the object representing the optional parameters to be set before calling this API + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed' * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture recognizeTextInStreamAsync(byte[] image, RecognizeTextInStreamOptionalParameter recognizeTextInStreamOptionalParameter, final ServiceCallback serviceCallback) { - return ServiceFuture.fromHeaderResponse(recognizeTextInStreamWithServiceResponseAsync(image, recognizeTextInStreamOptionalParameter), serviceCallback); + public ServiceFuture recognizeTextInStreamAsync(byte[] image, TextRecognitionMode mode, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(recognizeTextInStreamWithServiceResponseAsync(image, mode), serviceCallback); } /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. * * @param image An image stream. - * @param recognizeTextInStreamOptionalParameter the object representing the optional parameters to be set before calling this API + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponseWithHeaders} object if successful. */ - public Observable recognizeTextInStreamAsync(byte[] image, RecognizeTextInStreamOptionalParameter recognizeTextInStreamOptionalParameter) { - return recognizeTextInStreamWithServiceResponseAsync(image, recognizeTextInStreamOptionalParameter).map(new Func1, Void>() { + public Observable recognizeTextInStreamAsync(byte[] image, TextRecognitionMode mode) { + return recognizeTextInStreamWithServiceResponseAsync(image, mode).map(new Func1, Void>() { @Override public Void call(ServiceResponseWithHeaders response) { return response.body(); @@ -204,43 +202,26 @@ public Void call(ServiceResponseWithHeaders } /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. * * @param image An image stream. - * @param recognizeTextInStreamOptionalParameter the object representing the optional parameters to be set before calling this API + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponseWithHeaders} object if successful. */ - public Observable> recognizeTextInStreamWithServiceResponseAsync(byte[] image, RecognizeTextInStreamOptionalParameter recognizeTextInStreamOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + public Observable> recognizeTextInStreamWithServiceResponseAsync(byte[] image, TextRecognitionMode mode) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); } - final Boolean detectHandwriting = recognizeTextInStreamOptionalParameter != null ? recognizeTextInStreamOptionalParameter.detectHandwriting() : null; - - return recognizeTextInStreamWithServiceResponseAsync(image, detectHandwriting); - } - - /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. - * - * @param image An image stream. - * @param detectHandwriting If 'true' is specified, handwriting recognition is performed. If this parameter is set to 'false' or is not specified, printed text recognition is performed. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponseWithHeaders} object if successful. - */ - public Observable> recognizeTextInStreamWithServiceResponseAsync(byte[] image, Boolean detectHandwriting) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } - if (image == null) { - throw new IllegalArgumentException("Parameter image is required and cannot be null."); + if (mode == null) { + throw new IllegalArgumentException("Parameter mode is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); RequestBody imageConverted = RequestBody.create(MediaType.parse("application/octet-stream"), image); - return service.recognizeTextInStream(detectHandwriting, imageConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.recognizeTextInStream(imageConverted, mode, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -261,55 +242,6 @@ private ServiceResponseWithHeaders recognize .buildWithHeaders(response, RecognizeTextInStreamHeaders.class); } - @Override - public ComputerVisionRecognizeTextInStreamParameters recognizeTextInStream() { - return new ComputerVisionRecognizeTextInStreamParameters(this); - } - - /** - * Internal class implementing ComputerVisionRecognizeTextInStreamDefinition. - */ - class ComputerVisionRecognizeTextInStreamParameters implements ComputerVisionRecognizeTextInStreamDefinition { - private ComputerVisionImpl parent; - private byte[] image; - private Boolean detectHandwriting; - - /** - * Constructor. - * @param parent the parent object. - */ - ComputerVisionRecognizeTextInStreamParameters(ComputerVisionImpl parent) { - this.parent = parent; - } - - @Override - public ComputerVisionRecognizeTextInStreamParameters withImage(byte[] image) { - this.image = image; - return this; - } - - @Override - public ComputerVisionRecognizeTextInStreamParameters withDetectHandwriting(Boolean detectHandwriting) { - this.detectHandwriting = detectHandwriting; - return this; - } - - @Override - public void execute() { - recognizeTextInStreamWithServiceResponseAsync(image, detectHandwriting).toBlocking().single().body(); - } - - @Override - public Observable executeAsync() { - return recognizeTextInStreamWithServiceResponseAsync(image, detectHandwriting).map(new Func1, Void>() { - @Override - public Void call(ServiceResponseWithHeaders response) { - return response.body(); - } - }); - } - } - /** * This operation recognizes content within an image by applying a domain-specific model. The list of domain-specific models that are supported by the Computer Vision API can be retrieved using the /models GET request. Currently, the API only provides a single domain-specific model: celebrities. Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. A successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong. @@ -368,8 +300,8 @@ public DomainModelResults call(ServiceResponse response) { * @return the observable to the DomainModelResults object */ public Observable> analyzeImageByDomainInStreamWithServiceResponseAsync(String model, byte[] image, AnalyzeImageByDomainInStreamOptionalParameter analyzeImageByDomainInStreamOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (model == null) { throw new IllegalArgumentException("Parameter model is required and cannot be null."); @@ -387,13 +319,13 @@ public Observable> analyzeImageByDomainInStr * * @param model The domain-specific content to recognize. * @param image An image stream. - * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh' + * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DomainModelResults object */ public Observable> analyzeImageByDomainInStreamWithServiceResponseAsync(String model, byte[] image, String language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (model == null) { throw new IllegalArgumentException("Parameter model is required and cannot be null."); @@ -401,7 +333,7 @@ public Observable> analyzeImageByDomainInStr if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); RequestBody imageConverted = RequestBody.create(MediaType.parse("application/octet-stream"), image); return service.analyzeImageByDomainInStream(model, language, imageConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -534,8 +466,8 @@ public TagResult call(ServiceResponse response) { * @return the observable to the TagResult object */ public Observable> tagImageInStreamWithServiceResponseAsync(byte[] image, TagImageInStreamOptionalParameter tagImageInStreamOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); @@ -549,18 +481,18 @@ public Observable> tagImageInStreamWithServiceRespons * This operation generates a list of words, or tags, that are relevant to the content of the supplied image. The Computer Vision API can return tags based on objects, living beings, scenery or actions found in images. Unlike categories, tags are not organized according to a hierarchical classification system, but correspond to image content. Tags may contain hints to avoid ambiguity or provide context, for example the tag 'cello' may be accompanied by the hint 'musical instrument'. All tags are in English. * * @param image An image stream. - * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh' + * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TagResult object */ public Observable> tagImageInStreamWithServiceResponseAsync(byte[] image, String language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); RequestBody imageConverted = RequestBody.create(MediaType.parse("application/octet-stream"), image); return service.tagImageInStream(language, imageConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -686,8 +618,8 @@ public ImageDescription call(ServiceResponse response) { * @return the observable to the ImageDescription object */ public Observable> describeImageInStreamWithServiceResponseAsync(byte[] image, DescribeImageInStreamOptionalParameter describeImageInStreamOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); @@ -703,18 +635,18 @@ public Observable> describeImageInStreamWithSe * * @param image An image stream. * @param maxCandidates Maximum number of candidate descriptions to be returned. The default is 1. - * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh' + * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ImageDescription object */ public Observable> describeImageInStreamWithServiceResponseAsync(byte[] image, String maxCandidates, String language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); RequestBody imageConverted = RequestBody.create(MediaType.parse("application/octet-stream"), image); return service.describeImageInStream(maxCandidates, language, imageConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -851,8 +783,8 @@ public OcrResult call(ServiceResponse response) { * @return the observable to the OcrResult object */ public Observable> recognizePrintedTextInStreamWithServiceResponseAsync(boolean detectOrientation, byte[] image, RecognizePrintedTextInStreamOptionalParameter recognizePrintedTextInStreamOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); @@ -872,13 +804,13 @@ public Observable> recognizePrintedTextInStreamWithSe * @return the observable to the OcrResult object */ public Observable> recognizePrintedTextInStreamWithServiceResponseAsync(boolean detectOrientation, byte[] image, OcrLanguages language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); RequestBody imageConverted = RequestBody.create(MediaType.parse("application/octet-stream"), image); return service.recognizePrintedTextInStream(language, detectOrientation, imageConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -1019,8 +951,8 @@ public InputStream call(ServiceResponse response) { * @return the observable to the InputStream object */ public Observable> generateThumbnailInStreamWithServiceResponseAsync(int width, int height, byte[] image, GenerateThumbnailInStreamOptionalParameter generateThumbnailInStreamOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); @@ -1041,13 +973,13 @@ public Observable> generateThumbnailInStreamWithSer * @return the observable to the InputStream object */ public Observable> generateThumbnailInStreamWithServiceResponseAsync(int width, int height, byte[] image, Boolean smartCropping) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); RequestBody imageConverted = RequestBody.create(MediaType.parse("application/octet-stream"), image); return service.generateThumbnailInStream(width, height, imageConverted, smartCropping, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -1187,8 +1119,8 @@ public ImageAnalysis call(ServiceResponse response) { * @return the observable to the ImageAnalysis object */ public Observable> analyzeImageInStreamWithServiceResponseAsync(byte[] image, AnalyzeImageInStreamOptionalParameter analyzeImageInStreamOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); @@ -1206,19 +1138,19 @@ public Observable> analyzeImageInStreamWithServic * @param image An image stream. * @param visualFeatures A string indicating what visual feature types to return. Multiple values should be comma-separated. Valid visual feature types include:Categories - categorizes image content according to a taxonomy defined in documentation. Tags - tags the image with a detailed list of words related to the image content. Description - describes the image content with a complete English sentence. Faces - detects if faces are present. If present, generate coordinates, gender and age. ImageType - detects if image is clipart or a line drawing. Color - determines the accent color, dominant color, and whether an image is black&white.Adult - detects if the image is pornographic in nature (depicts nudity or a sex act). Sexually suggestive content is also detected. * @param details A string indicating which domain-specific details to return. Multiple values should be comma-separated. Valid visual feature types include:Celebrities - identifies celebrities if detected in the image. Possible values include: 'Celebrities', 'Landmarks' - * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh' + * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ImageAnalysis object */ public Observable> analyzeImageInStreamWithServiceResponseAsync(byte[] image, List visualFeatures, String details, String language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (image == null) { throw new IllegalArgumentException("Parameter image is required and cannot be null."); } Validator.validate(visualFeatures); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); String visualFeaturesConverted = this.client.serializerAdapter().serializeList(visualFeatures, CollectionFormat.CSV); RequestBody imageConverted = RequestBody.create(MediaType.parse("application/octet-stream"), image); return service.analyzeImageInStream(visualFeaturesConverted, details, language, imageConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) @@ -1308,7 +1240,7 @@ public ImageAnalysis call(ServiceResponse response) { /** * This interface is used for getting text operation result. The URL to this interface should be retrieved from 'Operation-Location' field returned from Recognize Text interface. * - * @param operationId Id of the text operation returned in the response of the 'Recognize Handwritten Text' + * @param operationId Id of the text operation returned in the response of the 'Recognize Text' * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ComputerVisionErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -1321,7 +1253,7 @@ public TextOperationResult getTextOperationResult(String operationId) { /** * This interface is used for getting text operation result. The URL to this interface should be retrieved from 'Operation-Location' field returned from Recognize Text interface. * - * @param operationId Id of the text operation returned in the response of the 'Recognize Handwritten Text' + * @param operationId Id of the text operation returned in the response of the 'Recognize Text' * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -1333,7 +1265,7 @@ public ServiceFuture getTextOperationResultAsync(String ope /** * This interface is used for getting text operation result. The URL to this interface should be retrieved from 'Operation-Location' field returned from Recognize Text interface. * - * @param operationId Id of the text operation returned in the response of the 'Recognize Handwritten Text' + * @param operationId Id of the text operation returned in the response of the 'Recognize Text' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TextOperationResult object */ @@ -1349,18 +1281,18 @@ public TextOperationResult call(ServiceResponse response) { /** * This interface is used for getting text operation result. The URL to this interface should be retrieved from 'Operation-Location' field returned from Recognize Text interface. * - * @param operationId Id of the text operation returned in the response of the 'Recognize Handwritten Text' + * @param operationId Id of the text operation returned in the response of the 'Recognize Text' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TextOperationResult object */ public Observable> getTextOperationResultWithServiceResponseAsync(String operationId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (operationId == null) { throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.getTextOperationResult(operationId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1382,43 +1314,42 @@ private ServiceResponse getTextOperationResultDelegate(Resp .build(response); } - /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. * + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed' * @param url Publicly reachable URL of an image - * @param recognizeTextOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ComputerVisionErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void recognizeText(String url, RecognizeTextOptionalParameter recognizeTextOptionalParameter) { - recognizeTextWithServiceResponseAsync(url, recognizeTextOptionalParameter).toBlocking().single().body(); + public void recognizeText(String url, TextRecognitionMode mode) { + recognizeTextWithServiceResponseAsync(url, mode).toBlocking().single().body(); } /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. * + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed' * @param url Publicly reachable URL of an image - * @param recognizeTextOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture recognizeTextAsync(String url, RecognizeTextOptionalParameter recognizeTextOptionalParameter, final ServiceCallback serviceCallback) { - return ServiceFuture.fromHeaderResponse(recognizeTextWithServiceResponseAsync(url, recognizeTextOptionalParameter), serviceCallback); + public ServiceFuture recognizeTextAsync(String url, TextRecognitionMode mode, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(recognizeTextWithServiceResponseAsync(url, mode), serviceCallback); } /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. * + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed' * @param url Publicly reachable URL of an image - * @param recognizeTextOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponseWithHeaders} object if successful. */ - public Observable recognizeTextAsync(String url, RecognizeTextOptionalParameter recognizeTextOptionalParameter) { - return recognizeTextWithServiceResponseAsync(url, recognizeTextOptionalParameter).map(new Func1, Void>() { + public Observable recognizeTextAsync(String url, TextRecognitionMode mode) { + return recognizeTextWithServiceResponseAsync(url, mode).map(new Func1, Void>() { @Override public Void call(ServiceResponseWithHeaders response) { return response.body(); @@ -1427,44 +1358,27 @@ public Void call(ServiceResponseWithHeaders response } /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. + * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. * + * @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed' * @param url Publicly reachable URL of an image - * @param recognizeTextOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponseWithHeaders} object if successful. */ - public Observable> recognizeTextWithServiceResponseAsync(String url, RecognizeTextOptionalParameter recognizeTextOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } - if (url == null) { - throw new IllegalArgumentException("Parameter url is required and cannot be null."); + public Observable> recognizeTextWithServiceResponseAsync(String url, TextRecognitionMode mode) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } - final Boolean detectHandwriting = recognizeTextOptionalParameter != null ? recognizeTextOptionalParameter.detectHandwriting() : null; - - return recognizeTextWithServiceResponseAsync(url, detectHandwriting); - } - - /** - * Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. - * - * @param url Publicly reachable URL of an image - * @param detectHandwriting If 'true' is specified, handwriting recognition is performed. If this parameter is set to 'false' or is not specified, printed text recognition is performed. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponseWithHeaders} object if successful. - */ - public Observable> recognizeTextWithServiceResponseAsync(String url, Boolean detectHandwriting) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (mode == null) { + throw new IllegalArgumentException("Parameter mode is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); } ImageUrl imageUrl = new ImageUrl(); imageUrl.withUrl(url); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.recognizeText(detectHandwriting, this.client.acceptLanguage(), imageUrl, parameterizedHost, this.client.userAgent()) + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.recognizeText(mode, this.client.acceptLanguage(), imageUrl, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1485,55 +1399,6 @@ private ServiceResponseWithHeaders recognizeTextDele .buildWithHeaders(response, RecognizeTextHeaders.class); } - @Override - public ComputerVisionRecognizeTextParameters recognizeText() { - return new ComputerVisionRecognizeTextParameters(this); - } - - /** - * Internal class implementing ComputerVisionRecognizeTextDefinition. - */ - class ComputerVisionRecognizeTextParameters implements ComputerVisionRecognizeTextDefinition { - private ComputerVisionImpl parent; - private String url; - private Boolean detectHandwriting; - - /** - * Constructor. - * @param parent the parent object. - */ - ComputerVisionRecognizeTextParameters(ComputerVisionImpl parent) { - this.parent = parent; - } - - @Override - public ComputerVisionRecognizeTextParameters withUrl(String url) { - this.url = url; - return this; - } - - @Override - public ComputerVisionRecognizeTextParameters withDetectHandwriting(Boolean detectHandwriting) { - this.detectHandwriting = detectHandwriting; - return this; - } - - @Override - public void execute() { - recognizeTextWithServiceResponseAsync(url, detectHandwriting).toBlocking().single().body(); - } - - @Override - public Observable executeAsync() { - return recognizeTextWithServiceResponseAsync(url, detectHandwriting).map(new Func1, Void>() { - @Override - public Void call(ServiceResponseWithHeaders response) { - return response.body(); - } - }); - } - } - /** * This operation recognizes content within an image by applying a domain-specific model. The list of domain-specific models that are supported by the Computer Vision API can be retrieved using the /models GET request. Currently, the API only provides a single domain-specific model: celebrities. Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. A successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong. @@ -1592,8 +1457,8 @@ public DomainModelResults call(ServiceResponse response) { * @return the observable to the DomainModelResults object */ public Observable> analyzeImageByDomainWithServiceResponseAsync(String model, String url, AnalyzeImageByDomainOptionalParameter analyzeImageByDomainOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (model == null) { throw new IllegalArgumentException("Parameter model is required and cannot be null."); @@ -1611,13 +1476,13 @@ public Observable> analyzeImageByDomainWithS * * @param model The domain-specific content to recognize. * @param url Publicly reachable URL of an image - * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh' + * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DomainModelResults object */ public Observable> analyzeImageByDomainWithServiceResponseAsync(String model, String url, String language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (model == null) { throw new IllegalArgumentException("Parameter model is required and cannot be null."); @@ -1627,7 +1492,7 @@ public Observable> analyzeImageByDomainWithS } ImageUrl imageUrl = new ImageUrl(); imageUrl.withUrl(url); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.analyzeImageByDomain(model, language, this.client.acceptLanguage(), imageUrl, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1759,8 +1624,8 @@ public TagResult call(ServiceResponse response) { * @return the observable to the TagResult object */ public Observable> tagImageWithServiceResponseAsync(String url, TagImageOptionalParameter tagImageOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); @@ -1774,20 +1639,20 @@ public Observable> tagImageWithServiceResponseAsync(S * This operation generates a list of words, or tags, that are relevant to the content of the supplied image. The Computer Vision API can return tags based on objects, living beings, scenery or actions found in images. Unlike categories, tags are not organized according to a hierarchical classification system, but correspond to image content. Tags may contain hints to avoid ambiguity or provide context, for example the tag 'cello' may be accompanied by the hint 'musical instrument'. All tags are in English. * * @param url Publicly reachable URL of an image - * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh' + * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TagResult object */ public Observable> tagImageWithServiceResponseAsync(String url, String language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); } ImageUrl imageUrl = new ImageUrl(); imageUrl.withUrl(url); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.tagImage(language, this.client.acceptLanguage(), imageUrl, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1912,8 +1777,8 @@ public ImageDescription call(ServiceResponse response) { * @return the observable to the ImageDescription object */ public Observable> describeImageWithServiceResponseAsync(String url, DescribeImageOptionalParameter describeImageOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); @@ -1929,20 +1794,20 @@ public Observable> describeImageWithServiceRes * * @param url Publicly reachable URL of an image * @param maxCandidates Maximum number of candidate descriptions to be returned. The default is 1. - * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh' + * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ImageDescription object */ public Observable> describeImageWithServiceResponseAsync(String url, String maxCandidates, String language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); } ImageUrl imageUrl = new ImageUrl(); imageUrl.withUrl(url); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.describeImage(maxCandidates, language, this.client.acceptLanguage(), imageUrl, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2078,8 +1943,8 @@ public OcrResult call(ServiceResponse response) { * @return the observable to the OcrResult object */ public Observable> recognizePrintedTextWithServiceResponseAsync(boolean detectOrientation, String url, RecognizePrintedTextOptionalParameter recognizePrintedTextOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); @@ -2099,15 +1964,15 @@ public Observable> recognizePrintedTextWithServiceRes * @return the observable to the OcrResult object */ public Observable> recognizePrintedTextWithServiceResponseAsync(boolean detectOrientation, String url, OcrLanguages language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); } ImageUrl imageUrl = new ImageUrl(); imageUrl.withUrl(url); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.recognizePrintedText(detectOrientation, language, this.client.acceptLanguage(), imageUrl, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2247,8 +2112,8 @@ public InputStream call(ServiceResponse response) { * @return the observable to the InputStream object */ public Observable> generateThumbnailWithServiceResponseAsync(int width, int height, String url, GenerateThumbnailOptionalParameter generateThumbnailOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); @@ -2269,15 +2134,15 @@ public Observable> generateThumbnailWithServiceResp * @return the observable to the InputStream object */ public Observable> generateThumbnailWithServiceResponseAsync(int width, int height, String url, Boolean smartCropping) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); } ImageUrl imageUrl = new ImageUrl(); imageUrl.withUrl(url); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.generateThumbnail(width, height, smartCropping, this.client.acceptLanguage(), imageUrl, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2416,8 +2281,8 @@ public ImageAnalysis call(ServiceResponse response) { * @return the observable to the ImageAnalysis object */ public Observable> analyzeImageWithServiceResponseAsync(String url, AnalyzeImageOptionalParameter analyzeImageOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); @@ -2435,13 +2300,13 @@ public Observable> analyzeImageWithServiceRespons * @param url Publicly reachable URL of an image * @param visualFeatures A string indicating what visual feature types to return. Multiple values should be comma-separated. Valid visual feature types include:Categories - categorizes image content according to a taxonomy defined in documentation. Tags - tags the image with a detailed list of words related to the image content. Description - describes the image content with a complete English sentence. Faces - detects if faces are present. If present, generate coordinates, gender and age. ImageType - detects if image is clipart or a line drawing. Color - determines the accent color, dominant color, and whether an image is black&white.Adult - detects if the image is pornographic in nature (depicts nudity or a sex act). Sexually suggestive content is also detected. * @param details A string indicating which domain-specific details to return. Multiple values should be comma-separated. Valid visual feature types include:Celebrities - identifies celebrities if detected in the image. - * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default.ja - Japanese pt - Portuguese zh - Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh' + * @param language The desired language for output generation. If this parameter is not specified, the default value is &quot;en&quot;.Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', 'ja', 'pt', 'zh' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ImageAnalysis object */ public Observable> analyzeImageWithServiceResponseAsync(String url, List visualFeatures, List
details, String language) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); @@ -2450,7 +2315,7 @@ public Observable> analyzeImageWithServiceRespons Validator.validate(details); ImageUrl imageUrl = new ImageUrl(); imageUrl.withUrl(url); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); String visualFeaturesConverted = this.client.serializerAdapter().serializeList(visualFeatures, CollectionFormat.CSV); String detailsConverted = this.client.serializerAdapter().serializeList(details, CollectionFormat.CSV); return service.analyzeImage(visualFeaturesConverted, detailsConverted, language, this.client.acceptLanguage(), imageUrl, parameterizedHost, this.client.userAgent()) @@ -2582,10 +2447,10 @@ public ListModelsResult call(ServiceResponse response) { * @return the observable to the ListModelsResult object */ public Observable> listModelsWithServiceResponseAsync() { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.listModels(this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/package-info.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/package-info.java index 70eaef23dc65..a0fdb3318f4b 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/package-info.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/implementation/package-info.java @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the implementation classes for ComputerVisionAPI. + * This package contains the implementation classes for ComputerVisionClient. * The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively. */ package com.microsoft.azure.cognitiveservices.vision.computervision.implementation; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageByDomainInStreamOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageByDomainInStreamOptionalParameter.java index 9847e2211cf1..2cafd3e4c7fb 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageByDomainInStreamOptionalParameter.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageByDomainInStreamOptionalParameter.java @@ -16,8 +16,9 @@ public class AnalyzeImageByDomainInStreamOptionalParameter { /** * The desired language for output generation. If this parameter is not * specified, the default value is &quot;en&quot;.Supported - * languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', + * 'es', 'ja', 'pt', 'zh'. */ private String language; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageByDomainOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageByDomainOptionalParameter.java index 90df476de561..afcd63f11b62 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageByDomainOptionalParameter.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageByDomainOptionalParameter.java @@ -16,8 +16,9 @@ public class AnalyzeImageByDomainOptionalParameter { /** * The desired language for output generation. If this parameter is not * specified, the default value is &quot;en&quot;.Supported - * languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', + * 'es', 'ja', 'pt', 'zh'. */ private String language; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageInStreamOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageInStreamOptionalParameter.java index 84768234a700..38bddc954426 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageInStreamOptionalParameter.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageInStreamOptionalParameter.java @@ -40,8 +40,9 @@ public class AnalyzeImageInStreamOptionalParameter { /** * The desired language for output generation. If this parameter is not * specified, the default value is &quot;en&quot;.Supported - * languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', + * 'es', 'ja', 'pt', 'zh'. */ private String language; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageOptionalParameter.java index af8c23c736b7..5a5143962255 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageOptionalParameter.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageOptionalParameter.java @@ -39,8 +39,9 @@ public class AnalyzeImageOptionalParameter { /** * The desired language for output generation. If this parameter is not * specified, the default value is &quot;en&quot;.Supported - * languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', + * 'es', 'ja', 'pt', 'zh'. */ private String language; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AzureRegions.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AzureRegions.java deleted file mode 100644 index 5700d0161fc8..000000000000 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/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.vision.computervision.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/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/Category.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/Category.java index dd592c4ccfdb..818eb79c30e4 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/Category.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/Category.java @@ -24,7 +24,7 @@ public class Category { * Scoring of the category. */ @JsonProperty(value = "score") - private Double score; + private double score; /** * The detail property. @@ -57,7 +57,7 @@ public Category withName(String name) { * * @return the score value */ - public Double score() { + public double score() { return this.score; } @@ -67,7 +67,7 @@ public Double score() { * @param score the score value to set * @return the Category object itself. */ - public Category withScore(Double score) { + public Category withScore(double score) { this.score = score; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/CategoryDetail.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/CategoryDetail.java index 22e683f3b919..632b39319c57 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/CategoryDetail.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/CategoryDetail.java @@ -21,6 +21,12 @@ public class CategoryDetail { @JsonProperty(value = "celebrities") private List celebrities; + /** + * An array of landmarks if any identified. + */ + @JsonProperty(value = "landmarks") + private List landmarks; + /** * Get the celebrities value. * @@ -41,4 +47,24 @@ public CategoryDetail withCelebrities(List celebrities) { return this; } + /** + * Get the landmarks value. + * + * @return the landmarks value + */ + public List landmarks() { + return this.landmarks; + } + + /** + * Set the landmarks value. + * + * @param landmarks the landmarks value to set + * @return the CategoryDetail object itself. + */ + public CategoryDetail withLandmarks(List landmarks) { + this.landmarks = landmarks; + return this; + } + } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/CelebritiesModel.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/CelebritiesModel.java index 3cc852a62222..f4c5bc6e2de4 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/CelebritiesModel.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/CelebritiesModel.java @@ -24,7 +24,7 @@ public class CelebritiesModel { * Level of confidence ranging from 0 to 1. */ @JsonProperty(value = "confidence") - private Double confidence; + private double confidence; /** * The faceRectangle property. @@ -57,7 +57,7 @@ public CelebritiesModel withName(String name) { * * @return the confidence value */ - public Double confidence() { + public double confidence() { return this.confidence; } @@ -67,7 +67,7 @@ public Double confidence() { * @param confidence the confidence value to set * @return the CelebritiesModel object itself. */ - public CelebritiesModel withConfidence(Double confidence) { + public CelebritiesModel withConfidence(double confidence) { this.confidence = confidence; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DescribeImageInStreamOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DescribeImageInStreamOptionalParameter.java index 8607446ead9f..722b44083a00 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DescribeImageInStreamOptionalParameter.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DescribeImageInStreamOptionalParameter.java @@ -22,8 +22,9 @@ public class DescribeImageInStreamOptionalParameter { /** * The desired language for output generation. If this parameter is not * specified, the default value is &quot;en&quot;.Supported - * languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', + * 'es', 'ja', 'pt', 'zh'. */ private String language; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DescribeImageOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DescribeImageOptionalParameter.java index cf9e39e82649..7af6bab47b80 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DescribeImageOptionalParameter.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DescribeImageOptionalParameter.java @@ -22,8 +22,9 @@ public class DescribeImageOptionalParameter { /** * The desired language for output generation. If this parameter is not * specified, the default value is &quot;en&quot;.Supported - * languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', + * 'es', 'ja', 'pt', 'zh'. */ private String language; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/FaceDescription.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/FaceDescription.java index e6cf2bd66be0..a40fe6a32aa8 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/FaceDescription.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/FaceDescription.java @@ -18,7 +18,7 @@ public class FaceDescription { * Possible age of the face. */ @JsonProperty(value = "age") - private Integer age; + private int age; /** * Possible gender of the face. Possible values include: 'Male', 'Female'. @@ -37,7 +37,7 @@ public class FaceDescription { * * @return the age value */ - public Integer age() { + public int age() { return this.age; } @@ -47,7 +47,7 @@ public Integer age() { * @param age the age value to set * @return the FaceDescription object itself. */ - public FaceDescription withAge(Integer age) { + public FaceDescription withAge(int age) { this.age = age; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/FaceRectangle.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/FaceRectangle.java index 3fd6560193c5..5d84d960d4bd 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/FaceRectangle.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/FaceRectangle.java @@ -18,32 +18,32 @@ public class FaceRectangle { * X-coordinate of the top left point of the face. */ @JsonProperty(value = "left") - private Integer left; + private int left; /** * Y-coordinate of the top left point of the face. */ @JsonProperty(value = "top") - private Integer top; + private int top; /** * Width measured from the top-left point of the face. */ @JsonProperty(value = "width") - private Integer width; + private int width; /** * Height measured from the top-left point of the face. */ @JsonProperty(value = "height") - private Integer height; + private int height; /** * Get the left value. * * @return the left value */ - public Integer left() { + public int left() { return this.left; } @@ -53,7 +53,7 @@ public Integer left() { * @param left the left value to set * @return the FaceRectangle object itself. */ - public FaceRectangle withLeft(Integer left) { + public FaceRectangle withLeft(int left) { this.left = left; return this; } @@ -63,7 +63,7 @@ public FaceRectangle withLeft(Integer left) { * * @return the top value */ - public Integer top() { + public int top() { return this.top; } @@ -73,7 +73,7 @@ public Integer top() { * @param top the top value to set * @return the FaceRectangle object itself. */ - public FaceRectangle withTop(Integer top) { + public FaceRectangle withTop(int top) { this.top = top; return this; } @@ -83,7 +83,7 @@ public FaceRectangle withTop(Integer top) { * * @return the width value */ - public Integer width() { + public int width() { return this.width; } @@ -93,7 +93,7 @@ public Integer width() { * @param width the width value to set * @return the FaceRectangle object itself. */ - public FaceRectangle withWidth(Integer width) { + public FaceRectangle withWidth(int width) { this.width = width; return this; } @@ -103,7 +103,7 @@ public FaceRectangle withWidth(Integer width) { * * @return the height value */ - public Integer height() { + public int height() { return this.height; } @@ -113,7 +113,7 @@ public Integer height() { * @param height the height value to set * @return the FaceRectangle object itself. */ - public FaceRectangle withHeight(Integer height) { + public FaceRectangle withHeight(int height) { this.height = height; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageCaption.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageCaption.java index 28c21952f10b..85185d6abe8a 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageCaption.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageCaption.java @@ -24,7 +24,7 @@ public class ImageCaption { * The level of confidence the service has in the caption. */ @JsonProperty(value = "confidence") - private Double confidence; + private double confidence; /** * Get the text value. @@ -51,7 +51,7 @@ public ImageCaption withText(String text) { * * @return the confidence value */ - public Double confidence() { + public double confidence() { return this.confidence; } @@ -61,7 +61,7 @@ public Double confidence() { * @param confidence the confidence value to set * @return the ImageCaption object itself. */ - public ImageCaption withConfidence(Double confidence) { + public ImageCaption withConfidence(double confidence) { this.confidence = confidence; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageDescription.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageDescription.java index 9307157aa08c..05175e743cd5 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageDescription.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageDescription.java @@ -33,13 +33,13 @@ public class ImageDescription { /** * Id of the REST API request. */ - @JsonProperty(value = "description.requestId") + @JsonProperty(value = "requestId") private String requestId; /** * The metadata property. */ - @JsonProperty(value = "description.metadata") + @JsonProperty(value = "metadata") private ImageMetadata metadata; /** diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageDescriptionDetails.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageDescriptionDetails.java index 4bb6091bb61b..2c2d97f476f9 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageDescriptionDetails.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageDescriptionDetails.java @@ -28,18 +28,6 @@ public class ImageDescriptionDetails { @JsonProperty(value = "captions") private List captions; - /** - * Id of the REST API request. - */ - @JsonProperty(value = "requestId") - private String requestId; - - /** - * The metadata property. - */ - @JsonProperty(value = "metadata") - private ImageMetadata metadata; - /** * Get the tags value. * @@ -80,44 +68,4 @@ public ImageDescriptionDetails withCaptions(List captions) { return this; } - /** - * Get the requestId value. - * - * @return the requestId value - */ - public String requestId() { - return this.requestId; - } - - /** - * Set the requestId value. - * - * @param requestId the requestId value to set - * @return the ImageDescriptionDetails object itself. - */ - public ImageDescriptionDetails withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Get the metadata value. - * - * @return the metadata value - */ - public ImageMetadata metadata() { - return this.metadata; - } - - /** - * Set the metadata value. - * - * @param metadata the metadata value to set - * @return the ImageDescriptionDetails object itself. - */ - public ImageDescriptionDetails withMetadata(ImageMetadata metadata) { - this.metadata = metadata; - return this; - } - } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageMetadata.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageMetadata.java index 9c307eb01eb3..f196924a10ad 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageMetadata.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageMetadata.java @@ -18,13 +18,13 @@ public class ImageMetadata { * Image width. */ @JsonProperty(value = "width") - private Integer width; + private int width; /** * Image height. */ @JsonProperty(value = "height") - private Integer height; + private int height; /** * Image format. @@ -37,7 +37,7 @@ public class ImageMetadata { * * @return the width value */ - public Integer width() { + public int width() { return this.width; } @@ -47,7 +47,7 @@ public Integer width() { * @param width the width value to set * @return the ImageMetadata object itself. */ - public ImageMetadata withWidth(Integer width) { + public ImageMetadata withWidth(int width) { this.width = width; return this; } @@ -57,7 +57,7 @@ public ImageMetadata withWidth(Integer width) { * * @return the height value */ - public Integer height() { + public int height() { return this.height; } @@ -67,7 +67,7 @@ public Integer height() { * @param height the height value to set * @return the ImageMetadata object itself. */ - public ImageMetadata withHeight(Integer height) { + public ImageMetadata withHeight(int height) { this.height = height; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageTag.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageTag.java index b9b0296c4f2e..d91e80e872bd 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageTag.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageTag.java @@ -24,7 +24,13 @@ public class ImageTag { * The level of confidence the service has in the caption. */ @JsonProperty(value = "confidence") - private Double confidence; + private double confidence; + + /** + * Optional categorization for the tag. + */ + @JsonProperty(value = "hint") + private String hint; /** * Get the name value. @@ -51,7 +57,7 @@ public ImageTag withName(String name) { * * @return the confidence value */ - public Double confidence() { + public double confidence() { return this.confidence; } @@ -61,9 +67,29 @@ public Double confidence() { * @param confidence the confidence value to set * @return the ImageTag object itself. */ - public ImageTag withConfidence(Double confidence) { + public ImageTag withConfidence(double confidence) { this.confidence = confidence; return this; } + /** + * Get the hint value. + * + * @return the hint value + */ + public String hint() { + return this.hint; + } + + /** + * Set the hint value. + * + * @param hint the hint value to set + * @return the ImageTag object itself. + */ + public ImageTag withHint(String hint) { + this.hint = hint; + return this; + } + } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageType.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageType.java index 284ed776e640..a32ac410135c 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageType.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/ImageType.java @@ -18,20 +18,20 @@ public class ImageType { * Confidence level that the image is a clip art. */ @JsonProperty(value = "clipArtType") - private Double clipArtType; + private double clipArtType; /** * Confidence level that the image is a line drawing. */ @JsonProperty(value = "lineDrawingType") - private Double lineDrawingType; + private double lineDrawingType; /** * Get the clipArtType value. * * @return the clipArtType value */ - public Double clipArtType() { + public double clipArtType() { return this.clipArtType; } @@ -41,7 +41,7 @@ public Double clipArtType() { * @param clipArtType the clipArtType value to set * @return the ImageType object itself. */ - public ImageType withClipArtType(Double clipArtType) { + public ImageType withClipArtType(double clipArtType) { this.clipArtType = clipArtType; return this; } @@ -51,7 +51,7 @@ public ImageType withClipArtType(Double clipArtType) { * * @return the lineDrawingType value */ - public Double lineDrawingType() { + public double lineDrawingType() { return this.lineDrawingType; } @@ -61,7 +61,7 @@ public Double lineDrawingType() { * @param lineDrawingType the lineDrawingType value to set * @return the ImageType object itself. */ - public ImageType withLineDrawingType(Double lineDrawingType) { + public ImageType withLineDrawingType(double lineDrawingType) { this.lineDrawingType = lineDrawingType; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarkResults.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarkResults.java index c53b039b5399..bc8e1a02c8ae 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarkResults.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarkResults.java @@ -19,7 +19,7 @@ public class LandmarkResults { * The landmarks property. */ @JsonProperty(value = "landmarks") - private List landmarks; + private List landmarks; /** * Id of the REST API request. @@ -38,7 +38,7 @@ public class LandmarkResults { * * @return the landmarks value */ - public List landmarks() { + public List landmarks() { return this.landmarks; } @@ -48,7 +48,7 @@ public List landmarks() { * @param landmarks the landmarks value to set * @return the LandmarkResults object itself. */ - public LandmarkResults withLandmarks(List landmarks) { + public LandmarkResults withLandmarks(List landmarks) { this.landmarks = landmarks; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarkResultsLandmarksItem.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarksModel.java similarity index 76% rename from cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarkResultsLandmarksItem.java rename to cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarksModel.java index aa7a381ae501..7b4359151540 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarkResultsLandmarksItem.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/LandmarksModel.java @@ -13,7 +13,7 @@ /** * A landmark recognized in the image. */ -public class LandmarkResultsLandmarksItem { +public class LandmarksModel { /** * Name of the landmark. */ @@ -24,7 +24,7 @@ public class LandmarkResultsLandmarksItem { * Confidence level for the landmark recognition. */ @JsonProperty(value = "confidence") - private Double confidence; + private double confidence; /** * Get the name value. @@ -39,9 +39,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the LandmarkResultsLandmarksItem object itself. + * @return the LandmarksModel object itself. */ - public LandmarkResultsLandmarksItem withName(String name) { + public LandmarksModel withName(String name) { this.name = name; return this; } @@ -51,7 +51,7 @@ public LandmarkResultsLandmarksItem withName(String name) { * * @return the confidence value */ - public Double confidence() { + public double confidence() { return this.confidence; } @@ -59,9 +59,9 @@ public Double confidence() { * Set the confidence value. * * @param confidence the confidence value to set - * @return the LandmarkResultsLandmarksItem object itself. + * @return the LandmarksModel object itself. */ - public LandmarkResultsLandmarksItem withConfidence(Double confidence) { + public LandmarksModel withConfidence(double confidence) { this.confidence = confidence; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/OcrResult.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/OcrResult.java index f414a3e2c8f5..30833ac5c811 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/OcrResult.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/OcrResult.java @@ -34,7 +34,7 @@ public class OcrResult { * recognized correctly. */ @JsonProperty(value = "textAngle") - private Double textAngle; + private double textAngle; /** * Orientation of the text recognized in the image. The value @@ -77,7 +77,7 @@ public OcrResult withLanguage(String language) { * * @return the textAngle value */ - public Double textAngle() { + public double textAngle() { return this.textAngle; } @@ -87,7 +87,7 @@ public Double textAngle() { * @param textAngle the textAngle value to set * @return the OcrResult object itself. */ - public OcrResult withTextAngle(Double textAngle) { + public OcrResult withTextAngle(double textAngle) { this.textAngle = textAngle; return this; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/RecognizeTextInStreamOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/RecognizeTextInStreamOptionalParameter.java deleted file mode 100644 index ec54c8c355f9..000000000000 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/RecognizeTextInStreamOptionalParameter.java +++ /dev/null @@ -1,68 +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.vision.computervision.models; - - -/** - * The RecognizeTextInStreamOptionalParameter model. - */ -public class RecognizeTextInStreamOptionalParameter { - /** - * If 'true' is specified, handwriting recognition is performed. If this - * parameter is set to 'false' or is not specified, printed text - * recognition is performed. - */ - private Boolean detectHandwriting; - - /** - * Gets or sets the preferred language for the response. - */ - private String thisclientacceptLanguage; - - /** - * Get the detectHandwriting value. - * - * @return the detectHandwriting value - */ - public Boolean detectHandwriting() { - return this.detectHandwriting; - } - - /** - * Set the detectHandwriting value. - * - * @param detectHandwriting the detectHandwriting value to set - * @return the RecognizeTextInStreamOptionalParameter object itself. - */ - public RecognizeTextInStreamOptionalParameter withDetectHandwriting(Boolean detectHandwriting) { - this.detectHandwriting = detectHandwriting; - return this; - } - - /** - * Get the thisclientacceptLanguage value. - * - * @return the thisclientacceptLanguage value - */ - public String thisclientacceptLanguage() { - return this.thisclientacceptLanguage; - } - - /** - * Set the thisclientacceptLanguage value. - * - * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the RecognizeTextInStreamOptionalParameter object itself. - */ - public RecognizeTextInStreamOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { - this.thisclientacceptLanguage = thisclientacceptLanguage; - return this; - } - -} diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/RecognizeTextOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/RecognizeTextOptionalParameter.java deleted file mode 100644 index 9b736181e07d..000000000000 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/RecognizeTextOptionalParameter.java +++ /dev/null @@ -1,68 +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.vision.computervision.models; - - -/** - * The RecognizeTextOptionalParameter model. - */ -public class RecognizeTextOptionalParameter { - /** - * If 'true' is specified, handwriting recognition is performed. If this - * parameter is set to 'false' or is not specified, printed text - * recognition is performed. - */ - private Boolean detectHandwriting; - - /** - * Gets or sets the preferred language for the response. - */ - private String thisclientacceptLanguage; - - /** - * Get the detectHandwriting value. - * - * @return the detectHandwriting value - */ - public Boolean detectHandwriting() { - return this.detectHandwriting; - } - - /** - * Set the detectHandwriting value. - * - * @param detectHandwriting the detectHandwriting value to set - * @return the RecognizeTextOptionalParameter object itself. - */ - public RecognizeTextOptionalParameter withDetectHandwriting(Boolean detectHandwriting) { - this.detectHandwriting = detectHandwriting; - return this; - } - - /** - * Get the thisclientacceptLanguage value. - * - * @return the thisclientacceptLanguage value - */ - public String thisclientacceptLanguage() { - return this.thisclientacceptLanguage; - } - - /** - * Set the thisclientacceptLanguage value. - * - * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the RecognizeTextOptionalParameter object itself. - */ - public RecognizeTextOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { - this.thisclientacceptLanguage = thisclientacceptLanguage; - return this; - } - -} diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TagImageInStreamOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TagImageInStreamOptionalParameter.java index fd70bad3ae8d..bdcfc17c9b0b 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TagImageInStreamOptionalParameter.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TagImageInStreamOptionalParameter.java @@ -16,8 +16,9 @@ public class TagImageInStreamOptionalParameter { /** * The desired language for output generation. If this parameter is not * specified, the default value is &quot;en&quot;.Supported - * languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', + * 'es', 'ja', 'pt', 'zh'. */ private String language; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TagImageOptionalParameter.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TagImageOptionalParameter.java index aeef34d1236b..7d98f593b24d 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TagImageOptionalParameter.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TagImageOptionalParameter.java @@ -16,8 +16,9 @@ public class TagImageOptionalParameter { /** * The desired language for output generation. If this parameter is not * specified, the default value is &quot;en&quot;.Supported - * languages:en - English, Default.ja - Japanese pt - Portuguese zh - - * Simplified Chinese. Possible values include: 'en', 'ja', 'pt', 'zh'. + * languages:en - English, Default. es - Spanish, ja - Japanese, pt - + * Portuguese, zh - Simplified Chinese. Possible values include: 'en', + * 'es', 'ja', 'pt', 'zh'. */ private String language; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DomainModels.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TextRecognitionMode.java similarity index 55% rename from cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DomainModels.java rename to cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TextRecognitionMode.java index 2aeb2b427bb6..8a33c1ee4d69 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/DomainModels.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/TextRecognitionMode.java @@ -12,32 +12,32 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * Defines values for DomainModels. + * Defines values for TextRecognitionMode. */ -public enum DomainModels { - /** Enum value Celebrities. */ - CELEBRITIES("Celebrities"), +public enum TextRecognitionMode { + /** Enum value Handwritten. */ + HANDWRITTEN("Handwritten"), - /** Enum value Landmarks. */ - LANDMARKS("Landmarks"); + /** Enum value Printed. */ + PRINTED("Printed"); - /** The actual serialized value for a DomainModels instance. */ + /** The actual serialized value for a TextRecognitionMode instance. */ private String value; - DomainModels(String value) { + TextRecognitionMode(String value) { this.value = value; } /** - * Parses a serialized value to a DomainModels instance. + * Parses a serialized value to a TextRecognitionMode instance. * * @param value the serialized value to parse. - * @return the parsed DomainModels object, or null if unable to parse. + * @return the parsed TextRecognitionMode object, or null if unable to parse. */ @JsonCreator - public static DomainModels fromString(String value) { - DomainModels[] items = DomainModels.values(); - for (DomainModels item : items) { + public static TextRecognitionMode fromString(String value) { + TextRecognitionMode[] items = TextRecognitionMode.values(); + for (TextRecognitionMode item : items) { if (item.toString().equalsIgnoreCase(value)) { return item; } diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/package-info.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/package-info.java index 5273cb6577c1..d0e708ffcdfe 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/package-info.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/package-info.java @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the models classes for ComputerVisionAPI. + * This package contains the models classes for ComputerVisionClient. * The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively. */ package com.microsoft.azure.cognitiveservices.vision.computervision.models; diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/package-info.java b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/package-info.java index c40a580b7e7c..4c4b00b6e86c 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/package-info.java +++ b/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/package-info.java @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the classes for ComputerVisionAPI. + * This package contains the classes for ComputerVisionClient. * The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively. */ package com.microsoft.azure.cognitiveservices.vision.computervision; diff --git a/cognitiveservices/data-plane/vision/contentmoderator/pom.xml b/cognitiveservices/data-plane/vision/contentmoderator/pom.xml index 773fba7e867e..4d970865955f 100755 --- a/cognitiveservices/data-plane/vision/contentmoderator/pom.xml +++ b/cognitiveservices/data-plane/vision/contentmoderator/pom.xml @@ -10,15 +10,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-contentmoderator - 1.0.1-beta + 1.0.2-beta jar Microsoft Azure SDK for Cognitive Service Content Moderator This package contains Microsoft Cognitive Service Content Moderator SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/vision/contentmoderator + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/vision/contentmoderator The MIT License (MIT) diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/pom.xml b/cognitiveservices/data-plane/vision/customvision/prediction/pom.xml new file mode 100644 index 000000000000..e208aaa0b909 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/pom.xml @@ -0,0 +1,91 @@ + + + 4.0.0 + + com.microsoft.azure.cognitiveservices + azure-cognitiveservices-parent + 1.0.2 + ../../../pom.xml + + azure-cognitiveservices-customvision-prediction + 1.0.2-beta + jar + Microsoft Azure SDK for Cognitive Service Custom Vision Prediction + This package contains Microsoft Cognitive Service Custom Vision Prediction SDK. + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/vision/customvision/prediction + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + UTF-8 + + + + + microsoft + Microsoft + + + + + ossrh + Sonatype Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + true + default + + + + + com.microsoft.azure + azure-client-runtime + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
\ No newline at end of file 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 new file mode 100644 index 000000000000..cd0c09735463 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/CustomVisionPredictionManager.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.prediction; + +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.implementation.PredictionEndpointImpl; +import com.microsoft.rest.RestClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import okhttp3.OkHttpClient; + +/** + * Entry point to Azure Cognitive Services Custom Vision Prediction manager. + */ +public class CustomVisionPredictionManager { + /** + * Initializes an instance of Custom Vision Prediction API client. + * + * @param apiKey the Custom Vision Prediction API key + * @return the Computer Vision API client + */ + 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 apiKey the Custom Vision Prediction API key + * @return the Custom Vision Prediction API client + */ + public static PredictionEndpoint 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 Prediction API client. + * + * @param credentials the management credentials for Azure + * @param apiKey the Custom Vision Prediction API key + * @return the Computer Vision API client + */ + public static PredictionEndpoint authenticate(ServiceClientCredentials credentials, final String apiKey) { + return authenticate("https://southcentralus.api.cognitive.microsoft.com/customvision/v2.0/Prediction/", credentials, apiKey); + } + + /** + * Initializes an instance of Custom Vision Prediction API client. + * + * @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, 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, final String apiKey) { + return new PredictionEndpointImpl(restClient).withApiKey(apiKey); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/PredictionEndpoint.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/PredictionEndpoint.java new file mode 100644 index 000000000000..af52578febfc --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/PredictionEndpoint.java @@ -0,0 +1,104 @@ +/** + * 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.vision.customvision.prediction; + +import com.microsoft.azure.AzureClient; +import com.microsoft.rest.RestClient; + +/** + * The interface for PredictionEndpoint class. + */ +public interface PredictionEndpoint { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets . + * + * @return the apiKey value. + */ + String apiKey(); + + /** + * Sets . + * + * @param apiKey the apiKey value. + * @return the service client itself + */ + PredictionEndpoint withApiKey(String apiKey); + + /** + * Gets Gets or sets the preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets Gets or sets the preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + PredictionEndpoint withAcceptLanguage(String acceptLanguage); + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + PredictionEndpoint 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.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + PredictionEndpoint withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Gets the Predictions object to access its operations. + * @return the Predictions object. + */ + Predictions predictions(); + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/Predictions.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/Predictions.java new file mode 100644 index 000000000000..75bf2eefb553 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/Predictions.java @@ -0,0 +1,451 @@ +/** + * 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.vision.customvision.prediction; + +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.PredictImageWithNoStoreOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.PredictImageUrlWithNoStoreOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.PredictImageOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.PredictImageUrlOptionalParameter; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.ImagePrediction; +import java.util.UUID; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Predictions. + */ +public interface Predictions { + /** + * Predict an image without saving the result. + * + * @param projectId The project id. + * @param imageData the InputStream value. + * @param predictImageWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + @Deprecated + ImagePrediction predictImageWithNoStore(UUID projectId, byte[] imageData, PredictImageWithNoStoreOptionalParameter predictImageWithNoStoreOptionalParameter); + + /** + * Predict an image without saving the result. + * + * @param projectId The project id. + * @param imageData the InputStream value. + * @param predictImageWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + @Deprecated + Observable predictImageWithNoStoreAsync(UUID projectId, byte[] imageData, PredictImageWithNoStoreOptionalParameter predictImageWithNoStoreOptionalParameter); + + /** + * Predict an image without saving the result. + * + * @return the first stage of the predictImageWithNoStore call + */ + PredictionsPredictImageWithNoStoreDefinitionStages.WithProjectId predictImageWithNoStore(); + + /** + * Grouping of predictImageWithNoStore definition stages. + */ + interface PredictionsPredictImageWithNoStoreDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + WithImageData withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify imageData. + */ + interface WithImageData { + /** + * + * + * @return next definition stage + */ + PredictionsPredictImageWithNoStoreDefinitionStages.WithExecute withImageData(byte[] imageData); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * Optional. Specifies the id of a particular iteration to evaluate against. + * The default iteration for the project will be used when not specified. + * + * @return next definition stage + */ + PredictionsPredictImageWithNoStoreDefinitionStages.WithExecute withIterationId(UUID iterationId); + + /** + * Optional. Specifies the name of application using the endpoint. + * + * @return next definition stage + */ + PredictionsPredictImageWithNoStoreDefinitionStages.WithExecute withApplication(String application); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends PredictionsPredictImageWithNoStoreDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImagePrediction object if successful. + */ + ImagePrediction execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImagePrediction object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of predictImageWithNoStore definition. + */ + interface PredictionsPredictImageWithNoStoreDefinition extends + PredictionsPredictImageWithNoStoreDefinitionStages.WithProjectId, + PredictionsPredictImageWithNoStoreDefinitionStages.WithImageData, + PredictionsPredictImageWithNoStoreDefinitionStages.WithExecute { + } + + /** + * Predict an image url without saving the result. + * + * @param projectId The project id. + * @param predictImageUrlWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + @Deprecated + ImagePrediction predictImageUrlWithNoStore(UUID projectId, PredictImageUrlWithNoStoreOptionalParameter predictImageUrlWithNoStoreOptionalParameter); + + /** + * Predict an image url without saving the result. + * + * @param projectId The project id. + * @param predictImageUrlWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + @Deprecated + Observable predictImageUrlWithNoStoreAsync(UUID projectId, PredictImageUrlWithNoStoreOptionalParameter predictImageUrlWithNoStoreOptionalParameter); + + /** + * Predict an image url without saving the result. + * + * @return the first stage of the predictImageUrlWithNoStore call + */ + PredictionsPredictImageUrlWithNoStoreDefinitionStages.WithProjectId predictImageUrlWithNoStore(); + + /** + * Grouping of predictImageUrlWithNoStore definition stages. + */ + interface PredictionsPredictImageUrlWithNoStoreDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + PredictionsPredictImageUrlWithNoStoreDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * Optional. Specifies the id of a particular iteration to evaluate against. + * The default iteration for the project will be used when not specified. + * + * @return next definition stage + */ + PredictionsPredictImageUrlWithNoStoreDefinitionStages.WithExecute withIterationId(UUID iterationId); + + /** + * Optional. Specifies the name of application using the endpoint. + * + * @return next definition stage + */ + PredictionsPredictImageUrlWithNoStoreDefinitionStages.WithExecute withApplication(String application); + + /** + * + * + * @return next definition stage + */ + PredictionsPredictImageUrlWithNoStoreDefinitionStages.WithExecute withUrl(String url); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends PredictionsPredictImageUrlWithNoStoreDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImagePrediction object if successful. + */ + ImagePrediction execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImagePrediction object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of predictImageUrlWithNoStore definition. + */ + interface PredictionsPredictImageUrlWithNoStoreDefinition extends + PredictionsPredictImageUrlWithNoStoreDefinitionStages.WithProjectId, + PredictionsPredictImageUrlWithNoStoreDefinitionStages.WithExecute { + } + + /** + * Predict an image and saves the result. + * + * @param projectId The project id. + * @param imageData the InputStream value. + * @param predictImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + @Deprecated + ImagePrediction predictImage(UUID projectId, byte[] imageData, PredictImageOptionalParameter predictImageOptionalParameter); + + /** + * Predict an image and saves the result. + * + * @param projectId The project id. + * @param imageData the InputStream value. + * @param predictImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + @Deprecated + Observable predictImageAsync(UUID projectId, byte[] imageData, PredictImageOptionalParameter predictImageOptionalParameter); + + /** + * Predict an image and saves the result. + * + * @return the first stage of the predictImage call + */ + PredictionsPredictImageDefinitionStages.WithProjectId predictImage(); + + /** + * Grouping of predictImage definition stages. + */ + interface PredictionsPredictImageDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + WithImageData withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify imageData. + */ + interface WithImageData { + /** + * + * + * @return next definition stage + */ + PredictionsPredictImageDefinitionStages.WithExecute withImageData(byte[] imageData); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * Optional. Specifies the id of a particular iteration to evaluate against. + * The default iteration for the project will be used when not specified. + * + * @return next definition stage + */ + PredictionsPredictImageDefinitionStages.WithExecute withIterationId(UUID iterationId); + + /** + * Optional. Specifies the name of application using the endpoint. + * + * @return next definition stage + */ + PredictionsPredictImageDefinitionStages.WithExecute withApplication(String application); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends PredictionsPredictImageDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImagePrediction object if successful. + */ + ImagePrediction execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImagePrediction object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of predictImage definition. + */ + interface PredictionsPredictImageDefinition extends + PredictionsPredictImageDefinitionStages.WithProjectId, + PredictionsPredictImageDefinitionStages.WithImageData, + PredictionsPredictImageDefinitionStages.WithExecute { + } + + /** + * Predict an image url and saves the result. + * + * @param projectId The project id. + * @param predictImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + @Deprecated + ImagePrediction predictImageUrl(UUID projectId, PredictImageUrlOptionalParameter predictImageUrlOptionalParameter); + + /** + * Predict an image url and saves the result. + * + * @param projectId The project id. + * @param predictImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + @Deprecated + Observable predictImageUrlAsync(UUID projectId, PredictImageUrlOptionalParameter predictImageUrlOptionalParameter); + + /** + * Predict an image url and saves the result. + * + * @return the first stage of the predictImageUrl call + */ + PredictionsPredictImageUrlDefinitionStages.WithProjectId predictImageUrl(); + + /** + * Grouping of predictImageUrl definition stages. + */ + interface PredictionsPredictImageUrlDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + PredictionsPredictImageUrlDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * Optional. Specifies the id of a particular iteration to evaluate against. + * The default iteration for the project will be used when not specified. + * + * @return next definition stage + */ + PredictionsPredictImageUrlDefinitionStages.WithExecute withIterationId(UUID iterationId); + + /** + * Optional. Specifies the name of application using the endpoint. + * + * @return next definition stage + */ + PredictionsPredictImageUrlDefinitionStages.WithExecute withApplication(String application); + + /** + * + * + * @return next definition stage + */ + PredictionsPredictImageUrlDefinitionStages.WithExecute withUrl(String url); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends PredictionsPredictImageUrlDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImagePrediction object if successful. + */ + ImagePrediction execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImagePrediction object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of predictImageUrl definition. + */ + interface PredictionsPredictImageUrlDefinition extends + PredictionsPredictImageUrlDefinitionStages.WithProjectId, + PredictionsPredictImageUrlDefinitionStages.WithExecute { + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/PredictionEndpointImpl.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/PredictionEndpointImpl.java new file mode 100644 index 000000000000..bef91917e5e5 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/PredictionEndpointImpl.java @@ -0,0 +1,185 @@ +/** + * 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.vision.customvision.prediction.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.PredictionEndpoint; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.Predictions; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the PredictionEndpointImpl class. + */ +public class PredictionEndpointImpl extends AzureServiceClient implements PredictionEndpoint { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** The API key. */ + private String apiKey; + + /** + * Gets the API key. + * + * @return the apiKey value. + */ + public String apiKey() { + return this.apiKey; + } + + /** + * Sets the API key. + * + * @param apiKey the apiKey value. + * @return the service client itself + */ + public PredictionEndpointImpl withApiKey(String apiKey) { + this.apiKey = apiKey; + return this; + } + + /** Gets or sets the preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets Gets or sets the preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets Gets or sets the preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public PredictionEndpointImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public PredictionEndpointImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public PredictionEndpointImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The Predictions object to access its operations. + */ + private Predictions predictions; + + /** + * Gets the Predictions object to access its operations. + * @return the Predictions object. + */ + public Predictions predictions() { + return this.predictions; + } + + /** + * Initializes an instance of PredictionEndpoint client. + * + * @param credentials the management credentials for Azure + */ + public PredictionEndpointImpl(ServiceClientCredentials credentials) { + this("https://southcentralus.api.cognitive.microsoft.com/customvision/v2.0/Prediction", credentials); + } + + /** + * Initializes an instance of PredictionEndpoint client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public PredictionEndpointImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of PredictionEndpoint client. + * + * @param restClient the REST client to connect to Azure. + */ + public PredictionEndpointImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.predictions = new PredictionsImpl(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s)", super.userAgent(), "PredictionEndpoint", "2.0"); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/PredictionsImpl.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/PredictionsImpl.java new file mode 100644 index 000000000000..cd0b38cef52e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/PredictionsImpl.java @@ -0,0 +1,785 @@ +/** + * 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.vision.customvision.prediction.implementation; + +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.PredictImageWithNoStoreOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.PredictImageUrlWithNoStoreOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.PredictImageOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.PredictImageUrlOptionalParameter; +import okhttp3.MediaType; +import okhttp3.RequestBody; +import retrofit2.Retrofit; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.Predictions; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.ImagePrediction; +import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.ImageUrl; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.UUID; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Multipart; +import retrofit2.http.Part; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Predictions. + */ +public class PredictionsImpl implements Predictions { + /** The Retrofit service to perform REST calls. */ + private PredictionsService service; + /** The service client containing this operation class. */ + private PredictionEndpointImpl client; + + /** + * Initializes an instance of PredictionsImpl. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public PredictionsImpl(Retrofit retrofit, PredictionEndpointImpl client) { + this.service = retrofit.create(PredictionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Predictions to be + * used by Retrofit to perform actually REST calls. + */ + interface PredictionsService { + @Multipart + @POST("{projectId}/image/nostore") + Observable> predictImageWithNoStore(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Query("application") String application, @Part("imageData") RequestBody imageData, @Header("Prediction-Key") String apiKey, @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.vision.customvision.prediction.Predictions predictImageUrlWithNoStore" }) + @POST("{projectId}/url/nostore") + Observable> predictImageUrlWithNoStore(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Query("application") String application, @Header("Prediction-Key") String apiKey, @Header("accept-language") String acceptLanguage, @Body ImageUrl imageUrl, @Header("User-Agent") String userAgent); + + @Multipart + @POST("{projectId}/image") + Observable> predictImage(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Query("application") String application, @Part("imageData") RequestBody imageData, @Header("Prediction-Key") String apiKey, @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.vision.customvision.prediction.Predictions predictImageUrl" }) + @POST("{projectId}/url") + Observable> predictImageUrl(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Query("application") String application, @Header("Prediction-Key") String apiKey, @Header("accept-language") String acceptLanguage, @Body ImageUrl imageUrl, @Header("User-Agent") String userAgent); + + } + + + /** + * Predict an image without saving the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param predictImageWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + public ImagePrediction predictImageWithNoStore(UUID projectId, byte[] imageData, PredictImageWithNoStoreOptionalParameter predictImageWithNoStoreOptionalParameter) { + return predictImageWithNoStoreWithServiceResponseAsync(projectId, imageData, predictImageWithNoStoreOptionalParameter).toBlocking().single().body(); + } + + /** + * Predict an image without saving the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param predictImageWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture predictImageWithNoStoreAsync(UUID projectId, byte[] imageData, PredictImageWithNoStoreOptionalParameter predictImageWithNoStoreOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(predictImageWithNoStoreWithServiceResponseAsync(projectId, imageData, predictImageWithNoStoreOptionalParameter), serviceCallback); + } + + /** + * Predict an image without saving the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param predictImageWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable predictImageWithNoStoreAsync(UUID projectId, byte[] imageData, PredictImageWithNoStoreOptionalParameter predictImageWithNoStoreOptionalParameter) { + return predictImageWithNoStoreWithServiceResponseAsync(projectId, imageData, predictImageWithNoStoreOptionalParameter).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Predict an image without saving the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param predictImageWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> predictImageWithNoStoreWithServiceResponseAsync(UUID projectId, byte[] imageData, PredictImageWithNoStoreOptionalParameter predictImageWithNoStoreOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageData == null) { + throw new IllegalArgumentException("Parameter imageData is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = predictImageWithNoStoreOptionalParameter != null ? predictImageWithNoStoreOptionalParameter.iterationId() : null; + final String application = predictImageWithNoStoreOptionalParameter != null ? predictImageWithNoStoreOptionalParameter.application() : null; + + return predictImageWithNoStoreWithServiceResponseAsync(projectId, imageData, iterationId, application); + } + + /** + * Predict an image without saving the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param iterationId Optional. Specifies the id of a particular iteration to evaluate against. + The default iteration for the project will be used when not specified + * @param application Optional. Specifies the name of application using the endpoint + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> predictImageWithNoStoreWithServiceResponseAsync(UUID projectId, byte[] imageData, UUID iterationId, String application) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageData == null) { + throw new IllegalArgumentException("Parameter imageData is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + RequestBody imageDataConverted = RequestBody.create(MediaType.parse("multipart/form-data"), imageData); + return service.predictImageWithNoStore(projectId, iterationId, application, imageDataConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = predictImageWithNoStoreDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse predictImageWithNoStoreDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public PredictionsPredictImageWithNoStoreParameters predictImageWithNoStore() { + return new PredictionsPredictImageWithNoStoreParameters(this); + } + + /** + * Internal class implementing PredictionsPredictImageWithNoStoreDefinition. + */ + class PredictionsPredictImageWithNoStoreParameters implements PredictionsPredictImageWithNoStoreDefinition { + private PredictionsImpl parent; + private UUID projectId; + private byte[] imageData; + private UUID iterationId; + private String application; + + /** + * Constructor. + * @param parent the parent object. + */ + PredictionsPredictImageWithNoStoreParameters(PredictionsImpl parent) { + this.parent = parent; + } + + @Override + public PredictionsPredictImageWithNoStoreParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public PredictionsPredictImageWithNoStoreParameters withImageData(byte[] imageData) { + this.imageData = imageData; + return this; + } + + @Override + public PredictionsPredictImageWithNoStoreParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public PredictionsPredictImageWithNoStoreParameters withApplication(String application) { + this.application = application; + return this; + } + + @Override + public ImagePrediction execute() { + return predictImageWithNoStoreWithServiceResponseAsync(projectId, imageData, iterationId, application).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return predictImageWithNoStoreWithServiceResponseAsync(projectId, imageData, iterationId, application).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Predict an image url without saving the result. + * + * @param projectId The project id + * @param predictImageUrlWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + public ImagePrediction predictImageUrlWithNoStore(UUID projectId, PredictImageUrlWithNoStoreOptionalParameter predictImageUrlWithNoStoreOptionalParameter) { + return predictImageUrlWithNoStoreWithServiceResponseAsync(projectId, predictImageUrlWithNoStoreOptionalParameter).toBlocking().single().body(); + } + + /** + * Predict an image url without saving the result. + * + * @param projectId The project id + * @param predictImageUrlWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture predictImageUrlWithNoStoreAsync(UUID projectId, PredictImageUrlWithNoStoreOptionalParameter predictImageUrlWithNoStoreOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(predictImageUrlWithNoStoreWithServiceResponseAsync(projectId, predictImageUrlWithNoStoreOptionalParameter), serviceCallback); + } + + /** + * Predict an image url without saving the result. + * + * @param projectId The project id + * @param predictImageUrlWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable predictImageUrlWithNoStoreAsync(UUID projectId, PredictImageUrlWithNoStoreOptionalParameter predictImageUrlWithNoStoreOptionalParameter) { + return predictImageUrlWithNoStoreWithServiceResponseAsync(projectId, predictImageUrlWithNoStoreOptionalParameter).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Predict an image url without saving the result. + * + * @param projectId The project id + * @param predictImageUrlWithNoStoreOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> predictImageUrlWithNoStoreWithServiceResponseAsync(UUID projectId, PredictImageUrlWithNoStoreOptionalParameter predictImageUrlWithNoStoreOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = predictImageUrlWithNoStoreOptionalParameter != null ? predictImageUrlWithNoStoreOptionalParameter.iterationId() : null; + final String application = predictImageUrlWithNoStoreOptionalParameter != null ? predictImageUrlWithNoStoreOptionalParameter.application() : null; + final String url = predictImageUrlWithNoStoreOptionalParameter != null ? predictImageUrlWithNoStoreOptionalParameter.url() : null; + + return predictImageUrlWithNoStoreWithServiceResponseAsync(projectId, iterationId, application, url); + } + + /** + * Predict an image url without saving the result. + * + * @param projectId The project id + * @param iterationId Optional. Specifies the id of a particular iteration to evaluate against. + The default iteration for the project will be used when not specified + * @param application Optional. Specifies the name of application using the endpoint + * @param url the String value + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> predictImageUrlWithNoStoreWithServiceResponseAsync(UUID projectId, UUID iterationId, String application, String url) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + ImageUrl imageUrl = new ImageUrl(); + imageUrl.withUrl(url); + return service.predictImageUrlWithNoStore(projectId, iterationId, application, this.client.apiKey(), this.client.acceptLanguage(), imageUrl, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = predictImageUrlWithNoStoreDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse predictImageUrlWithNoStoreDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public PredictionsPredictImageUrlWithNoStoreParameters predictImageUrlWithNoStore() { + return new PredictionsPredictImageUrlWithNoStoreParameters(this); + } + + /** + * Internal class implementing PredictionsPredictImageUrlWithNoStoreDefinition. + */ + class PredictionsPredictImageUrlWithNoStoreParameters implements PredictionsPredictImageUrlWithNoStoreDefinition { + private PredictionsImpl parent; + private UUID projectId; + private UUID iterationId; + private String application; + private String url; + + /** + * Constructor. + * @param parent the parent object. + */ + PredictionsPredictImageUrlWithNoStoreParameters(PredictionsImpl parent) { + this.parent = parent; + } + + @Override + public PredictionsPredictImageUrlWithNoStoreParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public PredictionsPredictImageUrlWithNoStoreParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public PredictionsPredictImageUrlWithNoStoreParameters withApplication(String application) { + this.application = application; + return this; + } + + @Override + public PredictionsPredictImageUrlWithNoStoreParameters withUrl(String url) { + this.url = url; + return this; + } + + @Override + public ImagePrediction execute() { + return predictImageUrlWithNoStoreWithServiceResponseAsync(projectId, iterationId, application, url).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return predictImageUrlWithNoStoreWithServiceResponseAsync(projectId, iterationId, application, url).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Predict an image and saves the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param predictImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + public ImagePrediction predictImage(UUID projectId, byte[] imageData, PredictImageOptionalParameter predictImageOptionalParameter) { + return predictImageWithServiceResponseAsync(projectId, imageData, predictImageOptionalParameter).toBlocking().single().body(); + } + + /** + * Predict an image and saves the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param predictImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture predictImageAsync(UUID projectId, byte[] imageData, PredictImageOptionalParameter predictImageOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(predictImageWithServiceResponseAsync(projectId, imageData, predictImageOptionalParameter), serviceCallback); + } + + /** + * Predict an image and saves the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param predictImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable predictImageAsync(UUID projectId, byte[] imageData, PredictImageOptionalParameter predictImageOptionalParameter) { + return predictImageWithServiceResponseAsync(projectId, imageData, predictImageOptionalParameter).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Predict an image and saves the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param predictImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> predictImageWithServiceResponseAsync(UUID projectId, byte[] imageData, PredictImageOptionalParameter predictImageOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageData == null) { + throw new IllegalArgumentException("Parameter imageData is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = predictImageOptionalParameter != null ? predictImageOptionalParameter.iterationId() : null; + final String application = predictImageOptionalParameter != null ? predictImageOptionalParameter.application() : null; + + return predictImageWithServiceResponseAsync(projectId, imageData, iterationId, application); + } + + /** + * Predict an image and saves the result. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param iterationId Optional. Specifies the id of a particular iteration to evaluate against. + The default iteration for the project will be used when not specified + * @param application Optional. Specifies the name of application using the endpoint + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> predictImageWithServiceResponseAsync(UUID projectId, byte[] imageData, UUID iterationId, String application) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageData == null) { + throw new IllegalArgumentException("Parameter imageData is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + RequestBody imageDataConverted = RequestBody.create(MediaType.parse("multipart/form-data"), imageData); + return service.predictImage(projectId, iterationId, application, imageDataConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = predictImageDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse predictImageDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public PredictionsPredictImageParameters predictImage() { + return new PredictionsPredictImageParameters(this); + } + + /** + * Internal class implementing PredictionsPredictImageDefinition. + */ + class PredictionsPredictImageParameters implements PredictionsPredictImageDefinition { + private PredictionsImpl parent; + private UUID projectId; + private byte[] imageData; + private UUID iterationId; + private String application; + + /** + * Constructor. + * @param parent the parent object. + */ + PredictionsPredictImageParameters(PredictionsImpl parent) { + this.parent = parent; + } + + @Override + public PredictionsPredictImageParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public PredictionsPredictImageParameters withImageData(byte[] imageData) { + this.imageData = imageData; + return this; + } + + @Override + public PredictionsPredictImageParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public PredictionsPredictImageParameters withApplication(String application) { + this.application = application; + return this; + } + + @Override + public ImagePrediction execute() { + return predictImageWithServiceResponseAsync(projectId, imageData, iterationId, application).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return predictImageWithServiceResponseAsync(projectId, imageData, iterationId, application).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Predict an image url and saves the result. + * + * @param projectId The project id + * @param predictImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + public ImagePrediction predictImageUrl(UUID projectId, PredictImageUrlOptionalParameter predictImageUrlOptionalParameter) { + return predictImageUrlWithServiceResponseAsync(projectId, predictImageUrlOptionalParameter).toBlocking().single().body(); + } + + /** + * Predict an image url and saves the result. + * + * @param projectId The project id + * @param predictImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture predictImageUrlAsync(UUID projectId, PredictImageUrlOptionalParameter predictImageUrlOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(predictImageUrlWithServiceResponseAsync(projectId, predictImageUrlOptionalParameter), serviceCallback); + } + + /** + * Predict an image url and saves the result. + * + * @param projectId The project id + * @param predictImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable predictImageUrlAsync(UUID projectId, PredictImageUrlOptionalParameter predictImageUrlOptionalParameter) { + return predictImageUrlWithServiceResponseAsync(projectId, predictImageUrlOptionalParameter).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Predict an image url and saves the result. + * + * @param projectId The project id + * @param predictImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> predictImageUrlWithServiceResponseAsync(UUID projectId, PredictImageUrlOptionalParameter predictImageUrlOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = predictImageUrlOptionalParameter != null ? predictImageUrlOptionalParameter.iterationId() : null; + final String application = predictImageUrlOptionalParameter != null ? predictImageUrlOptionalParameter.application() : null; + final String url = predictImageUrlOptionalParameter != null ? predictImageUrlOptionalParameter.url() : null; + + return predictImageUrlWithServiceResponseAsync(projectId, iterationId, application, url); + } + + /** + * Predict an image url and saves the result. + * + * @param projectId The project id + * @param iterationId Optional. Specifies the id of a particular iteration to evaluate against. + The default iteration for the project will be used when not specified + * @param application Optional. Specifies the name of application using the endpoint + * @param url the String value + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> predictImageUrlWithServiceResponseAsync(UUID projectId, UUID iterationId, String application, String url) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + ImageUrl imageUrl = new ImageUrl(); + imageUrl.withUrl(url); + return service.predictImageUrl(projectId, iterationId, application, this.client.apiKey(), this.client.acceptLanguage(), imageUrl, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = predictImageUrlDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse predictImageUrlDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public PredictionsPredictImageUrlParameters predictImageUrl() { + return new PredictionsPredictImageUrlParameters(this); + } + + /** + * Internal class implementing PredictionsPredictImageUrlDefinition. + */ + class PredictionsPredictImageUrlParameters implements PredictionsPredictImageUrlDefinition { + private PredictionsImpl parent; + private UUID projectId; + private UUID iterationId; + private String application; + private String url; + + /** + * Constructor. + * @param parent the parent object. + */ + PredictionsPredictImageUrlParameters(PredictionsImpl parent) { + this.parent = parent; + } + + @Override + public PredictionsPredictImageUrlParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public PredictionsPredictImageUrlParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public PredictionsPredictImageUrlParameters withApplication(String application) { + this.application = application; + return this; + } + + @Override + public PredictionsPredictImageUrlParameters withUrl(String url) { + this.url = url; + return this; + } + + @Override + public ImagePrediction execute() { + return predictImageUrlWithServiceResponseAsync(projectId, iterationId, application, url).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return predictImageUrlWithServiceResponseAsync(projectId, iterationId, application, url).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/package-info.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/package-info.java new file mode 100644 index 000000000000..b57774622496 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/package-info.java @@ -0,0 +1,10 @@ +// 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. + +/** + * This package contains the implementation classes for PredictionEndpoint. + */ +package com.microsoft.azure.cognitiveservices.vision.customvision.prediction.implementation; diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/BoundingBox.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/BoundingBox.java new file mode 100644 index 000000000000..48cce04f1dfa --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/BoundingBox.java @@ -0,0 +1,121 @@ +/** + * 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.vision.customvision.prediction.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The BoundingBox model. + */ +public class BoundingBox { + /** + * The left property. + */ + @JsonProperty(value = "left") + private double left; + + /** + * The top property. + */ + @JsonProperty(value = "top") + private double top; + + /** + * The width property. + */ + @JsonProperty(value = "width") + private double width; + + /** + * The height property. + */ + @JsonProperty(value = "height") + private double height; + + /** + * Get the left value. + * + * @return the left value + */ + public double left() { + return this.left; + } + + /** + * Set the left value. + * + * @param left the left value to set + * @return the BoundingBox object itself. + */ + public BoundingBox withLeft(double left) { + this.left = left; + return this; + } + + /** + * Get the top value. + * + * @return the top value + */ + public double top() { + return this.top; + } + + /** + * Set the top value. + * + * @param top the top value to set + * @return the BoundingBox object itself. + */ + public BoundingBox withTop(double top) { + this.top = top; + return this; + } + + /** + * Get the width value. + * + * @return the width value + */ + public double width() { + return this.width; + } + + /** + * Set the width value. + * + * @param width the width value to set + * @return the BoundingBox object itself. + */ + public BoundingBox withWidth(double width) { + this.width = width; + return this; + } + + /** + * Get the height value. + * + * @return the height value + */ + public double height() { + return this.height; + } + + /** + * Set the height value. + * + * @param height the height value to set + * @return the BoundingBox object itself. + */ + public BoundingBox withHeight(double height) { + this.height = height; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/ImagePrediction.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/ImagePrediction.java new file mode 100644 index 000000000000..728d0f28c449 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/ImagePrediction.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImagePrediction model. + */ +public class ImagePrediction { + /** + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * The project property. + */ + @JsonProperty(value = "project", access = JsonProperty.Access.WRITE_ONLY) + private UUID project; + + /** + * The iteration property. + */ + @JsonProperty(value = "iteration", access = JsonProperty.Access.WRITE_ONLY) + private UUID iteration; + + /** + * The created property. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * The predictions property. + */ + @JsonProperty(value = "predictions", access = JsonProperty.Access.WRITE_ONLY) + private List predictions; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the project value. + * + * @return the project value + */ + public UUID project() { + return this.project; + } + + /** + * Get the iteration value. + * + * @return the iteration value + */ + public UUID iteration() { + return this.iteration; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the predictions value. + * + * @return the predictions value + */ + public List predictions() { + return this.predictions; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/ImageUrl.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/ImageUrl.java new file mode 100644 index 000000000000..079b6e21446e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/ImageUrl.java @@ -0,0 +1,43 @@ +/** + * 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.vision.customvision.prediction.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageUrl model. + */ +public class ImageUrl { + /** + * The url property. + */ + @JsonProperty(value = "url") + private String url; + + /** + * Get the url value. + * + * @return the url value + */ + public String url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the ImageUrl object itself. + */ + public ImageUrl withUrl(String url) { + this.url = url; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageOptionalParameter.java new file mode 100644 index 000000000000..168100eb079f --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageOptionalParameter.java @@ -0,0 +1,94 @@ +/** + * 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.vision.customvision.prediction.models; + +import java.util.UUID; + +/** + * The PredictImageOptionalParameter model. + */ +public class PredictImageOptionalParameter { + /** + * Optional. Specifies the id of a particular iteration to evaluate + * against. + * The default iteration for the project will be used when not specified. + */ + private UUID iterationId; + + /** + * Optional. Specifies the name of application using the endpoint. + */ + private String application; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the PredictImageOptionalParameter object itself. + */ + public PredictImageOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the application value. + * + * @return the application value + */ + public String application() { + return this.application; + } + + /** + * Set the application value. + * + * @param application the application value to set + * @return the PredictImageOptionalParameter object itself. + */ + public PredictImageOptionalParameter withApplication(String application) { + this.application = application; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the PredictImageOptionalParameter object itself. + */ + public PredictImageOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageUrlOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageUrlOptionalParameter.java new file mode 100644 index 000000000000..f43803123183 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageUrlOptionalParameter.java @@ -0,0 +1,119 @@ +/** + * 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.vision.customvision.prediction.models; + +import java.util.UUID; + +/** + * The PredictImageUrlOptionalParameter model. + */ +public class PredictImageUrlOptionalParameter { + /** + * Optional. Specifies the id of a particular iteration to evaluate + * against. + * The default iteration for the project will be used when not specified. + */ + private UUID iterationId; + + /** + * Optional. Specifies the name of application using the endpoint. + */ + private String application; + + /** + * The url property. + */ + private String url; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the PredictImageUrlOptionalParameter object itself. + */ + public PredictImageUrlOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the application value. + * + * @return the application value + */ + public String application() { + return this.application; + } + + /** + * Set the application value. + * + * @param application the application value to set + * @return the PredictImageUrlOptionalParameter object itself. + */ + public PredictImageUrlOptionalParameter withApplication(String application) { + this.application = application; + return this; + } + + /** + * Get the url value. + * + * @return the url value + */ + public String url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the PredictImageUrlOptionalParameter object itself. + */ + public PredictImageUrlOptionalParameter withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the PredictImageUrlOptionalParameter object itself. + */ + public PredictImageUrlOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageUrlWithNoStoreOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageUrlWithNoStoreOptionalParameter.java new file mode 100644 index 000000000000..9a9bf26f8407 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageUrlWithNoStoreOptionalParameter.java @@ -0,0 +1,119 @@ +/** + * 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.vision.customvision.prediction.models; + +import java.util.UUID; + +/** + * The PredictImageUrlWithNoStoreOptionalParameter model. + */ +public class PredictImageUrlWithNoStoreOptionalParameter { + /** + * Optional. Specifies the id of a particular iteration to evaluate + * against. + * The default iteration for the project will be used when not specified. + */ + private UUID iterationId; + + /** + * Optional. Specifies the name of application using the endpoint. + */ + private String application; + + /** + * The url property. + */ + private String url; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the PredictImageUrlWithNoStoreOptionalParameter object itself. + */ + public PredictImageUrlWithNoStoreOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the application value. + * + * @return the application value + */ + public String application() { + return this.application; + } + + /** + * Set the application value. + * + * @param application the application value to set + * @return the PredictImageUrlWithNoStoreOptionalParameter object itself. + */ + public PredictImageUrlWithNoStoreOptionalParameter withApplication(String application) { + this.application = application; + return this; + } + + /** + * Get the url value. + * + * @return the url value + */ + public String url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the PredictImageUrlWithNoStoreOptionalParameter object itself. + */ + public PredictImageUrlWithNoStoreOptionalParameter withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the PredictImageUrlWithNoStoreOptionalParameter object itself. + */ + public PredictImageUrlWithNoStoreOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageWithNoStoreOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageWithNoStoreOptionalParameter.java new file mode 100644 index 000000000000..e5235494089b --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/PredictImageWithNoStoreOptionalParameter.java @@ -0,0 +1,94 @@ +/** + * 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.vision.customvision.prediction.models; + +import java.util.UUID; + +/** + * The PredictImageWithNoStoreOptionalParameter model. + */ +public class PredictImageWithNoStoreOptionalParameter { + /** + * Optional. Specifies the id of a particular iteration to evaluate + * against. + * The default iteration for the project will be used when not specified. + */ + private UUID iterationId; + + /** + * Optional. Specifies the name of application using the endpoint. + */ + private String application; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the PredictImageWithNoStoreOptionalParameter object itself. + */ + public PredictImageWithNoStoreOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the application value. + * + * @return the application value + */ + public String application() { + return this.application; + } + + /** + * Set the application value. + * + * @param application the application value to set + * @return the PredictImageWithNoStoreOptionalParameter object itself. + */ + public PredictImageWithNoStoreOptionalParameter withApplication(String application) { + this.application = application; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the PredictImageWithNoStoreOptionalParameter object itself. + */ + public PredictImageWithNoStoreOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/Prediction.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/Prediction.java new file mode 100644 index 000000000000..1735949fc348 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/Prediction.java @@ -0,0 +1,78 @@ +/** + * 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.vision.customvision.prediction.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Prediction model. + */ +public class Prediction { + /** + * The probability property. + */ + @JsonProperty(value = "probability", access = JsonProperty.Access.WRITE_ONLY) + private double probability; + + /** + * The tagId property. + */ + @JsonProperty(value = "tagId", access = JsonProperty.Access.WRITE_ONLY) + private UUID tagId; + + /** + * The tagName property. + */ + @JsonProperty(value = "tagName", access = JsonProperty.Access.WRITE_ONLY) + private String tagName; + + /** + * The boundingBox property. + */ + @JsonProperty(value = "boundingBox", access = JsonProperty.Access.WRITE_ONLY) + private BoundingBox boundingBox; + + /** + * Get the probability value. + * + * @return the probability value + */ + public double probability() { + return this.probability; + } + + /** + * Get the tagId value. + * + * @return the tagId value + */ + public UUID tagId() { + return this.tagId; + } + + /** + * Get the tagName value. + * + * @return the tagName value + */ + public String tagName() { + return this.tagName; + } + + /** + * Get the boundingBox value. + * + * @return the boundingBox value + */ + public BoundingBox boundingBox() { + return this.boundingBox; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/package-info.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/package-info.java new file mode 100644 index 000000000000..3a76c984fb2a --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/models/package-info.java @@ -0,0 +1,10 @@ +// 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. + +/** + * This package contains the models classes for PredictionEndpoint. + */ +package com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models; diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/package-info.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/package-info.java new file mode 100644 index 000000000000..b44683ce86ed --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/package-info.java @@ -0,0 +1,10 @@ +// 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. + +/** + * This package contains the classes for PredictionEndpoint. + */ +package com.microsoft.azure.cognitiveservices.vision.customvision.prediction; diff --git a/cognitiveservices/data-plane/vision/customvision/training/pom.xml b/cognitiveservices/data-plane/vision/customvision/training/pom.xml new file mode 100644 index 000000000000..9330c16a23f7 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/pom.xml @@ -0,0 +1,91 @@ + + + 4.0.0 + + com.microsoft.azure.cognitiveservices + azure-cognitiveservices-parent + 1.0.2 + ../../../pom.xml + + azure-cognitiveservices-customvision-training + 1.0.2-beta + jar + Microsoft Azure SDK for Cognitive Service Custom Vision Training + This package contains Microsoft Cognitive Service Custom Vision Training SDK. + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/vision/customvision/training + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + UTF-8 + + + + + microsoft + Microsoft + + + + + ossrh + Sonatype Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + true + default + + + + + com.microsoft.azure + azure-client-runtime + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
\ No newline at end of file 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); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/TrainingApi.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/TrainingApi.java new file mode 100644 index 000000000000..9e411daf1695 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/TrainingApi.java @@ -0,0 +1,104 @@ +/** + * 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.vision.customvision.training; + +import com.microsoft.azure.AzureClient; +import com.microsoft.rest.RestClient; + +/** + * The interface for TrainingApi class. + */ +public interface TrainingApi { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets . + * + * @return the apiKey value. + */ + String apiKey(); + + /** + * Sets . + * + * @param apiKey the apiKey value. + * @return the service client itself + */ + TrainingApi withApiKey(String apiKey); + + /** + * Gets Gets or sets the preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets Gets or sets the preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + TrainingApi withAcceptLanguage(String acceptLanguage); + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + TrainingApi 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.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + TrainingApi withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Gets the Trainings object to access its operations. + * @return the Trainings object. + */ + Trainings trainings(); + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/Trainings.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/Trainings.java new file mode 100644 index 000000000000..0e05ac114c5a --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/Trainings.java @@ -0,0 +1,2523 @@ +/** + * 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.vision.customvision.training; + +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateTagOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetTagsOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetTagOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ExportIterationOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetImagePerformanceCountOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetImagePerformancesOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetIterationPerformanceOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateProjectOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.QuickTestImageOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.QuickTestImageUrlOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateImageRegionsOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateImageTagsOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateImagesFromDataOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetImagesByIdsOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetUntaggedImageCountOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetTaggedImageCountOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetUntaggedImagesOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetTaggedImagesOptionalParameter; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Domain; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Export; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Image; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageCreateSummary; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageFileCreateBatch; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageIdCreateBatch; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImagePerformance; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImagePrediction; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageRegionCreateEntry; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageRegionCreateSummary; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageRegionProposal; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageTagCreateEntry; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageTagCreateSummary; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageUrlCreateBatch; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Iteration; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.IterationPerformance; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.PredictionQueryResult; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.PredictionQueryToken; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Project; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Tag; +import java.util.List; +import java.util.UUID; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Trainings. + */ +public interface Trainings { + /** + * Create a tag for the project. + * + * @param projectId The project id. + * @param name The tag name. + * @param createTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Tag object if successful. + */ + @Deprecated + Tag createTag(UUID projectId, String name, CreateTagOptionalParameter createTagOptionalParameter); + + /** + * Create a tag for the project. + * + * @param projectId The project id. + * @param name The tag name. + * @param createTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + @Deprecated + Observable createTagAsync(UUID projectId, String name, CreateTagOptionalParameter createTagOptionalParameter); + + /** + * Create a tag for the project. + * + * @return the first stage of the createTag call + */ + TrainingsCreateTagDefinitionStages.WithProjectId createTag(); + + /** + * Grouping of createTag definition stages. + */ + interface TrainingsCreateTagDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + WithName withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify name. + */ + interface WithName { + /** + * The tag name. + * + * @return next definition stage + */ + TrainingsCreateTagDefinitionStages.WithExecute withName(String name); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * Optional description for the tag. + * + * @return next definition stage + */ + TrainingsCreateTagDefinitionStages.WithExecute withDescription(String description); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsCreateTagDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the Tag object if successful. + */ + Tag execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the Tag object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of createTag definition. + */ + interface TrainingsCreateTagDefinition extends + TrainingsCreateTagDefinitionStages.WithProjectId, + TrainingsCreateTagDefinitionStages.WithName, + TrainingsCreateTagDefinitionStages.WithExecute { + } + + /** + * Get the tags for a given project and iteration. + * + * @param projectId The project id. + * @param getTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Tag> object if successful. + */ + @Deprecated + List getTags(UUID projectId, GetTagsOptionalParameter getTagsOptionalParameter); + + /** + * Get the tags for a given project and iteration. + * + * @param projectId The project id. + * @param getTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Tag> object + */ + @Deprecated + Observable> getTagsAsync(UUID projectId, GetTagsOptionalParameter getTagsOptionalParameter); + + /** + * Get the tags for a given project and iteration. + * + * @return the first stage of the getTags call + */ + TrainingsGetTagsDefinitionStages.WithProjectId getTags(); + + /** + * Grouping of getTags definition stages. + */ + interface TrainingsGetTagsDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + TrainingsGetTagsDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The iteration id. Defaults to workspace. + * + * @return next definition stage + */ + TrainingsGetTagsDefinitionStages.WithExecute withIterationId(UUID iterationId); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetTagsDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the List<Tag> object if successful. + */ + List execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the List<Tag> object + */ + Observable> executeAsync(); + } + } + + /** + * The entirety of getTags definition. + */ + interface TrainingsGetTagsDefinition extends + TrainingsGetTagsDefinitionStages.WithProjectId, + TrainingsGetTagsDefinitionStages.WithExecute { + } + + + /** + * Update a tag. + * + * @param projectId The project id. + * @param tagId The id of the target tag. + * @param updatedTag The updated tag model. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Tag object if successful. + */ + Tag updateTag(UUID projectId, UUID tagId, Tag updatedTag); + + /** + * Update a tag. + * + * @param projectId The project id. + * @param tagId The id of the target tag. + * @param updatedTag The updated tag model. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + Observable updateTagAsync(UUID projectId, UUID tagId, Tag updatedTag); + + + + /** + * Delete a tag from the project. + * + * @param projectId The project id. + * @param tagId Id of the tag to be deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + void deleteTag(UUID projectId, UUID tagId); + + /** + * Delete a tag from the project. + * + * @param projectId The project id. + * @param tagId Id of the tag to be deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return a representation of the deferred computation of this call if successful. + */ + Observable deleteTagAsync(UUID projectId, UUID tagId); + + + /** + * Get information about a specific tag. + * + * @param projectId The project this tag belongs to. + * @param tagId The tag id. + * @param getTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Tag object if successful. + */ + @Deprecated + Tag getTag(UUID projectId, UUID tagId, GetTagOptionalParameter getTagOptionalParameter); + + /** + * Get information about a specific tag. + * + * @param projectId The project this tag belongs to. + * @param tagId The tag id. + * @param getTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + @Deprecated + Observable getTagAsync(UUID projectId, UUID tagId, GetTagOptionalParameter getTagOptionalParameter); + + /** + * Get information about a specific tag. + * + * @return the first stage of the getTag call + */ + TrainingsGetTagDefinitionStages.WithProjectId getTag(); + + /** + * Grouping of getTag definition stages. + */ + interface TrainingsGetTagDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project this tag belongs to. + * + * @return next definition stage + */ + WithTagId withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify tagId. + */ + interface WithTagId { + /** + * The tag id. + * + * @return next definition stage + */ + TrainingsGetTagDefinitionStages.WithExecute withTagId(UUID tagId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The iteration to retrieve this tag from. Optional, defaults to current training set. + * + * @return next definition stage + */ + TrainingsGetTagDefinitionStages.WithExecute withIterationId(UUID iterationId); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetTagDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the Tag object if successful. + */ + Tag execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the Tag object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of getTag definition. + */ + interface TrainingsGetTagDefinition extends + TrainingsGetTagDefinitionStages.WithProjectId, + TrainingsGetTagDefinitionStages.WithTagId, + TrainingsGetTagDefinitionStages.WithExecute { + } + + /** + * Export a trained iteration. + * + * @param projectId The project id. + * @param iterationId The iteration id. + * @param platform The target platform (coreml or tensorflow). Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', + * 'ONNX'. + * @param exportIterationOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Export object if successful. + */ + @Deprecated + Export exportIteration(UUID projectId, UUID iterationId, String platform, ExportIterationOptionalParameter exportIterationOptionalParameter); + + /** + * Export a trained iteration. + * + * @param projectId The project id. + * @param iterationId The iteration id. + * @param platform The target platform (coreml or tensorflow). Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', + * 'ONNX'. + * @param exportIterationOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Export object + */ + @Deprecated + Observable exportIterationAsync(UUID projectId, UUID iterationId, String platform, ExportIterationOptionalParameter exportIterationOptionalParameter); + + /** + * Export a trained iteration. + * + * @return the first stage of the exportIteration call + */ + TrainingsExportIterationDefinitionStages.WithProjectId exportIteration(); + + /** + * Grouping of exportIteration definition stages. + */ + interface TrainingsExportIterationDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + WithIterationId withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify iterationId. + */ + interface WithIterationId { + /** + * The iteration id. + * + * @return next definition stage + */ + WithPlatform withIterationId(UUID iterationId); + } + /** + * The stage of the definition to be specify platform. + */ + interface WithPlatform { + /** + * The target platform (coreml or tensorflow). Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', + * 'ONNX'. + * + * @return next definition stage + */ + TrainingsExportIterationDefinitionStages.WithExecute withPlatform(String platform); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The flavor of the target platform (Windows, Linux, ARM, or GPU). Possible values include: 'Linux', + * 'Windows'. + * + * @return next definition stage + */ + TrainingsExportIterationDefinitionStages.WithExecute withFlavor(String flavor); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsExportIterationDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the Export object if successful. + */ + Export execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the Export object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of exportIteration definition. + */ + interface TrainingsExportIterationDefinition extends + TrainingsExportIterationDefinitionStages.WithProjectId, + TrainingsExportIterationDefinitionStages.WithIterationId, + TrainingsExportIterationDefinitionStages.WithPlatform, + TrainingsExportIterationDefinitionStages.WithExecute { + } + + + /** + * Get the list of exports for a specific iteration. + * + * @param projectId The project id. + * @param iterationId The iteration id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Export> object if successful. + */ + List getExports(UUID projectId, UUID iterationId); + + /** + * Get the list of exports for a specific iteration. + * + * @param projectId The project id. + * @param iterationId The iteration id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Export> object + */ + Observable> getExportsAsync(UUID projectId, UUID iterationId); + + + /** + * Gets the number of images tagged with the provided {tagIds} that have prediction results from + * training for the provided iteration {iterationId}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id. + * @param iterationId The iteration id. Defaults to workspace. + * @param getImagePerformanceCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the int object if successful. + */ + @Deprecated + int getImagePerformanceCount(UUID projectId, UUID iterationId, GetImagePerformanceCountOptionalParameter getImagePerformanceCountOptionalParameter); + + /** + * Gets the number of images tagged with the provided {tagIds} that have prediction results from + * training for the provided iteration {iterationId}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id. + * @param iterationId The iteration id. Defaults to workspace. + * @param getImagePerformanceCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the int object + */ + @Deprecated + Observable getImagePerformanceCountAsync(UUID projectId, UUID iterationId, GetImagePerformanceCountOptionalParameter getImagePerformanceCountOptionalParameter); + + /** + * Gets the number of images tagged with the provided {tagIds} that have prediction results from + * training for the provided iteration {iterationId}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @return the first stage of the getImagePerformanceCount call + */ + TrainingsGetImagePerformanceCountDefinitionStages.WithProjectId getImagePerformanceCount(); + + /** + * Grouping of getImagePerformanceCount definition stages. + */ + interface TrainingsGetImagePerformanceCountDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + WithIterationId withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify iterationId. + */ + interface WithIterationId { + /** + * The iteration id. Defaults to workspace. + * + * @return next definition stage + */ + TrainingsGetImagePerformanceCountDefinitionStages.WithExecute withIterationId(UUID iterationId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * A list of tags ids to filter the images to count. Defaults to all tags when null. + * + * @return next definition stage + */ + TrainingsGetImagePerformanceCountDefinitionStages.WithExecute withTagIds(List tagIds); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetImagePerformanceCountDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the int object if successful. + */ + int execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the int object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of getImagePerformanceCount definition. + */ + interface TrainingsGetImagePerformanceCountDefinition extends + TrainingsGetImagePerformanceCountDefinitionStages.WithProjectId, + TrainingsGetImagePerformanceCountDefinitionStages.WithIterationId, + TrainingsGetImagePerformanceCountDefinitionStages.WithExecute { + } + + /** + * Get image with its prediction for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id. + * @param iterationId The iteration id. Defaults to workspace. + * @param getImagePerformancesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<ImagePerformance> object if successful. + */ + @Deprecated + List getImagePerformances(UUID projectId, UUID iterationId, GetImagePerformancesOptionalParameter getImagePerformancesOptionalParameter); + + /** + * Get image with its prediction for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id. + * @param iterationId The iteration id. Defaults to workspace. + * @param getImagePerformancesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ImagePerformance> object + */ + @Deprecated + Observable> getImagePerformancesAsync(UUID projectId, UUID iterationId, GetImagePerformancesOptionalParameter getImagePerformancesOptionalParameter); + + /** + * Get image with its prediction for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @return the first stage of the getImagePerformances call + */ + TrainingsGetImagePerformancesDefinitionStages.WithProjectId getImagePerformances(); + + /** + * Grouping of getImagePerformances definition stages. + */ + interface TrainingsGetImagePerformancesDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + WithIterationId withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify iterationId. + */ + interface WithIterationId { + /** + * The iteration id. Defaults to workspace. + * + * @return next definition stage + */ + TrainingsGetImagePerformancesDefinitionStages.WithExecute withIterationId(UUID iterationId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * A list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20. + * + * @return next definition stage + */ + TrainingsGetImagePerformancesDefinitionStages.WithExecute withTagIds(List tagIds); + + /** + * The ordering. Defaults to newest. Possible values include: 'Newest', 'Oldest'. + * + * @return next definition stage + */ + TrainingsGetImagePerformancesDefinitionStages.WithExecute withOrderBy(String orderBy); + + /** + * Maximum number of images to return. Defaults to 50, limited to 256. + * + * @return next definition stage + */ + TrainingsGetImagePerformancesDefinitionStages.WithExecute withTake(Integer take); + + /** + * Number of images to skip before beginning the image batch. Defaults to 0. + * + * @return next definition stage + */ + TrainingsGetImagePerformancesDefinitionStages.WithExecute withSkip(Integer skip); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetImagePerformancesDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the List<ImagePerformance> object if successful. + */ + List execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the List<ImagePerformance> object + */ + Observable> executeAsync(); + } + } + + /** + * The entirety of getImagePerformances definition. + */ + interface TrainingsGetImagePerformancesDefinition extends + TrainingsGetImagePerformancesDefinitionStages.WithProjectId, + TrainingsGetImagePerformancesDefinitionStages.WithIterationId, + TrainingsGetImagePerformancesDefinitionStages.WithExecute { + } + + /** + * Get detailed performance information about an iteration. + * + * @param projectId The id of the project the iteration belongs to. + * @param iterationId The id of the iteration to get. + * @param getIterationPerformanceOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IterationPerformance object if successful. + */ + @Deprecated + IterationPerformance getIterationPerformance(UUID projectId, UUID iterationId, GetIterationPerformanceOptionalParameter getIterationPerformanceOptionalParameter); + + /** + * Get detailed performance information about an iteration. + * + * @param projectId The id of the project the iteration belongs to. + * @param iterationId The id of the iteration to get. + * @param getIterationPerformanceOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IterationPerformance object + */ + @Deprecated + Observable getIterationPerformanceAsync(UUID projectId, UUID iterationId, GetIterationPerformanceOptionalParameter getIterationPerformanceOptionalParameter); + + /** + * Get detailed performance information about an iteration. + * + * @return the first stage of the getIterationPerformance call + */ + TrainingsGetIterationPerformanceDefinitionStages.WithProjectId getIterationPerformance(); + + /** + * Grouping of getIterationPerformance definition stages. + */ + interface TrainingsGetIterationPerformanceDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The id of the project the iteration belongs to. + * + * @return next definition stage + */ + WithIterationId withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify iterationId. + */ + interface WithIterationId { + /** + * The id of the iteration to get. + * + * @return next definition stage + */ + TrainingsGetIterationPerformanceDefinitionStages.WithExecute withIterationId(UUID iterationId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The threshold used to determine true predictions. + * + * @return next definition stage + */ + TrainingsGetIterationPerformanceDefinitionStages.WithExecute withThreshold(Double threshold); + + /** + * If applicable, the bounding box overlap threshold used to determine true predictions. + * + * @return next definition stage + */ + TrainingsGetIterationPerformanceDefinitionStages.WithExecute withOverlapThreshold(Double overlapThreshold); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetIterationPerformanceDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the IterationPerformance object if successful. + */ + IterationPerformance execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the IterationPerformance object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of getIterationPerformance definition. + */ + interface TrainingsGetIterationPerformanceDefinition extends + TrainingsGetIterationPerformanceDefinitionStages.WithProjectId, + TrainingsGetIterationPerformanceDefinitionStages.WithIterationId, + TrainingsGetIterationPerformanceDefinitionStages.WithExecute { + } + + + /** + * Update a specific iteration. + * + * @param projectId Project id. + * @param iterationId Iteration id. + * @param updatedIteration The updated iteration model. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Iteration object if successful. + */ + Iteration updateIteration(UUID projectId, UUID iterationId, Iteration updatedIteration); + + /** + * Update a specific iteration. + * + * @param projectId Project id. + * @param iterationId Iteration id. + * @param updatedIteration The updated iteration model. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + Observable updateIterationAsync(UUID projectId, UUID iterationId, Iteration updatedIteration); + + + + /** + * Delete a specific iteration of a project. + * + * @param projectId The project id. + * @param iterationId The iteration id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + void deleteIteration(UUID projectId, UUID iterationId); + + /** + * Delete a specific iteration of a project. + * + * @param projectId The project id. + * @param iterationId The iteration id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return a representation of the deferred computation of this call if successful. + */ + Observable deleteIterationAsync(UUID projectId, UUID iterationId); + + + + /** + * Get a specific iteration. + * + * @param projectId The id of the project the iteration belongs to. + * @param iterationId The id of the iteration to get. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Iteration object if successful. + */ + Iteration getIteration(UUID projectId, UUID iterationId); + + /** + * Get a specific iteration. + * + * @param projectId The id of the project the iteration belongs to. + * @param iterationId The id of the iteration to get. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + Observable getIterationAsync(UUID projectId, UUID iterationId); + + + + /** + * Get iterations for the project. + * + * @param projectId The project id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Iteration> object if successful. + */ + List getIterations(UUID projectId); + + /** + * Get iterations for the project. + * + * @param projectId The project id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Iteration> object + */ + Observable> getIterationsAsync(UUID projectId); + + + + /** + * Update a specific project. + * + * @param projectId The id of the project to update. + * @param updatedProject The updated project model. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Project object if successful. + */ + Project updateProject(UUID projectId, Project updatedProject); + + /** + * Update a specific project. + * + * @param projectId The id of the project to update. + * @param updatedProject The updated project model. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + Observable updateProjectAsync(UUID projectId, Project updatedProject); + + + + /** + * Delete a specific project. + * + * @param projectId The project id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + void deleteProject(UUID projectId); + + /** + * Delete a specific project. + * + * @param projectId The project id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return a representation of the deferred computation of this call if successful. + */ + Observable deleteProjectAsync(UUID projectId); + + + + /** + * Get a specific project. + * + * @param projectId The id of the project to get. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Project object if successful. + */ + Project getProject(UUID projectId); + + /** + * Get a specific project. + * + * @param projectId The id of the project to get. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + Observable getProjectAsync(UUID projectId); + + + /** + * Create a project. + * + * @param name Name of the project. + * @param createProjectOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Project object if successful. + */ + @Deprecated + Project createProject(String name, CreateProjectOptionalParameter createProjectOptionalParameter); + + /** + * Create a project. + * + * @param name Name of the project. + * @param createProjectOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + @Deprecated + Observable createProjectAsync(String name, CreateProjectOptionalParameter createProjectOptionalParameter); + + /** + * Create a project. + * + * @return the first stage of the createProject call + */ + TrainingsCreateProjectDefinitionStages.WithName createProject(); + + /** + * Grouping of createProject definition stages. + */ + interface TrainingsCreateProjectDefinitionStages { + /** + * The stage of the definition to be specify name. + */ + interface WithName { + /** + * Name of the project. + * + * @return next definition stage + */ + TrainingsCreateProjectDefinitionStages.WithExecute withName(String name); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The description of the project. + * + * @return next definition stage + */ + TrainingsCreateProjectDefinitionStages.WithExecute withDescription(String description); + + /** + * The id of the domain to use for this project. Defaults to General. + * + * @return next definition stage + */ + TrainingsCreateProjectDefinitionStages.WithExecute withDomainId(UUID domainId); + + /** + * The type of classifier to create for this project. Possible values include: 'Multiclass', 'Multilabel'. + * + * @return next definition stage + */ + TrainingsCreateProjectDefinitionStages.WithExecute withClassificationType(String classificationType); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsCreateProjectDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the Project object if successful. + */ + Project execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the Project object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of createProject definition. + */ + interface TrainingsCreateProjectDefinition extends + TrainingsCreateProjectDefinitionStages.WithName, + TrainingsCreateProjectDefinitionStages.WithExecute { + } + + + /** + * Get your projects. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Project> object if successful. + */ + List getProjects(); + + /** + * Get your projects. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Project> object + */ + Observable> getProjectsAsync(); + + + + /** + * Queues project for training. + * + * @param projectId The project id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Iteration object if successful. + */ + Iteration trainProject(UUID projectId); + + /** + * Queues project for training. + * + * @param projectId The project id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + Observable trainProjectAsync(UUID projectId); + + + /** + * Quick test an image. + * + * @param projectId The project id. + * @param imageData the InputStream value. + * @param quickTestImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + @Deprecated + ImagePrediction quickTestImage(UUID projectId, byte[] imageData, QuickTestImageOptionalParameter quickTestImageOptionalParameter); + + /** + * Quick test an image. + * + * @param projectId The project id. + * @param imageData the InputStream value. + * @param quickTestImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + @Deprecated + Observable quickTestImageAsync(UUID projectId, byte[] imageData, QuickTestImageOptionalParameter quickTestImageOptionalParameter); + + /** + * Quick test an image. + * + * @return the first stage of the quickTestImage call + */ + TrainingsQuickTestImageDefinitionStages.WithProjectId quickTestImage(); + + /** + * Grouping of quickTestImage definition stages. + */ + interface TrainingsQuickTestImageDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + WithImageData withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify imageData. + */ + interface WithImageData { + /** + * + * + * @return next definition stage + */ + TrainingsQuickTestImageDefinitionStages.WithExecute withImageData(byte[] imageData); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * Optional. Specifies the id of a particular iteration to evaluate against. + * The default iteration for the project will be used when not specified. + * + * @return next definition stage + */ + TrainingsQuickTestImageDefinitionStages.WithExecute withIterationId(UUID iterationId); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsQuickTestImageDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImagePrediction object if successful. + */ + ImagePrediction execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImagePrediction object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of quickTestImage definition. + */ + interface TrainingsQuickTestImageDefinition extends + TrainingsQuickTestImageDefinitionStages.WithProjectId, + TrainingsQuickTestImageDefinitionStages.WithImageData, + TrainingsQuickTestImageDefinitionStages.WithExecute { + } + + /** + * Quick test an image url. + * + * @param projectId The project to evaluate against. + * @param quickTestImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + @Deprecated + ImagePrediction quickTestImageUrl(UUID projectId, QuickTestImageUrlOptionalParameter quickTestImageUrlOptionalParameter); + + /** + * Quick test an image url. + * + * @param projectId The project to evaluate against. + * @param quickTestImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + @Deprecated + Observable quickTestImageUrlAsync(UUID projectId, QuickTestImageUrlOptionalParameter quickTestImageUrlOptionalParameter); + + /** + * Quick test an image url. + * + * @return the first stage of the quickTestImageUrl call + */ + TrainingsQuickTestImageUrlDefinitionStages.WithProjectId quickTestImageUrl(); + + /** + * Grouping of quickTestImageUrl definition stages. + */ + interface TrainingsQuickTestImageUrlDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project to evaluate against. + * + * @return next definition stage + */ + TrainingsQuickTestImageUrlDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * Optional. Specifies the id of a particular iteration to evaluate against. + * The default iteration for the project will be used when not specified. + * + * @return next definition stage + */ + TrainingsQuickTestImageUrlDefinitionStages.WithExecute withIterationId(UUID iterationId); + + /** + * + * + * @return next definition stage + */ + TrainingsQuickTestImageUrlDefinitionStages.WithExecute withUrl(String url); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsQuickTestImageUrlDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImagePrediction object if successful. + */ + ImagePrediction execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImagePrediction object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of quickTestImageUrl definition. + */ + interface TrainingsQuickTestImageUrlDefinition extends + TrainingsQuickTestImageUrlDefinitionStages.WithProjectId, + TrainingsQuickTestImageUrlDefinitionStages.WithExecute { + } + + + /** + * Get images that were sent to your prediction endpoint. + * + * @param projectId The project id. + * @param query Parameters used to query the predictions. Limited to combining 2 tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PredictionQueryResult object if successful. + */ + PredictionQueryResult queryPredictions(UUID projectId, PredictionQueryToken query); + + /** + * Get images that were sent to your prediction endpoint. + * + * @param projectId The project id. + * @param query Parameters used to query the predictions. Limited to combining 2 tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PredictionQueryResult object + */ + Observable queryPredictionsAsync(UUID projectId, PredictionQueryToken query); + + + + /** + * Delete a set of predicted images and their associated prediction results. + * + * @param projectId The project id. + * @param ids The prediction ids. Limited to 64. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + void deletePrediction(UUID projectId, List ids); + + /** + * Delete a set of predicted images and their associated prediction results. + * + * @param projectId The project id. + * @param ids The prediction ids. Limited to 64. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return a representation of the deferred computation of this call if successful. + */ + Observable deletePredictionAsync(UUID projectId, List ids); + + + + /** + * Get region proposals for an image. Returns empty array if no proposals are found. + * This API will get region proposals for an image along with confidences for the region. It returns + * an empty array if no proposals are found. + * + * @param projectId The project id. + * @param imageId The image id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageRegionProposal object if successful. + */ + ImageRegionProposal getImageRegionProposals(UUID projectId, UUID imageId); + + /** + * Get region proposals for an image. Returns empty array if no proposals are found. + * This API will get region proposals for an image along with confidences for the region. It returns + * an empty array if no proposals are found. + * + * @param projectId The project id. + * @param imageId The image id. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageRegionProposal object + */ + Observable getImageRegionProposalsAsync(UUID projectId, UUID imageId); + + + + /** + * Delete a set of image regions. + * + * @param projectId The project id. + * @param regionIds Regions to delete. Limited to 64. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + void deleteImageRegions(UUID projectId, List regionIds); + + /** + * Delete a set of image regions. + * + * @param projectId The project id. + * @param regionIds Regions to delete. Limited to 64. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return a representation of the deferred computation of this call if successful. + */ + Observable deleteImageRegionsAsync(UUID projectId, List regionIds); + + + /** + * Create a set of image regions. + * This API accepts a batch of image regions, and optionally tags, to update existing images with region + * information. + * There is a limit of 64 entries in the batch. + * + * @param projectId The project id. + * @param createImageRegionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageRegionCreateSummary object if successful. + */ + @Deprecated + ImageRegionCreateSummary createImageRegions(UUID projectId, CreateImageRegionsOptionalParameter createImageRegionsOptionalParameter); + + /** + * Create a set of image regions. + * This API accepts a batch of image regions, and optionally tags, to update existing images with region + * information. + * There is a limit of 64 entries in the batch. + * + * @param projectId The project id. + * @param createImageRegionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageRegionCreateSummary object + */ + @Deprecated + Observable createImageRegionsAsync(UUID projectId, CreateImageRegionsOptionalParameter createImageRegionsOptionalParameter); + + /** + * Create a set of image regions. + * This API accepts a batch of image regions, and optionally tags, to update existing images with region + * information. + * There is a limit of 64 entries in the batch. + * + * @return the first stage of the createImageRegions call + */ + TrainingsCreateImageRegionsDefinitionStages.WithProjectId createImageRegions(); + + /** + * Grouping of createImageRegions definition stages. + */ + interface TrainingsCreateImageRegionsDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + TrainingsCreateImageRegionsDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * + * + * @return next definition stage + */ + TrainingsCreateImageRegionsDefinitionStages.WithExecute withRegions(List regions); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsCreateImageRegionsDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImageRegionCreateSummary object if successful. + */ + ImageRegionCreateSummary execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImageRegionCreateSummary object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of createImageRegions definition. + */ + interface TrainingsCreateImageRegionsDefinition extends + TrainingsCreateImageRegionsDefinitionStages.WithProjectId, + TrainingsCreateImageRegionsDefinitionStages.WithExecute { + } + + + /** + * Remove a set of tags from a set of images. + * + * @param projectId The project id. + * @param imageIds Image ids. Limited to 64 images. + * @param tagIds Tags to be deleted from the specified images. Limted to 20 tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + void deleteImageTags(UUID projectId, List imageIds, List tagIds); + + /** + * Remove a set of tags from a set of images. + * + * @param projectId The project id. + * @param imageIds Image ids. Limited to 64 images. + * @param tagIds Tags to be deleted from the specified images. Limted to 20 tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return a representation of the deferred computation of this call if successful. + */ + Observable deleteImageTagsAsync(UUID projectId, List imageIds, List tagIds); + + + /** + * Associate a set of images with a set of tags. + * + * @param projectId The project id. + * @param createImageTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageTagCreateSummary object if successful. + */ + @Deprecated + ImageTagCreateSummary createImageTags(UUID projectId, CreateImageTagsOptionalParameter createImageTagsOptionalParameter); + + /** + * Associate a set of images with a set of tags. + * + * @param projectId The project id. + * @param createImageTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageTagCreateSummary object + */ + @Deprecated + Observable createImageTagsAsync(UUID projectId, CreateImageTagsOptionalParameter createImageTagsOptionalParameter); + + /** + * Associate a set of images with a set of tags. + * + * @return the first stage of the createImageTags call + */ + TrainingsCreateImageTagsDefinitionStages.WithProjectId createImageTags(); + + /** + * Grouping of createImageTags definition stages. + */ + interface TrainingsCreateImageTagsDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + TrainingsCreateImageTagsDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * + * + * @return next definition stage + */ + TrainingsCreateImageTagsDefinitionStages.WithExecute withTags(List tags); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsCreateImageTagsDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImageTagCreateSummary object if successful. + */ + ImageTagCreateSummary execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImageTagCreateSummary object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of createImageTags definition. + */ + interface TrainingsCreateImageTagsDefinition extends + TrainingsCreateImageTagsDefinitionStages.WithProjectId, + TrainingsCreateImageTagsDefinitionStages.WithExecute { + } + + + /** + * Add the specified predicted images to the set of training images. + * This API creates a batch of images from predicted images specified. There is a limit of 64 images + * and 20 tags. + * + * @param projectId The project id. + * @param batch Image and tag ids. Limted to 64 images and 20 tags per batch. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageCreateSummary object if successful. + */ + ImageCreateSummary createImagesFromPredictions(UUID projectId, ImageIdCreateBatch batch); + + /** + * Add the specified predicted images to the set of training images. + * This API creates a batch of images from predicted images specified. There is a limit of 64 images + * and 20 tags. + * + * @param projectId The project id. + * @param batch Image and tag ids. Limted to 64 images and 20 tags per batch. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + Observable createImagesFromPredictionsAsync(UUID projectId, ImageIdCreateBatch batch); + + + + /** + * Add the provided images urls to the set of training images. + * This API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64 + * images and 20 tags. + * + * @param projectId The project id. + * @param batch Image urls and tag ids. Limited to 64 images and 20 tags per batch. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageCreateSummary object if successful. + */ + ImageCreateSummary createImagesFromUrls(UUID projectId, ImageUrlCreateBatch batch); + + /** + * Add the provided images urls to the set of training images. + * This API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64 + * images and 20 tags. + * + * @param projectId The project id. + * @param batch Image urls and tag ids. Limited to 64 images and 20 tags per batch. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + Observable createImagesFromUrlsAsync(UUID projectId, ImageUrlCreateBatch batch); + + + + /** + * Add the provided batch of images to the set of training images. + * This API accepts a batch of files, and optionally tags, to create images. There is a limit of 64 + * images and 20 tags. + * + * @param projectId The project id. + * @param batch The batch of image files to add. Limited to 64 images and 20 tags per batch. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageCreateSummary object if successful. + */ + ImageCreateSummary createImagesFromFiles(UUID projectId, ImageFileCreateBatch batch); + + /** + * Add the provided batch of images to the set of training images. + * This API accepts a batch of files, and optionally tags, to create images. There is a limit of 64 + * images and 20 tags. + * + * @param projectId The project id. + * @param batch The batch of image files to add. Limited to 64 images and 20 tags per batch. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + Observable createImagesFromFilesAsync(UUID projectId, ImageFileCreateBatch batch); + + + + /** + * Delete images from the set of training images. + * + * @param projectId The project id. + * @param imageIds Ids of the images to be deleted. Limted to 256 images per batch. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + void deleteImages(UUID projectId, List imageIds); + + /** + * Delete images from the set of training images. + * + * @param projectId The project id. + * @param imageIds Ids of the images to be deleted. Limted to 256 images per batch. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return a representation of the deferred computation of this call if successful. + */ + Observable deleteImagesAsync(UUID projectId, List imageIds); + + + /** + * Add the provided images to the set of training images. + * This API accepts body content as multipart/form-data and application/octet-stream. When using multipart + * multiple image files can be sent at once, with a maximum of 64 files. + * + * @param projectId The project id. + * @param imageData the InputStream value. + * @param createImagesFromDataOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageCreateSummary object if successful. + */ + @Deprecated + ImageCreateSummary createImagesFromData(UUID projectId, byte[] imageData, CreateImagesFromDataOptionalParameter createImagesFromDataOptionalParameter); + + /** + * Add the provided images to the set of training images. + * This API accepts body content as multipart/form-data and application/octet-stream. When using multipart + * multiple image files can be sent at once, with a maximum of 64 files. + * + * @param projectId The project id. + * @param imageData the InputStream value. + * @param createImagesFromDataOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + @Deprecated + Observable createImagesFromDataAsync(UUID projectId, byte[] imageData, CreateImagesFromDataOptionalParameter createImagesFromDataOptionalParameter); + + /** + * Add the provided images to the set of training images. + * This API accepts body content as multipart/form-data and application/octet-stream. When using multipart + * multiple image files can be sent at once, with a maximum of 64 files. + * + * @return the first stage of the createImagesFromData call + */ + TrainingsCreateImagesFromDataDefinitionStages.WithProjectId createImagesFromData(); + + /** + * Grouping of createImagesFromData definition stages. + */ + interface TrainingsCreateImagesFromDataDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + WithImageData withProjectId(UUID projectId); + } + /** + * The stage of the definition to be specify imageData. + */ + interface WithImageData { + /** + * + * + * @return next definition stage + */ + TrainingsCreateImagesFromDataDefinitionStages.WithExecute withImageData(byte[] imageData); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The tags ids with which to tag each image. Limited to 20. + * + * @return next definition stage + */ + TrainingsCreateImagesFromDataDefinitionStages.WithExecute withTagIds(List tagIds); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsCreateImagesFromDataDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the ImageCreateSummary object if successful. + */ + ImageCreateSummary execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the ImageCreateSummary object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of createImagesFromData definition. + */ + interface TrainingsCreateImagesFromDataDefinition extends + TrainingsCreateImagesFromDataDefinitionStages.WithProjectId, + TrainingsCreateImagesFromDataDefinitionStages.WithImageData, + TrainingsCreateImagesFromDataDefinitionStages.WithExecute { + } + + /** + * Get images by id for a given project iteration. + * This API will return a set of Images for the specified tags and optionally iteration. If no iteration is + * specified the + * current workspace is used. + * + * @param projectId The project id. + * @param getImagesByIdsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Image> object if successful. + */ + @Deprecated + List getImagesByIds(UUID projectId, GetImagesByIdsOptionalParameter getImagesByIdsOptionalParameter); + + /** + * Get images by id for a given project iteration. + * This API will return a set of Images for the specified tags and optionally iteration. If no iteration is + * specified the + * current workspace is used. + * + * @param projectId The project id. + * @param getImagesByIdsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + @Deprecated + Observable> getImagesByIdsAsync(UUID projectId, GetImagesByIdsOptionalParameter getImagesByIdsOptionalParameter); + + /** + * Get images by id for a given project iteration. + * This API will return a set of Images for the specified tags and optionally iteration. If no iteration is + * specified the + * current workspace is used. + * + * @return the first stage of the getImagesByIds call + */ + TrainingsGetImagesByIdsDefinitionStages.WithProjectId getImagesByIds(); + + /** + * Grouping of getImagesByIds definition stages. + */ + interface TrainingsGetImagesByIdsDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + TrainingsGetImagesByIdsDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The list of image ids to retrieve. Limited to 256. + * + * @return next definition stage + */ + TrainingsGetImagesByIdsDefinitionStages.WithExecute withImageIds(List imageIds); + + /** + * The iteration id. Defaults to workspace. + * + * @return next definition stage + */ + TrainingsGetImagesByIdsDefinitionStages.WithExecute withIterationId(UUID iterationId); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetImagesByIdsDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the List<Image> object if successful. + */ + List execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the List<Image> object + */ + Observable> executeAsync(); + } + } + + /** + * The entirety of getImagesByIds definition. + */ + interface TrainingsGetImagesByIdsDefinition extends + TrainingsGetImagesByIdsDefinitionStages.WithProjectId, + TrainingsGetImagesByIdsDefinitionStages.WithExecute { + } + + /** + * Gets the number of untagged images. + * This API returns the images which have no tags for a given project and optionally an iteration. If no + * iteration is specified the + * current workspace is used. + * + * @param projectId The project id. + * @param getUntaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the int object if successful. + */ + @Deprecated + int getUntaggedImageCount(UUID projectId, GetUntaggedImageCountOptionalParameter getUntaggedImageCountOptionalParameter); + + /** + * Gets the number of untagged images. + * This API returns the images which have no tags for a given project and optionally an iteration. If no + * iteration is specified the + * current workspace is used. + * + * @param projectId The project id. + * @param getUntaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the int object + */ + @Deprecated + Observable getUntaggedImageCountAsync(UUID projectId, GetUntaggedImageCountOptionalParameter getUntaggedImageCountOptionalParameter); + + /** + * Gets the number of untagged images. + * This API returns the images which have no tags for a given project and optionally an iteration. If no + * iteration is specified the + * current workspace is used. + * + * @return the first stage of the getUntaggedImageCount call + */ + TrainingsGetUntaggedImageCountDefinitionStages.WithProjectId getUntaggedImageCount(); + + /** + * Grouping of getUntaggedImageCount definition stages. + */ + interface TrainingsGetUntaggedImageCountDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + TrainingsGetUntaggedImageCountDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The iteration id. Defaults to workspace. + * + * @return next definition stage + */ + TrainingsGetUntaggedImageCountDefinitionStages.WithExecute withIterationId(UUID iterationId); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetUntaggedImageCountDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the int object if successful. + */ + int execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the int object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of getUntaggedImageCount definition. + */ + interface TrainingsGetUntaggedImageCountDefinition extends + TrainingsGetUntaggedImageCountDefinitionStages.WithProjectId, + TrainingsGetUntaggedImageCountDefinitionStages.WithExecute { + } + + /** + * Gets the number of images tagged with the provided {tagIds}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id. + * @param getTaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the int object if successful. + */ + @Deprecated + int getTaggedImageCount(UUID projectId, GetTaggedImageCountOptionalParameter getTaggedImageCountOptionalParameter); + + /** + * Gets the number of images tagged with the provided {tagIds}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id. + * @param getTaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the int object + */ + @Deprecated + Observable getTaggedImageCountAsync(UUID projectId, GetTaggedImageCountOptionalParameter getTaggedImageCountOptionalParameter); + + /** + * Gets the number of images tagged with the provided {tagIds}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @return the first stage of the getTaggedImageCount call + */ + TrainingsGetTaggedImageCountDefinitionStages.WithProjectId getTaggedImageCount(); + + /** + * Grouping of getTaggedImageCount definition stages. + */ + interface TrainingsGetTaggedImageCountDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + TrainingsGetTaggedImageCountDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The iteration id. Defaults to workspace. + * + * @return next definition stage + */ + TrainingsGetTaggedImageCountDefinitionStages.WithExecute withIterationId(UUID iterationId); + + /** + * A list of tags ids to filter the images to count. Defaults to all tags when null. + * + * @return next definition stage + */ + TrainingsGetTaggedImageCountDefinitionStages.WithExecute withTagIds(List tagIds); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetTaggedImageCountDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the int object if successful. + */ + int execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the int object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of getTaggedImageCount definition. + */ + interface TrainingsGetTaggedImageCountDefinition extends + TrainingsGetTaggedImageCountDefinitionStages.WithProjectId, + TrainingsGetTaggedImageCountDefinitionStages.WithExecute { + } + + /** + * Get untagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * + * @param projectId The project id. + * @param getUntaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Image> object if successful. + */ + @Deprecated + List getUntaggedImages(UUID projectId, GetUntaggedImagesOptionalParameter getUntaggedImagesOptionalParameter); + + /** + * Get untagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * + * @param projectId The project id. + * @param getUntaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + @Deprecated + Observable> getUntaggedImagesAsync(UUID projectId, GetUntaggedImagesOptionalParameter getUntaggedImagesOptionalParameter); + + /** + * Get untagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * + * @return the first stage of the getUntaggedImages call + */ + TrainingsGetUntaggedImagesDefinitionStages.WithProjectId getUntaggedImages(); + + /** + * Grouping of getUntaggedImages definition stages. + */ + interface TrainingsGetUntaggedImagesDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + TrainingsGetUntaggedImagesDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The iteration id. Defaults to workspace. + * + * @return next definition stage + */ + TrainingsGetUntaggedImagesDefinitionStages.WithExecute withIterationId(UUID iterationId); + + /** + * The ordering. Defaults to newest. Possible values include: 'Newest', 'Oldest'. + * + * @return next definition stage + */ + TrainingsGetUntaggedImagesDefinitionStages.WithExecute withOrderBy(String orderBy); + + /** + * Maximum number of images to return. Defaults to 50, limited to 256. + * + * @return next definition stage + */ + TrainingsGetUntaggedImagesDefinitionStages.WithExecute withTake(Integer take); + + /** + * Number of images to skip before beginning the image batch. Defaults to 0. + * + * @return next definition stage + */ + TrainingsGetUntaggedImagesDefinitionStages.WithExecute withSkip(Integer skip); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetUntaggedImagesDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the List<Image> object if successful. + */ + List execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the List<Image> object + */ + Observable> executeAsync(); + } + } + + /** + * The entirety of getUntaggedImages definition. + */ + interface TrainingsGetUntaggedImagesDefinition extends + TrainingsGetUntaggedImagesDefinitionStages.WithProjectId, + TrainingsGetUntaggedImagesDefinitionStages.WithExecute { + } + + /** + * Get tagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id. + * @param getTaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Image> object if successful. + */ + @Deprecated + List getTaggedImages(UUID projectId, GetTaggedImagesOptionalParameter getTaggedImagesOptionalParameter); + + /** + * Get tagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id. + * @param getTaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + @Deprecated + Observable> getTaggedImagesAsync(UUID projectId, GetTaggedImagesOptionalParameter getTaggedImagesOptionalParameter); + + /** + * Get tagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching + * images. + * Use the {take} and {skip} parameters to control how many images to return in a given batch. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + * "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @return the first stage of the getTaggedImages call + */ + TrainingsGetTaggedImagesDefinitionStages.WithProjectId getTaggedImages(); + + /** + * Grouping of getTaggedImages definition stages. + */ + interface TrainingsGetTaggedImagesDefinitionStages { + /** + * The stage of the definition to be specify projectId. + */ + interface WithProjectId { + /** + * The project id. + * + * @return next definition stage + */ + TrainingsGetTaggedImagesDefinitionStages.WithExecute withProjectId(UUID projectId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The iteration id. Defaults to workspace. + * + * @return next definition stage + */ + TrainingsGetTaggedImagesDefinitionStages.WithExecute withIterationId(UUID iterationId); + + /** + * A list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20. + * + * @return next definition stage + */ + TrainingsGetTaggedImagesDefinitionStages.WithExecute withTagIds(List tagIds); + + /** + * The ordering. Defaults to newest. Possible values include: 'Newest', 'Oldest'. + * + * @return next definition stage + */ + TrainingsGetTaggedImagesDefinitionStages.WithExecute withOrderBy(String orderBy); + + /** + * Maximum number of images to return. Defaults to 50, limited to 256. + * + * @return next definition stage + */ + TrainingsGetTaggedImagesDefinitionStages.WithExecute withTake(Integer take); + + /** + * Number of images to skip before beginning the image batch. Defaults to 0. + * + * @return next definition stage + */ + TrainingsGetTaggedImagesDefinitionStages.WithExecute withSkip(Integer skip); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends TrainingsGetTaggedImagesDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the List<Image> object if successful. + */ + List execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the List<Image> object + */ + Observable> executeAsync(); + } + } + + /** + * The entirety of getTaggedImages definition. + */ + interface TrainingsGetTaggedImagesDefinition extends + TrainingsGetTaggedImagesDefinitionStages.WithProjectId, + TrainingsGetTaggedImagesDefinitionStages.WithExecute { + } + + + /** + * Get information about a specific domain. + * + * @param domainId The id of the domain to get information about. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Domain object if successful. + */ + Domain getDomain(UUID domainId); + + /** + * Get information about a specific domain. + * + * @param domainId The id of the domain to get information about. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Domain object + */ + Observable getDomainAsync(UUID domainId); + + + + /** + * Get a list of the available domains. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Domain> object if successful. + */ + List getDomains(); + + /** + * Get a list of the available domains. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Domain> object + */ + Observable> getDomainsAsync(); + + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/TrainingApiImpl.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/TrainingApiImpl.java new file mode 100644 index 000000000000..6f3f10fcb6b8 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/TrainingApiImpl.java @@ -0,0 +1,185 @@ +/** + * 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.vision.customvision.training.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.TrainingApi; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.Trainings; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the TrainingApiImpl class. + */ +public class TrainingApiImpl extends AzureServiceClient implements TrainingApi { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** The API key. */ + private String apiKey; + + /** + * Gets the API key. + * + * @return the apiKey value. + */ + public String apiKey() { + return this.apiKey; + } + + /** + * Sets the API key. + * + * @param apiKey the apiKey value. + * @return the service client itself + */ + public TrainingApiImpl withApiKey(String apiKey) { + this.apiKey = apiKey; + return this; + } + + /** Gets or sets the preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets Gets or sets the preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets Gets or sets the preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public TrainingApiImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public TrainingApiImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public TrainingApiImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The Trainings object to access its operations. + */ + private Trainings trainings; + + /** + * Gets the Trainings object to access its operations. + * @return the Trainings object. + */ + public Trainings trainings() { + return this.trainings; + } + + /** + * Initializes an instance of TrainingApi client. + * + * @param credentials the management credentials for Azure + */ + public TrainingApiImpl(ServiceClientCredentials credentials) { + this("https://southcentralus.api.cognitive.microsoft.com/customvision/v2.1/Training", credentials); + } + + /** + * Initializes an instance of TrainingApi client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public TrainingApiImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of TrainingApi client. + * + * @param restClient the REST client to connect to Azure. + */ + public TrainingApiImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.trainings = new TrainingsImpl(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s)", super.userAgent(), "TrainingApi", "2.1"); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/TrainingsImpl.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/TrainingsImpl.java new file mode 100644 index 000000000000..dc65c44bcee9 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/TrainingsImpl.java @@ -0,0 +1,5312 @@ +/** + * 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.vision.customvision.training.implementation; + +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateTagOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetTagsOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetTagOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ExportIterationOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetImagePerformanceCountOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetImagePerformancesOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetIterationPerformanceOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateProjectOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.QuickTestImageOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.QuickTestImageUrlOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateImageRegionsOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateImageTagsOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CreateImagesFromDataOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetImagesByIdsOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetUntaggedImageCountOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetTaggedImageCountOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetUntaggedImagesOptionalParameter; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.GetTaggedImagesOptionalParameter; +import okhttp3.MediaType; +import okhttp3.RequestBody; +import retrofit2.Retrofit; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.Trainings; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Domain; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Export; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Image; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageCreateSummary; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageFileCreateBatch; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageIdCreateBatch; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImagePerformance; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImagePrediction; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageRegionCreateBatch; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageRegionCreateEntry; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageRegionCreateSummary; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageRegionProposal; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageTagCreateBatch; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageTagCreateEntry; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageTagCreateSummary; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageUrl; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.ImageUrlCreateBatch; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Iteration; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.IterationPerformance; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.PredictionQueryResult; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.PredictionQueryToken; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Project; +import com.microsoft.azure.cognitiveservices.vision.customvision.training.models.Tag; +import com.microsoft.rest.CollectionFormat; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.UUID; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Multipart; +import retrofit2.http.Part; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Trainings. + */ +public class TrainingsImpl implements Trainings { + /** The Retrofit service to perform REST calls. */ + private TrainingsService service; + /** The service client containing this operation class. */ + private TrainingApiImpl client; + + /** + * Initializes an instance of TrainingsImpl. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public TrainingsImpl(Retrofit retrofit, TrainingApiImpl client) { + this.service = retrofit.create(TrainingsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Trainings to be + * used by Retrofit to perform actually REST calls. + */ + interface TrainingsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.vision.customvision.training.Trainings createTag" }) + @POST("projects/{projectId}/tags") + Observable> createTag(@Path("projectId") UUID projectId, @Query("name") String name, @Query("description") String description, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getTags" }) + @GET("projects/{projectId}/tags") + Observable> getTags(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings updateTag" }) + @PATCH("projects/{projectId}/tags/{tagId}") + Observable> updateTag(@Path("projectId") UUID projectId, @Path("tagId") UUID tagId, @Body Tag updatedTag, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings deleteTag" }) + @HTTP(path = "projects/{projectId}/tags/{tagId}", method = "DELETE", hasBody = true) + Observable> deleteTag(@Path("projectId") UUID projectId, @Path("tagId") UUID tagId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getTag" }) + @GET("projects/{projectId}/tags/{tagId}") + Observable> getTag(@Path("projectId") UUID projectId, @Path("tagId") UUID tagId, @Query("iterationId") UUID iterationId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings exportIteration" }) + @POST("projects/{projectId}/iterations/{iterationId}/export") + Observable> exportIteration(@Path("projectId") UUID projectId, @Path("iterationId") UUID iterationId, @Query("platform") String platform, @Query("flavor") String flavor, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getExports" }) + @GET("projects/{projectId}/iterations/{iterationId}/export") + Observable> getExports(@Path("projectId") UUID projectId, @Path("iterationId") UUID iterationId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getImagePerformanceCount" }) + @GET("projects/{projectId}/iterations/{iterationId}/performance/images/count") + Observable> getImagePerformanceCount(@Path("projectId") UUID projectId, @Path("iterationId") UUID iterationId, @Query("tagIds") String tagIds, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getImagePerformances" }) + @GET("projects/{projectId}/iterations/{iterationId}/performance/images") + Observable> getImagePerformances(@Path("projectId") UUID projectId, @Path("iterationId") UUID iterationId, @Query("tagIds") String tagIds, @Query("orderBy") String orderBy, @Query("take") Integer take, @Query("skip") Integer skip, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getIterationPerformance" }) + @GET("projects/{projectId}/iterations/{iterationId}/performance") + Observable> getIterationPerformance(@Path("projectId") UUID projectId, @Path("iterationId") UUID iterationId, @Query("threshold") Double threshold, @Query("overlapThreshold") Double overlapThreshold, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings updateIteration" }) + @PATCH("projects/{projectId}/iterations/{iterationId}") + Observable> updateIteration(@Path("projectId") UUID projectId, @Path("iterationId") UUID iterationId, @Body Iteration updatedIteration, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings deleteIteration" }) + @HTTP(path = "projects/{projectId}/iterations/{iterationId}", method = "DELETE", hasBody = true) + Observable> deleteIteration(@Path("projectId") UUID projectId, @Path("iterationId") UUID iterationId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getIteration" }) + @GET("projects/{projectId}/iterations/{iterationId}") + Observable> getIteration(@Path("projectId") UUID projectId, @Path("iterationId") UUID iterationId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getIterations" }) + @GET("projects/{projectId}/iterations") + Observable> getIterations(@Path("projectId") UUID projectId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings updateProject" }) + @PATCH("projects/{projectId}") + Observable> updateProject(@Path("projectId") UUID projectId, @Body Project updatedProject, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings deleteProject" }) + @HTTP(path = "projects/{projectId}", method = "DELETE", hasBody = true) + Observable> deleteProject(@Path("projectId") UUID projectId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getProject" }) + @GET("projects/{projectId}") + Observable> getProject(@Path("projectId") UUID projectId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings createProject" }) + @POST("projects") + Observable> createProject(@Query("name") String name, @Query("description") String description, @Query("domainId") UUID domainId, @Query("classificationType") String classificationType, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getProjects" }) + @GET("projects") + Observable> getProjects(@Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings trainProject" }) + @POST("projects/{projectId}/train") + Observable> trainProject(@Path("projectId") UUID projectId, @Header("Training-Key") String apiKey, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Multipart + @POST("projects/{projectId}/quicktest/image") + Observable> quickTestImage(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Part("imageData") RequestBody imageData, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings quickTestImageUrl" }) + @POST("projects/{projectId}/quicktest/url") + Observable> quickTestImageUrl(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Header("Training-Key") String apiKey, @Header("accept-language") String acceptLanguage, @Body ImageUrl imageUrl, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.vision.customvision.training.Trainings queryPredictions" }) + @POST("projects/{projectId}/predictions/query") + Observable> queryPredictions(@Path("projectId") UUID projectId, @Body PredictionQueryToken query, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings deletePrediction" }) + @HTTP(path = "projects/{projectId}/predictions", method = "DELETE", hasBody = true) + Observable> deletePrediction(@Path("projectId") UUID projectId, @Query("ids") String ids, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getImageRegionProposals" }) + @POST("{projectId}/images/{imageId}/regionproposals") + Observable> getImageRegionProposals(@Path("projectId") UUID projectId, @Path("imageId") UUID imageId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings deleteImageRegions" }) + @HTTP(path = "projects/{projectId}/images/regions", method = "DELETE", hasBody = true) + Observable> deleteImageRegions(@Path("projectId") UUID projectId, @Query("regionIds") String regionIds, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings createImageRegions" }) + @POST("projects/{projectId}/images/regions") + Observable> createImageRegions(@Path("projectId") UUID projectId, @Header("Training-Key") String apiKey, @Header("accept-language") String acceptLanguage, @Body ImageRegionCreateBatch batch, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.vision.customvision.training.Trainings deleteImageTags" }) + @HTTP(path = "projects/{projectId}/images/tags", method = "DELETE", hasBody = true) + Observable> deleteImageTags(@Path("projectId") UUID projectId, @Query("imageIds") String imageIds, @Query("tagIds") String tagIds, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings createImageTags" }) + @POST("projects/{projectId}/images/tags") + Observable> createImageTags(@Path("projectId") UUID projectId, @Header("Training-Key") String apiKey, @Header("accept-language") String acceptLanguage, @Body ImageTagCreateBatch batch, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.vision.customvision.training.Trainings createImagesFromPredictions" }) + @POST("projects/{projectId}/images/predictions") + Observable> createImagesFromPredictions(@Path("projectId") UUID projectId, @Body ImageIdCreateBatch batch, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings createImagesFromUrls" }) + @POST("projects/{projectId}/images/urls") + Observable> createImagesFromUrls(@Path("projectId") UUID projectId, @Body ImageUrlCreateBatch batch, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings createImagesFromFiles" }) + @POST("projects/{projectId}/images/files") + Observable> createImagesFromFiles(@Path("projectId") UUID projectId, @Body ImageFileCreateBatch batch, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings deleteImages" }) + @HTTP(path = "projects/{projectId}/images", method = "DELETE", hasBody = true) + Observable> deleteImages(@Path("projectId") UUID projectId, @Query("imageIds") String imageIds, @Header("Training-Key") String apiKey, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Multipart + @POST("projects/{projectId}/images") + Observable> createImagesFromData(@Path("projectId") UUID projectId, @Query("tagIds") String tagIds, @Part("imageData") RequestBody imageData, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getImagesByIds" }) + @GET("projects/{projectId}/images/id") + Observable> getImagesByIds(@Path("projectId") UUID projectId, @Query("imageIds") String imageIds, @Query("iterationId") UUID iterationId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getUntaggedImageCount" }) + @GET("projects/{projectId}/images/untagged/count") + Observable> getUntaggedImageCount(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getTaggedImageCount" }) + @GET("projects/{projectId}/images/tagged/count") + Observable> getTaggedImageCount(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Query("tagIds") String tagIds, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getUntaggedImages" }) + @GET("projects/{projectId}/images/untagged") + Observable> getUntaggedImages(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Query("orderBy") String orderBy, @Query("take") Integer take, @Query("skip") Integer skip, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getTaggedImages" }) + @GET("projects/{projectId}/images/tagged") + Observable> getTaggedImages(@Path("projectId") UUID projectId, @Query("iterationId") UUID iterationId, @Query("tagIds") String tagIds, @Query("orderBy") String orderBy, @Query("take") Integer take, @Query("skip") Integer skip, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getDomain" }) + @GET("domains/{domainId}") + Observable> getDomain(@Path("domainId") UUID domainId, @Header("Training-Key") String apiKey, @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.vision.customvision.training.Trainings getDomains" }) + @GET("domains") + Observable> getDomains(@Header("Training-Key") String apiKey, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + + /** + * Create a tag for the project. + * + * @param projectId The project id + * @param name The tag name + * @param createTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Tag object if successful. + */ + public Tag createTag(UUID projectId, String name, CreateTagOptionalParameter createTagOptionalParameter) { + return createTagWithServiceResponseAsync(projectId, name, createTagOptionalParameter).toBlocking().single().body(); + } + + /** + * Create a tag for the project. + * + * @param projectId The project id + * @param name The tag name + * @param createTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createTagAsync(UUID projectId, String name, CreateTagOptionalParameter createTagOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createTagWithServiceResponseAsync(projectId, name, createTagOptionalParameter), serviceCallback); + } + + /** + * Create a tag for the project. + * + * @param projectId The project id + * @param name The tag name + * @param createTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + public Observable createTagAsync(UUID projectId, String name, CreateTagOptionalParameter createTagOptionalParameter) { + return createTagWithServiceResponseAsync(projectId, name, createTagOptionalParameter).map(new Func1, Tag>() { + @Override + public Tag call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Create a tag for the project. + * + * @param projectId The project id + * @param name The tag name + * @param createTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + public Observable> createTagWithServiceResponseAsync(UUID projectId, String name, CreateTagOptionalParameter createTagOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final String description = createTagOptionalParameter != null ? createTagOptionalParameter.description() : null; + + return createTagWithServiceResponseAsync(projectId, name, description); + } + + /** + * Create a tag for the project. + * + * @param projectId The project id + * @param name The tag name + * @param description Optional description for the tag + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + public Observable> createTagWithServiceResponseAsync(UUID projectId, String name, String description) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.createTag(projectId, name, description, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createTagDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createTagDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsCreateTagParameters createTag() { + return new TrainingsCreateTagParameters(this); + } + + /** + * Internal class implementing TrainingsCreateTagDefinition. + */ + class TrainingsCreateTagParameters implements TrainingsCreateTagDefinition { + private TrainingsImpl parent; + private UUID projectId; + private String name; + private String description; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsCreateTagParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsCreateTagParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsCreateTagParameters withName(String name) { + this.name = name; + return this; + } + + @Override + public TrainingsCreateTagParameters withDescription(String description) { + this.description = description; + return this; + } + + @Override + public Tag execute() { + return createTagWithServiceResponseAsync(projectId, name, description).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return createTagWithServiceResponseAsync(projectId, name, description).map(new Func1, Tag>() { + @Override + public Tag call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Get the tags for a given project and iteration. + * + * @param projectId The project id + * @param getTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Tag> object if successful. + */ + public List getTags(UUID projectId, GetTagsOptionalParameter getTagsOptionalParameter) { + return getTagsWithServiceResponseAsync(projectId, getTagsOptionalParameter).toBlocking().single().body(); + } + + /** + * Get the tags for a given project and iteration. + * + * @param projectId The project id + * @param getTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getTagsAsync(UUID projectId, GetTagsOptionalParameter getTagsOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getTagsWithServiceResponseAsync(projectId, getTagsOptionalParameter), serviceCallback); + } + + /** + * Get the tags for a given project and iteration. + * + * @param projectId The project id + * @param getTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Tag> object + */ + public Observable> getTagsAsync(UUID projectId, GetTagsOptionalParameter getTagsOptionalParameter) { + return getTagsWithServiceResponseAsync(projectId, getTagsOptionalParameter).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the tags for a given project and iteration. + * + * @param projectId The project id + * @param getTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Tag> object + */ + public Observable>> getTagsWithServiceResponseAsync(UUID projectId, GetTagsOptionalParameter getTagsOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = getTagsOptionalParameter != null ? getTagsOptionalParameter.iterationId() : null; + + return getTagsWithServiceResponseAsync(projectId, iterationId); + } + + /** + * Get the tags for a given project and iteration. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Tag> object + */ + public Observable>> getTagsWithServiceResponseAsync(UUID projectId, UUID iterationId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getTags(projectId, iterationId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getTagsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetTagsParameters getTags() { + return new TrainingsGetTagsParameters(this); + } + + /** + * Internal class implementing TrainingsGetTagsDefinition. + */ + class TrainingsGetTagsParameters implements TrainingsGetTagsDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetTagsParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetTagsParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetTagsParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public List execute() { + return getTagsWithServiceResponseAsync(projectId, iterationId).toBlocking().single().body(); + } + + @Override + public Observable> executeAsync() { + return getTagsWithServiceResponseAsync(projectId, iterationId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + } + + /** + * Update a tag. + * + * @param projectId The project id + * @param tagId The id of the target tag + * @param updatedTag The updated tag model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Tag object if successful. + */ + public Tag updateTag(UUID projectId, UUID tagId, Tag updatedTag) { + return updateTagWithServiceResponseAsync(projectId, tagId, updatedTag).toBlocking().single().body(); + } + + /** + * Update a tag. + * + * @param projectId The project id + * @param tagId The id of the target tag + * @param updatedTag The updated tag model + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagAsync(UUID projectId, UUID tagId, Tag updatedTag, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagWithServiceResponseAsync(projectId, tagId, updatedTag), serviceCallback); + } + + /** + * Update a tag. + * + * @param projectId The project id + * @param tagId The id of the target tag + * @param updatedTag The updated tag model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + public Observable updateTagAsync(UUID projectId, UUID tagId, Tag updatedTag) { + return updateTagWithServiceResponseAsync(projectId, tagId, updatedTag).map(new Func1, Tag>() { + @Override + public Tag call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Update a tag. + * + * @param projectId The project id + * @param tagId The id of the target tag + * @param updatedTag The updated tag model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + public Observable> updateTagWithServiceResponseAsync(UUID projectId, UUID tagId, Tag updatedTag) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (tagId == null) { + throw new IllegalArgumentException("Parameter tagId is required and cannot be null."); + } + if (updatedTag == null) { + throw new IllegalArgumentException("Parameter updatedTag is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(updatedTag); + return service.updateTag(projectId, tagId, updatedTag, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateTagDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateTagDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Delete a tag from the project. + * + * @param projectId The project id + * @param tagId Id of the tag to be deleted + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteTag(UUID projectId, UUID tagId) { + deleteTagWithServiceResponseAsync(projectId, tagId).toBlocking().single().body(); + } + + /** + * Delete a tag from the project. + * + * @param projectId The project id + * @param tagId Id of the tag to be deleted + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteTagAsync(UUID projectId, UUID tagId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteTagWithServiceResponseAsync(projectId, tagId), serviceCallback); + } + + /** + * Delete a tag from the project. + * + * @param projectId The project id + * @param tagId Id of the tag to be deleted + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteTagAsync(UUID projectId, UUID tagId) { + return deleteTagWithServiceResponseAsync(projectId, tagId).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete a tag from the project. + * + * @param projectId The project id + * @param tagId Id of the tag to be deleted + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteTagWithServiceResponseAsync(UUID projectId, UUID tagId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (tagId == null) { + throw new IllegalArgumentException("Parameter tagId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.deleteTag(projectId, tagId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteTagDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteTagDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + + /** + * Get information about a specific tag. + * + * @param projectId The project this tag belongs to + * @param tagId The tag id + * @param getTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Tag object if successful. + */ + public Tag getTag(UUID projectId, UUID tagId, GetTagOptionalParameter getTagOptionalParameter) { + return getTagWithServiceResponseAsync(projectId, tagId, getTagOptionalParameter).toBlocking().single().body(); + } + + /** + * Get information about a specific tag. + * + * @param projectId The project this tag belongs to + * @param tagId The tag id + * @param getTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getTagAsync(UUID projectId, UUID tagId, GetTagOptionalParameter getTagOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getTagWithServiceResponseAsync(projectId, tagId, getTagOptionalParameter), serviceCallback); + } + + /** + * Get information about a specific tag. + * + * @param projectId The project this tag belongs to + * @param tagId The tag id + * @param getTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + public Observable getTagAsync(UUID projectId, UUID tagId, GetTagOptionalParameter getTagOptionalParameter) { + return getTagWithServiceResponseAsync(projectId, tagId, getTagOptionalParameter).map(new Func1, Tag>() { + @Override + public Tag call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get information about a specific tag. + * + * @param projectId The project this tag belongs to + * @param tagId The tag id + * @param getTagOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + public Observable> getTagWithServiceResponseAsync(UUID projectId, UUID tagId, GetTagOptionalParameter getTagOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (tagId == null) { + throw new IllegalArgumentException("Parameter tagId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = getTagOptionalParameter != null ? getTagOptionalParameter.iterationId() : null; + + return getTagWithServiceResponseAsync(projectId, tagId, iterationId); + } + + /** + * Get information about a specific tag. + * + * @param projectId The project this tag belongs to + * @param tagId The tag id + * @param iterationId The iteration to retrieve this tag from. Optional, defaults to current training set + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Tag object + */ + public Observable> getTagWithServiceResponseAsync(UUID projectId, UUID tagId, UUID iterationId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (tagId == null) { + throw new IllegalArgumentException("Parameter tagId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getTag(projectId, tagId, iterationId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getTagDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getTagDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetTagParameters getTag() { + return new TrainingsGetTagParameters(this); + } + + /** + * Internal class implementing TrainingsGetTagDefinition. + */ + class TrainingsGetTagParameters implements TrainingsGetTagDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID tagId; + private UUID iterationId; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetTagParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetTagParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetTagParameters withTagId(UUID tagId) { + this.tagId = tagId; + return this; + } + + @Override + public TrainingsGetTagParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public Tag execute() { + return getTagWithServiceResponseAsync(projectId, tagId, iterationId).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return getTagWithServiceResponseAsync(projectId, tagId, iterationId).map(new Func1, Tag>() { + @Override + public Tag call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Export a trained iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @param platform The target platform (coreml or tensorflow). Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX' + * @param exportIterationOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Export object if successful. + */ + public Export exportIteration(UUID projectId, UUID iterationId, String platform, ExportIterationOptionalParameter exportIterationOptionalParameter) { + return exportIterationWithServiceResponseAsync(projectId, iterationId, platform, exportIterationOptionalParameter).toBlocking().single().body(); + } + + /** + * Export a trained iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @param platform The target platform (coreml or tensorflow). Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX' + * @param exportIterationOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture exportIterationAsync(UUID projectId, UUID iterationId, String platform, ExportIterationOptionalParameter exportIterationOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(exportIterationWithServiceResponseAsync(projectId, iterationId, platform, exportIterationOptionalParameter), serviceCallback); + } + + /** + * Export a trained iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @param platform The target platform (coreml or tensorflow). Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX' + * @param exportIterationOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Export object + */ + public Observable exportIterationAsync(UUID projectId, UUID iterationId, String platform, ExportIterationOptionalParameter exportIterationOptionalParameter) { + return exportIterationWithServiceResponseAsync(projectId, iterationId, platform, exportIterationOptionalParameter).map(new Func1, Export>() { + @Override + public Export call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Export a trained iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @param platform The target platform (coreml or tensorflow). Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX' + * @param exportIterationOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Export object + */ + public Observable> exportIterationWithServiceResponseAsync(UUID projectId, UUID iterationId, String platform, ExportIterationOptionalParameter exportIterationOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (platform == null) { + throw new IllegalArgumentException("Parameter platform is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final String flavor = exportIterationOptionalParameter != null ? exportIterationOptionalParameter.flavor() : null; + + return exportIterationWithServiceResponseAsync(projectId, iterationId, platform, flavor); + } + + /** + * Export a trained iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @param platform The target platform (coreml or tensorflow). Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX' + * @param flavor The flavor of the target platform (Windows, Linux, ARM, or GPU). Possible values include: 'Linux', 'Windows' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Export object + */ + public Observable> exportIterationWithServiceResponseAsync(UUID projectId, UUID iterationId, String platform, String flavor) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (platform == null) { + throw new IllegalArgumentException("Parameter platform is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.exportIteration(projectId, iterationId, platform, flavor, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = exportIterationDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse exportIterationDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsExportIterationParameters exportIteration() { + return new TrainingsExportIterationParameters(this); + } + + /** + * Internal class implementing TrainingsExportIterationDefinition. + */ + class TrainingsExportIterationParameters implements TrainingsExportIterationDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + private String platform; + private String flavor; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsExportIterationParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsExportIterationParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsExportIterationParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public TrainingsExportIterationParameters withPlatform(String platform) { + this.platform = platform; + return this; + } + + @Override + public TrainingsExportIterationParameters withFlavor(String flavor) { + this.flavor = flavor; + return this; + } + + @Override + public Export execute() { + return exportIterationWithServiceResponseAsync(projectId, iterationId, platform, flavor).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return exportIterationWithServiceResponseAsync(projectId, iterationId, platform, flavor).map(new Func1, Export>() { + @Override + public Export call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + /** + * Get the list of exports for a specific iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Export> object if successful. + */ + public List getExports(UUID projectId, UUID iterationId) { + return getExportsWithServiceResponseAsync(projectId, iterationId).toBlocking().single().body(); + } + + /** + * Get the list of exports for a specific iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getExportsAsync(UUID projectId, UUID iterationId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getExportsWithServiceResponseAsync(projectId, iterationId), serviceCallback); + } + + /** + * Get the list of exports for a specific iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Export> object + */ + public Observable> getExportsAsync(UUID projectId, UUID iterationId) { + return getExportsWithServiceResponseAsync(projectId, iterationId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the list of exports for a specific iteration. + * + * @param projectId The project id + * @param iterationId The iteration id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Export> object + */ + public Observable>> getExportsWithServiceResponseAsync(UUID projectId, UUID iterationId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getExports(projectId, iterationId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getExportsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getExportsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + + /** + * Gets the number of images tagged with the provided {tagIds} that have prediction results from + training for the provided iteration {iterationId}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param getImagePerformanceCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the int object if successful. + */ + public int getImagePerformanceCount(UUID projectId, UUID iterationId, GetImagePerformanceCountOptionalParameter getImagePerformanceCountOptionalParameter) { + return getImagePerformanceCountWithServiceResponseAsync(projectId, iterationId, getImagePerformanceCountOptionalParameter).toBlocking().single().body(); + } + + /** + * Gets the number of images tagged with the provided {tagIds} that have prediction results from + training for the provided iteration {iterationId}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param getImagePerformanceCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getImagePerformanceCountAsync(UUID projectId, UUID iterationId, GetImagePerformanceCountOptionalParameter getImagePerformanceCountOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getImagePerformanceCountWithServiceResponseAsync(projectId, iterationId, getImagePerformanceCountOptionalParameter), serviceCallback); + } + + /** + * Gets the number of images tagged with the provided {tagIds} that have prediction results from + training for the provided iteration {iterationId}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param getImagePerformanceCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable getImagePerformanceCountAsync(UUID projectId, UUID iterationId, GetImagePerformanceCountOptionalParameter getImagePerformanceCountOptionalParameter) { + return getImagePerformanceCountWithServiceResponseAsync(projectId, iterationId, getImagePerformanceCountOptionalParameter).map(new Func1, Integer>() { + @Override + public Integer call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the number of images tagged with the provided {tagIds} that have prediction results from + training for the provided iteration {iterationId}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param getImagePerformanceCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable> getImagePerformanceCountWithServiceResponseAsync(UUID projectId, UUID iterationId, GetImagePerformanceCountOptionalParameter getImagePerformanceCountOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final List tagIds = getImagePerformanceCountOptionalParameter != null ? getImagePerformanceCountOptionalParameter.tagIds() : null; + + return getImagePerformanceCountWithServiceResponseAsync(projectId, iterationId, tagIds); + } + + /** + * Gets the number of images tagged with the provided {tagIds} that have prediction results from + training for the provided iteration {iterationId}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param tagIds A list of tags ids to filter the images to count. Defaults to all tags when null. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable> getImagePerformanceCountWithServiceResponseAsync(UUID projectId, UUID iterationId, List tagIds) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(tagIds); + String tagIdsConverted = this.client.serializerAdapter().serializeList(tagIds, CollectionFormat.CSV); + return service.getImagePerformanceCount(projectId, iterationId, tagIdsConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getImagePerformanceCountDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getImagePerformanceCountDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetImagePerformanceCountParameters getImagePerformanceCount() { + return new TrainingsGetImagePerformanceCountParameters(this); + } + + /** + * Internal class implementing TrainingsGetImagePerformanceCountDefinition. + */ + class TrainingsGetImagePerformanceCountParameters implements TrainingsGetImagePerformanceCountDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + private List tagIds; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetImagePerformanceCountParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetImagePerformanceCountParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetImagePerformanceCountParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public TrainingsGetImagePerformanceCountParameters withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + @Override + public int execute() { + return getImagePerformanceCountWithServiceResponseAsync(projectId, iterationId, tagIds).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return getImagePerformanceCountWithServiceResponseAsync(projectId, iterationId, tagIds).map(new Func1, Integer>() { + @Override + public Integer call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Get image with its prediction for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param getImagePerformancesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<ImagePerformance> object if successful. + */ + public List getImagePerformances(UUID projectId, UUID iterationId, GetImagePerformancesOptionalParameter getImagePerformancesOptionalParameter) { + return getImagePerformancesWithServiceResponseAsync(projectId, iterationId, getImagePerformancesOptionalParameter).toBlocking().single().body(); + } + + /** + * Get image with its prediction for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param getImagePerformancesOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getImagePerformancesAsync(UUID projectId, UUID iterationId, GetImagePerformancesOptionalParameter getImagePerformancesOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getImagePerformancesWithServiceResponseAsync(projectId, iterationId, getImagePerformancesOptionalParameter), serviceCallback); + } + + /** + * Get image with its prediction for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param getImagePerformancesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ImagePerformance> object + */ + public Observable> getImagePerformancesAsync(UUID projectId, UUID iterationId, GetImagePerformancesOptionalParameter getImagePerformancesOptionalParameter) { + return getImagePerformancesWithServiceResponseAsync(projectId, iterationId, getImagePerformancesOptionalParameter).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get image with its prediction for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param getImagePerformancesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ImagePerformance> object + */ + public Observable>> getImagePerformancesWithServiceResponseAsync(UUID projectId, UUID iterationId, GetImagePerformancesOptionalParameter getImagePerformancesOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final List tagIds = getImagePerformancesOptionalParameter != null ? getImagePerformancesOptionalParameter.tagIds() : null; + final String orderBy = getImagePerformancesOptionalParameter != null ? getImagePerformancesOptionalParameter.orderBy() : null; + final Integer take = getImagePerformancesOptionalParameter != null ? getImagePerformancesOptionalParameter.take() : null; + final Integer skip = getImagePerformancesOptionalParameter != null ? getImagePerformancesOptionalParameter.skip() : null; + + return getImagePerformancesWithServiceResponseAsync(projectId, iterationId, tagIds, orderBy, take, skip); + } + + /** + * Get image with its prediction for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param tagIds A list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20 + * @param orderBy The ordering. Defaults to newest. Possible values include: 'Newest', 'Oldest' + * @param take Maximum number of images to return. Defaults to 50, limited to 256 + * @param skip Number of images to skip before beginning the image batch. Defaults to 0 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ImagePerformance> object + */ + public Observable>> getImagePerformancesWithServiceResponseAsync(UUID projectId, UUID iterationId, List tagIds, String orderBy, Integer take, Integer skip) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(tagIds); + String tagIdsConverted = this.client.serializerAdapter().serializeList(tagIds, CollectionFormat.CSV); + return service.getImagePerformances(projectId, iterationId, tagIdsConverted, orderBy, take, skip, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getImagePerformancesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getImagePerformancesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetImagePerformancesParameters getImagePerformances() { + return new TrainingsGetImagePerformancesParameters(this); + } + + /** + * Internal class implementing TrainingsGetImagePerformancesDefinition. + */ + class TrainingsGetImagePerformancesParameters implements TrainingsGetImagePerformancesDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + private List tagIds; + private String orderBy; + private Integer take; + private Integer skip; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetImagePerformancesParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetImagePerformancesParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetImagePerformancesParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public TrainingsGetImagePerformancesParameters withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + @Override + public TrainingsGetImagePerformancesParameters withOrderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + @Override + public TrainingsGetImagePerformancesParameters withTake(Integer take) { + this.take = take; + return this; + } + + @Override + public TrainingsGetImagePerformancesParameters withSkip(Integer skip) { + this.skip = skip; + return this; + } + + @Override + public List execute() { + return getImagePerformancesWithServiceResponseAsync(projectId, iterationId, tagIds, orderBy, take, skip).toBlocking().single().body(); + } + + @Override + public Observable> executeAsync() { + return getImagePerformancesWithServiceResponseAsync(projectId, iterationId, tagIds, orderBy, take, skip).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + } + + + /** + * Get detailed performance information about an iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @param getIterationPerformanceOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IterationPerformance object if successful. + */ + public IterationPerformance getIterationPerformance(UUID projectId, UUID iterationId, GetIterationPerformanceOptionalParameter getIterationPerformanceOptionalParameter) { + return getIterationPerformanceWithServiceResponseAsync(projectId, iterationId, getIterationPerformanceOptionalParameter).toBlocking().single().body(); + } + + /** + * Get detailed performance information about an iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @param getIterationPerformanceOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getIterationPerformanceAsync(UUID projectId, UUID iterationId, GetIterationPerformanceOptionalParameter getIterationPerformanceOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getIterationPerformanceWithServiceResponseAsync(projectId, iterationId, getIterationPerformanceOptionalParameter), serviceCallback); + } + + /** + * Get detailed performance information about an iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @param getIterationPerformanceOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IterationPerformance object + */ + public Observable getIterationPerformanceAsync(UUID projectId, UUID iterationId, GetIterationPerformanceOptionalParameter getIterationPerformanceOptionalParameter) { + return getIterationPerformanceWithServiceResponseAsync(projectId, iterationId, getIterationPerformanceOptionalParameter).map(new Func1, IterationPerformance>() { + @Override + public IterationPerformance call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get detailed performance information about an iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @param getIterationPerformanceOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IterationPerformance object + */ + public Observable> getIterationPerformanceWithServiceResponseAsync(UUID projectId, UUID iterationId, GetIterationPerformanceOptionalParameter getIterationPerformanceOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final Double threshold = getIterationPerformanceOptionalParameter != null ? getIterationPerformanceOptionalParameter.threshold() : null; + final Double overlapThreshold = getIterationPerformanceOptionalParameter != null ? getIterationPerformanceOptionalParameter.overlapThreshold() : null; + + return getIterationPerformanceWithServiceResponseAsync(projectId, iterationId, threshold, overlapThreshold); + } + + /** + * Get detailed performance information about an iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @param threshold The threshold used to determine true predictions + * @param overlapThreshold If applicable, the bounding box overlap threshold used to determine true predictions + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IterationPerformance object + */ + public Observable> getIterationPerformanceWithServiceResponseAsync(UUID projectId, UUID iterationId, Double threshold, Double overlapThreshold) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getIterationPerformance(projectId, iterationId, threshold, overlapThreshold, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getIterationPerformanceDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getIterationPerformanceDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetIterationPerformanceParameters getIterationPerformance() { + return new TrainingsGetIterationPerformanceParameters(this); + } + + /** + * Internal class implementing TrainingsGetIterationPerformanceDefinition. + */ + class TrainingsGetIterationPerformanceParameters implements TrainingsGetIterationPerformanceDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + private Double threshold; + private Double overlapThreshold; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetIterationPerformanceParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetIterationPerformanceParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetIterationPerformanceParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public TrainingsGetIterationPerformanceParameters withThreshold(Double threshold) { + this.threshold = threshold; + return this; + } + + @Override + public TrainingsGetIterationPerformanceParameters withOverlapThreshold(Double overlapThreshold) { + this.overlapThreshold = overlapThreshold; + return this; + } + + @Override + public IterationPerformance execute() { + return getIterationPerformanceWithServiceResponseAsync(projectId, iterationId, threshold, overlapThreshold).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return getIterationPerformanceWithServiceResponseAsync(projectId, iterationId, threshold, overlapThreshold).map(new Func1, IterationPerformance>() { + @Override + public IterationPerformance call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + /** + * Update a specific iteration. + * + * @param projectId Project id + * @param iterationId Iteration id + * @param updatedIteration The updated iteration model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Iteration object if successful. + */ + public Iteration updateIteration(UUID projectId, UUID iterationId, Iteration updatedIteration) { + return updateIterationWithServiceResponseAsync(projectId, iterationId, updatedIteration).toBlocking().single().body(); + } + + /** + * Update a specific iteration. + * + * @param projectId Project id + * @param iterationId Iteration id + * @param updatedIteration The updated iteration model + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateIterationAsync(UUID projectId, UUID iterationId, Iteration updatedIteration, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateIterationWithServiceResponseAsync(projectId, iterationId, updatedIteration), serviceCallback); + } + + /** + * Update a specific iteration. + * + * @param projectId Project id + * @param iterationId Iteration id + * @param updatedIteration The updated iteration model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + public Observable updateIterationAsync(UUID projectId, UUID iterationId, Iteration updatedIteration) { + return updateIterationWithServiceResponseAsync(projectId, iterationId, updatedIteration).map(new Func1, Iteration>() { + @Override + public Iteration call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Update a specific iteration. + * + * @param projectId Project id + * @param iterationId Iteration id + * @param updatedIteration The updated iteration model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + public Observable> updateIterationWithServiceResponseAsync(UUID projectId, UUID iterationId, Iteration updatedIteration) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (updatedIteration == null) { + throw new IllegalArgumentException("Parameter updatedIteration is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(updatedIteration); + return service.updateIteration(projectId, iterationId, updatedIteration, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateIterationDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateIterationDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Delete a specific iteration of a project. + * + * @param projectId The project id + * @param iterationId The iteration id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteIteration(UUID projectId, UUID iterationId) { + deleteIterationWithServiceResponseAsync(projectId, iterationId).toBlocking().single().body(); + } + + /** + * Delete a specific iteration of a project. + * + * @param projectId The project id + * @param iterationId The iteration id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteIterationAsync(UUID projectId, UUID iterationId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteIterationWithServiceResponseAsync(projectId, iterationId), serviceCallback); + } + + /** + * Delete a specific iteration of a project. + * + * @param projectId The project id + * @param iterationId The iteration id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteIterationAsync(UUID projectId, UUID iterationId) { + return deleteIterationWithServiceResponseAsync(projectId, iterationId).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete a specific iteration of a project. + * + * @param projectId The project id + * @param iterationId The iteration id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteIterationWithServiceResponseAsync(UUID projectId, UUID iterationId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.deleteIteration(projectId, iterationId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteIterationDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteIterationDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get a specific iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Iteration object if successful. + */ + public Iteration getIteration(UUID projectId, UUID iterationId) { + return getIterationWithServiceResponseAsync(projectId, iterationId).toBlocking().single().body(); + } + + /** + * Get a specific iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getIterationAsync(UUID projectId, UUID iterationId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getIterationWithServiceResponseAsync(projectId, iterationId), serviceCallback); + } + + /** + * Get a specific iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + public Observable getIterationAsync(UUID projectId, UUID iterationId) { + return getIterationWithServiceResponseAsync(projectId, iterationId).map(new Func1, Iteration>() { + @Override + public Iteration call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a specific iteration. + * + * @param projectId The id of the project the iteration belongs to + * @param iterationId The id of the iteration to get + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + public Observable> getIterationWithServiceResponseAsync(UUID projectId, UUID iterationId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (iterationId == null) { + throw new IllegalArgumentException("Parameter iterationId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getIteration(projectId, iterationId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getIterationDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getIterationDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get iterations for the project. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Iteration> object if successful. + */ + public List getIterations(UUID projectId) { + return getIterationsWithServiceResponseAsync(projectId).toBlocking().single().body(); + } + + /** + * Get iterations for the project. + * + * @param projectId The project id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getIterationsAsync(UUID projectId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getIterationsWithServiceResponseAsync(projectId), serviceCallback); + } + + /** + * Get iterations for the project. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Iteration> object + */ + public Observable> getIterationsAsync(UUID projectId) { + return getIterationsWithServiceResponseAsync(projectId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get iterations for the project. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Iteration> object + */ + public Observable>> getIterationsWithServiceResponseAsync(UUID projectId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getIterations(projectId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getIterationsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getIterationsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Update a specific project. + * + * @param projectId The id of the project to update + * @param updatedProject The updated project model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Project object if successful. + */ + public Project updateProject(UUID projectId, Project updatedProject) { + return updateProjectWithServiceResponseAsync(projectId, updatedProject).toBlocking().single().body(); + } + + /** + * Update a specific project. + * + * @param projectId The id of the project to update + * @param updatedProject The updated project model + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateProjectAsync(UUID projectId, Project updatedProject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateProjectWithServiceResponseAsync(projectId, updatedProject), serviceCallback); + } + + /** + * Update a specific project. + * + * @param projectId The id of the project to update + * @param updatedProject The updated project model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + public Observable updateProjectAsync(UUID projectId, Project updatedProject) { + return updateProjectWithServiceResponseAsync(projectId, updatedProject).map(new Func1, Project>() { + @Override + public Project call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Update a specific project. + * + * @param projectId The id of the project to update + * @param updatedProject The updated project model + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + public Observable> updateProjectWithServiceResponseAsync(UUID projectId, Project updatedProject) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (updatedProject == null) { + throw new IllegalArgumentException("Parameter updatedProject is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(updatedProject); + return service.updateProject(projectId, updatedProject, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateProjectDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateProjectDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Delete a specific project. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteProject(UUID projectId) { + deleteProjectWithServiceResponseAsync(projectId).toBlocking().single().body(); + } + + /** + * Delete a specific project. + * + * @param projectId The project id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteProjectAsync(UUID projectId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteProjectWithServiceResponseAsync(projectId), serviceCallback); + } + + /** + * Delete a specific project. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteProjectAsync(UUID projectId) { + return deleteProjectWithServiceResponseAsync(projectId).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete a specific project. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteProjectWithServiceResponseAsync(UUID projectId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.deleteProject(projectId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteProjectDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteProjectDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get a specific project. + * + * @param projectId The id of the project to get + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Project object if successful. + */ + public Project getProject(UUID projectId) { + return getProjectWithServiceResponseAsync(projectId).toBlocking().single().body(); + } + + /** + * Get a specific project. + * + * @param projectId The id of the project to get + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getProjectAsync(UUID projectId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getProjectWithServiceResponseAsync(projectId), serviceCallback); + } + + /** + * Get a specific project. + * + * @param projectId The id of the project to get + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + public Observable getProjectAsync(UUID projectId) { + return getProjectWithServiceResponseAsync(projectId).map(new Func1, Project>() { + @Override + public Project call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a specific project. + * + * @param projectId The id of the project to get + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + public Observable> getProjectWithServiceResponseAsync(UUID projectId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getProject(projectId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getProjectDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getProjectDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + + /** + * Create a project. + * + * @param name Name of the project + * @param createProjectOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Project object if successful. + */ + public Project createProject(String name, CreateProjectOptionalParameter createProjectOptionalParameter) { + return createProjectWithServiceResponseAsync(name, createProjectOptionalParameter).toBlocking().single().body(); + } + + /** + * Create a project. + * + * @param name Name of the project + * @param createProjectOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createProjectAsync(String name, CreateProjectOptionalParameter createProjectOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createProjectWithServiceResponseAsync(name, createProjectOptionalParameter), serviceCallback); + } + + /** + * Create a project. + * + * @param name Name of the project + * @param createProjectOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + public Observable createProjectAsync(String name, CreateProjectOptionalParameter createProjectOptionalParameter) { + return createProjectWithServiceResponseAsync(name, createProjectOptionalParameter).map(new Func1, Project>() { + @Override + public Project call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Create a project. + * + * @param name Name of the project + * @param createProjectOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + public Observable> createProjectWithServiceResponseAsync(String name, CreateProjectOptionalParameter createProjectOptionalParameter) { + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final String description = createProjectOptionalParameter != null ? createProjectOptionalParameter.description() : null; + final UUID domainId = createProjectOptionalParameter != null ? createProjectOptionalParameter.domainId() : null; + final String classificationType = createProjectOptionalParameter != null ? createProjectOptionalParameter.classificationType() : null; + + return createProjectWithServiceResponseAsync(name, description, domainId, classificationType); + } + + /** + * Create a project. + * + * @param name Name of the project + * @param description The description of the project + * @param domainId The id of the domain to use for this project. Defaults to General + * @param classificationType The type of classifier to create for this project. Possible values include: 'Multiclass', 'Multilabel' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Project object + */ + public Observable> createProjectWithServiceResponseAsync(String name, String description, UUID domainId, String classificationType) { + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.createProject(name, description, domainId, classificationType, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createProjectDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createProjectDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsCreateProjectParameters createProject() { + return new TrainingsCreateProjectParameters(this); + } + + /** + * Internal class implementing TrainingsCreateProjectDefinition. + */ + class TrainingsCreateProjectParameters implements TrainingsCreateProjectDefinition { + private TrainingsImpl parent; + private String name; + private String description; + private UUID domainId; + private String classificationType; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsCreateProjectParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsCreateProjectParameters withName(String name) { + this.name = name; + return this; + } + + @Override + public TrainingsCreateProjectParameters withDescription(String description) { + this.description = description; + return this; + } + + @Override + public TrainingsCreateProjectParameters withDomainId(UUID domainId) { + this.domainId = domainId; + return this; + } + + @Override + public TrainingsCreateProjectParameters withClassificationType(String classificationType) { + this.classificationType = classificationType; + return this; + } + + @Override + public Project execute() { + return createProjectWithServiceResponseAsync(name, description, domainId, classificationType).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return createProjectWithServiceResponseAsync(name, description, domainId, classificationType).map(new Func1, Project>() { + @Override + public Project call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + /** + * Get your projects. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Project> object if successful. + */ + public List getProjects() { + return getProjectsWithServiceResponseAsync().toBlocking().single().body(); + } + + /** + * Get your projects. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getProjectsAsync(final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getProjectsWithServiceResponseAsync(), serviceCallback); + } + + /** + * Get your projects. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Project> object + */ + public Observable> getProjectsAsync() { + return getProjectsWithServiceResponseAsync().map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get your projects. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Project> object + */ + public Observable>> getProjectsWithServiceResponseAsync() { + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getProjects(this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getProjectsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getProjectsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Queues project for training. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Iteration object if successful. + */ + public Iteration trainProject(UUID projectId) { + return trainProjectWithServiceResponseAsync(projectId).toBlocking().single().body(); + } + + /** + * Queues project for training. + * + * @param projectId The project id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture trainProjectAsync(UUID projectId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(trainProjectWithServiceResponseAsync(projectId), serviceCallback); + } + + /** + * Queues project for training. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + public Observable trainProjectAsync(UUID projectId) { + return trainProjectWithServiceResponseAsync(projectId).map(new Func1, Iteration>() { + @Override + public Iteration call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Queues project for training. + * + * @param projectId The project id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Iteration object + */ + public Observable> trainProjectWithServiceResponseAsync(UUID projectId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.trainProject(projectId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = trainProjectDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse trainProjectDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + + /** + * Quick test an image. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param quickTestImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + public ImagePrediction quickTestImage(UUID projectId, byte[] imageData, QuickTestImageOptionalParameter quickTestImageOptionalParameter) { + return quickTestImageWithServiceResponseAsync(projectId, imageData, quickTestImageOptionalParameter).toBlocking().single().body(); + } + + /** + * Quick test an image. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param quickTestImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture quickTestImageAsync(UUID projectId, byte[] imageData, QuickTestImageOptionalParameter quickTestImageOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(quickTestImageWithServiceResponseAsync(projectId, imageData, quickTestImageOptionalParameter), serviceCallback); + } + + /** + * Quick test an image. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param quickTestImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable quickTestImageAsync(UUID projectId, byte[] imageData, QuickTestImageOptionalParameter quickTestImageOptionalParameter) { + return quickTestImageWithServiceResponseAsync(projectId, imageData, quickTestImageOptionalParameter).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Quick test an image. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param quickTestImageOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> quickTestImageWithServiceResponseAsync(UUID projectId, byte[] imageData, QuickTestImageOptionalParameter quickTestImageOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageData == null) { + throw new IllegalArgumentException("Parameter imageData is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = quickTestImageOptionalParameter != null ? quickTestImageOptionalParameter.iterationId() : null; + + return quickTestImageWithServiceResponseAsync(projectId, imageData, iterationId); + } + + /** + * Quick test an image. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param iterationId Optional. Specifies the id of a particular iteration to evaluate against. + The default iteration for the project will be used when not specified. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> quickTestImageWithServiceResponseAsync(UUID projectId, byte[] imageData, UUID iterationId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageData == null) { + throw new IllegalArgumentException("Parameter imageData is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + RequestBody imageDataConverted = RequestBody.create(MediaType.parse("multipart/form-data"), imageData); + return service.quickTestImage(projectId, iterationId, imageDataConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = quickTestImageDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse quickTestImageDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsQuickTestImageParameters quickTestImage() { + return new TrainingsQuickTestImageParameters(this); + } + + /** + * Internal class implementing TrainingsQuickTestImageDefinition. + */ + class TrainingsQuickTestImageParameters implements TrainingsQuickTestImageDefinition { + private TrainingsImpl parent; + private UUID projectId; + private byte[] imageData; + private UUID iterationId; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsQuickTestImageParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsQuickTestImageParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsQuickTestImageParameters withImageData(byte[] imageData) { + this.imageData = imageData; + return this; + } + + @Override + public TrainingsQuickTestImageParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public ImagePrediction execute() { + return quickTestImageWithServiceResponseAsync(projectId, imageData, iterationId).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return quickTestImageWithServiceResponseAsync(projectId, imageData, iterationId).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Quick test an image url. + * + * @param projectId The project to evaluate against + * @param quickTestImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImagePrediction object if successful. + */ + public ImagePrediction quickTestImageUrl(UUID projectId, QuickTestImageUrlOptionalParameter quickTestImageUrlOptionalParameter) { + return quickTestImageUrlWithServiceResponseAsync(projectId, quickTestImageUrlOptionalParameter).toBlocking().single().body(); + } + + /** + * Quick test an image url. + * + * @param projectId The project to evaluate against + * @param quickTestImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture quickTestImageUrlAsync(UUID projectId, QuickTestImageUrlOptionalParameter quickTestImageUrlOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(quickTestImageUrlWithServiceResponseAsync(projectId, quickTestImageUrlOptionalParameter), serviceCallback); + } + + /** + * Quick test an image url. + * + * @param projectId The project to evaluate against + * @param quickTestImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable quickTestImageUrlAsync(UUID projectId, QuickTestImageUrlOptionalParameter quickTestImageUrlOptionalParameter) { + return quickTestImageUrlWithServiceResponseAsync(projectId, quickTestImageUrlOptionalParameter).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Quick test an image url. + * + * @param projectId The project to evaluate against + * @param quickTestImageUrlOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> quickTestImageUrlWithServiceResponseAsync(UUID projectId, QuickTestImageUrlOptionalParameter quickTestImageUrlOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = quickTestImageUrlOptionalParameter != null ? quickTestImageUrlOptionalParameter.iterationId() : null; + final String url = quickTestImageUrlOptionalParameter != null ? quickTestImageUrlOptionalParameter.url() : null; + + return quickTestImageUrlWithServiceResponseAsync(projectId, iterationId, url); + } + + /** + * Quick test an image url. + * + * @param projectId The project to evaluate against + * @param iterationId Optional. Specifies the id of a particular iteration to evaluate against. + The default iteration for the project will be used when not specified. + * @param url the String value + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImagePrediction object + */ + public Observable> quickTestImageUrlWithServiceResponseAsync(UUID projectId, UUID iterationId, String url) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + ImageUrl imageUrl = new ImageUrl(); + imageUrl.withUrl(url); + return service.quickTestImageUrl(projectId, iterationId, this.client.apiKey(), this.client.acceptLanguage(), imageUrl, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = quickTestImageUrlDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse quickTestImageUrlDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsQuickTestImageUrlParameters quickTestImageUrl() { + return new TrainingsQuickTestImageUrlParameters(this); + } + + /** + * Internal class implementing TrainingsQuickTestImageUrlDefinition. + */ + class TrainingsQuickTestImageUrlParameters implements TrainingsQuickTestImageUrlDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + private String url; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsQuickTestImageUrlParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsQuickTestImageUrlParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsQuickTestImageUrlParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public TrainingsQuickTestImageUrlParameters withUrl(String url) { + this.url = url; + return this; + } + + @Override + public ImagePrediction execute() { + return quickTestImageUrlWithServiceResponseAsync(projectId, iterationId, url).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return quickTestImageUrlWithServiceResponseAsync(projectId, iterationId, url).map(new Func1, ImagePrediction>() { + @Override + public ImagePrediction call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + /** + * Get images that were sent to your prediction endpoint. + * + * @param projectId The project id + * @param query Parameters used to query the predictions. Limited to combining 2 tags + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PredictionQueryResult object if successful. + */ + public PredictionQueryResult queryPredictions(UUID projectId, PredictionQueryToken query) { + return queryPredictionsWithServiceResponseAsync(projectId, query).toBlocking().single().body(); + } + + /** + * Get images that were sent to your prediction endpoint. + * + * @param projectId The project id + * @param query Parameters used to query the predictions. Limited to combining 2 tags + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture queryPredictionsAsync(UUID projectId, PredictionQueryToken query, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(queryPredictionsWithServiceResponseAsync(projectId, query), serviceCallback); + } + + /** + * Get images that were sent to your prediction endpoint. + * + * @param projectId The project id + * @param query Parameters used to query the predictions. Limited to combining 2 tags + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PredictionQueryResult object + */ + public Observable queryPredictionsAsync(UUID projectId, PredictionQueryToken query) { + return queryPredictionsWithServiceResponseAsync(projectId, query).map(new Func1, PredictionQueryResult>() { + @Override + public PredictionQueryResult call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get images that were sent to your prediction endpoint. + * + * @param projectId The project id + * @param query Parameters used to query the predictions. Limited to combining 2 tags + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PredictionQueryResult object + */ + public Observable> queryPredictionsWithServiceResponseAsync(UUID projectId, PredictionQueryToken query) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (query == null) { + throw new IllegalArgumentException("Parameter query is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(query); + return service.queryPredictions(projectId, query, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = queryPredictionsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse queryPredictionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Delete a set of predicted images and their associated prediction results. + * + * @param projectId The project id + * @param ids The prediction ids. Limited to 64 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deletePrediction(UUID projectId, List ids) { + deletePredictionWithServiceResponseAsync(projectId, ids).toBlocking().single().body(); + } + + /** + * Delete a set of predicted images and their associated prediction results. + * + * @param projectId The project id + * @param ids The prediction ids. Limited to 64 + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deletePredictionAsync(UUID projectId, List ids, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deletePredictionWithServiceResponseAsync(projectId, ids), serviceCallback); + } + + /** + * Delete a set of predicted images and their associated prediction results. + * + * @param projectId The project id + * @param ids The prediction ids. Limited to 64 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deletePredictionAsync(UUID projectId, List ids) { + return deletePredictionWithServiceResponseAsync(projectId, ids).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete a set of predicted images and their associated prediction results. + * + * @param projectId The project id + * @param ids The prediction ids. Limited to 64 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deletePredictionWithServiceResponseAsync(UUID projectId, List ids) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (ids == null) { + throw new IllegalArgumentException("Parameter ids is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(ids); + String idsConverted = this.client.serializerAdapter().serializeList(ids, CollectionFormat.CSV); + return service.deletePrediction(projectId, idsConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deletePredictionDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deletePredictionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get region proposals for an image. Returns empty array if no proposals are found. + * This API will get region proposals for an image along with confidences for the region. It returns an empty array if no proposals are found. + * + * @param projectId The project id + * @param imageId The image id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageRegionProposal object if successful. + */ + public ImageRegionProposal getImageRegionProposals(UUID projectId, UUID imageId) { + return getImageRegionProposalsWithServiceResponseAsync(projectId, imageId).toBlocking().single().body(); + } + + /** + * Get region proposals for an image. Returns empty array if no proposals are found. + * This API will get region proposals for an image along with confidences for the region. It returns an empty array if no proposals are found. + * + * @param projectId The project id + * @param imageId The image id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getImageRegionProposalsAsync(UUID projectId, UUID imageId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getImageRegionProposalsWithServiceResponseAsync(projectId, imageId), serviceCallback); + } + + /** + * Get region proposals for an image. Returns empty array if no proposals are found. + * This API will get region proposals for an image along with confidences for the region. It returns an empty array if no proposals are found. + * + * @param projectId The project id + * @param imageId The image id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageRegionProposal object + */ + public Observable getImageRegionProposalsAsync(UUID projectId, UUID imageId) { + return getImageRegionProposalsWithServiceResponseAsync(projectId, imageId).map(new Func1, ImageRegionProposal>() { + @Override + public ImageRegionProposal call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get region proposals for an image. Returns empty array if no proposals are found. + * This API will get region proposals for an image along with confidences for the region. It returns an empty array if no proposals are found. + * + * @param projectId The project id + * @param imageId The image id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageRegionProposal object + */ + public Observable> getImageRegionProposalsWithServiceResponseAsync(UUID projectId, UUID imageId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageId == null) { + throw new IllegalArgumentException("Parameter imageId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getImageRegionProposals(projectId, imageId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getImageRegionProposalsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getImageRegionProposalsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Delete a set of image regions. + * + * @param projectId The project id + * @param regionIds Regions to delete. Limited to 64 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteImageRegions(UUID projectId, List regionIds) { + deleteImageRegionsWithServiceResponseAsync(projectId, regionIds).toBlocking().single().body(); + } + + /** + * Delete a set of image regions. + * + * @param projectId The project id + * @param regionIds Regions to delete. Limited to 64 + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteImageRegionsAsync(UUID projectId, List regionIds, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteImageRegionsWithServiceResponseAsync(projectId, regionIds), serviceCallback); + } + + /** + * Delete a set of image regions. + * + * @param projectId The project id + * @param regionIds Regions to delete. Limited to 64 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteImageRegionsAsync(UUID projectId, List regionIds) { + return deleteImageRegionsWithServiceResponseAsync(projectId, regionIds).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete a set of image regions. + * + * @param projectId The project id + * @param regionIds Regions to delete. Limited to 64 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteImageRegionsWithServiceResponseAsync(UUID projectId, List regionIds) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (regionIds == null) { + throw new IllegalArgumentException("Parameter regionIds is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(regionIds); + String regionIdsConverted = this.client.serializerAdapter().serializeList(regionIds, CollectionFormat.CSV); + return service.deleteImageRegions(projectId, regionIdsConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteImageRegionsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteImageRegionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + + /** + * Create a set of image regions. + * This API accepts a batch of image regions, and optionally tags, to update existing images with region information. + There is a limit of 64 entries in the batch. + * + * @param projectId The project id + * @param createImageRegionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageRegionCreateSummary object if successful. + */ + public ImageRegionCreateSummary createImageRegions(UUID projectId, CreateImageRegionsOptionalParameter createImageRegionsOptionalParameter) { + return createImageRegionsWithServiceResponseAsync(projectId, createImageRegionsOptionalParameter).toBlocking().single().body(); + } + + /** + * Create a set of image regions. + * This API accepts a batch of image regions, and optionally tags, to update existing images with region information. + There is a limit of 64 entries in the batch. + * + * @param projectId The project id + * @param createImageRegionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createImageRegionsAsync(UUID projectId, CreateImageRegionsOptionalParameter createImageRegionsOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createImageRegionsWithServiceResponseAsync(projectId, createImageRegionsOptionalParameter), serviceCallback); + } + + /** + * Create a set of image regions. + * This API accepts a batch of image regions, and optionally tags, to update existing images with region information. + There is a limit of 64 entries in the batch. + * + * @param projectId The project id + * @param createImageRegionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageRegionCreateSummary object + */ + public Observable createImageRegionsAsync(UUID projectId, CreateImageRegionsOptionalParameter createImageRegionsOptionalParameter) { + return createImageRegionsWithServiceResponseAsync(projectId, createImageRegionsOptionalParameter).map(new Func1, ImageRegionCreateSummary>() { + @Override + public ImageRegionCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Create a set of image regions. + * This API accepts a batch of image regions, and optionally tags, to update existing images with region information. + There is a limit of 64 entries in the batch. + * + * @param projectId The project id + * @param createImageRegionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageRegionCreateSummary object + */ + public Observable> createImageRegionsWithServiceResponseAsync(UUID projectId, CreateImageRegionsOptionalParameter createImageRegionsOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final List regions = createImageRegionsOptionalParameter != null ? createImageRegionsOptionalParameter.regions() : null; + + return createImageRegionsWithServiceResponseAsync(projectId, regions); + } + + /** + * Create a set of image regions. + * This API accepts a batch of image regions, and optionally tags, to update existing images with region information. + There is a limit of 64 entries in the batch. + * + * @param projectId The project id + * @param regions the List<ImageRegionCreateEntry> value + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageRegionCreateSummary object + */ + public Observable> createImageRegionsWithServiceResponseAsync(UUID projectId, List regions) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(regions); + ImageRegionCreateBatch batch = new ImageRegionCreateBatch(); + batch.withRegions(regions); + return service.createImageRegions(projectId, this.client.apiKey(), this.client.acceptLanguage(), batch, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createImageRegionsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createImageRegionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsCreateImageRegionsParameters createImageRegions() { + return new TrainingsCreateImageRegionsParameters(this); + } + + /** + * Internal class implementing TrainingsCreateImageRegionsDefinition. + */ + class TrainingsCreateImageRegionsParameters implements TrainingsCreateImageRegionsDefinition { + private TrainingsImpl parent; + private UUID projectId; + private List regions; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsCreateImageRegionsParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsCreateImageRegionsParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsCreateImageRegionsParameters withRegions(List regions) { + this.regions = regions; + return this; + } + + @Override + public ImageRegionCreateSummary execute() { + return createImageRegionsWithServiceResponseAsync(projectId, regions).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return createImageRegionsWithServiceResponseAsync(projectId, regions).map(new Func1, ImageRegionCreateSummary>() { + @Override + public ImageRegionCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + /** + * Remove a set of tags from a set of images. + * + * @param projectId The project id + * @param imageIds Image ids. Limited to 64 images + * @param tagIds Tags to be deleted from the specified images. Limted to 20 tags + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteImageTags(UUID projectId, List imageIds, List tagIds) { + deleteImageTagsWithServiceResponseAsync(projectId, imageIds, tagIds).toBlocking().single().body(); + } + + /** + * Remove a set of tags from a set of images. + * + * @param projectId The project id + * @param imageIds Image ids. Limited to 64 images + * @param tagIds Tags to be deleted from the specified images. Limted to 20 tags + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteImageTagsAsync(UUID projectId, List imageIds, List tagIds, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteImageTagsWithServiceResponseAsync(projectId, imageIds, tagIds), serviceCallback); + } + + /** + * Remove a set of tags from a set of images. + * + * @param projectId The project id + * @param imageIds Image ids. Limited to 64 images + * @param tagIds Tags to be deleted from the specified images. Limted to 20 tags + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteImageTagsAsync(UUID projectId, List imageIds, List tagIds) { + return deleteImageTagsWithServiceResponseAsync(projectId, imageIds, tagIds).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Remove a set of tags from a set of images. + * + * @param projectId The project id + * @param imageIds Image ids. Limited to 64 images + * @param tagIds Tags to be deleted from the specified images. Limted to 20 tags + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteImageTagsWithServiceResponseAsync(UUID projectId, List imageIds, List tagIds) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageIds == null) { + throw new IllegalArgumentException("Parameter imageIds is required and cannot be null."); + } + if (tagIds == null) { + throw new IllegalArgumentException("Parameter tagIds is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(imageIds); + Validator.validate(tagIds); + String imageIdsConverted = this.client.serializerAdapter().serializeList(imageIds, CollectionFormat.CSV); + String tagIdsConverted = this.client.serializerAdapter().serializeList(tagIds, CollectionFormat.CSV); + return service.deleteImageTags(projectId, imageIdsConverted, tagIdsConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteImageTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteImageTagsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + + /** + * Associate a set of images with a set of tags. + * + * @param projectId The project id + * @param createImageTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageTagCreateSummary object if successful. + */ + public ImageTagCreateSummary createImageTags(UUID projectId, CreateImageTagsOptionalParameter createImageTagsOptionalParameter) { + return createImageTagsWithServiceResponseAsync(projectId, createImageTagsOptionalParameter).toBlocking().single().body(); + } + + /** + * Associate a set of images with a set of tags. + * + * @param projectId The project id + * @param createImageTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createImageTagsAsync(UUID projectId, CreateImageTagsOptionalParameter createImageTagsOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createImageTagsWithServiceResponseAsync(projectId, createImageTagsOptionalParameter), serviceCallback); + } + + /** + * Associate a set of images with a set of tags. + * + * @param projectId The project id + * @param createImageTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageTagCreateSummary object + */ + public Observable createImageTagsAsync(UUID projectId, CreateImageTagsOptionalParameter createImageTagsOptionalParameter) { + return createImageTagsWithServiceResponseAsync(projectId, createImageTagsOptionalParameter).map(new Func1, ImageTagCreateSummary>() { + @Override + public ImageTagCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Associate a set of images with a set of tags. + * + * @param projectId The project id + * @param createImageTagsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageTagCreateSummary object + */ + public Observable> createImageTagsWithServiceResponseAsync(UUID projectId, CreateImageTagsOptionalParameter createImageTagsOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final List tags = createImageTagsOptionalParameter != null ? createImageTagsOptionalParameter.tags() : null; + + return createImageTagsWithServiceResponseAsync(projectId, tags); + } + + /** + * Associate a set of images with a set of tags. + * + * @param projectId The project id + * @param tags the List<ImageTagCreateEntry> value + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageTagCreateSummary object + */ + public Observable> createImageTagsWithServiceResponseAsync(UUID projectId, List tags) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(tags); + ImageTagCreateBatch batch = new ImageTagCreateBatch(); + batch.withTags(tags); + return service.createImageTags(projectId, this.client.apiKey(), this.client.acceptLanguage(), batch, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createImageTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createImageTagsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsCreateImageTagsParameters createImageTags() { + return new TrainingsCreateImageTagsParameters(this); + } + + /** + * Internal class implementing TrainingsCreateImageTagsDefinition. + */ + class TrainingsCreateImageTagsParameters implements TrainingsCreateImageTagsDefinition { + private TrainingsImpl parent; + private UUID projectId; + private List tags; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsCreateImageTagsParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsCreateImageTagsParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsCreateImageTagsParameters withTags(List tags) { + this.tags = tags; + return this; + } + + @Override + public ImageTagCreateSummary execute() { + return createImageTagsWithServiceResponseAsync(projectId, tags).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return createImageTagsWithServiceResponseAsync(projectId, tags).map(new Func1, ImageTagCreateSummary>() { + @Override + public ImageTagCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + /** + * Add the specified predicted images to the set of training images. + * This API creates a batch of images from predicted images specified. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch Image and tag ids. Limted to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageCreateSummary object if successful. + */ + public ImageCreateSummary createImagesFromPredictions(UUID projectId, ImageIdCreateBatch batch) { + return createImagesFromPredictionsWithServiceResponseAsync(projectId, batch).toBlocking().single().body(); + } + + /** + * Add the specified predicted images to the set of training images. + * This API creates a batch of images from predicted images specified. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch Image and tag ids. Limted to 64 images and 20 tags per batch + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createImagesFromPredictionsAsync(UUID projectId, ImageIdCreateBatch batch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createImagesFromPredictionsWithServiceResponseAsync(projectId, batch), serviceCallback); + } + + /** + * Add the specified predicted images to the set of training images. + * This API creates a batch of images from predicted images specified. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch Image and tag ids. Limted to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable createImagesFromPredictionsAsync(UUID projectId, ImageIdCreateBatch batch) { + return createImagesFromPredictionsWithServiceResponseAsync(projectId, batch).map(new Func1, ImageCreateSummary>() { + @Override + public ImageCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Add the specified predicted images to the set of training images. + * This API creates a batch of images from predicted images specified. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch Image and tag ids. Limted to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable> createImagesFromPredictionsWithServiceResponseAsync(UUID projectId, ImageIdCreateBatch batch) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (batch == null) { + throw new IllegalArgumentException("Parameter batch is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(batch); + return service.createImagesFromPredictions(projectId, batch, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createImagesFromPredictionsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createImagesFromPredictionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Add the provided images urls to the set of training images. + * This API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch Image urls and tag ids. Limited to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageCreateSummary object if successful. + */ + public ImageCreateSummary createImagesFromUrls(UUID projectId, ImageUrlCreateBatch batch) { + return createImagesFromUrlsWithServiceResponseAsync(projectId, batch).toBlocking().single().body(); + } + + /** + * Add the provided images urls to the set of training images. + * This API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch Image urls and tag ids. Limited to 64 images and 20 tags per batch + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createImagesFromUrlsAsync(UUID projectId, ImageUrlCreateBatch batch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createImagesFromUrlsWithServiceResponseAsync(projectId, batch), serviceCallback); + } + + /** + * Add the provided images urls to the set of training images. + * This API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch Image urls and tag ids. Limited to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable createImagesFromUrlsAsync(UUID projectId, ImageUrlCreateBatch batch) { + return createImagesFromUrlsWithServiceResponseAsync(projectId, batch).map(new Func1, ImageCreateSummary>() { + @Override + public ImageCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Add the provided images urls to the set of training images. + * This API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch Image urls and tag ids. Limited to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable> createImagesFromUrlsWithServiceResponseAsync(UUID projectId, ImageUrlCreateBatch batch) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (batch == null) { + throw new IllegalArgumentException("Parameter batch is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(batch); + return service.createImagesFromUrls(projectId, batch, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createImagesFromUrlsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createImagesFromUrlsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Add the provided batch of images to the set of training images. + * This API accepts a batch of files, and optionally tags, to create images. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch The batch of image files to add. Limited to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageCreateSummary object if successful. + */ + public ImageCreateSummary createImagesFromFiles(UUID projectId, ImageFileCreateBatch batch) { + return createImagesFromFilesWithServiceResponseAsync(projectId, batch).toBlocking().single().body(); + } + + /** + * Add the provided batch of images to the set of training images. + * This API accepts a batch of files, and optionally tags, to create images. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch The batch of image files to add. Limited to 64 images and 20 tags per batch + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createImagesFromFilesAsync(UUID projectId, ImageFileCreateBatch batch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createImagesFromFilesWithServiceResponseAsync(projectId, batch), serviceCallback); + } + + /** + * Add the provided batch of images to the set of training images. + * This API accepts a batch of files, and optionally tags, to create images. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch The batch of image files to add. Limited to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable createImagesFromFilesAsync(UUID projectId, ImageFileCreateBatch batch) { + return createImagesFromFilesWithServiceResponseAsync(projectId, batch).map(new Func1, ImageCreateSummary>() { + @Override + public ImageCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Add the provided batch of images to the set of training images. + * This API accepts a batch of files, and optionally tags, to create images. There is a limit of 64 images and 20 tags. + * + * @param projectId The project id + * @param batch The batch of image files to add. Limited to 64 images and 20 tags per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable> createImagesFromFilesWithServiceResponseAsync(UUID projectId, ImageFileCreateBatch batch) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (batch == null) { + throw new IllegalArgumentException("Parameter batch is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(batch); + return service.createImagesFromFiles(projectId, batch, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createImagesFromFilesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createImagesFromFilesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Delete images from the set of training images. + * + * @param projectId The project id + * @param imageIds Ids of the images to be deleted. Limted to 256 images per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteImages(UUID projectId, List imageIds) { + deleteImagesWithServiceResponseAsync(projectId, imageIds).toBlocking().single().body(); + } + + /** + * Delete images from the set of training images. + * + * @param projectId The project id + * @param imageIds Ids of the images to be deleted. Limted to 256 images per batch + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteImagesAsync(UUID projectId, List imageIds, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteImagesWithServiceResponseAsync(projectId, imageIds), serviceCallback); + } + + /** + * Delete images from the set of training images. + * + * @param projectId The project id + * @param imageIds Ids of the images to be deleted. Limted to 256 images per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteImagesAsync(UUID projectId, List imageIds) { + return deleteImagesWithServiceResponseAsync(projectId, imageIds).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete images from the set of training images. + * + * @param projectId The project id + * @param imageIds Ids of the images to be deleted. Limted to 256 images per batch + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteImagesWithServiceResponseAsync(UUID projectId, List imageIds) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageIds == null) { + throw new IllegalArgumentException("Parameter imageIds is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(imageIds); + String imageIdsConverted = this.client.serializerAdapter().serializeList(imageIds, CollectionFormat.CSV); + return service.deleteImages(projectId, imageIdsConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteImagesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteImagesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + + /** + * Add the provided images to the set of training images. + * This API accepts body content as multipart/form-data and application/octet-stream. When using multipart + multiple image files can be sent at once, with a maximum of 64 files. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param createImagesFromDataOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImageCreateSummary object if successful. + */ + public ImageCreateSummary createImagesFromData(UUID projectId, byte[] imageData, CreateImagesFromDataOptionalParameter createImagesFromDataOptionalParameter) { + return createImagesFromDataWithServiceResponseAsync(projectId, imageData, createImagesFromDataOptionalParameter).toBlocking().single().body(); + } + + /** + * Add the provided images to the set of training images. + * This API accepts body content as multipart/form-data and application/octet-stream. When using multipart + multiple image files can be sent at once, with a maximum of 64 files. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param createImagesFromDataOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createImagesFromDataAsync(UUID projectId, byte[] imageData, CreateImagesFromDataOptionalParameter createImagesFromDataOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createImagesFromDataWithServiceResponseAsync(projectId, imageData, createImagesFromDataOptionalParameter), serviceCallback); + } + + /** + * Add the provided images to the set of training images. + * This API accepts body content as multipart/form-data and application/octet-stream. When using multipart + multiple image files can be sent at once, with a maximum of 64 files. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param createImagesFromDataOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable createImagesFromDataAsync(UUID projectId, byte[] imageData, CreateImagesFromDataOptionalParameter createImagesFromDataOptionalParameter) { + return createImagesFromDataWithServiceResponseAsync(projectId, imageData, createImagesFromDataOptionalParameter).map(new Func1, ImageCreateSummary>() { + @Override + public ImageCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Add the provided images to the set of training images. + * This API accepts body content as multipart/form-data and application/octet-stream. When using multipart + multiple image files can be sent at once, with a maximum of 64 files. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param createImagesFromDataOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable> createImagesFromDataWithServiceResponseAsync(UUID projectId, byte[] imageData, CreateImagesFromDataOptionalParameter createImagesFromDataOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageData == null) { + throw new IllegalArgumentException("Parameter imageData is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final List tagIds = createImagesFromDataOptionalParameter != null ? createImagesFromDataOptionalParameter.tagIds() : null; + + return createImagesFromDataWithServiceResponseAsync(projectId, imageData, tagIds); + } + + /** + * Add the provided images to the set of training images. + * This API accepts body content as multipart/form-data and application/octet-stream. When using multipart + multiple image files can be sent at once, with a maximum of 64 files. + * + * @param projectId The project id + * @param imageData the InputStream value + * @param tagIds The tags ids with which to tag each image. Limited to 20 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImageCreateSummary object + */ + public Observable> createImagesFromDataWithServiceResponseAsync(UUID projectId, byte[] imageData, List tagIds) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (imageData == null) { + throw new IllegalArgumentException("Parameter imageData is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(tagIds); + String tagIdsConverted = this.client.serializerAdapter().serializeList(tagIds, CollectionFormat.CSV); + RequestBody imageDataConverted = RequestBody.create(MediaType.parse("multipart/form-data"), imageData); + return service.createImagesFromData(projectId, tagIdsConverted, imageDataConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createImagesFromDataDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createImagesFromDataDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsCreateImagesFromDataParameters createImagesFromData() { + return new TrainingsCreateImagesFromDataParameters(this); + } + + /** + * Internal class implementing TrainingsCreateImagesFromDataDefinition. + */ + class TrainingsCreateImagesFromDataParameters implements TrainingsCreateImagesFromDataDefinition { + private TrainingsImpl parent; + private UUID projectId; + private byte[] imageData; + private List tagIds; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsCreateImagesFromDataParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsCreateImagesFromDataParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsCreateImagesFromDataParameters withImageData(byte[] imageData) { + this.imageData = imageData; + return this; + } + + @Override + public TrainingsCreateImagesFromDataParameters withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + @Override + public ImageCreateSummary execute() { + return createImagesFromDataWithServiceResponseAsync(projectId, imageData, tagIds).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return createImagesFromDataWithServiceResponseAsync(projectId, imageData, tagIds).map(new Func1, ImageCreateSummary>() { + @Override + public ImageCreateSummary call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Get images by id for a given project iteration. + * This API will return a set of Images for the specified tags and optionally iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param getImagesByIdsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Image> object if successful. + */ + public List getImagesByIds(UUID projectId, GetImagesByIdsOptionalParameter getImagesByIdsOptionalParameter) { + return getImagesByIdsWithServiceResponseAsync(projectId, getImagesByIdsOptionalParameter).toBlocking().single().body(); + } + + /** + * Get images by id for a given project iteration. + * This API will return a set of Images for the specified tags and optionally iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param getImagesByIdsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getImagesByIdsAsync(UUID projectId, GetImagesByIdsOptionalParameter getImagesByIdsOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getImagesByIdsWithServiceResponseAsync(projectId, getImagesByIdsOptionalParameter), serviceCallback); + } + + /** + * Get images by id for a given project iteration. + * This API will return a set of Images for the specified tags and optionally iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param getImagesByIdsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable> getImagesByIdsAsync(UUID projectId, GetImagesByIdsOptionalParameter getImagesByIdsOptionalParameter) { + return getImagesByIdsWithServiceResponseAsync(projectId, getImagesByIdsOptionalParameter).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get images by id for a given project iteration. + * This API will return a set of Images for the specified tags and optionally iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param getImagesByIdsOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable>> getImagesByIdsWithServiceResponseAsync(UUID projectId, GetImagesByIdsOptionalParameter getImagesByIdsOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final List imageIds = getImagesByIdsOptionalParameter != null ? getImagesByIdsOptionalParameter.imageIds() : null; + final UUID iterationId = getImagesByIdsOptionalParameter != null ? getImagesByIdsOptionalParameter.iterationId() : null; + + return getImagesByIdsWithServiceResponseAsync(projectId, imageIds, iterationId); + } + + /** + * Get images by id for a given project iteration. + * This API will return a set of Images for the specified tags and optionally iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param imageIds The list of image ids to retrieve. Limited to 256 + * @param iterationId The iteration id. Defaults to workspace + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable>> getImagesByIdsWithServiceResponseAsync(UUID projectId, List imageIds, UUID iterationId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(imageIds); + String imageIdsConverted = this.client.serializerAdapter().serializeList(imageIds, CollectionFormat.CSV); + return service.getImagesByIds(projectId, imageIdsConverted, iterationId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getImagesByIdsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getImagesByIdsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetImagesByIdsParameters getImagesByIds() { + return new TrainingsGetImagesByIdsParameters(this); + } + + /** + * Internal class implementing TrainingsGetImagesByIdsDefinition. + */ + class TrainingsGetImagesByIdsParameters implements TrainingsGetImagesByIdsDefinition { + private TrainingsImpl parent; + private UUID projectId; + private List imageIds; + private UUID iterationId; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetImagesByIdsParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetImagesByIdsParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetImagesByIdsParameters withImageIds(List imageIds) { + this.imageIds = imageIds; + return this; + } + + @Override + public TrainingsGetImagesByIdsParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public List execute() { + return getImagesByIdsWithServiceResponseAsync(projectId, imageIds, iterationId).toBlocking().single().body(); + } + + @Override + public Observable> executeAsync() { + return getImagesByIdsWithServiceResponseAsync(projectId, imageIds, iterationId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + } + + + /** + * Gets the number of untagged images. + * This API returns the images which have no tags for a given project and optionally an iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param getUntaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the int object if successful. + */ + public int getUntaggedImageCount(UUID projectId, GetUntaggedImageCountOptionalParameter getUntaggedImageCountOptionalParameter) { + return getUntaggedImageCountWithServiceResponseAsync(projectId, getUntaggedImageCountOptionalParameter).toBlocking().single().body(); + } + + /** + * Gets the number of untagged images. + * This API returns the images which have no tags for a given project and optionally an iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param getUntaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getUntaggedImageCountAsync(UUID projectId, GetUntaggedImageCountOptionalParameter getUntaggedImageCountOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getUntaggedImageCountWithServiceResponseAsync(projectId, getUntaggedImageCountOptionalParameter), serviceCallback); + } + + /** + * Gets the number of untagged images. + * This API returns the images which have no tags for a given project and optionally an iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param getUntaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable getUntaggedImageCountAsync(UUID projectId, GetUntaggedImageCountOptionalParameter getUntaggedImageCountOptionalParameter) { + return getUntaggedImageCountWithServiceResponseAsync(projectId, getUntaggedImageCountOptionalParameter).map(new Func1, Integer>() { + @Override + public Integer call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the number of untagged images. + * This API returns the images which have no tags for a given project and optionally an iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param getUntaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable> getUntaggedImageCountWithServiceResponseAsync(UUID projectId, GetUntaggedImageCountOptionalParameter getUntaggedImageCountOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = getUntaggedImageCountOptionalParameter != null ? getUntaggedImageCountOptionalParameter.iterationId() : null; + + return getUntaggedImageCountWithServiceResponseAsync(projectId, iterationId); + } + + /** + * Gets the number of untagged images. + * This API returns the images which have no tags for a given project and optionally an iteration. If no iteration is specified the + current workspace is used. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable> getUntaggedImageCountWithServiceResponseAsync(UUID projectId, UUID iterationId) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getUntaggedImageCount(projectId, iterationId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getUntaggedImageCountDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getUntaggedImageCountDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetUntaggedImageCountParameters getUntaggedImageCount() { + return new TrainingsGetUntaggedImageCountParameters(this); + } + + /** + * Internal class implementing TrainingsGetUntaggedImageCountDefinition. + */ + class TrainingsGetUntaggedImageCountParameters implements TrainingsGetUntaggedImageCountDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetUntaggedImageCountParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetUntaggedImageCountParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetUntaggedImageCountParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public int execute() { + return getUntaggedImageCountWithServiceResponseAsync(projectId, iterationId).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return getUntaggedImageCountWithServiceResponseAsync(projectId, iterationId).map(new Func1, Integer>() { + @Override + public Integer call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Gets the number of images tagged with the provided {tagIds}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param getTaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the int object if successful. + */ + public int getTaggedImageCount(UUID projectId, GetTaggedImageCountOptionalParameter getTaggedImageCountOptionalParameter) { + return getTaggedImageCountWithServiceResponseAsync(projectId, getTaggedImageCountOptionalParameter).toBlocking().single().body(); + } + + /** + * Gets the number of images tagged with the provided {tagIds}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param getTaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getTaggedImageCountAsync(UUID projectId, GetTaggedImageCountOptionalParameter getTaggedImageCountOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getTaggedImageCountWithServiceResponseAsync(projectId, getTaggedImageCountOptionalParameter), serviceCallback); + } + + /** + * Gets the number of images tagged with the provided {tagIds}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param getTaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable getTaggedImageCountAsync(UUID projectId, GetTaggedImageCountOptionalParameter getTaggedImageCountOptionalParameter) { + return getTaggedImageCountWithServiceResponseAsync(projectId, getTaggedImageCountOptionalParameter).map(new Func1, Integer>() { + @Override + public Integer call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the number of images tagged with the provided {tagIds}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param getTaggedImageCountOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable> getTaggedImageCountWithServiceResponseAsync(UUID projectId, GetTaggedImageCountOptionalParameter getTaggedImageCountOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = getTaggedImageCountOptionalParameter != null ? getTaggedImageCountOptionalParameter.iterationId() : null; + final List tagIds = getTaggedImageCountOptionalParameter != null ? getTaggedImageCountOptionalParameter.tagIds() : null; + + return getTaggedImageCountWithServiceResponseAsync(projectId, iterationId, tagIds); + } + + /** + * Gets the number of images tagged with the provided {tagIds}. + * The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param tagIds A list of tags ids to filter the images to count. Defaults to all tags when null. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Integer object + */ + public Observable> getTaggedImageCountWithServiceResponseAsync(UUID projectId, UUID iterationId, List tagIds) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(tagIds); + String tagIdsConverted = this.client.serializerAdapter().serializeList(tagIds, CollectionFormat.CSV); + return service.getTaggedImageCount(projectId, iterationId, tagIdsConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getTaggedImageCountDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getTaggedImageCountDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetTaggedImageCountParameters getTaggedImageCount() { + return new TrainingsGetTaggedImageCountParameters(this); + } + + /** + * Internal class implementing TrainingsGetTaggedImageCountDefinition. + */ + class TrainingsGetTaggedImageCountParameters implements TrainingsGetTaggedImageCountDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + private List tagIds; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetTaggedImageCountParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetTaggedImageCountParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetTaggedImageCountParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public TrainingsGetTaggedImageCountParameters withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + @Override + public int execute() { + return getTaggedImageCountWithServiceResponseAsync(projectId, iterationId, tagIds).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return getTaggedImageCountWithServiceResponseAsync(projectId, iterationId, tagIds).map(new Func1, Integer>() { + @Override + public Integer call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + + /** + * Get untagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + * + * @param projectId The project id + * @param getUntaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Image> object if successful. + */ + public List getUntaggedImages(UUID projectId, GetUntaggedImagesOptionalParameter getUntaggedImagesOptionalParameter) { + return getUntaggedImagesWithServiceResponseAsync(projectId, getUntaggedImagesOptionalParameter).toBlocking().single().body(); + } + + /** + * Get untagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + * + * @param projectId The project id + * @param getUntaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getUntaggedImagesAsync(UUID projectId, GetUntaggedImagesOptionalParameter getUntaggedImagesOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getUntaggedImagesWithServiceResponseAsync(projectId, getUntaggedImagesOptionalParameter), serviceCallback); + } + + /** + * Get untagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + * + * @param projectId The project id + * @param getUntaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable> getUntaggedImagesAsync(UUID projectId, GetUntaggedImagesOptionalParameter getUntaggedImagesOptionalParameter) { + return getUntaggedImagesWithServiceResponseAsync(projectId, getUntaggedImagesOptionalParameter).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get untagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + * + * @param projectId The project id + * @param getUntaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable>> getUntaggedImagesWithServiceResponseAsync(UUID projectId, GetUntaggedImagesOptionalParameter getUntaggedImagesOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = getUntaggedImagesOptionalParameter != null ? getUntaggedImagesOptionalParameter.iterationId() : null; + final String orderBy = getUntaggedImagesOptionalParameter != null ? getUntaggedImagesOptionalParameter.orderBy() : null; + final Integer take = getUntaggedImagesOptionalParameter != null ? getUntaggedImagesOptionalParameter.take() : null; + final Integer skip = getUntaggedImagesOptionalParameter != null ? getUntaggedImagesOptionalParameter.skip() : null; + + return getUntaggedImagesWithServiceResponseAsync(projectId, iterationId, orderBy, take, skip); + } + + /** + * Get untagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param orderBy The ordering. Defaults to newest. Possible values include: 'Newest', 'Oldest' + * @param take Maximum number of images to return. Defaults to 50, limited to 256 + * @param skip Number of images to skip before beginning the image batch. Defaults to 0 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable>> getUntaggedImagesWithServiceResponseAsync(UUID projectId, UUID iterationId, String orderBy, Integer take, Integer skip) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getUntaggedImages(projectId, iterationId, orderBy, take, skip, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getUntaggedImagesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getUntaggedImagesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetUntaggedImagesParameters getUntaggedImages() { + return new TrainingsGetUntaggedImagesParameters(this); + } + + /** + * Internal class implementing TrainingsGetUntaggedImagesDefinition. + */ + class TrainingsGetUntaggedImagesParameters implements TrainingsGetUntaggedImagesDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + private String orderBy; + private Integer take; + private Integer skip; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetUntaggedImagesParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetUntaggedImagesParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetUntaggedImagesParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public TrainingsGetUntaggedImagesParameters withOrderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + @Override + public TrainingsGetUntaggedImagesParameters withTake(Integer take) { + this.take = take; + return this; + } + + @Override + public TrainingsGetUntaggedImagesParameters withSkip(Integer skip) { + this.skip = skip; + return this; + } + + @Override + public List execute() { + return getUntaggedImagesWithServiceResponseAsync(projectId, iterationId, orderBy, take, skip).toBlocking().single().body(); + } + + @Override + public Observable> executeAsync() { + return getUntaggedImagesWithServiceResponseAsync(projectId, iterationId, orderBy, take, skip).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + } + + + /** + * Get tagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param getTaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Image> object if successful. + */ + public List getTaggedImages(UUID projectId, GetTaggedImagesOptionalParameter getTaggedImagesOptionalParameter) { + return getTaggedImagesWithServiceResponseAsync(projectId, getTaggedImagesOptionalParameter).toBlocking().single().body(); + } + + /** + * Get tagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param getTaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getTaggedImagesAsync(UUID projectId, GetTaggedImagesOptionalParameter getTaggedImagesOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getTaggedImagesWithServiceResponseAsync(projectId, getTaggedImagesOptionalParameter), serviceCallback); + } + + /** + * Get tagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param getTaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable> getTaggedImagesAsync(UUID projectId, GetTaggedImagesOptionalParameter getTaggedImagesOptionalParameter) { + return getTaggedImagesWithServiceResponseAsync(projectId, getTaggedImagesOptionalParameter).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get tagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param getTaggedImagesOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable>> getTaggedImagesWithServiceResponseAsync(UUID projectId, GetTaggedImagesOptionalParameter getTaggedImagesOptionalParameter) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + final UUID iterationId = getTaggedImagesOptionalParameter != null ? getTaggedImagesOptionalParameter.iterationId() : null; + final List tagIds = getTaggedImagesOptionalParameter != null ? getTaggedImagesOptionalParameter.tagIds() : null; + final String orderBy = getTaggedImagesOptionalParameter != null ? getTaggedImagesOptionalParameter.orderBy() : null; + final Integer take = getTaggedImagesOptionalParameter != null ? getTaggedImagesOptionalParameter.take() : null; + final Integer skip = getTaggedImagesOptionalParameter != null ? getTaggedImagesOptionalParameter.skip() : null; + + return getTaggedImagesWithServiceResponseAsync(projectId, iterationId, tagIds, orderBy, take, skip); + } + + /** + * Get tagged images for a given project iteration. + * This API supports batching and range selection. By default it will only return first 50 images matching images. + Use the {take} and {skip} parameters to control how many images to return in a given batch. + The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and + "Cat" tags, then only images tagged with Dog and/or Cat will be returned. + * + * @param projectId The project id + * @param iterationId The iteration id. Defaults to workspace + * @param tagIds A list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20 + * @param orderBy The ordering. Defaults to newest. Possible values include: 'Newest', 'Oldest' + * @param take Maximum number of images to return. Defaults to 50, limited to 256 + * @param skip Number of images to skip before beginning the image batch. Defaults to 0 + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Image> object + */ + public Observable>> getTaggedImagesWithServiceResponseAsync(UUID projectId, UUID iterationId, List tagIds, String orderBy, Integer take, Integer skip) { + if (projectId == null) { + throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + Validator.validate(tagIds); + String tagIdsConverted = this.client.serializerAdapter().serializeList(tagIds, CollectionFormat.CSV); + return service.getTaggedImages(projectId, iterationId, tagIdsConverted, orderBy, take, skip, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getTaggedImagesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getTaggedImagesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + @Override + public TrainingsGetTaggedImagesParameters getTaggedImages() { + return new TrainingsGetTaggedImagesParameters(this); + } + + /** + * Internal class implementing TrainingsGetTaggedImagesDefinition. + */ + class TrainingsGetTaggedImagesParameters implements TrainingsGetTaggedImagesDefinition { + private TrainingsImpl parent; + private UUID projectId; + private UUID iterationId; + private List tagIds; + private String orderBy; + private Integer take; + private Integer skip; + + /** + * Constructor. + * @param parent the parent object. + */ + TrainingsGetTaggedImagesParameters(TrainingsImpl parent) { + this.parent = parent; + } + + @Override + public TrainingsGetTaggedImagesParameters withProjectId(UUID projectId) { + this.projectId = projectId; + return this; + } + + @Override + public TrainingsGetTaggedImagesParameters withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + @Override + public TrainingsGetTaggedImagesParameters withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + @Override + public TrainingsGetTaggedImagesParameters withOrderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + @Override + public TrainingsGetTaggedImagesParameters withTake(Integer take) { + this.take = take; + return this; + } + + @Override + public TrainingsGetTaggedImagesParameters withSkip(Integer skip) { + this.skip = skip; + return this; + } + + @Override + public List execute() { + return getTaggedImagesWithServiceResponseAsync(projectId, iterationId, tagIds, orderBy, take, skip).toBlocking().single().body(); + } + + @Override + public Observable> executeAsync() { + return getTaggedImagesWithServiceResponseAsync(projectId, iterationId, tagIds, orderBy, take, skip).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + } + + /** + * Get information about a specific domain. + * + * @param domainId The id of the domain to get information about + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Domain object if successful. + */ + public Domain getDomain(UUID domainId) { + return getDomainWithServiceResponseAsync(domainId).toBlocking().single().body(); + } + + /** + * Get information about a specific domain. + * + * @param domainId The id of the domain to get information about + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getDomainAsync(UUID domainId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getDomainWithServiceResponseAsync(domainId), serviceCallback); + } + + /** + * Get information about a specific domain. + * + * @param domainId The id of the domain to get information about + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Domain object + */ + public Observable getDomainAsync(UUID domainId) { + return getDomainWithServiceResponseAsync(domainId).map(new Func1, Domain>() { + @Override + public Domain call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get information about a specific domain. + * + * @param domainId The id of the domain to get information about + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Domain object + */ + public Observable> getDomainWithServiceResponseAsync(UUID domainId) { + if (domainId == null) { + throw new IllegalArgumentException("Parameter domainId is required and cannot be null."); + } + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getDomain(domainId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDomainDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDomainDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get a list of the available domains. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<Domain> object if successful. + */ + public List getDomains() { + return getDomainsWithServiceResponseAsync().toBlocking().single().body(); + } + + /** + * Get a list of the available domains. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getDomainsAsync(final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getDomainsWithServiceResponseAsync(), serviceCallback); + } + + /** + * Get a list of the available domains. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Domain> object + */ + public Observable> getDomainsAsync() { + return getDomainsWithServiceResponseAsync().map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get a list of the available domains. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<Domain> object + */ + public Observable>> getDomainsWithServiceResponseAsync() { + if (this.client.apiKey() == null) { + throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null."); + } + return service.getDomains(this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getDomainsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getDomainsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/package-info.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/package-info.java new file mode 100644 index 000000000000..660ca0524a9a --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/implementation/package-info.java @@ -0,0 +1,10 @@ +// 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. + +/** + * This package contains the implementation classes for TrainingApi. + */ +package com.microsoft.azure.cognitiveservices.vision.customvision.training.implementation; diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/BoundingBox.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/BoundingBox.java new file mode 100644 index 000000000000..6576f1ce2f8b --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/BoundingBox.java @@ -0,0 +1,121 @@ +/** + * 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.vision.customvision.training.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The BoundingBox model. + */ +public class BoundingBox { + /** + * The left property. + */ + @JsonProperty(value = "left") + private double left; + + /** + * The top property. + */ + @JsonProperty(value = "top") + private double top; + + /** + * The width property. + */ + @JsonProperty(value = "width") + private double width; + + /** + * The height property. + */ + @JsonProperty(value = "height") + private double height; + + /** + * Get the left value. + * + * @return the left value + */ + public double left() { + return this.left; + } + + /** + * Set the left value. + * + * @param left the left value to set + * @return the BoundingBox object itself. + */ + public BoundingBox withLeft(double left) { + this.left = left; + return this; + } + + /** + * Get the top value. + * + * @return the top value + */ + public double top() { + return this.top; + } + + /** + * Set the top value. + * + * @param top the top value to set + * @return the BoundingBox object itself. + */ + public BoundingBox withTop(double top) { + this.top = top; + return this; + } + + /** + * Get the width value. + * + * @return the width value + */ + public double width() { + return this.width; + } + + /** + * Set the width value. + * + * @param width the width value to set + * @return the BoundingBox object itself. + */ + public BoundingBox withWidth(double width) { + this.width = width; + return this; + } + + /** + * Get the height value. + * + * @return the height value + */ + public double height() { + return this.height; + } + + /** + * Set the height value. + * + * @param height the height value to set + * @return the BoundingBox object itself. + */ + public BoundingBox withHeight(double height) { + this.height = height; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Classifier.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Classifier.java new file mode 100644 index 000000000000..7fe513a3706f --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Classifier.java @@ -0,0 +1,41 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for Classifier. + */ +public final class Classifier extends ExpandableStringEnum { + /** Static value Multiclass for Classifier. */ + public static final Classifier MULTICLASS = fromString("Multiclass"); + + /** Static value Multilabel for Classifier. */ + public static final Classifier MULTILABEL = fromString("Multilabel"); + + /** + * Creates or finds a Classifier from its string representation. + * @param name a name to look for + * @return the corresponding Classifier + */ + @JsonCreator + public static Classifier fromString(String name) { + return fromString(name, Classifier.class); + } + + /** + * @return known Classifier values + */ + public static Collection values() { + return values(Classifier.class); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImageRegionsOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImageRegionsOptionalParameter.java new file mode 100644 index 000000000000..217c0cf13d15 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImageRegionsOptionalParameter.java @@ -0,0 +1,67 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; + +/** + * The CreateImageRegionsOptionalParameter model. + */ +public class CreateImageRegionsOptionalParameter { + /** + * The regions property. + */ + private List regions; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the regions value. + * + * @return the regions value + */ + public List regions() { + return this.regions; + } + + /** + * Set the regions value. + * + * @param regions the regions value to set + * @return the CreateImageRegionsOptionalParameter object itself. + */ + public CreateImageRegionsOptionalParameter withRegions(List regions) { + this.regions = regions; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the CreateImageRegionsOptionalParameter object itself. + */ + public CreateImageRegionsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImageTagsOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImageTagsOptionalParameter.java new file mode 100644 index 000000000000..0d799023b94c --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImageTagsOptionalParameter.java @@ -0,0 +1,67 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; + +/** + * The CreateImageTagsOptionalParameter model. + */ +public class CreateImageTagsOptionalParameter { + /** + * The tags property. + */ + private List tags; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the tags value. + * + * @return the tags value + */ + public List tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the CreateImageTagsOptionalParameter object itself. + */ + public CreateImageTagsOptionalParameter withTags(List tags) { + this.tags = tags; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the CreateImageTagsOptionalParameter object itself. + */ + public CreateImageTagsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImagesFromDataOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImagesFromDataOptionalParameter.java new file mode 100644 index 000000000000..330ca1ae6afb --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateImagesFromDataOptionalParameter.java @@ -0,0 +1,67 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; + +/** + * The CreateImagesFromDataOptionalParameter model. + */ +public class CreateImagesFromDataOptionalParameter { + /** + * The tags ids with which to tag each image. Limited to 20. + */ + private List tagIds; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the CreateImagesFromDataOptionalParameter object itself. + */ + public CreateImagesFromDataOptionalParameter withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the CreateImagesFromDataOptionalParameter object itself. + */ + public CreateImagesFromDataOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateProjectOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateProjectOptionalParameter.java new file mode 100644 index 000000000000..50a620f1ddaa --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateProjectOptionalParameter.java @@ -0,0 +1,118 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; + +/** + * The CreateProjectOptionalParameter model. + */ +public class CreateProjectOptionalParameter { + /** + * The description of the project. + */ + private String description; + + /** + * The id of the domain to use for this project. Defaults to General. + */ + private UUID domainId; + + /** + * The type of classifier to create for this project. Possible values + * include: 'Multiclass', 'Multilabel'. + */ + private String classificationType; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the CreateProjectOptionalParameter object itself. + */ + public CreateProjectOptionalParameter withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the domainId value. + * + * @return the domainId value + */ + public UUID domainId() { + return this.domainId; + } + + /** + * Set the domainId value. + * + * @param domainId the domainId value to set + * @return the CreateProjectOptionalParameter object itself. + */ + public CreateProjectOptionalParameter withDomainId(UUID domainId) { + this.domainId = domainId; + return this; + } + + /** + * Get the classificationType value. + * + * @return the classificationType value + */ + public String classificationType() { + return this.classificationType; + } + + /** + * Set the classificationType value. + * + * @param classificationType the classificationType value to set + * @return the CreateProjectOptionalParameter object itself. + */ + public CreateProjectOptionalParameter withClassificationType(String classificationType) { + this.classificationType = classificationType; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the CreateProjectOptionalParameter object itself. + */ + public CreateProjectOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateTagOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateTagOptionalParameter.java new file mode 100644 index 000000000000..c1af590bef1f --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/CreateTagOptionalParameter.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.vision.customvision.training.models; + + +/** + * The CreateTagOptionalParameter model. + */ +public class CreateTagOptionalParameter { + /** + * Optional description for the tag. + */ + private String description; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the CreateTagOptionalParameter object itself. + */ + public CreateTagOptionalParameter withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the CreateTagOptionalParameter object itself. + */ + public CreateTagOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Domain.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Domain.java new file mode 100644 index 000000000000..aa6d35c493cd --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Domain.java @@ -0,0 +1,93 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Domain model. + */ +public class Domain { + /** + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * The name property. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * Possible values include: 'Classification', 'ObjectDetection'. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private DomainType type; + + /** + * The exportable property. + */ + @JsonProperty(value = "exportable", access = JsonProperty.Access.WRITE_ONLY) + private boolean exportable; + + /** + * The enabled property. + */ + @JsonProperty(value = "enabled", access = JsonProperty.Access.WRITE_ONLY) + private boolean enabled; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the type value. + * + * @return the type value + */ + public DomainType type() { + return this.type; + } + + /** + * Get the exportable value. + * + * @return the exportable value + */ + public boolean exportable() { + return this.exportable; + } + + /** + * Get the enabled value. + * + * @return the enabled value + */ + public boolean enabled() { + return this.enabled; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/DomainType.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/DomainType.java new file mode 100644 index 000000000000..168af3cbb156 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/DomainType.java @@ -0,0 +1,41 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for DomainType. + */ +public final class DomainType extends ExpandableStringEnum { + /** Static value Classification for DomainType. */ + public static final DomainType CLASSIFICATION = fromString("Classification"); + + /** Static value ObjectDetection for DomainType. */ + public static final DomainType OBJECT_DETECTION = fromString("ObjectDetection"); + + /** + * Creates or finds a DomainType from its string representation. + * @param name a name to look for + * @return the corresponding DomainType + */ + @JsonCreator + public static DomainType fromString(String name) { + return fromString(name, DomainType.class); + } + + /** + * @return known DomainType values + */ + public static Collection values() { + return values(DomainType.class); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Export.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Export.java new file mode 100644 index 000000000000..c4dc3d42098e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Export.java @@ -0,0 +1,92 @@ +/** + * 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.vision.customvision.training.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Export model. + */ +public class Export { + /** + * Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX'. + */ + @JsonProperty(value = "platform", access = JsonProperty.Access.WRITE_ONLY) + private ExportPlatform platform; + + /** + * Possible values include: 'Exporting', 'Failed', 'Done'. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private ExportStatusModel status; + + /** + * The downloadUri property. + */ + @JsonProperty(value = "downloadUri", access = JsonProperty.Access.WRITE_ONLY) + private String downloadUri; + + /** + * Possible values include: 'Linux', 'Windows'. + */ + @JsonProperty(value = "flavor", access = JsonProperty.Access.WRITE_ONLY) + private ExportFlavor flavor; + + /** + * The newerVersionAvailable property. + */ + @JsonProperty(value = "newerVersionAvailable", access = JsonProperty.Access.WRITE_ONLY) + private boolean newerVersionAvailable; + + /** + * Get the platform value. + * + * @return the platform value + */ + public ExportPlatform platform() { + return this.platform; + } + + /** + * Get the status value. + * + * @return the status value + */ + public ExportStatusModel status() { + return this.status; + } + + /** + * Get the downloadUri value. + * + * @return the downloadUri value + */ + public String downloadUri() { + return this.downloadUri; + } + + /** + * Get the flavor value. + * + * @return the flavor value + */ + public ExportFlavor flavor() { + return this.flavor; + } + + /** + * Get the newerVersionAvailable value. + * + * @return the newerVersionAvailable value + */ + public boolean newerVersionAvailable() { + return this.newerVersionAvailable; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportFlavor.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportFlavor.java new file mode 100644 index 000000000000..72aeb179147e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportFlavor.java @@ -0,0 +1,41 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ExportFlavor. + */ +public final class ExportFlavor extends ExpandableStringEnum { + /** Static value Linux for ExportFlavor. */ + public static final ExportFlavor LINUX = fromString("Linux"); + + /** Static value Windows for ExportFlavor. */ + public static final ExportFlavor WINDOWS = fromString("Windows"); + + /** + * Creates or finds a ExportFlavor from its string representation. + * @param name a name to look for + * @return the corresponding ExportFlavor + */ + @JsonCreator + public static ExportFlavor fromString(String name) { + return fromString(name, ExportFlavor.class); + } + + /** + * @return known ExportFlavor values + */ + public static Collection values() { + return values(ExportFlavor.class); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportIterationOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportIterationOptionalParameter.java new file mode 100644 index 000000000000..9afa55cc54bd --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportIterationOptionalParameter.java @@ -0,0 +1,67 @@ +/** + * 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.vision.customvision.training.models; + + +/** + * The ExportIterationOptionalParameter model. + */ +public class ExportIterationOptionalParameter { + /** + * The flavor of the target platform (Windows, Linux, ARM, or GPU). + * Possible values include: 'Linux', 'Windows'. + */ + private String flavor; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the flavor value. + * + * @return the flavor value + */ + public String flavor() { + return this.flavor; + } + + /** + * Set the flavor value. + * + * @param flavor the flavor value to set + * @return the ExportIterationOptionalParameter object itself. + */ + public ExportIterationOptionalParameter withFlavor(String flavor) { + this.flavor = flavor; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the ExportIterationOptionalParameter object itself. + */ + public ExportIterationOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportPlatform.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportPlatform.java new file mode 100644 index 000000000000..563148e4ad36 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportPlatform.java @@ -0,0 +1,47 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ExportPlatform. + */ +public final class ExportPlatform extends ExpandableStringEnum { + /** Static value CoreML for ExportPlatform. */ + public static final ExportPlatform CORE_ML = fromString("CoreML"); + + /** Static value TensorFlow for ExportPlatform. */ + public static final ExportPlatform TENSOR_FLOW = fromString("TensorFlow"); + + /** Static value DockerFile for ExportPlatform. */ + public static final ExportPlatform DOCKER_FILE = fromString("DockerFile"); + + /** Static value ONNX for ExportPlatform. */ + public static final ExportPlatform ONNX = fromString("ONNX"); + + /** + * Creates or finds a ExportPlatform from its string representation. + * @param name a name to look for + * @return the corresponding ExportPlatform + */ + @JsonCreator + public static ExportPlatform fromString(String name) { + return fromString(name, ExportPlatform.class); + } + + /** + * @return known ExportPlatform values + */ + public static Collection values() { + return values(ExportPlatform.class); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportStatusModel.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportStatusModel.java new file mode 100644 index 000000000000..533c5e883c50 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ExportStatusModel.java @@ -0,0 +1,44 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ExportStatusModel. + */ +public final class ExportStatusModel extends ExpandableStringEnum { + /** Static value Exporting for ExportStatusModel. */ + public static final ExportStatusModel EXPORTING = fromString("Exporting"); + + /** Static value Failed for ExportStatusModel. */ + public static final ExportStatusModel FAILED = fromString("Failed"); + + /** Static value Done for ExportStatusModel. */ + public static final ExportStatusModel DONE = fromString("Done"); + + /** + * Creates or finds a ExportStatusModel from its string representation. + * @param name a name to look for + * @return the corresponding ExportStatusModel + */ + @JsonCreator + public static ExportStatusModel fromString(String name) { + return fromString(name, ExportStatusModel.class); + } + + /** + * @return known ExportStatusModel values + */ + public static Collection values() { + return values(ExportStatusModel.class); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagePerformanceCountOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagePerformanceCountOptionalParameter.java new file mode 100644 index 000000000000..5d049896a99e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagePerformanceCountOptionalParameter.java @@ -0,0 +1,68 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; + +/** + * The GetImagePerformanceCountOptionalParameter model. + */ +public class GetImagePerformanceCountOptionalParameter { + /** + * A list of tags ids to filter the images to count. Defaults to all tags + * when null. + */ + private List tagIds; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the GetImagePerformanceCountOptionalParameter object itself. + */ + public GetImagePerformanceCountOptionalParameter withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetImagePerformanceCountOptionalParameter object itself. + */ + public GetImagePerformanceCountOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagePerformancesOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagePerformancesOptionalParameter.java new file mode 100644 index 000000000000..0ec8af788ad8 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagePerformancesOptionalParameter.java @@ -0,0 +1,145 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; + +/** + * The GetImagePerformancesOptionalParameter model. + */ +public class GetImagePerformancesOptionalParameter { + /** + * A list of tags ids to filter the images. Defaults to all tagged images + * when null. Limited to 20. + */ + private List tagIds; + + /** + * The ordering. Defaults to newest. Possible values include: 'Newest', + * 'Oldest'. + */ + private String orderBy; + + /** + * Maximum number of images to return. Defaults to 50, limited to 256. + */ + private Integer take; + + /** + * Number of images to skip before beginning the image batch. Defaults to + * 0. + */ + private Integer skip; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the GetImagePerformancesOptionalParameter object itself. + */ + public GetImagePerformancesOptionalParameter withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + /** + * Get the orderBy value. + * + * @return the orderBy value + */ + public String orderBy() { + return this.orderBy; + } + + /** + * Set the orderBy value. + * + * @param orderBy the orderBy value to set + * @return the GetImagePerformancesOptionalParameter object itself. + */ + public GetImagePerformancesOptionalParameter withOrderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get the take value. + * + * @return the take value + */ + public Integer take() { + return this.take; + } + + /** + * Set the take value. + * + * @param take the take value to set + * @return the GetImagePerformancesOptionalParameter object itself. + */ + public GetImagePerformancesOptionalParameter withTake(Integer take) { + this.take = take; + return this; + } + + /** + * Get the skip value. + * + * @return the skip value + */ + public Integer skip() { + return this.skip; + } + + /** + * Set the skip value. + * + * @param skip the skip value to set + * @return the GetImagePerformancesOptionalParameter object itself. + */ + public GetImagePerformancesOptionalParameter withSkip(Integer skip) { + this.skip = skip; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetImagePerformancesOptionalParameter object itself. + */ + public GetImagePerformancesOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagesByIdsOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagesByIdsOptionalParameter.java new file mode 100644 index 000000000000..442d8ebd1965 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetImagesByIdsOptionalParameter.java @@ -0,0 +1,93 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import java.util.UUID; + +/** + * The GetImagesByIdsOptionalParameter model. + */ +public class GetImagesByIdsOptionalParameter { + /** + * The list of image ids to retrieve. Limited to 256. + */ + private List imageIds; + + /** + * The iteration id. Defaults to workspace. + */ + private UUID iterationId; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the imageIds value. + * + * @return the imageIds value + */ + public List imageIds() { + return this.imageIds; + } + + /** + * Set the imageIds value. + * + * @param imageIds the imageIds value to set + * @return the GetImagesByIdsOptionalParameter object itself. + */ + public GetImagesByIdsOptionalParameter withImageIds(List imageIds) { + this.imageIds = imageIds; + return this; + } + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the GetImagesByIdsOptionalParameter object itself. + */ + public GetImagesByIdsOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetImagesByIdsOptionalParameter object itself. + */ + public GetImagesByIdsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetIterationPerformanceOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetIterationPerformanceOptionalParameter.java new file mode 100644 index 000000000000..65b92616df6e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetIterationPerformanceOptionalParameter.java @@ -0,0 +1,92 @@ +/** + * 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.vision.customvision.training.models; + + +/** + * The GetIterationPerformanceOptionalParameter model. + */ +public class GetIterationPerformanceOptionalParameter { + /** + * The threshold used to determine true predictions. + */ + private Double threshold; + + /** + * If applicable, the bounding box overlap threshold used to determine true + * predictions. + */ + private Double overlapThreshold; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the threshold value. + * + * @return the threshold value + */ + public Double threshold() { + return this.threshold; + } + + /** + * Set the threshold value. + * + * @param threshold the threshold value to set + * @return the GetIterationPerformanceOptionalParameter object itself. + */ + public GetIterationPerformanceOptionalParameter withThreshold(Double threshold) { + this.threshold = threshold; + return this; + } + + /** + * Get the overlapThreshold value. + * + * @return the overlapThreshold value + */ + public Double overlapThreshold() { + return this.overlapThreshold; + } + + /** + * Set the overlapThreshold value. + * + * @param overlapThreshold the overlapThreshold value to set + * @return the GetIterationPerformanceOptionalParameter object itself. + */ + public GetIterationPerformanceOptionalParameter withOverlapThreshold(Double overlapThreshold) { + this.overlapThreshold = overlapThreshold; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetIterationPerformanceOptionalParameter object itself. + */ + public GetIterationPerformanceOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTagOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTagOptionalParameter.java new file mode 100644 index 000000000000..9046262baea7 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTagOptionalParameter.java @@ -0,0 +1,68 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; + +/** + * The GetTagOptionalParameter model. + */ +public class GetTagOptionalParameter { + /** + * The iteration to retrieve this tag from. Optional, defaults to current + * training set. + */ + private UUID iterationId; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the GetTagOptionalParameter object itself. + */ + public GetTagOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetTagOptionalParameter object itself. + */ + public GetTagOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTaggedImageCountOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTaggedImageCountOptionalParameter.java new file mode 100644 index 000000000000..fe834425ae31 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTaggedImageCountOptionalParameter.java @@ -0,0 +1,94 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import java.util.List; + +/** + * The GetTaggedImageCountOptionalParameter model. + */ +public class GetTaggedImageCountOptionalParameter { + /** + * The iteration id. Defaults to workspace. + */ + private UUID iterationId; + + /** + * A list of tags ids to filter the images to count. Defaults to all tags + * when null. + */ + private List tagIds; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the GetTaggedImageCountOptionalParameter object itself. + */ + public GetTaggedImageCountOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the GetTaggedImageCountOptionalParameter object itself. + */ + public GetTaggedImageCountOptionalParameter withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetTaggedImageCountOptionalParameter object itself. + */ + public GetTaggedImageCountOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTaggedImagesOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTaggedImagesOptionalParameter.java new file mode 100644 index 000000000000..306b1f337a02 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTaggedImagesOptionalParameter.java @@ -0,0 +1,171 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import java.util.List; + +/** + * The GetTaggedImagesOptionalParameter model. + */ +public class GetTaggedImagesOptionalParameter { + /** + * The iteration id. Defaults to workspace. + */ + private UUID iterationId; + + /** + * A list of tags ids to filter the images. Defaults to all tagged images + * when null. Limited to 20. + */ + private List tagIds; + + /** + * The ordering. Defaults to newest. Possible values include: 'Newest', + * 'Oldest'. + */ + private String orderBy; + + /** + * Maximum number of images to return. Defaults to 50, limited to 256. + */ + private Integer take; + + /** + * Number of images to skip before beginning the image batch. Defaults to + * 0. + */ + private Integer skip; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the GetTaggedImagesOptionalParameter object itself. + */ + public GetTaggedImagesOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the GetTaggedImagesOptionalParameter object itself. + */ + public GetTaggedImagesOptionalParameter withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + /** + * Get the orderBy value. + * + * @return the orderBy value + */ + public String orderBy() { + return this.orderBy; + } + + /** + * Set the orderBy value. + * + * @param orderBy the orderBy value to set + * @return the GetTaggedImagesOptionalParameter object itself. + */ + public GetTaggedImagesOptionalParameter withOrderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get the take value. + * + * @return the take value + */ + public Integer take() { + return this.take; + } + + /** + * Set the take value. + * + * @param take the take value to set + * @return the GetTaggedImagesOptionalParameter object itself. + */ + public GetTaggedImagesOptionalParameter withTake(Integer take) { + this.take = take; + return this; + } + + /** + * Get the skip value. + * + * @return the skip value + */ + public Integer skip() { + return this.skip; + } + + /** + * Set the skip value. + * + * @param skip the skip value to set + * @return the GetTaggedImagesOptionalParameter object itself. + */ + public GetTaggedImagesOptionalParameter withSkip(Integer skip) { + this.skip = skip; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetTaggedImagesOptionalParameter object itself. + */ + public GetTaggedImagesOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTagsOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTagsOptionalParameter.java new file mode 100644 index 000000000000..64f4cd56b3d2 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetTagsOptionalParameter.java @@ -0,0 +1,67 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; + +/** + * The GetTagsOptionalParameter model. + */ +public class GetTagsOptionalParameter { + /** + * The iteration id. Defaults to workspace. + */ + private UUID iterationId; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the GetTagsOptionalParameter object itself. + */ + public GetTagsOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetTagsOptionalParameter object itself. + */ + public GetTagsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetUntaggedImageCountOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetUntaggedImageCountOptionalParameter.java new file mode 100644 index 000000000000..8c238aba3cce --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetUntaggedImageCountOptionalParameter.java @@ -0,0 +1,67 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; + +/** + * The GetUntaggedImageCountOptionalParameter model. + */ +public class GetUntaggedImageCountOptionalParameter { + /** + * The iteration id. Defaults to workspace. + */ + private UUID iterationId; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the GetUntaggedImageCountOptionalParameter object itself. + */ + public GetUntaggedImageCountOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetUntaggedImageCountOptionalParameter object itself. + */ + public GetUntaggedImageCountOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetUntaggedImagesOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetUntaggedImagesOptionalParameter.java new file mode 100644 index 000000000000..9cd9bbb9f09e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/GetUntaggedImagesOptionalParameter.java @@ -0,0 +1,144 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; + +/** + * The GetUntaggedImagesOptionalParameter model. + */ +public class GetUntaggedImagesOptionalParameter { + /** + * The iteration id. Defaults to workspace. + */ + private UUID iterationId; + + /** + * The ordering. Defaults to newest. Possible values include: 'Newest', + * 'Oldest'. + */ + private String orderBy; + + /** + * Maximum number of images to return. Defaults to 50, limited to 256. + */ + private Integer take; + + /** + * Number of images to skip before beginning the image batch. Defaults to + * 0. + */ + private Integer skip; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the GetUntaggedImagesOptionalParameter object itself. + */ + public GetUntaggedImagesOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the orderBy value. + * + * @return the orderBy value + */ + public String orderBy() { + return this.orderBy; + } + + /** + * Set the orderBy value. + * + * @param orderBy the orderBy value to set + * @return the GetUntaggedImagesOptionalParameter object itself. + */ + public GetUntaggedImagesOptionalParameter withOrderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get the take value. + * + * @return the take value + */ + public Integer take() { + return this.take; + } + + /** + * Set the take value. + * + * @param take the take value to set + * @return the GetUntaggedImagesOptionalParameter object itself. + */ + public GetUntaggedImagesOptionalParameter withTake(Integer take) { + this.take = take; + return this; + } + + /** + * Get the skip value. + * + * @return the skip value + */ + public Integer skip() { + return this.skip; + } + + /** + * Set the skip value. + * + * @param skip the skip value to set + * @return the GetUntaggedImagesOptionalParameter object itself. + */ + public GetUntaggedImagesOptionalParameter withSkip(Integer skip) { + this.skip = skip; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the GetUntaggedImagesOptionalParameter object itself. + */ + public GetUntaggedImagesOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Image.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Image.java new file mode 100644 index 000000000000..2dd19b767654 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Image.java @@ -0,0 +1,140 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Image model to be sent as JSON. + */ +public class Image { + /** + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * The created property. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * The width property. + */ + @JsonProperty(value = "width", access = JsonProperty.Access.WRITE_ONLY) + private int width; + + /** + * The height property. + */ + @JsonProperty(value = "height", access = JsonProperty.Access.WRITE_ONLY) + private int height; + + /** + * The imageUri property. + */ + @JsonProperty(value = "imageUri", access = JsonProperty.Access.WRITE_ONLY) + private String imageUri; + + /** + * The thumbnailUri property. + */ + @JsonProperty(value = "thumbnailUri", access = JsonProperty.Access.WRITE_ONLY) + private String thumbnailUri; + + /** + * The tags property. + */ + @JsonProperty(value = "tags", access = JsonProperty.Access.WRITE_ONLY) + private List tags; + + /** + * The regions property. + */ + @JsonProperty(value = "regions", access = JsonProperty.Access.WRITE_ONLY) + private List regions; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the width value. + * + * @return the width value + */ + public int width() { + return this.width; + } + + /** + * Get the height value. + * + * @return the height value + */ + public int height() { + return this.height; + } + + /** + * Get the imageUri value. + * + * @return the imageUri value + */ + public String imageUri() { + return this.imageUri; + } + + /** + * Get the thumbnailUri value. + * + * @return the thumbnailUri value + */ + public String thumbnailUri() { + return this.thumbnailUri; + } + + /** + * Get the tags value. + * + * @return the tags value + */ + public List tags() { + return this.tags; + } + + /** + * Get the regions value. + * + * @return the regions value + */ + public List regions() { + return this.regions; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageCreateResult.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageCreateResult.java new file mode 100644 index 000000000000..550d0a0ec3b7 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageCreateResult.java @@ -0,0 +1,65 @@ +/** + * 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.vision.customvision.training.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageCreateResult model. + */ +public class ImageCreateResult { + /** + * The sourceUrl property. + */ + @JsonProperty(value = "sourceUrl", access = JsonProperty.Access.WRITE_ONLY) + private String sourceUrl; + + /** + * Possible values include: 'OK', 'OKDuplicate', 'ErrorSource', + * 'ErrorImageFormat', 'ErrorImageSize', 'ErrorStorage', + * 'ErrorLimitExceed', 'ErrorTagLimitExceed', 'ErrorRegionLimitExceed', + * 'ErrorUnknown'. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private ImageUploadStatus status; + + /** + * The image property. + */ + @JsonProperty(value = "image", access = JsonProperty.Access.WRITE_ONLY) + private Image image; + + /** + * Get the sourceUrl value. + * + * @return the sourceUrl value + */ + public String sourceUrl() { + return this.sourceUrl; + } + + /** + * Get the status value. + * + * @return the status value + */ + public ImageUploadStatus status() { + return this.status; + } + + /** + * Get the image value. + * + * @return the image value + */ + public Image image() { + return this.image; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageCreateSummary.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageCreateSummary.java new file mode 100644 index 000000000000..16597571a075 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageCreateSummary.java @@ -0,0 +1,48 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageCreateSummary model. + */ +public class ImageCreateSummary { + /** + * The isBatchSuccessful property. + */ + @JsonProperty(value = "isBatchSuccessful", access = JsonProperty.Access.WRITE_ONLY) + private boolean isBatchSuccessful; + + /** + * The images property. + */ + @JsonProperty(value = "images", access = JsonProperty.Access.WRITE_ONLY) + private List images; + + /** + * Get the isBatchSuccessful value. + * + * @return the isBatchSuccessful value + */ + public boolean isBatchSuccessful() { + return this.isBatchSuccessful; + } + + /** + * Get the images value. + * + * @return the images value + */ + public List images() { + return this.images; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageFileCreateBatch.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageFileCreateBatch.java new file mode 100644 index 000000000000..e482d940e2ef --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageFileCreateBatch.java @@ -0,0 +1,71 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageFileCreateBatch model. + */ +public class ImageFileCreateBatch { + /** + * The images property. + */ + @JsonProperty(value = "images") + private List images; + + /** + * The tagIds property. + */ + @JsonProperty(value = "tagIds") + private List tagIds; + + /** + * Get the images value. + * + * @return the images value + */ + public List images() { + return this.images; + } + + /** + * Set the images value. + * + * @param images the images value to set + * @return the ImageFileCreateBatch object itself. + */ + public ImageFileCreateBatch withImages(List images) { + this.images = images; + return this; + } + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the ImageFileCreateBatch object itself. + */ + public ImageFileCreateBatch withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageFileCreateEntry.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageFileCreateEntry.java new file mode 100644 index 000000000000..ffb24a279748 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageFileCreateEntry.java @@ -0,0 +1,123 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageFileCreateEntry model. + */ +public class ImageFileCreateEntry { + /** + * The name property. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The contents property. + */ + @JsonProperty(value = "contents") + private byte[] contents; + + /** + * The tagIds property. + */ + @JsonProperty(value = "tagIds") + private List tagIds; + + /** + * The regions property. + */ + @JsonProperty(value = "regions") + private List regions; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the ImageFileCreateEntry object itself. + */ + public ImageFileCreateEntry withName(String name) { + this.name = name; + return this; + } + + /** + * Get the contents value. + * + * @return the contents value + */ + public byte[] contents() { + return this.contents; + } + + /** + * Set the contents value. + * + * @param contents the contents value to set + * @return the ImageFileCreateEntry object itself. + */ + public ImageFileCreateEntry withContents(byte[] contents) { + this.contents = contents; + return this; + } + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the ImageFileCreateEntry object itself. + */ + public ImageFileCreateEntry withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + /** + * Get the regions value. + * + * @return the regions value + */ + public List regions() { + return this.regions; + } + + /** + * Set the regions value. + * + * @param regions the regions value to set + * @return the ImageFileCreateEntry object itself. + */ + public ImageFileCreateEntry withRegions(List regions) { + this.regions = regions; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageIdCreateBatch.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageIdCreateBatch.java new file mode 100644 index 000000000000..7e6d2aef3020 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageIdCreateBatch.java @@ -0,0 +1,71 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageIdCreateBatch model. + */ +public class ImageIdCreateBatch { + /** + * The images property. + */ + @JsonProperty(value = "images") + private List images; + + /** + * The tagIds property. + */ + @JsonProperty(value = "tagIds") + private List tagIds; + + /** + * Get the images value. + * + * @return the images value + */ + public List images() { + return this.images; + } + + /** + * Set the images value. + * + * @param images the images value to set + * @return the ImageIdCreateBatch object itself. + */ + public ImageIdCreateBatch withImages(List images) { + this.images = images; + return this; + } + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the ImageIdCreateBatch object itself. + */ + public ImageIdCreateBatch withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageIdCreateEntry.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageIdCreateEntry.java new file mode 100644 index 000000000000..050efd57101b --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageIdCreateEntry.java @@ -0,0 +1,97 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageIdCreateEntry model. + */ +public class ImageIdCreateEntry { + /** + * The id property. + */ + @JsonProperty(value = "id") + private UUID id; + + /** + * The tagIds property. + */ + @JsonProperty(value = "tagIds") + private List tagIds; + + /** + * The regions property. + */ + @JsonProperty(value = "regions") + private List regions; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Set the id value. + * + * @param id the id value to set + * @return the ImageIdCreateEntry object itself. + */ + public ImageIdCreateEntry withId(UUID id) { + this.id = id; + return this; + } + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the ImageIdCreateEntry object itself. + */ + public ImageIdCreateEntry withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + /** + * Get the regions value. + * + * @return the regions value + */ + public List regions() { + return this.regions; + } + + /** + * Set the regions value. + * + * @param regions the regions value to set + * @return the ImageIdCreateEntry object itself. + */ + public ImageIdCreateEntry withRegions(List regions) { + this.regions = regions; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImagePerformance.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImagePerformance.java new file mode 100644 index 000000000000..f89830435139 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImagePerformance.java @@ -0,0 +1,155 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import java.util.UUID; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Image performance model. + */ +public class ImagePerformance { + /** + * The predictions property. + */ + @JsonProperty(value = "predictions", access = JsonProperty.Access.WRITE_ONLY) + private List predictions; + + /** + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * The created property. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * The width property. + */ + @JsonProperty(value = "width", access = JsonProperty.Access.WRITE_ONLY) + private int width; + + /** + * The height property. + */ + @JsonProperty(value = "height", access = JsonProperty.Access.WRITE_ONLY) + private int height; + + /** + * The imageUri property. + */ + @JsonProperty(value = "imageUri", access = JsonProperty.Access.WRITE_ONLY) + private String imageUri; + + /** + * The thumbnailUri property. + */ + @JsonProperty(value = "thumbnailUri", access = JsonProperty.Access.WRITE_ONLY) + private String thumbnailUri; + + /** + * The tags property. + */ + @JsonProperty(value = "tags", access = JsonProperty.Access.WRITE_ONLY) + private List tags; + + /** + * The regions property. + */ + @JsonProperty(value = "regions", access = JsonProperty.Access.WRITE_ONLY) + private List regions; + + /** + * Get the predictions value. + * + * @return the predictions value + */ + public List predictions() { + return this.predictions; + } + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the width value. + * + * @return the width value + */ + public int width() { + return this.width; + } + + /** + * Get the height value. + * + * @return the height value + */ + public int height() { + return this.height; + } + + /** + * Get the imageUri value. + * + * @return the imageUri value + */ + public String imageUri() { + return this.imageUri; + } + + /** + * Get the thumbnailUri value. + * + * @return the thumbnailUri value + */ + public String thumbnailUri() { + return this.thumbnailUri; + } + + /** + * Get the tags value. + * + * @return the tags value + */ + public List tags() { + return this.tags; + } + + /** + * Get the regions value. + * + * @return the regions value + */ + public List regions() { + return this.regions; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImagePrediction.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImagePrediction.java new file mode 100644 index 000000000000..81f0107ce3ae --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImagePrediction.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.vision.customvision.training.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImagePrediction model. + */ +public class ImagePrediction { + /** + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * The project property. + */ + @JsonProperty(value = "project", access = JsonProperty.Access.WRITE_ONLY) + private UUID project; + + /** + * The iteration property. + */ + @JsonProperty(value = "iteration", access = JsonProperty.Access.WRITE_ONLY) + private UUID iteration; + + /** + * The created property. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * The predictions property. + */ + @JsonProperty(value = "predictions", access = JsonProperty.Access.WRITE_ONLY) + private List predictions; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the project value. + * + * @return the project value + */ + public UUID project() { + return this.project; + } + + /** + * Get the iteration value. + * + * @return the iteration value + */ + public UUID iteration() { + return this.iteration; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the predictions value. + * + * @return the predictions value + */ + public List predictions() { + return this.predictions; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegion.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegion.java new file mode 100644 index 000000000000..36e160ed153d --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegion.java @@ -0,0 +1,194 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageRegion model. + */ +public class ImageRegion { + /** + * The regionId property. + */ + @JsonProperty(value = "regionId", access = JsonProperty.Access.WRITE_ONLY) + private UUID regionId; + + /** + * The tagName property. + */ + @JsonProperty(value = "tagName", access = JsonProperty.Access.WRITE_ONLY) + private String tagName; + + /** + * The created property. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * The tagId property. + */ + @JsonProperty(value = "tagId") + private UUID tagId; + + /** + * The left property. + */ + @JsonProperty(value = "left") + private double left; + + /** + * The top property. + */ + @JsonProperty(value = "top") + private double top; + + /** + * The width property. + */ + @JsonProperty(value = "width") + private double width; + + /** + * The height property. + */ + @JsonProperty(value = "height") + private double height; + + /** + * Get the regionId value. + * + * @return the regionId value + */ + public UUID regionId() { + return this.regionId; + } + + /** + * Get the tagName value. + * + * @return the tagName value + */ + public String tagName() { + return this.tagName; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the tagId value. + * + * @return the tagId value + */ + public UUID tagId() { + return this.tagId; + } + + /** + * Set the tagId value. + * + * @param tagId the tagId value to set + * @return the ImageRegion object itself. + */ + public ImageRegion withTagId(UUID tagId) { + this.tagId = tagId; + return this; + } + + /** + * Get the left value. + * + * @return the left value + */ + public double left() { + return this.left; + } + + /** + * Set the left value. + * + * @param left the left value to set + * @return the ImageRegion object itself. + */ + public ImageRegion withLeft(double left) { + this.left = left; + return this; + } + + /** + * Get the top value. + * + * @return the top value + */ + public double top() { + return this.top; + } + + /** + * Set the top value. + * + * @param top the top value to set + * @return the ImageRegion object itself. + */ + public ImageRegion withTop(double top) { + this.top = top; + return this; + } + + /** + * Get the width value. + * + * @return the width value + */ + public double width() { + return this.width; + } + + /** + * Set the width value. + * + * @param width the width value to set + * @return the ImageRegion object itself. + */ + public ImageRegion withWidth(double width) { + this.width = width; + return this; + } + + /** + * Get the height value. + * + * @return the height value + */ + public double height() { + return this.height; + } + + /** + * Set the height value. + * + * @param height the height value to set + * @return the ImageRegion object itself. + */ + public ImageRegion withHeight(double height) { + this.height = height; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateBatch.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateBatch.java new file mode 100644 index 000000000000..5e974e5ca76a --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateBatch.java @@ -0,0 +1,44 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Batch of image region information to create. + */ +public class ImageRegionCreateBatch { + /** + * The regions property. + */ + @JsonProperty(value = "regions") + private List regions; + + /** + * Get the regions value. + * + * @return the regions value + */ + public List regions() { + return this.regions; + } + + /** + * Set the regions value. + * + * @param regions the regions value to set + * @return the ImageRegionCreateBatch object itself. + */ + public ImageRegionCreateBatch withRegions(List regions) { + this.regions = regions; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateEntry.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateEntry.java new file mode 100644 index 000000000000..077f0d78db63 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateEntry.java @@ -0,0 +1,174 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageRegionCreateEntry model. + */ +public class ImageRegionCreateEntry { + /** + * The imageId property. + */ + @JsonProperty(value = "imageId") + private UUID imageId; + + /** + * The tagId property. + */ + @JsonProperty(value = "tagId") + private UUID tagId; + + /** + * The left property. + */ + @JsonProperty(value = "left") + private double left; + + /** + * The top property. + */ + @JsonProperty(value = "top") + private double top; + + /** + * The width property. + */ + @JsonProperty(value = "width") + private double width; + + /** + * The height property. + */ + @JsonProperty(value = "height") + private double height; + + /** + * Get the imageId value. + * + * @return the imageId value + */ + public UUID imageId() { + return this.imageId; + } + + /** + * Set the imageId value. + * + * @param imageId the imageId value to set + * @return the ImageRegionCreateEntry object itself. + */ + public ImageRegionCreateEntry withImageId(UUID imageId) { + this.imageId = imageId; + return this; + } + + /** + * Get the tagId value. + * + * @return the tagId value + */ + public UUID tagId() { + return this.tagId; + } + + /** + * Set the tagId value. + * + * @param tagId the tagId value to set + * @return the ImageRegionCreateEntry object itself. + */ + public ImageRegionCreateEntry withTagId(UUID tagId) { + this.tagId = tagId; + return this; + } + + /** + * Get the left value. + * + * @return the left value + */ + public double left() { + return this.left; + } + + /** + * Set the left value. + * + * @param left the left value to set + * @return the ImageRegionCreateEntry object itself. + */ + public ImageRegionCreateEntry withLeft(double left) { + this.left = left; + return this; + } + + /** + * Get the top value. + * + * @return the top value + */ + public double top() { + return this.top; + } + + /** + * Set the top value. + * + * @param top the top value to set + * @return the ImageRegionCreateEntry object itself. + */ + public ImageRegionCreateEntry withTop(double top) { + this.top = top; + return this; + } + + /** + * Get the width value. + * + * @return the width value + */ + public double width() { + return this.width; + } + + /** + * Set the width value. + * + * @param width the width value to set + * @return the ImageRegionCreateEntry object itself. + */ + public ImageRegionCreateEntry withWidth(double width) { + this.width = width; + return this; + } + + /** + * Get the height value. + * + * @return the height value + */ + public double height() { + return this.height; + } + + /** + * Set the height value. + * + * @param height the height value to set + * @return the ImageRegionCreateEntry object itself. + */ + public ImageRegionCreateEntry withHeight(double height) { + this.height = height; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateResult.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateResult.java new file mode 100644 index 000000000000..212f89ba2b42 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateResult.java @@ -0,0 +1,209 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageRegionCreateResult model. + */ +public class ImageRegionCreateResult { + /** + * The imageId property. + */ + @JsonProperty(value = "imageId", access = JsonProperty.Access.WRITE_ONLY) + private UUID imageId; + + /** + * The regionId property. + */ + @JsonProperty(value = "regionId", access = JsonProperty.Access.WRITE_ONLY) + private UUID regionId; + + /** + * The tagName property. + */ + @JsonProperty(value = "tagName", access = JsonProperty.Access.WRITE_ONLY) + private String tagName; + + /** + * The created property. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * The tagId property. + */ + @JsonProperty(value = "tagId") + private UUID tagId; + + /** + * The left property. + */ + @JsonProperty(value = "left") + private double left; + + /** + * The top property. + */ + @JsonProperty(value = "top") + private double top; + + /** + * The width property. + */ + @JsonProperty(value = "width") + private double width; + + /** + * The height property. + */ + @JsonProperty(value = "height") + private double height; + + /** + * Get the imageId value. + * + * @return the imageId value + */ + public UUID imageId() { + return this.imageId; + } + + /** + * Get the regionId value. + * + * @return the regionId value + */ + public UUID regionId() { + return this.regionId; + } + + /** + * Get the tagName value. + * + * @return the tagName value + */ + public String tagName() { + return this.tagName; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the tagId value. + * + * @return the tagId value + */ + public UUID tagId() { + return this.tagId; + } + + /** + * Set the tagId value. + * + * @param tagId the tagId value to set + * @return the ImageRegionCreateResult object itself. + */ + public ImageRegionCreateResult withTagId(UUID tagId) { + this.tagId = tagId; + return this; + } + + /** + * Get the left value. + * + * @return the left value + */ + public double left() { + return this.left; + } + + /** + * Set the left value. + * + * @param left the left value to set + * @return the ImageRegionCreateResult object itself. + */ + public ImageRegionCreateResult withLeft(double left) { + this.left = left; + return this; + } + + /** + * Get the top value. + * + * @return the top value + */ + public double top() { + return this.top; + } + + /** + * Set the top value. + * + * @param top the top value to set + * @return the ImageRegionCreateResult object itself. + */ + public ImageRegionCreateResult withTop(double top) { + this.top = top; + return this; + } + + /** + * Get the width value. + * + * @return the width value + */ + public double width() { + return this.width; + } + + /** + * Set the width value. + * + * @param width the width value to set + * @return the ImageRegionCreateResult object itself. + */ + public ImageRegionCreateResult withWidth(double width) { + this.width = width; + return this; + } + + /** + * Get the height value. + * + * @return the height value + */ + public double height() { + return this.height; + } + + /** + * Set the height value. + * + * @param height the height value to set + * @return the ImageRegionCreateResult object itself. + */ + public ImageRegionCreateResult withHeight(double height) { + this.height = height; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateSummary.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateSummary.java new file mode 100644 index 000000000000..8be9c1734c0e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionCreateSummary.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.vision.customvision.training.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageRegionCreateSummary model. + */ +public class ImageRegionCreateSummary { + /** + * The created property. + */ + @JsonProperty(value = "created") + private List created; + + /** + * The duplicated property. + */ + @JsonProperty(value = "duplicated") + private List duplicated; + + /** + * The exceeded property. + */ + @JsonProperty(value = "exceeded") + private List exceeded; + + /** + * Get the created value. + * + * @return the created value + */ + public List created() { + return this.created; + } + + /** + * Set the created value. + * + * @param created the created value to set + * @return the ImageRegionCreateSummary object itself. + */ + public ImageRegionCreateSummary withCreated(List created) { + this.created = created; + return this; + } + + /** + * Get the duplicated value. + * + * @return the duplicated value + */ + public List duplicated() { + return this.duplicated; + } + + /** + * Set the duplicated value. + * + * @param duplicated the duplicated value to set + * @return the ImageRegionCreateSummary object itself. + */ + public ImageRegionCreateSummary withDuplicated(List duplicated) { + this.duplicated = duplicated; + return this; + } + + /** + * Get the exceeded value. + * + * @return the exceeded value + */ + public List exceeded() { + return this.exceeded; + } + + /** + * Set the exceeded value. + * + * @param exceeded the exceeded value to set + * @return the ImageRegionCreateSummary object itself. + */ + public ImageRegionCreateSummary withExceeded(List exceeded) { + this.exceeded = exceeded; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionProposal.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionProposal.java new file mode 100644 index 000000000000..0f2bb4bb9db6 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageRegionProposal.java @@ -0,0 +1,64 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageRegionProposal model. + */ +public class ImageRegionProposal { + /** + * The projectId property. + */ + @JsonProperty(value = "projectId", access = JsonProperty.Access.WRITE_ONLY) + private UUID projectId; + + /** + * The imageId property. + */ + @JsonProperty(value = "imageId", access = JsonProperty.Access.WRITE_ONLY) + private UUID imageId; + + /** + * The proposals property. + */ + @JsonProperty(value = "proposals", access = JsonProperty.Access.WRITE_ONLY) + private List proposals; + + /** + * Get the projectId value. + * + * @return the projectId value + */ + public UUID projectId() { + return this.projectId; + } + + /** + * Get the imageId value. + * + * @return the imageId value + */ + public UUID imageId() { + return this.imageId; + } + + /** + * Get the proposals value. + * + * @return the proposals value + */ + public List proposals() { + return this.proposals; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTag.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTag.java new file mode 100644 index 000000000000..f98696827da7 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTag.java @@ -0,0 +1,64 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageTag model. + */ +public class ImageTag { + /** + * The tagId property. + */ + @JsonProperty(value = "tagId", access = JsonProperty.Access.WRITE_ONLY) + private UUID tagId; + + /** + * The tagName property. + */ + @JsonProperty(value = "tagName", access = JsonProperty.Access.WRITE_ONLY) + private String tagName; + + /** + * The created property. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * Get the tagId value. + * + * @return the tagId value + */ + public UUID tagId() { + return this.tagId; + } + + /** + * Get the tagName value. + * + * @return the tagName value + */ + public String tagName() { + return this.tagName; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateBatch.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateBatch.java new file mode 100644 index 000000000000..1a6645dd0e2f --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateBatch.java @@ -0,0 +1,44 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageTagCreateBatch model. + */ +public class ImageTagCreateBatch { + /** + * The tags property. + */ + @JsonProperty(value = "tags") + private List tags; + + /** + * Get the tags value. + * + * @return the tags value + */ + public List tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the ImageTagCreateBatch object itself. + */ + public ImageTagCreateBatch withTags(List tags) { + this.tags = tags; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateEntry.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateEntry.java new file mode 100644 index 000000000000..f907b176be74 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateEntry.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageTagCreateEntry model. + */ +public class ImageTagCreateEntry { + /** + * The imageId property. + */ + @JsonProperty(value = "imageId") + private UUID imageId; + + /** + * The tagId property. + */ + @JsonProperty(value = "tagId") + private UUID tagId; + + /** + * Get the imageId value. + * + * @return the imageId value + */ + public UUID imageId() { + return this.imageId; + } + + /** + * Set the imageId value. + * + * @param imageId the imageId value to set + * @return the ImageTagCreateEntry object itself. + */ + public ImageTagCreateEntry withImageId(UUID imageId) { + this.imageId = imageId; + return this; + } + + /** + * Get the tagId value. + * + * @return the tagId value + */ + public UUID tagId() { + return this.tagId; + } + + /** + * Set the tagId value. + * + * @param tagId the tagId value to set + * @return the ImageTagCreateEntry object itself. + */ + public ImageTagCreateEntry withTagId(UUID tagId) { + this.tagId = tagId; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateSummary.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateSummary.java new file mode 100644 index 000000000000..743b57adc6aa --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageTagCreateSummary.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.vision.customvision.training.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageTagCreateSummary model. + */ +public class ImageTagCreateSummary { + /** + * The created property. + */ + @JsonProperty(value = "created") + private List created; + + /** + * The duplicated property. + */ + @JsonProperty(value = "duplicated") + private List duplicated; + + /** + * The exceeded property. + */ + @JsonProperty(value = "exceeded") + private List exceeded; + + /** + * Get the created value. + * + * @return the created value + */ + public List created() { + return this.created; + } + + /** + * Set the created value. + * + * @param created the created value to set + * @return the ImageTagCreateSummary object itself. + */ + public ImageTagCreateSummary withCreated(List created) { + this.created = created; + return this; + } + + /** + * Get the duplicated value. + * + * @return the duplicated value + */ + public List duplicated() { + return this.duplicated; + } + + /** + * Set the duplicated value. + * + * @param duplicated the duplicated value to set + * @return the ImageTagCreateSummary object itself. + */ + public ImageTagCreateSummary withDuplicated(List duplicated) { + this.duplicated = duplicated; + return this; + } + + /** + * Get the exceeded value. + * + * @return the exceeded value + */ + public List exceeded() { + return this.exceeded; + } + + /** + * Set the exceeded value. + * + * @param exceeded the exceeded value to set + * @return the ImageTagCreateSummary object itself. + */ + public ImageTagCreateSummary withExceeded(List exceeded) { + this.exceeded = exceeded; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUploadStatus.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUploadStatus.java new file mode 100644 index 000000000000..83f41cec498e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUploadStatus.java @@ -0,0 +1,65 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ImageUploadStatus. + */ +public final class ImageUploadStatus extends ExpandableStringEnum { + /** Static value OK for ImageUploadStatus. */ + public static final ImageUploadStatus OK = fromString("OK"); + + /** Static value OKDuplicate for ImageUploadStatus. */ + public static final ImageUploadStatus OKDUPLICATE = fromString("OKDuplicate"); + + /** Static value ErrorSource for ImageUploadStatus. */ + public static final ImageUploadStatus ERROR_SOURCE = fromString("ErrorSource"); + + /** Static value ErrorImageFormat for ImageUploadStatus. */ + public static final ImageUploadStatus ERROR_IMAGE_FORMAT = fromString("ErrorImageFormat"); + + /** Static value ErrorImageSize for ImageUploadStatus. */ + public static final ImageUploadStatus ERROR_IMAGE_SIZE = fromString("ErrorImageSize"); + + /** Static value ErrorStorage for ImageUploadStatus. */ + public static final ImageUploadStatus ERROR_STORAGE = fromString("ErrorStorage"); + + /** Static value ErrorLimitExceed for ImageUploadStatus. */ + public static final ImageUploadStatus ERROR_LIMIT_EXCEED = fromString("ErrorLimitExceed"); + + /** Static value ErrorTagLimitExceed for ImageUploadStatus. */ + public static final ImageUploadStatus ERROR_TAG_LIMIT_EXCEED = fromString("ErrorTagLimitExceed"); + + /** Static value ErrorRegionLimitExceed for ImageUploadStatus. */ + public static final ImageUploadStatus ERROR_REGION_LIMIT_EXCEED = fromString("ErrorRegionLimitExceed"); + + /** Static value ErrorUnknown for ImageUploadStatus. */ + public static final ImageUploadStatus ERROR_UNKNOWN = fromString("ErrorUnknown"); + + /** + * Creates or finds a ImageUploadStatus from its string representation. + * @param name a name to look for + * @return the corresponding ImageUploadStatus + */ + @JsonCreator + public static ImageUploadStatus fromString(String name) { + return fromString(name, ImageUploadStatus.class); + } + + /** + * @return known ImageUploadStatus values + */ + public static Collection values() { + return values(ImageUploadStatus.class); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrl.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrl.java new file mode 100644 index 000000000000..2fb58d808300 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrl.java @@ -0,0 +1,43 @@ +/** + * 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.vision.customvision.training.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageUrl model. + */ +public class ImageUrl { + /** + * The url property. + */ + @JsonProperty(value = "url") + private String url; + + /** + * Get the url value. + * + * @return the url value + */ + public String url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the ImageUrl object itself. + */ + public ImageUrl withUrl(String url) { + this.url = url; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrlCreateBatch.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrlCreateBatch.java new file mode 100644 index 000000000000..e4b5b8358039 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrlCreateBatch.java @@ -0,0 +1,71 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageUrlCreateBatch model. + */ +public class ImageUrlCreateBatch { + /** + * The images property. + */ + @JsonProperty(value = "images") + private List images; + + /** + * The tagIds property. + */ + @JsonProperty(value = "tagIds") + private List tagIds; + + /** + * Get the images value. + * + * @return the images value + */ + public List images() { + return this.images; + } + + /** + * Set the images value. + * + * @param images the images value to set + * @return the ImageUrlCreateBatch object itself. + */ + public ImageUrlCreateBatch withImages(List images) { + this.images = images; + return this; + } + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the ImageUrlCreateBatch object itself. + */ + public ImageUrlCreateBatch withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrlCreateEntry.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrlCreateEntry.java new file mode 100644 index 000000000000..c5077f75461e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageUrlCreateEntry.java @@ -0,0 +1,97 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ImageUrlCreateEntry model. + */ +public class ImageUrlCreateEntry { + /** + * The url property. + */ + @JsonProperty(value = "url") + private String url; + + /** + * The tagIds property. + */ + @JsonProperty(value = "tagIds") + private List tagIds; + + /** + * The regions property. + */ + @JsonProperty(value = "regions") + private List regions; + + /** + * Get the url value. + * + * @return the url value + */ + public String url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the ImageUrlCreateEntry object itself. + */ + public ImageUrlCreateEntry withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the tagIds value. + * + * @return the tagIds value + */ + public List tagIds() { + return this.tagIds; + } + + /** + * Set the tagIds value. + * + * @param tagIds the tagIds value to set + * @return the ImageUrlCreateEntry object itself. + */ + public ImageUrlCreateEntry withTagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + /** + * Get the regions value. + * + * @return the regions value + */ + public List regions() { + return this.regions; + } + + /** + * Set the regions value. + * + * @param regions the regions value to set + * @return the ImageUrlCreateEntry object itself. + */ + public ImageUrlCreateEntry withRegions(List regions) { + this.regions = regions; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Iteration.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Iteration.java new file mode 100644 index 000000000000..2f3eb95aeab3 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Iteration.java @@ -0,0 +1,208 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Iteration model to be sent over JSON. + */ +public class Iteration { + /** + * Gets the id of the iteration. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * Gets or sets the name of the iteration. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets or sets a value indicating whether the iteration is the default + * iteration for the project. + */ + @JsonProperty(value = "isDefault") + private boolean isDefault; + + /** + * Gets the current iteration status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private String status; + + /** + * Gets the time this iteration was completed. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * Gets the time this iteration was last modified. + */ + @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastModified; + + /** + * Gets the time this iteration was last modified. + */ + @JsonProperty(value = "trainedAt", access = JsonProperty.Access.WRITE_ONLY) + private DateTime trainedAt; + + /** + * Gets the project id of the iteration. + */ + @JsonProperty(value = "projectId", access = JsonProperty.Access.WRITE_ONLY) + private UUID projectId; + + /** + * Whether the iteration can be exported to another format for download. + */ + @JsonProperty(value = "exportable", access = JsonProperty.Access.WRITE_ONLY) + private boolean exportable; + + /** + * Get or sets a guid of the domain the iteration has been trained on. + */ + @JsonProperty(value = "domainId", access = JsonProperty.Access.WRITE_ONLY) + private UUID domainId; + + /** + * Gets the classification type of the project. Possible values include: + * 'Multiclass', 'Multilabel'. + */ + @JsonProperty(value = "classificationType", access = JsonProperty.Access.WRITE_ONLY) + private Classifier classificationType; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the Iteration object itself. + */ + public Iteration withName(String name) { + this.name = name; + return this; + } + + /** + * Get the isDefault value. + * + * @return the isDefault value + */ + public boolean isDefault() { + return this.isDefault; + } + + /** + * Set the isDefault value. + * + * @param isDefault the isDefault value to set + * @return the Iteration object itself. + */ + public Iteration withIsDefault(boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get the status value. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the lastModified value. + * + * @return the lastModified value + */ + public DateTime lastModified() { + return this.lastModified; + } + + /** + * Get the trainedAt value. + * + * @return the trainedAt value + */ + public DateTime trainedAt() { + return this.trainedAt; + } + + /** + * Get the projectId value. + * + * @return the projectId value + */ + public UUID projectId() { + return this.projectId; + } + + /** + * Get the exportable value. + * + * @return the exportable value + */ + public boolean exportable() { + return this.exportable; + } + + /** + * Get the domainId value. + * + * @return the domainId value + */ + public UUID domainId() { + return this.domainId; + } + + /** + * Get the classificationType value. + * + * @return the classificationType value + */ + public Classifier classificationType() { + return this.classificationType; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/IterationPerformance.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/IterationPerformance.java new file mode 100644 index 000000000000..eec95575cf0f --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/IterationPerformance.java @@ -0,0 +1,108 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Represents the detailed performance data for a trained iteration. + */ +public class IterationPerformance { + /** + * Gets the per-tag performance details for this iteration. + */ + @JsonProperty(value = "perTagPerformance", access = JsonProperty.Access.WRITE_ONLY) + private List perTagPerformance; + + /** + * Gets the precision. + */ + @JsonProperty(value = "precision", access = JsonProperty.Access.WRITE_ONLY) + private double precision; + + /** + * Gets the standard deviation for the precision. + */ + @JsonProperty(value = "precisionStdDeviation", access = JsonProperty.Access.WRITE_ONLY) + private double precisionStdDeviation; + + /** + * Gets the recall. + */ + @JsonProperty(value = "recall", access = JsonProperty.Access.WRITE_ONLY) + private double recall; + + /** + * Gets the standard deviation for the recall. + */ + @JsonProperty(value = "recallStdDeviation", access = JsonProperty.Access.WRITE_ONLY) + private double recallStdDeviation; + + /** + * Gets the average precision when applicable. + */ + @JsonProperty(value = "averagePrecision", access = JsonProperty.Access.WRITE_ONLY) + private Double averagePrecision; + + /** + * Get the perTagPerformance value. + * + * @return the perTagPerformance value + */ + public List perTagPerformance() { + return this.perTagPerformance; + } + + /** + * Get the precision value. + * + * @return the precision value + */ + public double precision() { + return this.precision; + } + + /** + * Get the precisionStdDeviation value. + * + * @return the precisionStdDeviation value + */ + public double precisionStdDeviation() { + return this.precisionStdDeviation; + } + + /** + * Get the recall value. + * + * @return the recall value + */ + public double recall() { + return this.recall; + } + + /** + * Get the recallStdDeviation value. + * + * @return the recallStdDeviation value + */ + public double recallStdDeviation() { + return this.recallStdDeviation; + } + + /** + * Get the averagePrecision value. + * + * @return the averagePrecision value + */ + public Double averagePrecision() { + return this.averagePrecision; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/OrderBy.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/OrderBy.java new file mode 100644 index 000000000000..791dc39332a8 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/OrderBy.java @@ -0,0 +1,44 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for OrderBy. + */ +public final class OrderBy extends ExpandableStringEnum { + /** Static value Newest for OrderBy. */ + public static final OrderBy NEWEST = fromString("Newest"); + + /** Static value Oldest for OrderBy. */ + public static final OrderBy OLDEST = fromString("Oldest"); + + /** Static value Suggested for OrderBy. */ + public static final OrderBy SUGGESTED = fromString("Suggested"); + + /** + * Creates or finds a OrderBy from its string representation. + * @param name a name to look for + * @return the corresponding OrderBy + */ + @JsonCreator + public static OrderBy fromString(String name) { + return fromString(name, OrderBy.class); + } + + /** + * @return known OrderBy values + */ + public static Collection values() { + return values(OrderBy.class); + } +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Prediction.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Prediction.java new file mode 100644 index 000000000000..7b22c84704c6 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Prediction.java @@ -0,0 +1,78 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Prediction model. + */ +public class Prediction { + /** + * The probability property. + */ + @JsonProperty(value = "probability", access = JsonProperty.Access.WRITE_ONLY) + private double probability; + + /** + * The tagId property. + */ + @JsonProperty(value = "tagId", access = JsonProperty.Access.WRITE_ONLY) + private UUID tagId; + + /** + * The tagName property. + */ + @JsonProperty(value = "tagName", access = JsonProperty.Access.WRITE_ONLY) + private String tagName; + + /** + * The boundingBox property. + */ + @JsonProperty(value = "boundingBox", access = JsonProperty.Access.WRITE_ONLY) + private BoundingBox boundingBox; + + /** + * Get the probability value. + * + * @return the probability value + */ + public double probability() { + return this.probability; + } + + /** + * Get the tagId value. + * + * @return the tagId value + */ + public UUID tagId() { + return this.tagId; + } + + /** + * Get the tagName value. + * + * @return the tagName value + */ + public String tagName() { + return this.tagName; + } + + /** + * Get the boundingBox value. + * + * @return the boundingBox value + */ + public BoundingBox boundingBox() { + return this.boundingBox; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryResult.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryResult.java new file mode 100644 index 000000000000..7e39fc375f7e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryResult.java @@ -0,0 +1,48 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The PredictionQueryResult model. + */ +public class PredictionQueryResult { + /** + * The token property. + */ + @JsonProperty(value = "token", access = JsonProperty.Access.WRITE_ONLY) + private PredictionQueryToken token; + + /** + * The results property. + */ + @JsonProperty(value = "results", access = JsonProperty.Access.WRITE_ONLY) + private List results; + + /** + * Get the token value. + * + * @return the token value + */ + public PredictionQueryToken token() { + return this.token; + } + + /** + * Get the results value. + * + * @return the results value + */ + public List results() { + return this.results; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryTag.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryTag.java new file mode 100644 index 000000000000..eabe4c9fd84d --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryTag.java @@ -0,0 +1,63 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The PredictionQueryTag model. + */ +public class PredictionQueryTag { + /** + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * The minThreshold property. + */ + @JsonProperty(value = "minThreshold", access = JsonProperty.Access.WRITE_ONLY) + private double minThreshold; + + /** + * The maxThreshold property. + */ + @JsonProperty(value = "maxThreshold", access = JsonProperty.Access.WRITE_ONLY) + private double maxThreshold; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the minThreshold value. + * + * @return the minThreshold value + */ + public double minThreshold() { + return this.minThreshold; + } + + /** + * Get the maxThreshold value. + * + * @return the maxThreshold value + */ + public double maxThreshold() { + return this.maxThreshold; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryToken.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryToken.java new file mode 100644 index 000000000000..bfaed30a24a4 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/PredictionQueryToken.java @@ -0,0 +1,254 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.List; +import java.util.UUID; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The PredictionQueryToken model. + */ +public class PredictionQueryToken { + /** + * The session property. + */ + @JsonProperty(value = "session") + private String session; + + /** + * The continuation property. + */ + @JsonProperty(value = "continuation") + private String continuation; + + /** + * The maxCount property. + */ + @JsonProperty(value = "maxCount") + private int maxCount; + + /** + * Possible values include: 'Newest', 'Oldest', 'Suggested'. + */ + @JsonProperty(value = "orderBy") + private OrderBy orderBy; + + /** + * The tags property. + */ + @JsonProperty(value = "tags") + private List tags; + + /** + * The iterationId property. + */ + @JsonProperty(value = "iterationId") + private UUID iterationId; + + /** + * The startTime property. + */ + @JsonProperty(value = "startTime") + private DateTime startTime; + + /** + * The endTime property. + */ + @JsonProperty(value = "endTime") + private DateTime endTime; + + /** + * The application property. + */ + @JsonProperty(value = "application") + private String application; + + /** + * Get the session value. + * + * @return the session value + */ + public String session() { + return this.session; + } + + /** + * Set the session value. + * + * @param session the session value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withSession(String session) { + this.session = session; + return this; + } + + /** + * Get the continuation value. + * + * @return the continuation value + */ + public String continuation() { + return this.continuation; + } + + /** + * Set the continuation value. + * + * @param continuation the continuation value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withContinuation(String continuation) { + this.continuation = continuation; + return this; + } + + /** + * Get the maxCount value. + * + * @return the maxCount value + */ + public int maxCount() { + return this.maxCount; + } + + /** + * Set the maxCount value. + * + * @param maxCount the maxCount value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withMaxCount(int maxCount) { + this.maxCount = maxCount; + return this; + } + + /** + * Get the orderBy value. + * + * @return the orderBy value + */ + public OrderBy orderBy() { + return this.orderBy; + } + + /** + * Set the orderBy value. + * + * @param orderBy the orderBy value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withOrderBy(OrderBy orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get the tags value. + * + * @return the tags value + */ + public List tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withTags(List tags) { + this.tags = tags; + return this; + } + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the startTime value. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Set the startTime value. + * + * @param startTime the startTime value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withStartTime(DateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the endTime value. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + + /** + * Set the endTime value. + * + * @param endTime the endTime value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withEndTime(DateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get the application value. + * + * @return the application value + */ + public String application() { + return this.application; + } + + /** + * Set the application value. + * + * @param application the application value to set + * @return the PredictionQueryToken object itself. + */ + public PredictionQueryToken withApplication(String application) { + this.application = application; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Project.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Project.java new file mode 100644 index 000000000000..31dd5e249e6e --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Project.java @@ -0,0 +1,157 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Represents a project. + */ +public class Project { + /** + * Gets the project id. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * Gets or sets the name of the project. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets or sets the description of the project. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Gets or sets the project settings. + */ + @JsonProperty(value = "settings") + private ProjectSettings settings; + + /** + * Gets the date this project was created. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * Gets the date this project was last modifed. + */ + @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastModified; + + /** + * Gets the thumbnail url representing the project. + */ + @JsonProperty(value = "thumbnailUri", access = JsonProperty.Access.WRITE_ONLY) + private String thumbnailUri; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the Project object itself. + */ + public Project withName(String name) { + this.name = name; + return this; + } + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the Project object itself. + */ + public Project withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the settings value. + * + * @return the settings value + */ + public ProjectSettings settings() { + return this.settings; + } + + /** + * Set the settings value. + * + * @param settings the settings value to set + * @return the Project object itself. + */ + public Project withSettings(ProjectSettings settings) { + this.settings = settings; + return this; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the lastModified value. + * + * @return the lastModified value + */ + public DateTime lastModified() { + return this.lastModified; + } + + /** + * Get the thumbnailUri value. + * + * @return the thumbnailUri value + */ + public String thumbnailUri() { + return this.thumbnailUri; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ProjectSettings.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ProjectSettings.java new file mode 100644 index 000000000000..ba8855458e12 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ProjectSettings.java @@ -0,0 +1,71 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Represents settings associated with a project. + */ +public class ProjectSettings { + /** + * Gets or sets the id of the Domain to use with this project. + */ + @JsonProperty(value = "domainId") + private UUID domainId; + + /** + * Gets or sets the classification type of the project. Possible values + * include: 'Multiclass', 'Multilabel'. + */ + @JsonProperty(value = "classificationType") + private Classifier classificationType; + + /** + * Get the domainId value. + * + * @return the domainId value + */ + public UUID domainId() { + return this.domainId; + } + + /** + * Set the domainId value. + * + * @param domainId the domainId value to set + * @return the ProjectSettings object itself. + */ + public ProjectSettings withDomainId(UUID domainId) { + this.domainId = domainId; + return this; + } + + /** + * Get the classificationType value. + * + * @return the classificationType value + */ + public Classifier classificationType() { + return this.classificationType; + } + + /** + * Set the classificationType value. + * + * @param classificationType the classificationType value to set + * @return the ProjectSettings object itself. + */ + public ProjectSettings withClassificationType(Classifier classificationType) { + this.classificationType = classificationType; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/QuickTestImageOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/QuickTestImageOptionalParameter.java new file mode 100644 index 000000000000..4e318ee1e31a --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/QuickTestImageOptionalParameter.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.vision.customvision.training.models; + +import java.util.UUID; + +/** + * The QuickTestImageOptionalParameter model. + */ +public class QuickTestImageOptionalParameter { + /** + * Optional. Specifies the id of a particular iteration to evaluate + * against. + * The default iteration for the project will be used when not specified. + */ + private UUID iterationId; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the QuickTestImageOptionalParameter object itself. + */ + public QuickTestImageOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the QuickTestImageOptionalParameter object itself. + */ + public QuickTestImageOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/QuickTestImageUrlOptionalParameter.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/QuickTestImageUrlOptionalParameter.java new file mode 100644 index 000000000000..6e63337d65a1 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/QuickTestImageUrlOptionalParameter.java @@ -0,0 +1,94 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; + +/** + * The QuickTestImageUrlOptionalParameter model. + */ +public class QuickTestImageUrlOptionalParameter { + /** + * Optional. Specifies the id of a particular iteration to evaluate + * against. + * The default iteration for the project will be used when not specified. + */ + private UUID iterationId; + + /** + * The url property. + */ + private String url; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the iterationId value. + * + * @return the iterationId value + */ + public UUID iterationId() { + return this.iterationId; + } + + /** + * Set the iterationId value. + * + * @param iterationId the iterationId value to set + * @return the QuickTestImageUrlOptionalParameter object itself. + */ + public QuickTestImageUrlOptionalParameter withIterationId(UUID iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * Get the url value. + * + * @return the url value + */ + public String url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the QuickTestImageUrlOptionalParameter object itself. + */ + public QuickTestImageUrlOptionalParameter withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the QuickTestImageUrlOptionalParameter object itself. + */ + public QuickTestImageUrlOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Region.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Region.java new file mode 100644 index 000000000000..1c9cf038292c --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Region.java @@ -0,0 +1,148 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Region model. + */ +public class Region { + /** + * The tagId property. + */ + @JsonProperty(value = "tagId") + private UUID tagId; + + /** + * The left property. + */ + @JsonProperty(value = "left") + private double left; + + /** + * The top property. + */ + @JsonProperty(value = "top") + private double top; + + /** + * The width property. + */ + @JsonProperty(value = "width") + private double width; + + /** + * The height property. + */ + @JsonProperty(value = "height") + private double height; + + /** + * Get the tagId value. + * + * @return the tagId value + */ + public UUID tagId() { + return this.tagId; + } + + /** + * Set the tagId value. + * + * @param tagId the tagId value to set + * @return the Region object itself. + */ + public Region withTagId(UUID tagId) { + this.tagId = tagId; + return this; + } + + /** + * Get the left value. + * + * @return the left value + */ + public double left() { + return this.left; + } + + /** + * Set the left value. + * + * @param left the left value to set + * @return the Region object itself. + */ + public Region withLeft(double left) { + this.left = left; + return this; + } + + /** + * Get the top value. + * + * @return the top value + */ + public double top() { + return this.top; + } + + /** + * Set the top value. + * + * @param top the top value to set + * @return the Region object itself. + */ + public Region withTop(double top) { + this.top = top; + return this; + } + + /** + * Get the width value. + * + * @return the width value + */ + public double width() { + return this.width; + } + + /** + * Set the width value. + * + * @param width the width value to set + * @return the Region object itself. + */ + public Region withWidth(double width) { + this.width = width; + return this; + } + + /** + * Get the height value. + * + * @return the height value + */ + public double height() { + return this.height; + } + + /** + * Set the height value. + * + * @param height the height value to set + * @return the Region object itself. + */ + public Region withHeight(double height) { + this.height = height; + return this; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/RegionProposal.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/RegionProposal.java new file mode 100644 index 000000000000..48245f89956f --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/RegionProposal.java @@ -0,0 +1,47 @@ +/** + * 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.vision.customvision.training.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The RegionProposal model. + */ +public class RegionProposal { + /** + * The confidence property. + */ + @JsonProperty(value = "confidence", access = JsonProperty.Access.WRITE_ONLY) + private double confidence; + + /** + * The boundingBox property. + */ + @JsonProperty(value = "boundingBox", access = JsonProperty.Access.WRITE_ONLY) + private BoundingBox boundingBox; + + /** + * Get the confidence value. + * + * @return the confidence value + */ + public double confidence() { + return this.confidence; + } + + /** + * Get the boundingBox value. + * + * @return the boundingBox value + */ + public BoundingBox boundingBox() { + return this.boundingBox; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/StoredImagePrediction.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/StoredImagePrediction.java new file mode 100644 index 000000000000..763004edf3f6 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/StoredImagePrediction.java @@ -0,0 +1,140 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import org.joda.time.DateTime; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * result of an image classification request. + */ +public class StoredImagePrediction { + /** + * The imageUri property. + */ + @JsonProperty(value = "imageUri", access = JsonProperty.Access.WRITE_ONLY) + private String imageUri; + + /** + * The thumbnailUri property. + */ + @JsonProperty(value = "thumbnailUri", access = JsonProperty.Access.WRITE_ONLY) + private String thumbnailUri; + + /** + * The domain property. + */ + @JsonProperty(value = "domain", access = JsonProperty.Access.WRITE_ONLY) + private UUID domain; + + /** + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * The project property. + */ + @JsonProperty(value = "project", access = JsonProperty.Access.WRITE_ONLY) + private UUID project; + + /** + * The iteration property. + */ + @JsonProperty(value = "iteration", access = JsonProperty.Access.WRITE_ONLY) + private UUID iteration; + + /** + * The created property. + */ + @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) + private DateTime created; + + /** + * The predictions property. + */ + @JsonProperty(value = "predictions", access = JsonProperty.Access.WRITE_ONLY) + private List predictions; + + /** + * Get the imageUri value. + * + * @return the imageUri value + */ + public String imageUri() { + return this.imageUri; + } + + /** + * Get the thumbnailUri value. + * + * @return the thumbnailUri value + */ + public String thumbnailUri() { + return this.thumbnailUri; + } + + /** + * Get the domain value. + * + * @return the domain value + */ + public UUID domain() { + return this.domain; + } + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the project value. + * + * @return the project value + */ + public UUID project() { + return this.project; + } + + /** + * Get the iteration value. + * + * @return the iteration value + */ + public UUID iteration() { + return this.iteration; + } + + /** + * Get the created value. + * + * @return the created value + */ + public DateTime created() { + return this.created; + } + + /** + * Get the predictions value. + * + * @return the predictions value + */ + public List predictions() { + return this.predictions; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Tag.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Tag.java new file mode 100644 index 000000000000..42de469690e0 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/Tag.java @@ -0,0 +1,100 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Represents a Tag. + */ +public class Tag { + /** + * Gets the Tag ID. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * Gets or sets the name of the tag. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets or sets the description of the tag. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Gets the number of images with this tag. + */ + @JsonProperty(value = "imageCount", access = JsonProperty.Access.WRITE_ONLY) + private int imageCount; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the Tag object itself. + */ + public Tag withName(String name) { + this.name = name; + return this; + } + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the Tag object itself. + */ + public Tag withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the imageCount value. + * + * @return the imageCount value + */ + public int imageCount() { + return this.imageCount; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/TagPerformance.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/TagPerformance.java new file mode 100644 index 000000000000..c19f74b0e4a3 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/TagPerformance.java @@ -0,0 +1,123 @@ +/** + * 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.vision.customvision.training.models; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Represents performance data for a particular tag in a trained iteration. + */ +public class TagPerformance { + /** + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private UUID id; + + /** + * The name property. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * Gets the precision. + */ + @JsonProperty(value = "precision", access = JsonProperty.Access.WRITE_ONLY) + private double precision; + + /** + * Gets the standard deviation for the precision. + */ + @JsonProperty(value = "precisionStdDeviation", access = JsonProperty.Access.WRITE_ONLY) + private double precisionStdDeviation; + + /** + * Gets the recall. + */ + @JsonProperty(value = "recall", access = JsonProperty.Access.WRITE_ONLY) + private double recall; + + /** + * Gets the standard deviation for the recall. + */ + @JsonProperty(value = "recallStdDeviation", access = JsonProperty.Access.WRITE_ONLY) + private double recallStdDeviation; + + /** + * Gets the average precision when applicable. + */ + @JsonProperty(value = "averagePrecision", access = JsonProperty.Access.WRITE_ONLY) + private Double averagePrecision; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the precision value. + * + * @return the precision value + */ + public double precision() { + return this.precision; + } + + /** + * Get the precisionStdDeviation value. + * + * @return the precisionStdDeviation value + */ + public double precisionStdDeviation() { + return this.precisionStdDeviation; + } + + /** + * Get the recall value. + * + * @return the recall value + */ + public double recall() { + return this.recall; + } + + /** + * Get the recallStdDeviation value. + * + * @return the recallStdDeviation value + */ + public double recallStdDeviation() { + return this.recallStdDeviation; + } + + /** + * Get the averagePrecision value. + * + * @return the averagePrecision value + */ + public Double averagePrecision() { + return this.averagePrecision; + } + +} diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/package-info.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/package-info.java new file mode 100644 index 000000000000..a23776b5606c --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/package-info.java @@ -0,0 +1,10 @@ +// 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. + +/** + * This package contains the models classes for TrainingApi. + */ +package com.microsoft.azure.cognitiveservices.vision.customvision.training.models; diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/package-info.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/package-info.java new file mode 100644 index 000000000000..40cf7938d6de --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/package-info.java @@ -0,0 +1,10 @@ +// 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. + +/** + * This package contains the classes for TrainingApi. + */ +package com.microsoft.azure.cognitiveservices.vision.customvision.training; diff --git a/cognitiveservices/data-plane/vision/faceapi/pom.xml b/cognitiveservices/data-plane/vision/faceapi/pom.xml index 0edf678883d7..9da7c4316669 100644 --- a/cognitiveservices/data-plane/vision/faceapi/pom.xml +++ b/cognitiveservices/data-plane/vision/faceapi/pom.xml @@ -8,15 +8,15 @@ com.microsoft.azure.cognitiveservices azure-cognitiveservices-parent - 1.0.1 + 1.0.2 ../../pom.xml azure-cognitiveservices-faceapi - 1.0.1-beta + 1.0.2-beta jar Microsoft Azure SDK for Cognitive Service Face API This package contains Microsoft Cognitive Service Face API SDK. - https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/vision/faceapi + https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/vision/faceapi The MIT License (MIT) diff --git a/compute/resource-manager/v2017_03_30/pom.xml b/compute/resource-manager/v2017_03_30/pom.xml index 753e96b6258f..93a34059510d 100644 --- a/compute/resource-manager/v2017_03_30/pom.xml +++ b/compute/resource-manager/v2017_03_30/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.compute.v2017_03_30 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-compute - 1.0.0-beta-1 - jar - Microsoft Azure SDK for Compute Management - This package contains Microsoft Compute Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.compute.v2017_03_30 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-compute + 1.0.0-beta + jar + Microsoft Azure SDK for Compute Management + This package contains Microsoft Compute Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AdditionalUnattendContent.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AdditionalUnattendContent.java index 1e021a425f3b..d54b7d653c4f 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AdditionalUnattendContent.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AdditionalUnattendContent.java @@ -49,7 +49,7 @@ public class AdditionalUnattendContent { private String content; /** - * Get the passName value. + * Get the pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'OobeSystem'. * * @return the passName value */ @@ -58,7 +58,7 @@ public PassNames passName() { } /** - * Set the passName value. + * Set the pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'OobeSystem'. * * @param passName the passName value to set * @return the AdditionalUnattendContent object itself. @@ -69,7 +69,7 @@ public AdditionalUnattendContent withPassName(PassNames passName) { } /** - * Get the componentName value. + * Get the component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'Microsoft-Windows-Shell-Setup'. * * @return the componentName value */ @@ -78,7 +78,7 @@ public ComponentNames componentName() { } /** - * Set the componentName value. + * Set the component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'Microsoft-Windows-Shell-Setup'. * * @param componentName the componentName value to set * @return the AdditionalUnattendContent object itself. @@ -89,7 +89,7 @@ public AdditionalUnattendContent withComponentName(ComponentNames componentName) } /** - * Get the settingName value. + * Get specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'AutoLogon', 'FirstLogonCommands'. * * @return the settingName value */ @@ -98,7 +98,7 @@ public SettingNames settingName() { } /** - * Set the settingName value. + * Set specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'AutoLogon', 'FirstLogonCommands'. * * @param settingName the settingName value to set * @return the AdditionalUnattendContent object itself. @@ -109,7 +109,7 @@ public AdditionalUnattendContent withSettingName(SettingNames settingName) { } /** - * Get the content value. + * Get specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. * * @return the content value */ @@ -118,7 +118,7 @@ public String content() { } /** - * Set the content value. + * Set specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. * * @param content the content value to set * @return the AdditionalUnattendContent object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiEntityReference.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiEntityReference.java index 780f20fac6e4..67561d8c5b9f 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiEntityReference.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiEntityReference.java @@ -22,7 +22,7 @@ public class ApiEntityReference { private String id; /** - * Get the id value. + * Get the ARM resource id in the form of /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/... * * @return the id value */ @@ -31,7 +31,7 @@ public String id() { } /** - * Set the id value. + * Set the ARM resource id in the form of /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/... * * @param id the id value to set * @return the ApiEntityReference object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiError.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiError.java index 6d60d80ef4bc..d9e3d34b5427 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiError.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiError.java @@ -46,7 +46,7 @@ public class ApiError { private String message; /** - * Get the details value. + * Get the Api error details. * * @return the details value */ @@ -55,7 +55,7 @@ public List details() { } /** - * Set the details value. + * Set the Api error details. * * @param details the details value to set * @return the ApiError object itself. @@ -66,7 +66,7 @@ public ApiError withDetails(List details) { } /** - * Get the innererror value. + * Get the Api inner error. * * @return the innererror value */ @@ -75,7 +75,7 @@ public InnerError innererror() { } /** - * Set the innererror value. + * Set the Api inner error. * * @param innererror the innererror value to set * @return the ApiError object itself. @@ -86,7 +86,7 @@ public ApiError withInnererror(InnerError innererror) { } /** - * Get the code value. + * Get the error code. * * @return the code value */ @@ -95,7 +95,7 @@ public String code() { } /** - * Set the code value. + * Set the error code. * * @param code the code value to set * @return the ApiError object itself. @@ -106,7 +106,7 @@ public ApiError withCode(String code) { } /** - * Get the target value. + * Get the target of the particular error. * * @return the target value */ @@ -115,7 +115,7 @@ public String target() { } /** - * Set the target value. + * Set the target of the particular error. * * @param target the target value to set * @return the ApiError object itself. @@ -126,7 +126,7 @@ public ApiError withTarget(String target) { } /** - * Get the message value. + * Get the error message. * * @return the message value */ @@ -135,7 +135,7 @@ public String message() { } /** - * Set the message value. + * Set the error message. * * @param message the message value to set * @return the ApiError object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiErrorBase.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiErrorBase.java index 111d1f884f01..4d7b8373f048 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiErrorBase.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ApiErrorBase.java @@ -33,7 +33,7 @@ public class ApiErrorBase { private String message; /** - * Get the code value. + * Get the error code. * * @return the code value */ @@ -42,7 +42,7 @@ public String code() { } /** - * Set the code value. + * Set the error code. * * @param code the code value to set * @return the ApiErrorBase object itself. @@ -53,7 +53,7 @@ public ApiErrorBase withCode(String code) { } /** - * Get the target value. + * Get the target of the particular error. * * @return the target value */ @@ -62,7 +62,7 @@ public String target() { } /** - * Set the target value. + * Set the target of the particular error. * * @param target the target value to set * @return the ApiErrorBase object itself. @@ -73,7 +73,7 @@ public ApiErrorBase withTarget(String target) { } /** - * Get the message value. + * Get the error message. * * @return the message value */ @@ -82,7 +82,7 @@ public String message() { } /** - * Set the message value. + * Set the error message. * * @param message the message value to set * @return the ApiErrorBase object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AvailabilitySet.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AvailabilitySet.java index 8f3e1454ca0f..e410e5d2de3d 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AvailabilitySet.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AvailabilitySet.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_03_30.implementation.ComputeManager; import java.util.List; diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AvailabilitySets.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AvailabilitySets.java index 53614f2f2fc2..72768dbcb96c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AvailabilitySets.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/AvailabilitySets.java @@ -14,6 +14,7 @@ import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; import com.microsoft.azure.management.compute.v2017_03_30.implementation.AvailabilitySetsInner; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.compute.v2017_03_30.AvailabilitySetVirtualMachineSize; @@ -21,7 +22,7 @@ /** * Type representing AvailabilitySets. */ -public interface AvailabilitySets extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, HasInner { +public interface AvailabilitySets extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { /** * Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. * diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/BootDiagnostics.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/BootDiagnostics.java index 2ef3ec5f9be0..54a98991df2a 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/BootDiagnostics.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/BootDiagnostics.java @@ -32,7 +32,7 @@ public class BootDiagnostics { private String storageUri; /** - * Get the enabled value. + * Get whether boot diagnostics should be enabled on the Virtual Machine. * * @return the enabled value */ @@ -41,7 +41,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set whether boot diagnostics should be enabled on the Virtual Machine. * * @param enabled the enabled value to set * @return the BootDiagnostics object itself. @@ -52,7 +52,7 @@ public BootDiagnostics withEnabled(Boolean enabled) { } /** - * Get the storageUri value. + * Get uri of the storage account to use for placing the console output and screenshot. * * @return the storageUri value */ @@ -61,7 +61,7 @@ public String storageUri() { } /** - * Set the storageUri value. + * Set uri of the storage account to use for placing the console output and screenshot. * * @param storageUri the storageUri value to set * @return the BootDiagnostics object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/BootDiagnosticsInstanceView.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/BootDiagnosticsInstanceView.java index 197d6f4747b7..e9b57e135648 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/BootDiagnosticsInstanceView.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/BootDiagnosticsInstanceView.java @@ -27,7 +27,7 @@ public class BootDiagnosticsInstanceView { private String serialConsoleLogBlobUri; /** - * Get the consoleScreenshotBlobUri value. + * Get the console screenshot blob URI. * * @return the consoleScreenshotBlobUri value */ @@ -36,7 +36,7 @@ public String consoleScreenshotBlobUri() { } /** - * Set the consoleScreenshotBlobUri value. + * Set the console screenshot blob URI. * * @param consoleScreenshotBlobUri the consoleScreenshotBlobUri value to set * @return the BootDiagnosticsInstanceView object itself. @@ -47,7 +47,7 @@ public BootDiagnosticsInstanceView withConsoleScreenshotBlobUri(String consoleSc } /** - * Get the serialConsoleLogBlobUri value. + * Get the Linux serial console log blob Uri. * * @return the serialConsoleLogBlobUri value */ @@ -56,7 +56,7 @@ public String serialConsoleLogBlobUri() { } /** - * Set the serialConsoleLogBlobUri value. + * Set the Linux serial console log blob Uri. * * @param serialConsoleLogBlobUri the serialConsoleLogBlobUri value to set * @return the BootDiagnosticsInstanceView object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ComputeLongRunningOperationProperties.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ComputeLongRunningOperationProperties.java index 1e80ed94605b..7b67cde1e6b7 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ComputeLongRunningOperationProperties.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ComputeLongRunningOperationProperties.java @@ -21,7 +21,7 @@ public class ComputeLongRunningOperationProperties { private Object output; /** - * Get the output value. + * Get operation output data (raw JSON). * * @return the output value */ @@ -30,7 +30,7 @@ public Object output() { } /** - * Set the output value. + * Set operation output data (raw JSON). * * @param output the output value to set * @return the ComputeLongRunningOperationProperties object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/CreationData.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/CreationData.java index 5527b2a627b1..4971c717a92b 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/CreationData.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/CreationData.java @@ -50,7 +50,7 @@ public class CreationData { private String sourceResourceId; /** - * Get the createOption value. + * Get this enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy'. * * @return the createOption value */ @@ -59,7 +59,7 @@ public DiskCreateOption createOption() { } /** - * Set the createOption value. + * Set this enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy'. * * @param createOption the createOption value to set * @return the CreationData object itself. @@ -70,7 +70,7 @@ public CreationData withCreateOption(DiskCreateOption createOption) { } /** - * Get the storageAccountId value. + * Get if createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription. * * @return the storageAccountId value */ @@ -79,7 +79,7 @@ public String storageAccountId() { } /** - * Set the storageAccountId value. + * Set if createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription. * * @param storageAccountId the storageAccountId value to set * @return the CreationData object itself. @@ -90,7 +90,7 @@ public CreationData withStorageAccountId(String storageAccountId) { } /** - * Get the imageReference value. + * Get disk source information. * * @return the imageReference value */ @@ -99,7 +99,7 @@ public ImageDiskReference imageReference() { } /** - * Set the imageReference value. + * Set disk source information. * * @param imageReference the imageReference value to set * @return the CreationData object itself. @@ -110,7 +110,7 @@ public CreationData withImageReference(ImageDiskReference imageReference) { } /** - * Get the sourceUri value. + * Get if createOption is Import, this is the URI of a blob to be imported into a managed disk. * * @return the sourceUri value */ @@ -119,7 +119,7 @@ public String sourceUri() { } /** - * Set the sourceUri value. + * Set if createOption is Import, this is the URI of a blob to be imported into a managed disk. * * @param sourceUri the sourceUri value to set * @return the CreationData object itself. @@ -130,7 +130,7 @@ public CreationData withSourceUri(String sourceUri) { } /** - * Get the sourceResourceId value. + * Get if createOption is Copy, this is the ARM id of the source snapshot or disk. * * @return the sourceResourceId value */ @@ -139,7 +139,7 @@ public String sourceResourceId() { } /** - * Set the sourceResourceId value. + * Set if createOption is Copy, this is the ARM id of the source snapshot or disk. * * @param sourceResourceId the sourceResourceId value to set * @return the CreationData object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DataDisk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DataDisk.java index d7e81c850def..d29cb4dbc063 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DataDisk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DataDisk.java @@ -81,7 +81,7 @@ public class DataDisk { private ManagedDiskParameters managedDisk; /** - * Get the lun value. + * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */ @@ -90,7 +90,7 @@ public int lun() { } /** - * Set the lun value. + * Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @param lun the lun value to set * @return the DataDisk object itself. @@ -101,7 +101,7 @@ public DataDisk withLun(int lun) { } /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -110,7 +110,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the DataDisk object itself. @@ -121,7 +121,7 @@ public DataDisk withName(String name) { } /** - * Get the vhd value. + * Get the virtual hard disk. * * @return the vhd value */ @@ -130,7 +130,7 @@ public VirtualHardDisk vhd() { } /** - * Set the vhd value. + * Set the virtual hard disk. * * @param vhd the vhd value to set * @return the DataDisk object itself. @@ -141,7 +141,7 @@ public DataDisk withVhd(VirtualHardDisk vhd) { } /** - * Get the image value. + * Get the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. * * @return the image value */ @@ -150,7 +150,7 @@ public VirtualHardDisk image() { } /** - * Set the image value. + * Set the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. * * @param image the image value to set * @return the DataDisk object itself. @@ -161,7 +161,7 @@ public DataDisk withImage(VirtualHardDisk image) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -170,7 +170,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the DataDisk object itself. @@ -181,7 +181,7 @@ public DataDisk withCaching(CachingTypes caching) { } /** - * Get the createOption value. + * Get specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */ @@ -190,7 +190,7 @@ public DiskCreateOptionTypes createOption() { } /** - * Set the createOption value. + * Set specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the DataDisk object itself. @@ -201,7 +201,7 @@ public DataDisk withCreateOption(DiskCreateOptionTypes createOption) { } /** - * Get the diskSizeGB value. + * Get specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -210,7 +210,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the DataDisk object itself. @@ -221,7 +221,7 @@ public DataDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -230,7 +230,7 @@ public ManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the DataDisk object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DataDiskImage.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DataDiskImage.java index 117db573ad1c..d9deb1cb81f1 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DataDiskImage.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DataDiskImage.java @@ -23,7 +23,7 @@ public class DataDiskImage { private Integer lun; /** - * Get the lun value. + * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiagnosticsProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiagnosticsProfile.java index 82a8085f79fb..3fc9ba6886e3 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiagnosticsProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiagnosticsProfile.java @@ -27,7 +27,7 @@ public class DiagnosticsProfile { private BootDiagnostics bootDiagnostics; /** - * Get the bootDiagnostics value. + * Get boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> For Linux Virtual Machines, you can easily view the output of your console log. <br><br> For both Windows and Linux virtual machines, Azure also enables you to see a screenshot of the VM from the hypervisor. * * @return the bootDiagnostics value */ @@ -36,7 +36,7 @@ public BootDiagnostics bootDiagnostics() { } /** - * Set the bootDiagnostics value. + * Set boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> For Linux Virtual Machines, you can easily view the output of your console log. <br><br> For both Windows and Linux virtual machines, Azure also enables you to see a screenshot of the VM from the hypervisor. * * @param bootDiagnostics the bootDiagnostics value to set * @return the DiagnosticsProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Disk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Disk.java index ef32cc00e56d..4717ef58c2c4 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Disk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Disk.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_03_30.implementation.ComputeManager; import java.util.List; diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskEncryptionSettings.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskEncryptionSettings.java index c620e1103b1e..a5fcaf8f01d4 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskEncryptionSettings.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskEncryptionSettings.java @@ -35,7 +35,7 @@ public class DiskEncryptionSettings { private Boolean enabled; /** - * Get the diskEncryptionKey value. + * Get specifies the location of the disk encryption key, which is a Key Vault Secret. * * @return the diskEncryptionKey value */ @@ -44,7 +44,7 @@ public KeyVaultSecretReference diskEncryptionKey() { } /** - * Set the diskEncryptionKey value. + * Set specifies the location of the disk encryption key, which is a Key Vault Secret. * * @param diskEncryptionKey the diskEncryptionKey value to set * @return the DiskEncryptionSettings object itself. @@ -55,7 +55,7 @@ public DiskEncryptionSettings withDiskEncryptionKey(KeyVaultSecretReference disk } /** - * Get the keyEncryptionKey value. + * Get specifies the location of the key encryption key in Key Vault. * * @return the keyEncryptionKey value */ @@ -64,7 +64,7 @@ public KeyVaultKeyReference keyEncryptionKey() { } /** - * Set the keyEncryptionKey value. + * Set specifies the location of the key encryption key in Key Vault. * * @param keyEncryptionKey the keyEncryptionKey value to set * @return the DiskEncryptionSettings object itself. @@ -75,7 +75,7 @@ public DiskEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncry } /** - * Get the enabled value. + * Get specifies whether disk encryption should be enabled on the virtual machine. * * @return the enabled value */ @@ -84,7 +84,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set specifies whether disk encryption should be enabled on the virtual machine. * * @param enabled the enabled value to set * @return the DiskEncryptionSettings object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskInstanceView.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskInstanceView.java index c29354e3b09f..f8930bf6e40a 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskInstanceView.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskInstanceView.java @@ -35,7 +35,7 @@ public class DiskInstanceView { private List statuses; /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -44,7 +44,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the DiskInstanceView object itself. @@ -55,7 +55,7 @@ public DiskInstanceView withName(String name) { } /** - * Get the encryptionSettings value. + * Get specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15. * * @return the encryptionSettings value */ @@ -64,7 +64,7 @@ public List encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15. * * @param encryptionSettings the encryptionSettings value to set * @return the DiskInstanceView object itself. @@ -75,7 +75,7 @@ public DiskInstanceView withEncryptionSettings(List encr } /** - * Get the statuses value. + * Get the resource status information. * * @return the statuses value */ @@ -84,7 +84,7 @@ public List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the DiskInstanceView object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskSku.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskSku.java index 4553fd7a1ae6..c7a47a286bc0 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskSku.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskSku.java @@ -27,7 +27,7 @@ public class DiskSku { private String tier; /** - * Get the name value. + * Get the sku name. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the name value */ @@ -36,7 +36,7 @@ public StorageAccountTypes name() { } /** - * Set the name value. + * Set the sku name. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param name the name value to set * @return the DiskSku object itself. @@ -47,7 +47,7 @@ public DiskSku withName(StorageAccountTypes name) { } /** - * Get the tier value. + * Get the sku tier. * * @return the tier value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskUpdate.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskUpdate.java index 3343d8e881d7..df2cd2561b24 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskUpdate.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/DiskUpdate.java @@ -39,7 +39,7 @@ public class DiskUpdate extends ResourceUpdate { private EncryptionSettings encryptionSettings; /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -48,7 +48,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the DiskUpdate object itself. @@ -59,7 +59,7 @@ public DiskUpdate withOsType(OperatingSystemTypes osType) { } /** - * Get the diskSizeGB value. + * Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @return the diskSizeGB value */ @@ -68,7 +68,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @param diskSizeGB the diskSizeGB value to set * @return the DiskUpdate object itself. @@ -79,7 +79,7 @@ public DiskUpdate withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the encryptionSettings value. + * Get encryption settings for disk or snapshot. * * @return the encryptionSettings value */ @@ -88,7 +88,7 @@ public EncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set encryption settings for disk or snapshot. * * @param encryptionSettings the encryptionSettings value to set * @return the DiskUpdate object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/EncryptionSettings.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/EncryptionSettings.java index e2533114f0d5..c8a747e8ac2e 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/EncryptionSettings.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/EncryptionSettings.java @@ -37,7 +37,7 @@ public class EncryptionSettings { private KeyVaultAndKeyReference keyEncryptionKey; /** - * Get the enabled value. + * Get set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged. * * @return the enabled value */ @@ -46,7 +46,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged. * * @param enabled the enabled value to set * @return the EncryptionSettings object itself. @@ -57,7 +57,7 @@ public EncryptionSettings withEnabled(Boolean enabled) { } /** - * Get the diskEncryptionKey value. + * Get key Vault Secret Url and vault id of the disk encryption key. * * @return the diskEncryptionKey value */ @@ -66,7 +66,7 @@ public KeyVaultAndSecretReference diskEncryptionKey() { } /** - * Set the diskEncryptionKey value. + * Set key Vault Secret Url and vault id of the disk encryption key. * * @param diskEncryptionKey the diskEncryptionKey value to set * @return the EncryptionSettings object itself. @@ -77,7 +77,7 @@ public EncryptionSettings withDiskEncryptionKey(KeyVaultAndSecretReference diskE } /** - * Get the keyEncryptionKey value. + * Get key Vault Key Url and vault id of the key encryption key. * * @return the keyEncryptionKey value */ @@ -86,7 +86,7 @@ public KeyVaultAndKeyReference keyEncryptionKey() { } /** - * Set the keyEncryptionKey value. + * Set key Vault Key Url and vault id of the key encryption key. * * @param keyEncryptionKey the keyEncryptionKey value to set * @return the EncryptionSettings object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/GrantAccessData.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/GrantAccessData.java index 269f3bd389ae..aabb7590b9c6 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/GrantAccessData.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/GrantAccessData.java @@ -27,7 +27,7 @@ public class GrantAccessData { private int durationInSeconds; /** - * Get the access value. + * Get possible values include: 'None', 'Read'. * * @return the access value */ @@ -36,7 +36,7 @@ public AccessLevel access() { } /** - * Set the access value. + * Set possible values include: 'None', 'Read'. * * @param access the access value to set * @return the GrantAccessData object itself. @@ -47,7 +47,7 @@ public GrantAccessData withAccess(AccessLevel access) { } /** - * Get the durationInSeconds value. + * Get time duration in seconds until the SAS access expires. * * @return the durationInSeconds value */ @@ -56,7 +56,7 @@ public int durationInSeconds() { } /** - * Set the durationInSeconds value. + * Set time duration in seconds until the SAS access expires. * * @param durationInSeconds the durationInSeconds value to set * @return the GrantAccessData object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/HardwareProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/HardwareProfile.java index a79d590dffa3..aa81dc512909 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/HardwareProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/HardwareProfile.java @@ -56,7 +56,7 @@ public class HardwareProfile { private VirtualMachineSizeTypes vmSize; /** - * Get the vmSize value. + * Get specifies the size of the virtual machine. For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: <br><br> [List all available virtual machine sizes in an availability set](virtualmachines-list-sizes-availability-set.md) <br><br> [List all available virtual machine sizes in a region](virtualmachines-list-sizes-region.md) <br><br> [List all available virtual machine sizes for resizing](virtualmachines-list-sizes-for-resizing.md). Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_F1', 'Standard_F2', 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_NC6', 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24'. * * @return the vmSize value */ @@ -65,7 +65,7 @@ public VirtualMachineSizeTypes vmSize() { } /** - * Set the vmSize value. + * Set specifies the size of the virtual machine. For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: <br><br> [List all available virtual machine sizes in an availability set](virtualmachines-list-sizes-availability-set.md) <br><br> [List all available virtual machine sizes in a region](virtualmachines-list-sizes-region.md) <br><br> [List all available virtual machine sizes for resizing](virtualmachines-list-sizes-for-resizing.md). Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_F1', 'Standard_F2', 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_NC6', 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24'. * * @param vmSize the vmSize value to set * @return the HardwareProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Image.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Image.java index cbc15ae9573e..019f68103717 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Image.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Image.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_03_30.implementation.ComputeManager; import com.microsoft.azure.SubResource; diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageDataDisk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageDataDisk.java index fc5113466878..6c150b5f2e92 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageDataDisk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageDataDisk.java @@ -68,7 +68,7 @@ public class ImageDataDisk { private StorageAccountTypes storageAccountType; /** - * Get the lun value. + * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */ @@ -77,7 +77,7 @@ public int lun() { } /** - * Set the lun value. + * Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @param lun the lun value to set * @return the ImageDataDisk object itself. @@ -88,7 +88,7 @@ public ImageDataDisk withLun(int lun) { } /** - * Get the snapshot value. + * Get the snapshot. * * @return the snapshot value */ @@ -97,7 +97,7 @@ public SubResource snapshot() { } /** - * Set the snapshot value. + * Set the snapshot. * * @param snapshot the snapshot value to set * @return the ImageDataDisk object itself. @@ -108,7 +108,7 @@ public ImageDataDisk withSnapshot(SubResource snapshot) { } /** - * Get the managedDisk value. + * Get the managedDisk. * * @return the managedDisk value */ @@ -117,7 +117,7 @@ public SubResource managedDisk() { } /** - * Set the managedDisk value. + * Set the managedDisk. * * @param managedDisk the managedDisk value to set * @return the ImageDataDisk object itself. @@ -128,7 +128,7 @@ public ImageDataDisk withManagedDisk(SubResource managedDisk) { } /** - * Get the blobUri value. + * Get the Virtual Hard Disk. * * @return the blobUri value */ @@ -137,7 +137,7 @@ public String blobUri() { } /** - * Set the blobUri value. + * Set the Virtual Hard Disk. * * @param blobUri the blobUri value to set * @return the ImageDataDisk object itself. @@ -148,7 +148,7 @@ public ImageDataDisk withBlobUri(String blobUri) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -157,7 +157,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the ImageDataDisk object itself. @@ -168,7 +168,7 @@ public ImageDataDisk withCaching(CachingTypes caching) { } /** - * Get the diskSizeGB value. + * Get specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -177,7 +177,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the ImageDataDisk object itself. @@ -188,7 +188,7 @@ public ImageDataDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the storageAccountType value. + * Get specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -197,7 +197,7 @@ public StorageAccountTypes storageAccountType() { } /** - * Set the storageAccountType value. + * Set specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the ImageDataDisk object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageDiskReference.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageDiskReference.java index d2f6c55e2be0..9545a436d7ac 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageDiskReference.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageDiskReference.java @@ -30,7 +30,7 @@ public class ImageDiskReference { private Integer lun; /** - * Get the id value. + * Get a relative uri containing either a Platform Imgage Repository or user image reference. * * @return the id value */ @@ -39,7 +39,7 @@ public String id() { } /** - * Set the id value. + * Set a relative uri containing either a Platform Imgage Repository or user image reference. * * @param id the id value to set * @return the ImageDiskReference object itself. @@ -50,7 +50,7 @@ public ImageDiskReference withId(String id) { } /** - * Get the lun value. + * Get if the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null. * * @return the lun value */ @@ -59,7 +59,7 @@ public Integer lun() { } /** - * Set the lun value. + * Set if the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null. * * @param lun the lun value to set * @return the ImageDiskReference object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageOSDisk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageOSDisk.java index 0cd5387b9591..60b3b601e782 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageOSDisk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageOSDisk.java @@ -76,7 +76,7 @@ public class ImageOSDisk { private StorageAccountTypes storageAccountType; /** - * Get the osType value. + * Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -85,7 +85,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the ImageOSDisk object itself. @@ -96,7 +96,7 @@ public ImageOSDisk withOsType(OperatingSystemTypes osType) { } /** - * Get the osState value. + * Get the OS State. Possible values include: 'Generalized', 'Specialized'. * * @return the osState value */ @@ -105,7 +105,7 @@ public OperatingSystemStateTypes osState() { } /** - * Set the osState value. + * Set the OS State. Possible values include: 'Generalized', 'Specialized'. * * @param osState the osState value to set * @return the ImageOSDisk object itself. @@ -116,7 +116,7 @@ public ImageOSDisk withOsState(OperatingSystemStateTypes osState) { } /** - * Get the snapshot value. + * Get the snapshot. * * @return the snapshot value */ @@ -125,7 +125,7 @@ public SubResource snapshot() { } /** - * Set the snapshot value. + * Set the snapshot. * * @param snapshot the snapshot value to set * @return the ImageOSDisk object itself. @@ -136,7 +136,7 @@ public ImageOSDisk withSnapshot(SubResource snapshot) { } /** - * Get the managedDisk value. + * Get the managedDisk. * * @return the managedDisk value */ @@ -145,7 +145,7 @@ public SubResource managedDisk() { } /** - * Set the managedDisk value. + * Set the managedDisk. * * @param managedDisk the managedDisk value to set * @return the ImageOSDisk object itself. @@ -156,7 +156,7 @@ public ImageOSDisk withManagedDisk(SubResource managedDisk) { } /** - * Get the blobUri value. + * Get the Virtual Hard Disk. * * @return the blobUri value */ @@ -165,7 +165,7 @@ public String blobUri() { } /** - * Set the blobUri value. + * Set the Virtual Hard Disk. * * @param blobUri the blobUri value to set * @return the ImageOSDisk object itself. @@ -176,7 +176,7 @@ public ImageOSDisk withBlobUri(String blobUri) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -185,7 +185,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the ImageOSDisk object itself. @@ -196,7 +196,7 @@ public ImageOSDisk withCaching(CachingTypes caching) { } /** - * Get the diskSizeGB value. + * Get specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -205,7 +205,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the ImageOSDisk object itself. @@ -216,7 +216,7 @@ public ImageOSDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the storageAccountType value. + * Get specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -225,7 +225,7 @@ public StorageAccountTypes storageAccountType() { } /** - * Set the storageAccountType value. + * Set specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the ImageOSDisk object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageReference.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageReference.java index f4628da56b02..8cbce35a6a9d 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageReference.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageReference.java @@ -50,7 +50,7 @@ public class ImageReference extends SubResource { private String version; /** - * Get the publisher value. + * Get the image publisher. * * @return the publisher value */ @@ -59,7 +59,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the image publisher. * * @param publisher the publisher value to set * @return the ImageReference object itself. @@ -70,7 +70,7 @@ public ImageReference withPublisher(String publisher) { } /** - * Get the offer value. + * Get specifies the offer of the platform image or marketplace image used to create the virtual machine. * * @return the offer value */ @@ -79,7 +79,7 @@ public String offer() { } /** - * Set the offer value. + * Set specifies the offer of the platform image or marketplace image used to create the virtual machine. * * @param offer the offer value to set * @return the ImageReference object itself. @@ -90,7 +90,7 @@ public ImageReference withOffer(String offer) { } /** - * Get the sku value. + * Get the image SKU. * * @return the sku value */ @@ -99,7 +99,7 @@ public String sku() { } /** - * Set the sku value. + * Set the image SKU. * * @param sku the sku value to set * @return the ImageReference object itself. @@ -110,7 +110,7 @@ public ImageReference withSku(String sku) { } /** - * Get the version value. + * Get specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. * * @return the version value */ @@ -119,7 +119,7 @@ public String version() { } /** - * Set the version value. + * Set specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. * * @param version the version value to set * @return the ImageReference object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageStorageProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageStorageProfile.java index 19ab4673d975..7ea1e6e2d336 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageStorageProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ImageStorageProfile.java @@ -34,7 +34,7 @@ public class ImageStorageProfile { private List dataDisks; /** - * Get the osDisk value. + * Get specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the osDisk value */ @@ -43,7 +43,7 @@ public ImageOSDisk osDisk() { } /** - * Set the osDisk value. + * Set specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param osDisk the osDisk value to set * @return the ImageStorageProfile object itself. @@ -54,7 +54,7 @@ public ImageStorageProfile withOsDisk(ImageOSDisk osDisk) { } /** - * Get the dataDisks value. + * Get specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the dataDisks value */ @@ -63,7 +63,7 @@ public List dataDisks() { } /** - * Set the dataDisks value. + * Set specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param dataDisks the dataDisks value to set * @return the ImageStorageProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/InnerError.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/InnerError.java index ef2224356287..39686b773ebb 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/InnerError.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/InnerError.java @@ -27,7 +27,7 @@ public class InnerError { private String errordetail; /** - * Get the exceptiontype value. + * Get the exception type. * * @return the exceptiontype value */ @@ -36,7 +36,7 @@ public String exceptiontype() { } /** - * Set the exceptiontype value. + * Set the exception type. * * @param exceptiontype the exceptiontype value to set * @return the InnerError object itself. @@ -47,7 +47,7 @@ public InnerError withExceptiontype(String exceptiontype) { } /** - * Get the errordetail value. + * Get the internal error message or exception dump. * * @return the errordetail value */ @@ -56,7 +56,7 @@ public String errordetail() { } /** - * Set the errordetail value. + * Set the internal error message or exception dump. * * @param errordetail the errordetail value to set * @return the InnerError object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/InstanceViewStatus.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/InstanceViewStatus.java index 83146dedc4c6..240eb74005ed 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/InstanceViewStatus.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/InstanceViewStatus.java @@ -46,7 +46,7 @@ public class InstanceViewStatus { private DateTime time; /** - * Get the code value. + * Get the status code. * * @return the code value */ @@ -55,7 +55,7 @@ public String code() { } /** - * Set the code value. + * Set the status code. * * @param code the code value to set * @return the InstanceViewStatus object itself. @@ -66,7 +66,7 @@ public InstanceViewStatus withCode(String code) { } /** - * Get the level value. + * Get the level code. Possible values include: 'Info', 'Warning', 'Error'. * * @return the level value */ @@ -75,7 +75,7 @@ public StatusLevelTypes level() { } /** - * Set the level value. + * Set the level code. Possible values include: 'Info', 'Warning', 'Error'. * * @param level the level value to set * @return the InstanceViewStatus object itself. @@ -86,7 +86,7 @@ public InstanceViewStatus withLevel(StatusLevelTypes level) { } /** - * Get the displayStatus value. + * Get the short localizable label for the status. * * @return the displayStatus value */ @@ -95,7 +95,7 @@ public String displayStatus() { } /** - * Set the displayStatus value. + * Set the short localizable label for the status. * * @param displayStatus the displayStatus value to set * @return the InstanceViewStatus object itself. @@ -106,7 +106,7 @@ public InstanceViewStatus withDisplayStatus(String displayStatus) { } /** - * Get the message value. + * Get the detailed status message, including for alerts and error messages. * * @return the message value */ @@ -115,7 +115,7 @@ public String message() { } /** - * Set the message value. + * Set the detailed status message, including for alerts and error messages. * * @param message the message value to set * @return the InstanceViewStatus object itself. @@ -126,7 +126,7 @@ public InstanceViewStatus withMessage(String message) { } /** - * Get the time value. + * Get the time of the status. * * @return the time value */ @@ -135,7 +135,7 @@ public DateTime time() { } /** - * Set the time value. + * Set the time of the status. * * @param time the time value to set * @return the InstanceViewStatus object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultAndKeyReference.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultAndKeyReference.java index 8a0588625b98..fb07a9fba56d 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultAndKeyReference.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultAndKeyReference.java @@ -28,7 +28,7 @@ public class KeyVaultAndKeyReference { private String keyUrl; /** - * Get the sourceVault value. + * Get resource id of the KeyVault containing the key or secret. * * @return the sourceVault value */ @@ -37,7 +37,7 @@ public SourceVault sourceVault() { } /** - * Set the sourceVault value. + * Set resource id of the KeyVault containing the key or secret. * * @param sourceVault the sourceVault value to set * @return the KeyVaultAndKeyReference object itself. @@ -48,7 +48,7 @@ public KeyVaultAndKeyReference withSourceVault(SourceVault sourceVault) { } /** - * Get the keyUrl value. + * Get url pointing to a key or secret in KeyVault. * * @return the keyUrl value */ @@ -57,7 +57,7 @@ public String keyUrl() { } /** - * Set the keyUrl value. + * Set url pointing to a key or secret in KeyVault. * * @param keyUrl the keyUrl value to set * @return the KeyVaultAndKeyReference object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultAndSecretReference.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultAndSecretReference.java index 70aa42302d47..c46874bc4134 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultAndSecretReference.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultAndSecretReference.java @@ -27,7 +27,7 @@ public class KeyVaultAndSecretReference { private String secretUrl; /** - * Get the sourceVault value. + * Get resource id of the KeyVault containing the key or secret. * * @return the sourceVault value */ @@ -36,7 +36,7 @@ public SourceVault sourceVault() { } /** - * Set the sourceVault value. + * Set resource id of the KeyVault containing the key or secret. * * @param sourceVault the sourceVault value to set * @return the KeyVaultAndSecretReference object itself. @@ -47,7 +47,7 @@ public KeyVaultAndSecretReference withSourceVault(SourceVault sourceVault) { } /** - * Get the secretUrl value. + * Get url pointing to a key or secret in KeyVault. * * @return the secretUrl value */ @@ -56,7 +56,7 @@ public String secretUrl() { } /** - * Set the secretUrl value. + * Set url pointing to a key or secret in KeyVault. * * @param secretUrl the secretUrl value to set * @return the KeyVaultAndSecretReference object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultKeyReference.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultKeyReference.java index f8b4d8c2c1f9..30736bb82e39 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultKeyReference.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultKeyReference.java @@ -28,7 +28,7 @@ public class KeyVaultKeyReference { private SubResource sourceVault; /** - * Get the keyUrl value. + * Get the URL referencing a key encryption key in Key Vault. * * @return the keyUrl value */ @@ -37,7 +37,7 @@ public String keyUrl() { } /** - * Set the keyUrl value. + * Set the URL referencing a key encryption key in Key Vault. * * @param keyUrl the keyUrl value to set * @return the KeyVaultKeyReference object itself. @@ -48,7 +48,7 @@ public KeyVaultKeyReference withKeyUrl(String keyUrl) { } /** - * Get the sourceVault value. + * Get the relative URL of the Key Vault containing the key. * * @return the sourceVault value */ @@ -57,7 +57,7 @@ public SubResource sourceVault() { } /** - * Set the sourceVault value. + * Set the relative URL of the Key Vault containing the key. * * @param sourceVault the sourceVault value to set * @return the KeyVaultKeyReference object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultSecretReference.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultSecretReference.java index d0cbec1e2153..0a197e6eee37 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultSecretReference.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/KeyVaultSecretReference.java @@ -28,7 +28,7 @@ public class KeyVaultSecretReference { private SubResource sourceVault; /** - * Get the secretUrl value. + * Get the URL referencing a secret in a Key Vault. * * @return the secretUrl value */ @@ -37,7 +37,7 @@ public String secretUrl() { } /** - * Set the secretUrl value. + * Set the URL referencing a secret in a Key Vault. * * @param secretUrl the secretUrl value to set * @return the KeyVaultSecretReference object itself. @@ -48,7 +48,7 @@ public KeyVaultSecretReference withSecretUrl(String secretUrl) { } /** - * Get the sourceVault value. + * Get the relative URL of the Key Vault containing the secret. * * @return the sourceVault value */ @@ -57,7 +57,7 @@ public SubResource sourceVault() { } /** - * Set the sourceVault value. + * Set the relative URL of the Key Vault containing the secret. * * @param sourceVault the sourceVault value to set * @return the KeyVaultSecretReference object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/LinuxConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/LinuxConfiguration.java index d7056f9e7d77..c0a4276fa73c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/LinuxConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/LinuxConfiguration.java @@ -33,7 +33,7 @@ public class LinuxConfiguration { private SshConfiguration ssh; /** - * Get the disablePasswordAuthentication value. + * Get specifies whether password authentication should be disabled. * * @return the disablePasswordAuthentication value */ @@ -42,7 +42,7 @@ public Boolean disablePasswordAuthentication() { } /** - * Set the disablePasswordAuthentication value. + * Set specifies whether password authentication should be disabled. * * @param disablePasswordAuthentication the disablePasswordAuthentication value to set * @return the LinuxConfiguration object itself. @@ -53,7 +53,7 @@ public LinuxConfiguration withDisablePasswordAuthentication(Boolean disablePassw } /** - * Get the ssh value. + * Get specifies the ssh key configuration for a Linux OS. * * @return the ssh value */ @@ -62,7 +62,7 @@ public SshConfiguration ssh() { } /** - * Set the ssh value. + * Set specifies the ssh key configuration for a Linux OS. * * @param ssh the ssh value to set * @return the LinuxConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/MaintenanceRedeployStatus.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/MaintenanceRedeployStatus.java index fa0a4b0a5f13..17ec8ba75fa0 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/MaintenanceRedeployStatus.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/MaintenanceRedeployStatus.java @@ -59,7 +59,7 @@ public class MaintenanceRedeployStatus { private String lastOperationMessage; /** - * Get the isCustomerInitiatedMaintenanceAllowed value. + * Get true, if customer is allowed to perform Maintenance. * * @return the isCustomerInitiatedMaintenanceAllowed value */ @@ -68,7 +68,7 @@ public Boolean isCustomerInitiatedMaintenanceAllowed() { } /** - * Set the isCustomerInitiatedMaintenanceAllowed value. + * Set true, if customer is allowed to perform Maintenance. * * @param isCustomerInitiatedMaintenanceAllowed the isCustomerInitiatedMaintenanceAllowed value to set * @return the MaintenanceRedeployStatus object itself. @@ -79,7 +79,7 @@ public MaintenanceRedeployStatus withIsCustomerInitiatedMaintenanceAllowed(Boole } /** - * Get the preMaintenanceWindowStartTime value. + * Get start Time for the Pre Maintenance Window. * * @return the preMaintenanceWindowStartTime value */ @@ -88,7 +88,7 @@ public DateTime preMaintenanceWindowStartTime() { } /** - * Set the preMaintenanceWindowStartTime value. + * Set start Time for the Pre Maintenance Window. * * @param preMaintenanceWindowStartTime the preMaintenanceWindowStartTime value to set * @return the MaintenanceRedeployStatus object itself. @@ -99,7 +99,7 @@ public MaintenanceRedeployStatus withPreMaintenanceWindowStartTime(DateTime preM } /** - * Get the preMaintenanceWindowEndTime value. + * Get end Time for the Pre Maintenance Window. * * @return the preMaintenanceWindowEndTime value */ @@ -108,7 +108,7 @@ public DateTime preMaintenanceWindowEndTime() { } /** - * Set the preMaintenanceWindowEndTime value. + * Set end Time for the Pre Maintenance Window. * * @param preMaintenanceWindowEndTime the preMaintenanceWindowEndTime value to set * @return the MaintenanceRedeployStatus object itself. @@ -119,7 +119,7 @@ public MaintenanceRedeployStatus withPreMaintenanceWindowEndTime(DateTime preMai } /** - * Get the maintenanceWindowStartTime value. + * Get start Time for the Maintenance Window. * * @return the maintenanceWindowStartTime value */ @@ -128,7 +128,7 @@ public DateTime maintenanceWindowStartTime() { } /** - * Set the maintenanceWindowStartTime value. + * Set start Time for the Maintenance Window. * * @param maintenanceWindowStartTime the maintenanceWindowStartTime value to set * @return the MaintenanceRedeployStatus object itself. @@ -139,7 +139,7 @@ public MaintenanceRedeployStatus withMaintenanceWindowStartTime(DateTime mainten } /** - * Get the maintenanceWindowEndTime value. + * Get end Time for the Maintenance Window. * * @return the maintenanceWindowEndTime value */ @@ -148,7 +148,7 @@ public DateTime maintenanceWindowEndTime() { } /** - * Set the maintenanceWindowEndTime value. + * Set end Time for the Maintenance Window. * * @param maintenanceWindowEndTime the maintenanceWindowEndTime value to set * @return the MaintenanceRedeployStatus object itself. @@ -159,7 +159,7 @@ public MaintenanceRedeployStatus withMaintenanceWindowEndTime(DateTime maintenan } /** - * Get the lastOperationResultCode value. + * Get the Last Maintenance Operation Result Code. Possible values include: 'None', 'RetryLater', 'MaintenanceAborted', 'MaintenanceCompleted'. * * @return the lastOperationResultCode value */ @@ -168,7 +168,7 @@ public MaintenanceOperationResultCodeTypes lastOperationResultCode() { } /** - * Set the lastOperationResultCode value. + * Set the Last Maintenance Operation Result Code. Possible values include: 'None', 'RetryLater', 'MaintenanceAborted', 'MaintenanceCompleted'. * * @param lastOperationResultCode the lastOperationResultCode value to set * @return the MaintenanceRedeployStatus object itself. @@ -179,7 +179,7 @@ public MaintenanceRedeployStatus withLastOperationResultCode(MaintenanceOperatio } /** - * Get the lastOperationMessage value. + * Get message returned for the last Maintenance Operation. * * @return the lastOperationMessage value */ @@ -188,7 +188,7 @@ public String lastOperationMessage() { } /** - * Set the lastOperationMessage value. + * Set message returned for the last Maintenance Operation. * * @param lastOperationMessage the lastOperationMessage value to set * @return the MaintenanceRedeployStatus object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ManagedDiskParameters.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ManagedDiskParameters.java index 6d69039603bb..36f65fc88c69 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ManagedDiskParameters.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ManagedDiskParameters.java @@ -24,7 +24,7 @@ public class ManagedDiskParameters extends SubResource { private StorageAccountTypes storageAccountType; /** - * Get the storageAccountType value. + * Get specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -33,7 +33,7 @@ public StorageAccountTypes storageAccountType() { } /** - * Set the storageAccountType value. + * Set specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the ManagedDiskParameters object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/NetworkInterfaceReference.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/NetworkInterfaceReference.java index 8553d6aa81d4..5225efaa0f5b 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/NetworkInterfaceReference.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/NetworkInterfaceReference.java @@ -25,7 +25,7 @@ public class NetworkInterfaceReference extends SubResource { private Boolean primary; /** - * Get the primary value. + * Get specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @return the primary value */ @@ -34,7 +34,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @param primary the primary value to set * @return the NetworkInterfaceReference object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/NetworkProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/NetworkProfile.java index e8edfe4a7620..d36ed30525f7 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/NetworkProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/NetworkProfile.java @@ -23,7 +23,7 @@ public class NetworkProfile { private List networkInterfaces; /** - * Get the networkInterfaces value. + * Get specifies the list of resource Ids for the network interfaces associated with the virtual machine. * * @return the networkInterfaces value */ @@ -32,7 +32,7 @@ public List networkInterfaces() { } /** - * Set the networkInterfaces value. + * Set specifies the list of resource Ids for the network interfaces associated with the virtual machine. * * @param networkInterfaces the networkInterfaces value to set * @return the NetworkProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSDisk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSDisk.java index a0d129ab063f..2a3b1453cc40 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSDisk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSDisk.java @@ -93,7 +93,7 @@ public class OSDisk { private ManagedDiskParameters managedDisk; /** - * Get the osType value. + * Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -102,7 +102,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the OSDisk object itself. @@ -113,7 +113,7 @@ public OSDisk withOsType(OperatingSystemTypes osType) { } /** - * Get the encryptionSettings value. + * Get specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15. * * @return the encryptionSettings value */ @@ -122,7 +122,7 @@ public DiskEncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15. * * @param encryptionSettings the encryptionSettings value to set * @return the OSDisk object itself. @@ -133,7 +133,7 @@ public OSDisk withEncryptionSettings(DiskEncryptionSettings encryptionSettings) } /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -142,7 +142,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the OSDisk object itself. @@ -153,7 +153,7 @@ public OSDisk withName(String name) { } /** - * Get the vhd value. + * Get the virtual hard disk. * * @return the vhd value */ @@ -162,7 +162,7 @@ public VirtualHardDisk vhd() { } /** - * Set the vhd value. + * Set the virtual hard disk. * * @param vhd the vhd value to set * @return the OSDisk object itself. @@ -173,7 +173,7 @@ public OSDisk withVhd(VirtualHardDisk vhd) { } /** - * Get the image value. + * Get the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. * * @return the image value */ @@ -182,7 +182,7 @@ public VirtualHardDisk image() { } /** - * Set the image value. + * Set the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. * * @param image the image value to set * @return the OSDisk object itself. @@ -193,7 +193,7 @@ public OSDisk withImage(VirtualHardDisk image) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -202,7 +202,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the OSDisk object itself. @@ -213,7 +213,7 @@ public OSDisk withCaching(CachingTypes caching) { } /** - * Get the createOption value. + * Get specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */ @@ -222,7 +222,7 @@ public DiskCreateOptionTypes createOption() { } /** - * Set the createOption value. + * Set specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the OSDisk object itself. @@ -233,7 +233,7 @@ public OSDisk withCreateOption(DiskCreateOptionTypes createOption) { } /** - * Get the diskSizeGB value. + * Get specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -242,7 +242,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the OSDisk object itself. @@ -253,7 +253,7 @@ public OSDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -262,7 +262,7 @@ public ManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the OSDisk object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSDiskImage.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSDiskImage.java index b6b6c778503b..2d200db4f14f 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSDiskImage.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSDiskImage.java @@ -22,7 +22,7 @@ public class OSDiskImage { private OperatingSystemTypes operatingSystem; /** - * Get the operatingSystem value. + * Get the operating system of the osDiskImage. Possible values include: 'Windows', 'Linux'. * * @return the operatingSystem value */ @@ -31,7 +31,7 @@ public OperatingSystemTypes operatingSystem() { } /** - * Set the operatingSystem value. + * Set the operating system of the osDiskImage. Possible values include: 'Windows', 'Linux'. * * @param operatingSystem the operatingSystem value to set * @return the OSDiskImage object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSProfile.java index 372f280d6665..f6cbf3b6ffab 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/OSProfile.java @@ -106,7 +106,7 @@ public class OSProfile { private List secrets; /** - * Get the computerName value. + * Get specifies the host OS name of the virtual machine. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). * * @return the computerName value */ @@ -115,7 +115,7 @@ public String computerName() { } /** - * Set the computerName value. + * Set specifies the host OS name of the virtual machine. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). * * @param computerName the computerName value to set * @return the OSProfile object itself. @@ -126,7 +126,7 @@ public OSProfile withComputerName(String computerName) { } /** - * Get the adminUsername value. + * Get specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the adminUsername value */ @@ -135,7 +135,7 @@ public String adminUsername() { } /** - * Set the adminUsername value. + * Set specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param adminUsername the adminUsername value to set * @return the OSProfile object itself. @@ -146,7 +146,7 @@ public OSProfile withAdminUsername(String adminUsername) { } /** - * Get the adminPassword value. + * Get specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password). * * @return the adminPassword value */ @@ -155,7 +155,7 @@ public String adminPassword() { } /** - * Set the adminPassword value. + * Set specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password). * * @param adminPassword the adminPassword value to set * @return the OSProfile object itself. @@ -166,7 +166,7 @@ public OSProfile withAdminPassword(String adminPassword) { } /** - * Get the customData value. + * Get specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the customData value */ @@ -175,7 +175,7 @@ public String customData() { } /** - * Set the customData value. + * Set specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param customData the customData value to set * @return the OSProfile object itself. @@ -186,7 +186,7 @@ public OSProfile withCustomData(String customData) { } /** - * Get the windowsConfiguration value. + * Get specifies Windows operating system settings on the virtual machine. * * @return the windowsConfiguration value */ @@ -195,7 +195,7 @@ public WindowsConfiguration windowsConfiguration() { } /** - * Set the windowsConfiguration value. + * Set specifies Windows operating system settings on the virtual machine. * * @param windowsConfiguration the windowsConfiguration value to set * @return the OSProfile object itself. @@ -206,7 +206,7 @@ public OSProfile withWindowsConfiguration(WindowsConfiguration windowsConfigurat } /** - * Get the linuxConfiguration value. + * Get specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the linuxConfiguration value */ @@ -215,7 +215,7 @@ public LinuxConfiguration linuxConfiguration() { } /** - * Set the linuxConfiguration value. + * Set specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param linuxConfiguration the linuxConfiguration value to set * @return the OSProfile object itself. @@ -226,7 +226,7 @@ public OSProfile withLinuxConfiguration(LinuxConfiguration linuxConfiguration) { } /** - * Get the secrets value. + * Get specifies set of certificates that should be installed onto the virtual machine. * * @return the secrets value */ @@ -235,7 +235,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set specifies set of certificates that should be installed onto the virtual machine. * * @param secrets the secrets value to set * @return the OSProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Plan.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Plan.java index ea8af0465e33..b3c52da364c1 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Plan.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Plan.java @@ -45,7 +45,7 @@ public class Plan { private String promotionCode; /** - * Get the name value. + * Get the plan ID. * * @return the name value */ @@ -54,7 +54,7 @@ public String name() { } /** - * Set the name value. + * Set the plan ID. * * @param name the name value to set * @return the Plan object itself. @@ -65,7 +65,7 @@ public Plan withName(String name) { } /** - * Get the publisher value. + * Get the publisher ID. * * @return the publisher value */ @@ -74,7 +74,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the publisher ID. * * @param publisher the publisher value to set * @return the Plan object itself. @@ -85,7 +85,7 @@ public Plan withPublisher(String publisher) { } /** - * Get the product value. + * Get specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @return the product value */ @@ -94,7 +94,7 @@ public String product() { } /** - * Set the product value. + * Set specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @param product the product value to set * @return the Plan object itself. @@ -105,7 +105,7 @@ public Plan withProduct(String product) { } /** - * Get the promotionCode value. + * Get the promotion code. * * @return the promotionCode value */ @@ -114,7 +114,7 @@ public String promotionCode() { } /** - * Set the promotionCode value. + * Set the promotion code. * * @param promotionCode the promotionCode value to set * @return the Plan object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/PurchasePlan.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/PurchasePlan.java index c6b8b38373d6..80dd7929dda2 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/PurchasePlan.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/PurchasePlan.java @@ -35,7 +35,7 @@ public class PurchasePlan { private String product; /** - * Get the publisher value. + * Get the publisher ID. * * @return the publisher value */ @@ -44,7 +44,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the publisher ID. * * @param publisher the publisher value to set * @return the PurchasePlan object itself. @@ -55,7 +55,7 @@ public PurchasePlan withPublisher(String publisher) { } /** - * Get the name value. + * Get the plan ID. * * @return the name value */ @@ -64,7 +64,7 @@ public String name() { } /** - * Set the name value. + * Set the plan ID. * * @param name the name value to set * @return the PurchasePlan object itself. @@ -75,7 +75,7 @@ public PurchasePlan withName(String name) { } /** - * Get the product value. + * Get specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @return the product value */ @@ -84,7 +84,7 @@ public String product() { } /** - * Set the product value. + * Set specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @param product the product value to set * @return the PurchasePlan object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCapabilities.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCapabilities.java index a1f98845a923..e66a820a7a08 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCapabilities.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCapabilities.java @@ -27,7 +27,7 @@ public class ResourceSkuCapabilities { private String value; /** - * Get the name value. + * Get an invariant to describe the feature. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Get the value value. + * Get an invariant if the feature is measured by quantity. * * @return the value value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCapacity.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCapacity.java index b92ad333bcb4..2d9e7390ae82 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCapacity.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCapacity.java @@ -40,7 +40,7 @@ public class ResourceSkuCapacity { private ResourceSkuCapacityScaleType scaleType; /** - * Get the minimum value. + * Get the minimum capacity. * * @return the minimum value */ @@ -49,7 +49,7 @@ public Long minimum() { } /** - * Get the maximum value. + * Get the maximum capacity that can be set. * * @return the maximum value */ @@ -58,7 +58,7 @@ public Long maximum() { } /** - * Get the defaultProperty value. + * Get the default capacity. * * @return the defaultProperty value */ @@ -67,7 +67,7 @@ public Long defaultProperty() { } /** - * Get the scaleType value. + * Get the scale type applicable to the sku. Possible values include: 'Automatic', 'Manual', 'None'. * * @return the scaleType value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCosts.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCosts.java index 49fa4c8f3afd..6971aecc0acd 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCosts.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuCosts.java @@ -33,7 +33,7 @@ public class ResourceSkuCosts { private String extendedUnit; /** - * Get the meterID value. + * Get used for querying price from commerce. * * @return the meterID value */ @@ -42,7 +42,7 @@ public String meterID() { } /** - * Get the quantity value. + * Get the multiplier is needed to extend the base metered cost. * * @return the quantity value */ @@ -51,7 +51,7 @@ public Long quantity() { } /** - * Get the extendedUnit value. + * Get an invariant to show the extended unit. * * @return the extendedUnit value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuRestrictions.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuRestrictions.java index fadb25ca8a34..ac2193609bbb 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuRestrictions.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceSkuRestrictions.java @@ -36,7 +36,7 @@ public class ResourceSkuRestrictions { private ResourceSkuRestrictionsReasonCode reasonCode; /** - * Get the type value. + * Get the type of restrictions. Possible values include: 'Location'. * * @return the type value */ @@ -45,7 +45,7 @@ public ResourceSkuRestrictionsType type() { } /** - * Get the values value. + * Get the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. * * @return the values value */ @@ -54,7 +54,7 @@ public List values() { } /** - * Get the reasonCode value. + * Get the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @return the reasonCode value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceUpdate.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceUpdate.java index 43b53a0b09d0..fe5c6e388b0e 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceUpdate.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/ResourceUpdate.java @@ -28,7 +28,7 @@ public class ResourceUpdate { private DiskSku sku; /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -37,7 +37,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the ResourceUpdate object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradePolicy.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradePolicy.java index 0c2047938a13..3bc1dcee0c74 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradePolicy.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradePolicy.java @@ -53,7 +53,7 @@ public class RollingUpgradePolicy { private String pauseTimeBetweenBatches; /** - * Get the maxBatchInstancePercent value. + * Get the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. * * @return the maxBatchInstancePercent value */ @@ -62,7 +62,7 @@ public Integer maxBatchInstancePercent() { } /** - * Set the maxBatchInstancePercent value. + * Set the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. * * @param maxBatchInstancePercent the maxBatchInstancePercent value to set * @return the RollingUpgradePolicy object itself. @@ -73,7 +73,7 @@ public RollingUpgradePolicy withMaxBatchInstancePercent(Integer maxBatchInstance } /** - * Get the maxUnhealthyInstancePercent value. + * Get the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. * * @return the maxUnhealthyInstancePercent value */ @@ -82,7 +82,7 @@ public Integer maxUnhealthyInstancePercent() { } /** - * Set the maxUnhealthyInstancePercent value. + * Set the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. * * @param maxUnhealthyInstancePercent the maxUnhealthyInstancePercent value to set * @return the RollingUpgradePolicy object itself. @@ -93,7 +93,7 @@ public RollingUpgradePolicy withMaxUnhealthyInstancePercent(Integer maxUnhealthy } /** - * Get the maxUnhealthyUpgradedInstancePercent value. + * Get the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. * * @return the maxUnhealthyUpgradedInstancePercent value */ @@ -102,7 +102,7 @@ public Integer maxUnhealthyUpgradedInstancePercent() { } /** - * Set the maxUnhealthyUpgradedInstancePercent value. + * Set the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. * * @param maxUnhealthyUpgradedInstancePercent the maxUnhealthyUpgradedInstancePercent value to set * @return the RollingUpgradePolicy object itself. @@ -113,7 +113,7 @@ public RollingUpgradePolicy withMaxUnhealthyUpgradedInstancePercent(Integer maxU } /** - * Get the pauseTimeBetweenBatches value. + * Get the wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). * * @return the pauseTimeBetweenBatches value */ @@ -122,7 +122,7 @@ public String pauseTimeBetweenBatches() { } /** - * Set the pauseTimeBetweenBatches value. + * Set the wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). * * @param pauseTimeBetweenBatches the pauseTimeBetweenBatches value to set * @return the RollingUpgradePolicy object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradeProgressInfo.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradeProgressInfo.java index c40663aaf727..b0fd0131324c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradeProgressInfo.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradeProgressInfo.java @@ -40,7 +40,7 @@ public class RollingUpgradeProgressInfo { private Integer pendingInstanceCount; /** - * Get the successfulInstanceCount value. + * Get the number of instances that have been successfully upgraded. * * @return the successfulInstanceCount value */ @@ -49,7 +49,7 @@ public Integer successfulInstanceCount() { } /** - * Get the failedInstanceCount value. + * Get the number of instances that have failed to be upgraded successfully. * * @return the failedInstanceCount value */ @@ -58,7 +58,7 @@ public Integer failedInstanceCount() { } /** - * Get the inProgressInstanceCount value. + * Get the number of instances that are currently being upgraded. * * @return the inProgressInstanceCount value */ @@ -67,7 +67,7 @@ public Integer inProgressInstanceCount() { } /** - * Get the pendingInstanceCount value. + * Get the number of instances that have not yet begun to be upgraded. * * @return the pendingInstanceCount value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradeRunningStatus.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradeRunningStatus.java index 1d87ba6ae4a7..91eba7a0cca2 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradeRunningStatus.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RollingUpgradeRunningStatus.java @@ -42,7 +42,7 @@ public class RollingUpgradeRunningStatus { private DateTime lastActionTime; /** - * Get the code value. + * Get code indicating the current status of the upgrade. Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted'. * * @return the code value */ @@ -51,7 +51,7 @@ public RollingUpgradeStatusCode code() { } /** - * Get the startTime value. + * Get start time of the upgrade. * * @return the startTime value */ @@ -60,7 +60,7 @@ public DateTime startTime() { } /** - * Get the lastAction value. + * Get the last action performed on the rolling upgrade. Possible values include: 'Start', 'Cancel'. * * @return the lastAction value */ @@ -69,7 +69,7 @@ public RollingUpgradeActionType lastAction() { } /** - * Get the lastActionTime value. + * Get last action time of the upgrade. * * @return the lastActionTime value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandInput.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandInput.java index 9ce3c32a0a64..437a4987ab84 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandInput.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandInput.java @@ -35,7 +35,7 @@ public class RunCommandInput { private List parameters; /** - * Get the commandId value. + * Get the run command id. * * @return the commandId value */ @@ -44,7 +44,7 @@ public String commandId() { } /** - * Set the commandId value. + * Set the run command id. * * @param commandId the commandId value to set * @return the RunCommandInput object itself. @@ -55,7 +55,7 @@ public RunCommandInput withCommandId(String commandId) { } /** - * Get the script value. + * Get optional. The script to be executed. When this value is given, the given script will override the default script of the command. * * @return the script value */ @@ -64,7 +64,7 @@ public List script() { } /** - * Set the script value. + * Set optional. The script to be executed. When this value is given, the given script will override the default script of the command. * * @param script the script value to set * @return the RunCommandInput object itself. @@ -75,7 +75,7 @@ public RunCommandInput withScript(List script) { } /** - * Get the parameters value. + * Get the run command parameters. * * @return the parameters value */ @@ -84,7 +84,7 @@ public List parameters() { } /** - * Set the parameters value. + * Set the run command parameters. * * @param parameters the parameters value to set * @return the RunCommandInput object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandInputParameter.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandInputParameter.java index 39d60c16004c..8d344b7a2961 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandInputParameter.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandInputParameter.java @@ -27,7 +27,7 @@ public class RunCommandInputParameter { private String value; /** - * Get the name value. + * Get the run command parameter name. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Set the name value. + * Set the run command parameter name. * * @param name the name value to set * @return the RunCommandInputParameter object itself. @@ -47,7 +47,7 @@ public RunCommandInputParameter withName(String name) { } /** - * Get the value value. + * Get the run command parameter value. * * @return the value value */ @@ -56,7 +56,7 @@ public String value() { } /** - * Set the value value. + * Set the run command parameter value. * * @param value the value value to set * @return the RunCommandInputParameter object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandParameterDefinition.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandParameterDefinition.java index 1711eb5293dc..6350b1cee85d 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandParameterDefinition.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/RunCommandParameterDefinition.java @@ -39,7 +39,7 @@ public class RunCommandParameterDefinition { private Boolean required; /** - * Get the name value. + * Get the run command parameter name. * * @return the name value */ @@ -48,7 +48,7 @@ public String name() { } /** - * Set the name value. + * Set the run command parameter name. * * @param name the name value to set * @return the RunCommandParameterDefinition object itself. @@ -59,7 +59,7 @@ public RunCommandParameterDefinition withName(String name) { } /** - * Get the type value. + * Get the run command parameter type. * * @return the type value */ @@ -68,7 +68,7 @@ public String type() { } /** - * Set the type value. + * Set the run command parameter type. * * @param type the type value to set * @return the RunCommandParameterDefinition object itself. @@ -79,7 +79,7 @@ public RunCommandParameterDefinition withType(String type) { } /** - * Get the defaultValue value. + * Get the run command parameter default value. * * @return the defaultValue value */ @@ -88,7 +88,7 @@ public String defaultValue() { } /** - * Set the defaultValue value. + * Set the run command parameter default value. * * @param defaultValue the defaultValue value to set * @return the RunCommandParameterDefinition object itself. @@ -99,7 +99,7 @@ public RunCommandParameterDefinition withDefaultValue(String defaultValue) { } /** - * Get the required value. + * Get the run command parameter required. * * @return the required value */ @@ -108,7 +108,7 @@ public Boolean required() { } /** - * Set the required value. + * Set the run command parameter required. * * @param required the required value to set * @return the RunCommandParameterDefinition object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Sku.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Sku.java index a94edb20745b..8ad09e535d11 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Sku.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Sku.java @@ -35,7 +35,7 @@ public class Sku { private Long capacity; /** - * Get the name value. + * Get the sku name. * * @return the name value */ @@ -44,7 +44,7 @@ public String name() { } /** - * Set the name value. + * Set the sku name. * * @param name the name value to set * @return the Sku object itself. @@ -55,7 +55,7 @@ public Sku withName(String name) { } /** - * Get the tier value. + * Get specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**. * * @return the tier value */ @@ -64,7 +64,7 @@ public String tier() { } /** - * Set the tier value. + * Set specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**. * * @param tier the tier value to set * @return the Sku object itself. @@ -75,7 +75,7 @@ public Sku withTier(String tier) { } /** - * Get the capacity value. + * Get specifies the number of virtual machines in the scale set. * * @return the capacity value */ @@ -84,7 +84,7 @@ public Long capacity() { } /** - * Set the capacity value. + * Set specifies the number of virtual machines in the scale set. * * @param capacity the capacity value to set * @return the Sku object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Snapshot.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Snapshot.java index aca022decb70..ada08543748e 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Snapshot.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/Snapshot.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_03_30.implementation.ComputeManager; import org.joda.time.DateTime; diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SnapshotUpdate.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SnapshotUpdate.java index e0fafe2ff0dc..e26100dcfa05 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SnapshotUpdate.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SnapshotUpdate.java @@ -39,7 +39,7 @@ public class SnapshotUpdate extends ResourceUpdate { private EncryptionSettings encryptionSettings; /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -48,7 +48,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the SnapshotUpdate object itself. @@ -59,7 +59,7 @@ public SnapshotUpdate withOsType(OperatingSystemTypes osType) { } /** - * Get the diskSizeGB value. + * Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @return the diskSizeGB value */ @@ -68,7 +68,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @param diskSizeGB the diskSizeGB value to set * @return the SnapshotUpdate object itself. @@ -79,7 +79,7 @@ public SnapshotUpdate withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the encryptionSettings value. + * Get encryption settings for disk or snapshot. * * @return the encryptionSettings value */ @@ -88,7 +88,7 @@ public EncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set encryption settings for disk or snapshot. * * @param encryptionSettings the encryptionSettings value to set * @return the SnapshotUpdate object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SourceVault.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SourceVault.java index a986c547f2cb..59a3c406fea1 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SourceVault.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SourceVault.java @@ -22,7 +22,7 @@ public class SourceVault { private String id; /** - * Get the id value. + * Get resource Id. * * @return the id value */ @@ -31,7 +31,7 @@ public String id() { } /** - * Set the id value. + * Set resource Id. * * @param id the id value to set * @return the SourceVault object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SshConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SshConfiguration.java index 5500612cbd17..13fef512da9e 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SshConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SshConfiguration.java @@ -22,7 +22,7 @@ public class SshConfiguration { private List publicKeys; /** - * Get the publicKeys value. + * Get the list of SSH public keys used to authenticate with linux based VMs. * * @return the publicKeys value */ @@ -31,7 +31,7 @@ public List publicKeys() { } /** - * Set the publicKeys value. + * Set the list of SSH public keys used to authenticate with linux based VMs. * * @param publicKeys the publicKeys value to set * @return the SshConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SshPublicKey.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SshPublicKey.java index 9a19cf4a6a4e..8403b23ff362 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SshPublicKey.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SshPublicKey.java @@ -34,7 +34,7 @@ public class SshPublicKey { private String keyData; /** - * Get the path value. + * Get specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys. * * @return the path value */ @@ -43,7 +43,7 @@ public String path() { } /** - * Set the path value. + * Set specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys. * * @param path the path value to set * @return the SshPublicKey object itself. @@ -54,7 +54,7 @@ public SshPublicKey withPath(String path) { } /** - * Get the keyData value. + * Get sSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the keyData value */ @@ -63,7 +63,7 @@ public String keyData() { } /** - * Set the keyData value. + * Set sSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param keyData the keyData value to set * @return the SshPublicKey object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/StorageProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/StorageProfile.java index 5088b39b1052..317ed97bfd89 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/StorageProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/StorageProfile.java @@ -44,7 +44,7 @@ public class StorageProfile { private List dataDisks; /** - * Get the imageReference value. + * Get specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. * * @return the imageReference value */ @@ -53,7 +53,7 @@ public ImageReference imageReference() { } /** - * Set the imageReference value. + * Set specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. * * @param imageReference the imageReference value to set * @return the StorageProfile object itself. @@ -64,7 +64,7 @@ public StorageProfile withImageReference(ImageReference imageReference) { } /** - * Get the osDisk value. + * Get specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the osDisk value */ @@ -73,7 +73,7 @@ public OSDisk osDisk() { } /** - * Set the osDisk value. + * Set specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param osDisk the osDisk value to set * @return the StorageProfile object itself. @@ -84,7 +84,7 @@ public StorageProfile withOsDisk(OSDisk osDisk) { } /** - * Get the dataDisks value. + * Get specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the dataDisks value */ @@ -93,7 +93,7 @@ public List dataDisks() { } /** - * Set the dataDisks value. + * Set specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param dataDisks the dataDisks value to set * @return the StorageProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SubResourceReadOnly.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SubResourceReadOnly.java index 53c471d8e135..63a43cc15d2e 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SubResourceReadOnly.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/SubResourceReadOnly.java @@ -21,7 +21,7 @@ public class SubResourceReadOnly { private String id; /** - * Get the id value. + * Get resource Id. * * @return the id value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UpdateResource.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UpdateResource.java index c5919545149e..e9f4043a50b1 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UpdateResource.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UpdateResource.java @@ -22,7 +22,7 @@ public class UpdateResource { private Map tags; /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -31,7 +31,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the UpdateResource object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UpgradePolicy.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UpgradePolicy.java index 6903abef7b6d..c3bf249b9dd2 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UpgradePolicy.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UpgradePolicy.java @@ -41,7 +41,7 @@ public class UpgradePolicy { private Boolean automaticOSUpgrade; /** - * Get the mode value. + * Get specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'. * * @return the mode value */ @@ -50,7 +50,7 @@ public UpgradeMode mode() { } /** - * Set the mode value. + * Set specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'. * * @param mode the mode value to set * @return the UpgradePolicy object itself. @@ -61,7 +61,7 @@ public UpgradePolicy withMode(UpgradeMode mode) { } /** - * Get the rollingUpgradePolicy value. + * Get the configuration parameters used while performing a rolling upgrade. * * @return the rollingUpgradePolicy value */ @@ -70,7 +70,7 @@ public RollingUpgradePolicy rollingUpgradePolicy() { } /** - * Set the rollingUpgradePolicy value. + * Set the configuration parameters used while performing a rolling upgrade. * * @param rollingUpgradePolicy the rollingUpgradePolicy value to set * @return the UpgradePolicy object itself. @@ -81,7 +81,7 @@ public UpgradePolicy withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgrad } /** - * Get the automaticOSUpgrade value. + * Get whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available. * * @return the automaticOSUpgrade value */ @@ -90,7 +90,7 @@ public Boolean automaticOSUpgrade() { } /** - * Set the automaticOSUpgrade value. + * Set whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available. * * @param automaticOSUpgrade the automaticOSUpgrade value to set * @return the UpgradePolicy object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UsageName.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UsageName.java index d8cf6a1090f9..a2ea0c4b325d 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UsageName.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get the name of the resource. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Set the value value. + * Set the name of the resource. * * @param value the value value to set * @return the UsageName object itself. @@ -47,7 +47,7 @@ public UsageName withValue(String value) { } /** - * Get the localizedValue value. + * Get the localized name of the resource. * * @return the localizedValue value */ @@ -56,7 +56,7 @@ public String localizedValue() { } /** - * Set the localizedValue value. + * Set the localized name of the resource. * * @param localizedValue the localizedValue value to set * @return the UsageName object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VaultCertificate.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VaultCertificate.java index aee1b904c265..b828dbd54618 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VaultCertificate.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VaultCertificate.java @@ -43,7 +43,7 @@ public class VaultCertificate { private String certificateStore; /** - * Get the certificateUrl value. + * Get this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}. * * @return the certificateUrl value */ @@ -52,7 +52,7 @@ public String certificateUrl() { } /** - * Set the certificateUrl value. + * Set this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}. * * @param certificateUrl the certificateUrl value to set * @return the VaultCertificate object itself. @@ -63,7 +63,7 @@ public VaultCertificate withCertificateUrl(String certificateUrl) { } /** - * Get the certificateStore value. + * Get for Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. <br><br>For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbpring>.prv for private key. Both of these files are .pem formatted. * * @return the certificateStore value */ @@ -72,7 +72,7 @@ public String certificateStore() { } /** - * Set the certificateStore value. + * Set for Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. <br><br>For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbpring>.prv for private key. Both of these files are .pem formatted. * * @param certificateStore the certificateStore value to set * @return the VaultCertificate object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VaultSecretGroup.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VaultSecretGroup.java index bd49bb51e892..fa0bd460d405 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VaultSecretGroup.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VaultSecretGroup.java @@ -31,7 +31,7 @@ public class VaultSecretGroup { private List vaultCertificates; /** - * Get the sourceVault value. + * Get the relative URL of the Key Vault containing all of the certificates in VaultCertificates. * * @return the sourceVault value */ @@ -40,7 +40,7 @@ public SubResource sourceVault() { } /** - * Set the sourceVault value. + * Set the relative URL of the Key Vault containing all of the certificates in VaultCertificates. * * @param sourceVault the sourceVault value to set * @return the VaultSecretGroup object itself. @@ -51,7 +51,7 @@ public VaultSecretGroup withSourceVault(SubResource sourceVault) { } /** - * Get the vaultCertificates value. + * Get the list of key vault references in SourceVault which contain certificates. * * @return the vaultCertificates value */ @@ -60,7 +60,7 @@ public List vaultCertificates() { } /** - * Set the vaultCertificates value. + * Set the list of key vault references in SourceVault which contain certificates. * * @param vaultCertificates the vaultCertificates value to set * @return the VaultSecretGroup object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualHardDisk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualHardDisk.java index ddb676c0a4e1..5deb37042249 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualHardDisk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualHardDisk.java @@ -21,7 +21,7 @@ public class VirtualHardDisk { private String uri; /** - * Get the uri value. + * Get specifies the virtual hard disk's uri. * * @return the uri value */ @@ -30,7 +30,7 @@ public String uri() { } /** - * Set the uri value. + * Set specifies the virtual hard disk's uri. * * @param uri the uri value to set * @return the VirtualHardDisk object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachine.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachine.java index 0770d63ab310..d91d3c66f51c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachine.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachine.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_03_30.implementation.ComputeManager; import com.microsoft.azure.SubResource; diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineAgentInstanceView.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineAgentInstanceView.java index d8bf79451139..78ee1890f6cd 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineAgentInstanceView.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineAgentInstanceView.java @@ -34,7 +34,7 @@ public class VirtualMachineAgentInstanceView { private List statuses; /** - * Get the vmAgentVersion value. + * Get the VM Agent full version. * * @return the vmAgentVersion value */ @@ -43,7 +43,7 @@ public String vmAgentVersion() { } /** - * Set the vmAgentVersion value. + * Set the VM Agent full version. * * @param vmAgentVersion the vmAgentVersion value to set * @return the VirtualMachineAgentInstanceView object itself. @@ -54,7 +54,7 @@ public VirtualMachineAgentInstanceView withVmAgentVersion(String vmAgentVersion) } /** - * Get the extensionHandlers value. + * Get the virtual machine extension handler instance view. * * @return the extensionHandlers value */ @@ -63,7 +63,7 @@ public List extensionHandlers() { } /** - * Set the extensionHandlers value. + * Set the virtual machine extension handler instance view. * * @param extensionHandlers the extensionHandlers value to set * @return the VirtualMachineAgentInstanceView object itself. @@ -74,7 +74,7 @@ public VirtualMachineAgentInstanceView withExtensionHandlers(List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineAgentInstanceView object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineCaptureParameters.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineCaptureParameters.java index ba2f0c42d561..1af6578db435 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineCaptureParameters.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineCaptureParameters.java @@ -34,7 +34,7 @@ public class VirtualMachineCaptureParameters { private boolean overwriteVhds; /** - * Get the vhdPrefix value. + * Get the captured virtual hard disk's name prefix. * * @return the vhdPrefix value */ @@ -43,7 +43,7 @@ public String vhdPrefix() { } /** - * Set the vhdPrefix value. + * Set the captured virtual hard disk's name prefix. * * @param vhdPrefix the vhdPrefix value to set * @return the VirtualMachineCaptureParameters object itself. @@ -54,7 +54,7 @@ public VirtualMachineCaptureParameters withVhdPrefix(String vhdPrefix) { } /** - * Get the destinationContainerName value. + * Get the destination container name. * * @return the destinationContainerName value */ @@ -63,7 +63,7 @@ public String destinationContainerName() { } /** - * Set the destinationContainerName value. + * Set the destination container name. * * @param destinationContainerName the destinationContainerName value to set * @return the VirtualMachineCaptureParameters object itself. @@ -74,7 +74,7 @@ public VirtualMachineCaptureParameters withDestinationContainerName(String desti } /** - * Get the overwriteVhds value. + * Get specifies whether to overwrite the destination virtual hard disk, in case of conflict. * * @return the overwriteVhds value */ @@ -83,7 +83,7 @@ public boolean overwriteVhds() { } /** - * Set the overwriteVhds value. + * Set specifies whether to overwrite the destination virtual hard disk, in case of conflict. * * @param overwriteVhds the overwriteVhds value to set * @return the VirtualMachineCaptureParameters object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionHandlerInstanceView.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionHandlerInstanceView.java index 6c39edef66b9..a09d26e3547d 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionHandlerInstanceView.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionHandlerInstanceView.java @@ -34,7 +34,7 @@ public class VirtualMachineExtensionHandlerInstanceView { private InstanceViewStatus status; /** - * Get the type value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */ @@ -43,7 +43,7 @@ public String type() { } /** - * Set the type value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineExtensionHandlerInstanceView object itself. @@ -54,7 +54,7 @@ public VirtualMachineExtensionHandlerInstanceView withType(String type) { } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -63,7 +63,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionHandlerInstanceView object itself. @@ -74,7 +74,7 @@ public VirtualMachineExtensionHandlerInstanceView withTypeHandlerVersion(String } /** - * Get the status value. + * Get the extension handler status. * * @return the status value */ @@ -83,7 +83,7 @@ public InstanceViewStatus status() { } /** - * Set the status value. + * Set the extension handler status. * * @param status the status value to set * @return the VirtualMachineExtensionHandlerInstanceView object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionInstanceView.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionInstanceView.java index 2d896b3f1825..bd6c9b1e9e08 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionInstanceView.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionInstanceView.java @@ -47,7 +47,7 @@ public class VirtualMachineExtensionInstanceView { private List statuses; /** - * Get the name value. + * Get the virtual machine extension name. * * @return the name value */ @@ -56,7 +56,7 @@ public String name() { } /** - * Set the name value. + * Set the virtual machine extension name. * * @param name the name value to set * @return the VirtualMachineExtensionInstanceView object itself. @@ -67,7 +67,7 @@ public VirtualMachineExtensionInstanceView withName(String name) { } /** - * Get the type value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */ @@ -76,7 +76,7 @@ public String type() { } /** - * Set the type value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineExtensionInstanceView object itself. @@ -87,7 +87,7 @@ public VirtualMachineExtensionInstanceView withType(String type) { } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -96,7 +96,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionInstanceView object itself. @@ -107,7 +107,7 @@ public VirtualMachineExtensionInstanceView withTypeHandlerVersion(String typeHan } /** - * Get the substatuses value. + * Get the resource status information. * * @return the substatuses value */ @@ -116,7 +116,7 @@ public List substatuses() { } /** - * Set the substatuses value. + * Set the resource status information. * * @param substatuses the substatuses value to set * @return the VirtualMachineExtensionInstanceView object itself. @@ -127,7 +127,7 @@ public VirtualMachineExtensionInstanceView withSubstatuses(List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineExtensionInstanceView object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionUpdate.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionUpdate.java index ec2d13b4844e..c276d1b46878 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionUpdate.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineExtensionUpdate.java @@ -65,7 +65,7 @@ public class VirtualMachineExtensionUpdate extends UpdateResource { private Object protectedSettings; /** - * Get the forceUpdateTag value. + * Get how the extension handler should be forced to update even if the extension configuration has not changed. * * @return the forceUpdateTag value */ @@ -74,7 +74,7 @@ public String forceUpdateTag() { } /** - * Set the forceUpdateTag value. + * Set how the extension handler should be forced to update even if the extension configuration has not changed. * * @param forceUpdateTag the forceUpdateTag value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -85,7 +85,7 @@ public VirtualMachineExtensionUpdate withForceUpdateTag(String forceUpdateTag) { } /** - * Get the publisher value. + * Get the name of the extension handler publisher. * * @return the publisher value */ @@ -94,7 +94,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the name of the extension handler publisher. * * @param publisher the publisher value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -105,7 +105,7 @@ public VirtualMachineExtensionUpdate withPublisher(String publisher) { } /** - * Get the type value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */ @@ -114,7 +114,7 @@ public String type() { } /** - * Set the type value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -125,7 +125,7 @@ public VirtualMachineExtensionUpdate withType(String type) { } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -134,7 +134,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -145,7 +145,7 @@ public VirtualMachineExtensionUpdate withTypeHandlerVersion(String typeHandlerVe } /** - * Get the autoUpgradeMinorVersion value. + * Get indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @return the autoUpgradeMinorVersion value */ @@ -154,7 +154,7 @@ public Boolean autoUpgradeMinorVersion() { } /** - * Set the autoUpgradeMinorVersion value. + * Set indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -165,7 +165,7 @@ public VirtualMachineExtensionUpdate withAutoUpgradeMinorVersion(Boolean autoUpg } /** - * Get the settings value. + * Get json formatted public settings for the extension. * * @return the settings value */ @@ -174,7 +174,7 @@ public Object settings() { } /** - * Set the settings value. + * Set json formatted public settings for the extension. * * @param settings the settings value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -185,7 +185,7 @@ public VirtualMachineExtensionUpdate withSettings(Object settings) { } /** - * Get the protectedSettings value. + * Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @return the protectedSettings value */ @@ -194,7 +194,7 @@ public Object protectedSettings() { } /** - * Set the protectedSettings value. + * Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @param protectedSettings the protectedSettings value to set * @return the VirtualMachineExtensionUpdate object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineHealthStatus.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineHealthStatus.java index f098d277ffb2..696121a81101 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineHealthStatus.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineHealthStatus.java @@ -21,7 +21,7 @@ public class VirtualMachineHealthStatus { private InstanceViewStatus status; /** - * Get the status value. + * Get the health status information for the VM. * * @return the status value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineIdentity.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineIdentity.java index c5380e8104fb..ad6a722abc34 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineIdentity.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineIdentity.java @@ -35,7 +35,7 @@ public class VirtualMachineIdentity { private ResourceIdentityType type; /** - * Get the principalId value. + * Get the principal id of virtual machine identity. * * @return the principalId value */ @@ -44,7 +44,7 @@ public String principalId() { } /** - * Get the tenantId value. + * Get the tenant id associated with the virtual machine. * * @return the tenantId value */ @@ -53,7 +53,7 @@ public String tenantId() { } /** - * Get the type value. + * Get the type of identity used for the virtual machine. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Possible values include: 'SystemAssigned'. * * @return the type value */ @@ -62,7 +62,7 @@ public ResourceIdentityType type() { } /** - * Set the type value. + * Set the type of identity used for the virtual machine. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Possible values include: 'SystemAssigned'. * * @param type the type value to set * @return the VirtualMachineIdentity object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSet.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSet.java index 8646817be637..73b71577485a 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSet.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSet.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_03_30.implementation.ComputeManager; import java.util.List; diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetDataDisk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetDataDisk.java index ad911fa4b36f..284e31685e41 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetDataDisk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetDataDisk.java @@ -60,7 +60,7 @@ public class VirtualMachineScaleSetDataDisk { private VirtualMachineScaleSetManagedDiskParameters managedDisk; /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -69,7 +69,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -80,7 +80,7 @@ public VirtualMachineScaleSetDataDisk withName(String name) { } /** - * Get the lun value. + * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */ @@ -89,7 +89,7 @@ public int lun() { } /** - * Set the lun value. + * Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @param lun the lun value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -100,7 +100,7 @@ public VirtualMachineScaleSetDataDisk withLun(int lun) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -109,7 +109,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -120,7 +120,7 @@ public VirtualMachineScaleSetDataDisk withCaching(CachingTypes caching) { } /** - * Get the createOption value. + * Get the create option. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */ @@ -129,7 +129,7 @@ public DiskCreateOptionTypes createOption() { } /** - * Set the createOption value. + * Set the create option. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -140,7 +140,7 @@ public VirtualMachineScaleSetDataDisk withCreateOption(DiskCreateOptionTypes cre } /** - * Get the diskSizeGB value. + * Get specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -149,7 +149,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -160,7 +160,7 @@ public VirtualMachineScaleSetDataDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -169,7 +169,7 @@ public VirtualMachineScaleSetManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the VirtualMachineScaleSetDataDisk object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetExtensionProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetExtensionProfile.java index f03a52fb1237..14e5db1a4417 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetExtensionProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetExtensionProfile.java @@ -23,7 +23,7 @@ public class VirtualMachineScaleSetExtensionProfile { private List extensions; /** - * Get the extensions value. + * Get the virtual machine scale set child extension resources. * * @return the extensions value */ @@ -32,7 +32,7 @@ public List extensions() { } /** - * Set the extensions value. + * Set the virtual machine scale set child extension resources. * * @param extensions the extensions value to set * @return the VirtualMachineScaleSetExtensionProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetIPConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetIPConfiguration.java index 8bc4d767e9a2..6e7ea749416c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetIPConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetIPConfiguration.java @@ -80,7 +80,7 @@ public class VirtualMachineScaleSetIPConfiguration extends SubResource { private List loadBalancerInboundNatPools; /** - * Get the name value. + * Get the IP configuration name. * * @return the name value */ @@ -89,7 +89,7 @@ public String name() { } /** - * Set the name value. + * Set the IP configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -100,7 +100,7 @@ public VirtualMachineScaleSetIPConfiguration withName(String name) { } /** - * Get the subnet value. + * Get specifies the identifier of the subnet. * * @return the subnet value */ @@ -109,7 +109,7 @@ public ApiEntityReference subnet() { } /** - * Set the subnet value. + * Set specifies the identifier of the subnet. * * @param subnet the subnet value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -120,7 +120,7 @@ public VirtualMachineScaleSetIPConfiguration withSubnet(ApiEntityReference subne } /** - * Get the primary value. + * Get specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @return the primary value */ @@ -129,7 +129,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @param primary the primary value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -140,7 +140,7 @@ public VirtualMachineScaleSetIPConfiguration withPrimary(Boolean primary) { } /** - * Get the publicIPAddressConfiguration value. + * Get the publicIPAddressConfiguration. * * @return the publicIPAddressConfiguration value */ @@ -149,7 +149,7 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfigu } /** - * Set the publicIPAddressConfiguration value. + * Set the publicIPAddressConfiguration. * * @param publicIPAddressConfiguration the publicIPAddressConfiguration value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -160,7 +160,7 @@ public VirtualMachineScaleSetIPConfiguration withPublicIPAddressConfiguration(Vi } /** - * Get the privateIPAddressVersion value. + * Get available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @return the privateIPAddressVersion value */ @@ -169,7 +169,7 @@ public IPVersion privateIPAddressVersion() { } /** - * Set the privateIPAddressVersion value. + * Set available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @param privateIPAddressVersion the privateIPAddressVersion value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -180,7 +180,7 @@ public VirtualMachineScaleSetIPConfiguration withPrivateIPAddressVersion(IPVersi } /** - * Get the applicationGatewayBackendAddressPools value. + * Get specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. * * @return the applicationGatewayBackendAddressPools value */ @@ -189,7 +189,7 @@ public List applicationGatewayBackendAddressPools() { } /** - * Set the applicationGatewayBackendAddressPools value. + * Set specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. * * @param applicationGatewayBackendAddressPools the applicationGatewayBackendAddressPools value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -200,7 +200,7 @@ public VirtualMachineScaleSetIPConfiguration withApplicationGatewayBackendAddres } /** - * Get the loadBalancerBackendAddressPools value. + * Get specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer. * * @return the loadBalancerBackendAddressPools value */ @@ -209,7 +209,7 @@ public List loadBalancerBackendAddressPools() { } /** - * Set the loadBalancerBackendAddressPools value. + * Set specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer. * * @param loadBalancerBackendAddressPools the loadBalancerBackendAddressPools value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -220,7 +220,7 @@ public VirtualMachineScaleSetIPConfiguration withLoadBalancerBackendAddressPools } /** - * Get the loadBalancerInboundNatPools value. + * Get specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer. * * @return the loadBalancerInboundNatPools value */ @@ -229,7 +229,7 @@ public List loadBalancerInboundNatPools() { } /** - * Set the loadBalancerInboundNatPools value. + * Set specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer. * * @param loadBalancerInboundNatPools the loadBalancerInboundNatPools value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetIdentity.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetIdentity.java index 5ebc09958dfc..ae09f4edaaf5 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetIdentity.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetIdentity.java @@ -35,7 +35,7 @@ public class VirtualMachineScaleSetIdentity { private ResourceIdentityType type; /** - * Get the principalId value. + * Get the principal id of virtual machine scale set identity. * * @return the principalId value */ @@ -44,7 +44,7 @@ public String principalId() { } /** - * Get the tenantId value. + * Get the tenant id associated with the virtual machine scale set. * * @return the tenantId value */ @@ -53,7 +53,7 @@ public String tenantId() { } /** - * Get the type value. + * Get the type of identity used for the virtual machine scale set. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Possible values include: 'SystemAssigned'. * * @return the type value */ @@ -62,7 +62,7 @@ public ResourceIdentityType type() { } /** - * Set the type value. + * Set the type of identity used for the virtual machine scale set. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Possible values include: 'SystemAssigned'. * * @param type the type value to set * @return the VirtualMachineScaleSetIdentity object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetInstanceViewStatusesSummary.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetInstanceViewStatusesSummary.java index 19a2deb31243..31451f479196 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetInstanceViewStatusesSummary.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetInstanceViewStatusesSummary.java @@ -23,7 +23,7 @@ public class VirtualMachineScaleSetInstanceViewStatusesSummary { private List statusesSummary; /** - * Get the statusesSummary value. + * Get the extensions information. * * @return the statusesSummary value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetManagedDiskParameters.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetManagedDiskParameters.java index 27d2323dd58e..6246f1597bdf 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetManagedDiskParameters.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetManagedDiskParameters.java @@ -23,7 +23,7 @@ public class VirtualMachineScaleSetManagedDiskParameters { private StorageAccountTypes storageAccountType; /** - * Get the storageAccountType value. + * Get specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -32,7 +32,7 @@ public StorageAccountTypes storageAccountType() { } /** - * Set the storageAccountType value. + * Set specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the VirtualMachineScaleSetManagedDiskParameters object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkConfiguration.java index fe734f6dd5fb..6295cf0a9a97 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkConfiguration.java @@ -58,7 +58,7 @@ public class VirtualMachineScaleSetNetworkConfiguration extends SubResource { private List ipConfigurations; /** - * Get the name value. + * Get the network configuration name. * * @return the name value */ @@ -67,7 +67,7 @@ public String name() { } /** - * Set the name value. + * Set the network configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -78,7 +78,7 @@ public VirtualMachineScaleSetNetworkConfiguration withName(String name) { } /** - * Get the primary value. + * Get specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @return the primary value */ @@ -87,7 +87,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @param primary the primary value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -98,7 +98,7 @@ public VirtualMachineScaleSetNetworkConfiguration withPrimary(Boolean primary) { } /** - * Get the enableAcceleratedNetworking value. + * Get specifies whether the network interface is accelerated networking-enabled. * * @return the enableAcceleratedNetworking value */ @@ -107,7 +107,7 @@ public Boolean enableAcceleratedNetworking() { } /** - * Set the enableAcceleratedNetworking value. + * Set specifies whether the network interface is accelerated networking-enabled. * * @param enableAcceleratedNetworking the enableAcceleratedNetworking value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -118,7 +118,7 @@ public VirtualMachineScaleSetNetworkConfiguration withEnableAcceleratedNetworkin } /** - * Get the networkSecurityGroup value. + * Get the network security group. * * @return the networkSecurityGroup value */ @@ -127,7 +127,7 @@ public SubResource networkSecurityGroup() { } /** - * Set the networkSecurityGroup value. + * Set the network security group. * * @param networkSecurityGroup the networkSecurityGroup value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -138,7 +138,7 @@ public VirtualMachineScaleSetNetworkConfiguration withNetworkSecurityGroup(SubRe } /** - * Get the dnsSettings value. + * Get the dns settings to be applied on the network interfaces. * * @return the dnsSettings value */ @@ -147,7 +147,7 @@ public VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings() { } /** - * Set the dnsSettings value. + * Set the dns settings to be applied on the network interfaces. * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -158,7 +158,7 @@ public VirtualMachineScaleSetNetworkConfiguration withDnsSettings(VirtualMachine } /** - * Get the ipConfigurations value. + * Get specifies the IP configurations of the network interface. * * @return the ipConfigurations value */ @@ -167,7 +167,7 @@ public List ipConfigurations() { } /** - * Set the ipConfigurations value. + * Set specifies the IP configurations of the network interface. * * @param ipConfigurations the ipConfigurations value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkConfigurationDnsSettings.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkConfigurationDnsSettings.java index f6e7280b2a73..dd1a4f7e809b 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkConfigurationDnsSettings.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkConfigurationDnsSettings.java @@ -23,7 +23,7 @@ public class VirtualMachineScaleSetNetworkConfigurationDnsSettings { private List dnsServers; /** - * Get the dnsServers value. + * Get list of DNS servers IP addresses. * * @return the dnsServers value */ @@ -32,7 +32,7 @@ public List dnsServers() { } /** - * Set the dnsServers value. + * Set list of DNS servers IP addresses. * * @param dnsServers the dnsServers value to set * @return the VirtualMachineScaleSetNetworkConfigurationDnsSettings object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkProfile.java index fe7f47e5cb3e..f34b7b4a976c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetNetworkProfile.java @@ -31,7 +31,7 @@ public class VirtualMachineScaleSetNetworkProfile { private List networkInterfaceConfigurations; /** - * Get the healthProbe value. + * Get a reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. * * @return the healthProbe value */ @@ -40,7 +40,7 @@ public ApiEntityReference healthProbe() { } /** - * Set the healthProbe value. + * Set a reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. * * @param healthProbe the healthProbe value to set * @return the VirtualMachineScaleSetNetworkProfile object itself. @@ -51,7 +51,7 @@ public VirtualMachineScaleSetNetworkProfile withHealthProbe(ApiEntityReference h } /** - * Get the networkInterfaceConfigurations value. + * Get the list of network configurations. * * @return the networkInterfaceConfigurations value */ @@ -60,7 +60,7 @@ public List networkInterfaceConfigur } /** - * Set the networkInterfaceConfigurations value. + * Set the list of network configurations. * * @param networkInterfaceConfigurations the networkInterfaceConfigurations value to set * @return the VirtualMachineScaleSetNetworkProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetOSDisk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetOSDisk.java index 99cbc7e6c6c5..1e60eda23cd9 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetOSDisk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetOSDisk.java @@ -74,7 +74,7 @@ public class VirtualMachineScaleSetOSDisk { private VirtualMachineScaleSetManagedDiskParameters managedDisk; /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -83,7 +83,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -94,7 +94,7 @@ public VirtualMachineScaleSetOSDisk withName(String name) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -103,7 +103,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -114,7 +114,7 @@ public VirtualMachineScaleSetOSDisk withCaching(CachingTypes caching) { } /** - * Get the createOption value. + * Get specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */ @@ -123,7 +123,7 @@ public DiskCreateOptionTypes createOption() { } /** - * Set the createOption value. + * Set specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -134,7 +134,7 @@ public VirtualMachineScaleSetOSDisk withCreateOption(DiskCreateOptionTypes creat } /** - * Get the osType value. + * Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -143,7 +143,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -154,7 +154,7 @@ public VirtualMachineScaleSetOSDisk withOsType(OperatingSystemTypes osType) { } /** - * Get the image value. + * Get specifies information about the unmanaged user image to base the scale set on. * * @return the image value */ @@ -163,7 +163,7 @@ public VirtualHardDisk image() { } /** - * Set the image value. + * Set specifies information about the unmanaged user image to base the scale set on. * * @param image the image value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -174,7 +174,7 @@ public VirtualMachineScaleSetOSDisk withImage(VirtualHardDisk image) { } /** - * Get the vhdContainers value. + * Get specifies the container urls that are used to store operating system disks for the scale set. * * @return the vhdContainers value */ @@ -183,7 +183,7 @@ public List vhdContainers() { } /** - * Set the vhdContainers value. + * Set specifies the container urls that are used to store operating system disks for the scale set. * * @param vhdContainers the vhdContainers value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -194,7 +194,7 @@ public VirtualMachineScaleSetOSDisk withVhdContainers(List vhdContainers } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -203,7 +203,7 @@ public VirtualMachineScaleSetManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the VirtualMachineScaleSetOSDisk object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetOSProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetOSProfile.java index 5f9f10acad30..8f6c27eed581 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetOSProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetOSProfile.java @@ -102,7 +102,7 @@ public class VirtualMachineScaleSetOSProfile { private List secrets; /** - * Get the computerNamePrefix value. + * Get specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. * * @return the computerNamePrefix value */ @@ -111,7 +111,7 @@ public String computerNamePrefix() { } /** - * Set the computerNamePrefix value. + * Set specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. * * @param computerNamePrefix the computerNamePrefix value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -122,7 +122,7 @@ public VirtualMachineScaleSetOSProfile withComputerNamePrefix(String computerNam } /** - * Get the adminUsername value. + * Get specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the adminUsername value */ @@ -131,7 +131,7 @@ public String adminUsername() { } /** - * Set the adminUsername value. + * Set specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param adminUsername the adminUsername value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -142,7 +142,7 @@ public VirtualMachineScaleSetOSProfile withAdminUsername(String adminUsername) { } /** - * Get the adminPassword value. + * Get specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password). * * @return the adminPassword value */ @@ -151,7 +151,7 @@ public String adminPassword() { } /** - * Set the adminPassword value. + * Set specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password). * * @param adminPassword the adminPassword value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -162,7 +162,7 @@ public VirtualMachineScaleSetOSProfile withAdminPassword(String adminPassword) { } /** - * Get the customData value. + * Get specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the customData value */ @@ -171,7 +171,7 @@ public String customData() { } /** - * Set the customData value. + * Set specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param customData the customData value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -182,7 +182,7 @@ public VirtualMachineScaleSetOSProfile withCustomData(String customData) { } /** - * Get the windowsConfiguration value. + * Get specifies Windows operating system settings on the virtual machine. * * @return the windowsConfiguration value */ @@ -191,7 +191,7 @@ public WindowsConfiguration windowsConfiguration() { } /** - * Set the windowsConfiguration value. + * Set specifies Windows operating system settings on the virtual machine. * * @param windowsConfiguration the windowsConfiguration value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -202,7 +202,7 @@ public VirtualMachineScaleSetOSProfile withWindowsConfiguration(WindowsConfigura } /** - * Get the linuxConfiguration value. + * Get specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the linuxConfiguration value */ @@ -211,7 +211,7 @@ public LinuxConfiguration linuxConfiguration() { } /** - * Set the linuxConfiguration value. + * Set specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param linuxConfiguration the linuxConfiguration value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -222,7 +222,7 @@ public VirtualMachineScaleSetOSProfile withLinuxConfiguration(LinuxConfiguration } /** - * Get the secrets value. + * Get specifies set of certificates that should be installed onto the virtual machines in the scale set. * * @return the secrets value */ @@ -231,7 +231,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set specifies set of certificates that should be installed onto the virtual machines in the scale set. * * @param secrets the secrets value to set * @return the VirtualMachineScaleSetOSProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetPublicIPAddressConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetPublicIPAddressConfiguration.java index 02efe61bd311..a1e038b2e03b 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetPublicIPAddressConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetPublicIPAddressConfiguration.java @@ -36,7 +36,7 @@ public class VirtualMachineScaleSetPublicIPAddressConfiguration { private VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings; /** - * Get the name value. + * Get the publicIP address configuration name. * * @return the name value */ @@ -45,7 +45,7 @@ public String name() { } /** - * Set the name value. + * Set the publicIP address configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetPublicIPAddressConfiguration object itself. @@ -56,7 +56,7 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration withName(String name) } /** - * Get the idleTimeoutInMinutes value. + * Get the idle timeout of the public IP address. * * @return the idleTimeoutInMinutes value */ @@ -65,7 +65,7 @@ public Integer idleTimeoutInMinutes() { } /** - * Set the idleTimeoutInMinutes value. + * Set the idle timeout of the public IP address. * * @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set * @return the VirtualMachineScaleSetPublicIPAddressConfiguration object itself. @@ -76,7 +76,7 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration withIdleTimeoutInMinut } /** - * Get the dnsSettings value. + * Get the dns settings to be applied on the publicIP addresses . * * @return the dnsSettings value */ @@ -85,7 +85,7 @@ public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings } /** - * Set the dnsSettings value. + * Set the dns settings to be applied on the publicIP addresses . * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetPublicIPAddressConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.java index bfb9d9f31008..6305425cff74 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.java @@ -24,7 +24,7 @@ public class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { private String domainNameLabel; /** - * Get the domainNameLabel value. + * Get the Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. * * @return the domainNameLabel value */ @@ -33,7 +33,7 @@ public String domainNameLabel() { } /** - * Set the domainNameLabel value. + * Set the Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. * * @param domainNameLabel the domainNameLabel value to set * @return the VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetSkuCapacity.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetSkuCapacity.java index a703e24737c3..89356071589b 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetSkuCapacity.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetSkuCapacity.java @@ -40,7 +40,7 @@ public class VirtualMachineScaleSetSkuCapacity { private VirtualMachineScaleSetSkuScaleType scaleType; /** - * Get the minimum value. + * Get the minimum capacity. * * @return the minimum value */ @@ -49,7 +49,7 @@ public Long minimum() { } /** - * Get the maximum value. + * Get the maximum capacity that can be set. * * @return the maximum value */ @@ -58,7 +58,7 @@ public Long maximum() { } /** - * Get the defaultCapacity value. + * Get the default capacity. * * @return the defaultCapacity value */ @@ -67,7 +67,7 @@ public Long defaultCapacity() { } /** - * Get the scaleType value. + * Get the scale type applicable to the sku. Possible values include: 'Automatic', 'None'. * * @return the scaleType value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetStorageProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetStorageProfile.java index 01381bfa1f23..00851a9a0884 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetStorageProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetStorageProfile.java @@ -44,7 +44,7 @@ public class VirtualMachineScaleSetStorageProfile { private List dataDisks; /** - * Get the imageReference value. + * Get specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. * * @return the imageReference value */ @@ -53,7 +53,7 @@ public ImageReference imageReference() { } /** - * Set the imageReference value. + * Set specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. * * @param imageReference the imageReference value to set * @return the VirtualMachineScaleSetStorageProfile object itself. @@ -64,7 +64,7 @@ public VirtualMachineScaleSetStorageProfile withImageReference(ImageReference im } /** - * Get the osDisk value. + * Get specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the osDisk value */ @@ -73,7 +73,7 @@ public VirtualMachineScaleSetOSDisk osDisk() { } /** - * Set the osDisk value. + * Set specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param osDisk the osDisk value to set * @return the VirtualMachineScaleSetStorageProfile object itself. @@ -84,7 +84,7 @@ public VirtualMachineScaleSetStorageProfile withOsDisk(VirtualMachineScaleSetOSD } /** - * Get the dataDisks value. + * Get specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the dataDisks value */ @@ -93,7 +93,7 @@ public List dataDisks() { } /** - * Set the dataDisks value. + * Set specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param dataDisks the dataDisks value to set * @return the VirtualMachineScaleSetStorageProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdate.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdate.java index 2bb2de6343d2..d2653e650d45 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdate.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdate.java @@ -62,7 +62,7 @@ public class VirtualMachineScaleSetUpdate extends UpdateResource { private VirtualMachineScaleSetIdentity identity; /** - * Get the sku value. + * Get the virtual machine scale set sku. * * @return the sku value */ @@ -71,7 +71,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the virtual machine scale set sku. * * @param sku the sku value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -82,7 +82,7 @@ public VirtualMachineScaleSetUpdate withSku(Sku sku) { } /** - * Get the plan value. + * Get the purchase plan when deploying a virtual machine scale set from VM Marketplace images. * * @return the plan value */ @@ -91,7 +91,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set the purchase plan when deploying a virtual machine scale set from VM Marketplace images. * * @param plan the plan value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -102,7 +102,7 @@ public VirtualMachineScaleSetUpdate withPlan(Plan plan) { } /** - * Get the upgradePolicy value. + * Get the upgrade policy. * * @return the upgradePolicy value */ @@ -111,7 +111,7 @@ public UpgradePolicy upgradePolicy() { } /** - * Set the upgradePolicy value. + * Set the upgrade policy. * * @param upgradePolicy the upgradePolicy value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -122,7 +122,7 @@ public VirtualMachineScaleSetUpdate withUpgradePolicy(UpgradePolicy upgradePolic } /** - * Get the virtualMachineProfile value. + * Get the virtual machine profile. * * @return the virtualMachineProfile value */ @@ -131,7 +131,7 @@ public VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile() { } /** - * Set the virtualMachineProfile value. + * Set the virtual machine profile. * * @param virtualMachineProfile the virtualMachineProfile value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -142,7 +142,7 @@ public VirtualMachineScaleSetUpdate withVirtualMachineProfile(VirtualMachineScal } /** - * Get the overprovision value. + * Get specifies whether the Virtual Machine Scale Set should be overprovisioned. * * @return the overprovision value */ @@ -151,7 +151,7 @@ public Boolean overprovision() { } /** - * Set the overprovision value. + * Set specifies whether the Virtual Machine Scale Set should be overprovisioned. * * @param overprovision the overprovision value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -162,7 +162,7 @@ public VirtualMachineScaleSetUpdate withOverprovision(Boolean overprovision) { } /** - * Get the singlePlacementGroup value. + * Get when true this limits the scale set to a single placement group, of max size 100 virtual machines. * * @return the singlePlacementGroup value */ @@ -171,7 +171,7 @@ public Boolean singlePlacementGroup() { } /** - * Set the singlePlacementGroup value. + * Set when true this limits the scale set to a single placement group, of max size 100 virtual machines. * * @param singlePlacementGroup the singlePlacementGroup value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -182,7 +182,7 @@ public VirtualMachineScaleSetUpdate withSinglePlacementGroup(Boolean singlePlace } /** - * Get the identity value. + * Get the identity of the virtual machine scale set, if configured. * * @return the identity value */ @@ -191,7 +191,7 @@ public VirtualMachineScaleSetIdentity identity() { } /** - * Set the identity value. + * Set the identity of the virtual machine scale set, if configured. * * @param identity the identity value to set * @return the VirtualMachineScaleSetUpdate object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateIPConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateIPConfiguration.java index a3ea6cde23b4..602525c6141b 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateIPConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateIPConfiguration.java @@ -71,7 +71,7 @@ public class VirtualMachineScaleSetUpdateIPConfiguration extends SubResource { private List loadBalancerInboundNatPools; /** - * Get the name value. + * Get the IP configuration name. * * @return the name value */ @@ -80,7 +80,7 @@ public String name() { } /** - * Set the name value. + * Set the IP configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -91,7 +91,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withName(String name) { } /** - * Get the subnet value. + * Get the subnet. * * @return the subnet value */ @@ -100,7 +100,7 @@ public ApiEntityReference subnet() { } /** - * Set the subnet value. + * Set the subnet. * * @param subnet the subnet value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -111,7 +111,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withSubnet(ApiEntityReference } /** - * Get the primary value. + * Get specifies the primary IP Configuration in case the network interface has more than one IP Configuration. * * @return the primary value */ @@ -120,7 +120,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set specifies the primary IP Configuration in case the network interface has more than one IP Configuration. * * @param primary the primary value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -131,7 +131,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withPrimary(Boolean primary) } /** - * Get the publicIPAddressConfiguration value. + * Get the publicIPAddressConfiguration. * * @return the publicIPAddressConfiguration value */ @@ -140,7 +140,7 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration publicIPAddressC } /** - * Set the publicIPAddressConfiguration value. + * Set the publicIPAddressConfiguration. * * @param publicIPAddressConfiguration the publicIPAddressConfiguration value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -151,7 +151,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withPublicIPAddressConfigurat } /** - * Get the privateIPAddressVersion value. + * Get available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @return the privateIPAddressVersion value */ @@ -160,7 +160,7 @@ public IPVersion privateIPAddressVersion() { } /** - * Set the privateIPAddressVersion value. + * Set available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @param privateIPAddressVersion the privateIPAddressVersion value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -171,7 +171,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withPrivateIPAddressVersion(I } /** - * Get the applicationGatewayBackendAddressPools value. + * Get the application gateway backend address pools. * * @return the applicationGatewayBackendAddressPools value */ @@ -180,7 +180,7 @@ public List applicationGatewayBackendAddressPools() { } /** - * Set the applicationGatewayBackendAddressPools value. + * Set the application gateway backend address pools. * * @param applicationGatewayBackendAddressPools the applicationGatewayBackendAddressPools value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -191,7 +191,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withApplicationGatewayBackend } /** - * Get the loadBalancerBackendAddressPools value. + * Get the load balancer backend address pools. * * @return the loadBalancerBackendAddressPools value */ @@ -200,7 +200,7 @@ public List loadBalancerBackendAddressPools() { } /** - * Set the loadBalancerBackendAddressPools value. + * Set the load balancer backend address pools. * * @param loadBalancerBackendAddressPools the loadBalancerBackendAddressPools value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -211,7 +211,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withLoadBalancerBackendAddres } /** - * Get the loadBalancerInboundNatPools value. + * Get the load balancer inbound nat pools. * * @return the loadBalancerInboundNatPools value */ @@ -220,7 +220,7 @@ public List loadBalancerInboundNatPools() { } /** - * Set the loadBalancerInboundNatPools value. + * Set the load balancer inbound nat pools. * * @param loadBalancerInboundNatPools the loadBalancerInboundNatPools value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateNetworkConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateNetworkConfiguration.java index 062a820c549b..5494f9fba563 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateNetworkConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateNetworkConfiguration.java @@ -57,7 +57,7 @@ public class VirtualMachineScaleSetUpdateNetworkConfiguration extends SubResourc private List ipConfigurations; /** - * Get the name value. + * Get the network configuration name. * * @return the name value */ @@ -66,7 +66,7 @@ public String name() { } /** - * Set the name value. + * Set the network configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -77,7 +77,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withName(String name) { } /** - * Get the primary value. + * Get whether this is a primary NIC on a virtual machine. * * @return the primary value */ @@ -86,7 +86,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set whether this is a primary NIC on a virtual machine. * * @param primary the primary value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -97,7 +97,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withPrimary(Boolean prim } /** - * Get the enableAcceleratedNetworking value. + * Get specifies whether the network interface is accelerated networking-enabled. * * @return the enableAcceleratedNetworking value */ @@ -106,7 +106,7 @@ public Boolean enableAcceleratedNetworking() { } /** - * Set the enableAcceleratedNetworking value. + * Set specifies whether the network interface is accelerated networking-enabled. * * @param enableAcceleratedNetworking the enableAcceleratedNetworking value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -117,7 +117,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withEnableAcceleratedNet } /** - * Get the networkSecurityGroup value. + * Get the network security group. * * @return the networkSecurityGroup value */ @@ -126,7 +126,7 @@ public SubResource networkSecurityGroup() { } /** - * Set the networkSecurityGroup value. + * Set the network security group. * * @param networkSecurityGroup the networkSecurityGroup value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -137,7 +137,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withNetworkSecurityGroup } /** - * Get the dnsSettings value. + * Get the dns settings to be applied on the network interfaces. * * @return the dnsSettings value */ @@ -146,7 +146,7 @@ public VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings() { } /** - * Set the dnsSettings value. + * Set the dns settings to be applied on the network interfaces. * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -157,7 +157,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withDnsSettings(VirtualM } /** - * Get the ipConfigurations value. + * Get the virtual machine scale set IP Configuration. * * @return the ipConfigurations value */ @@ -166,7 +166,7 @@ public List ipConfigurations() { } /** - * Set the ipConfigurations value. + * Set the virtual machine scale set IP Configuration. * * @param ipConfigurations the ipConfigurations value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateNetworkProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateNetworkProfile.java index 8969ea3758d3..04d8b443cbff 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateNetworkProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateNetworkProfile.java @@ -22,7 +22,7 @@ public class VirtualMachineScaleSetUpdateNetworkProfile { private List networkInterfaceConfigurations; /** - * Get the networkInterfaceConfigurations value. + * Get the list of network configurations. * * @return the networkInterfaceConfigurations value */ @@ -31,7 +31,7 @@ public List networkInterfaceCo } /** - * Set the networkInterfaceConfigurations value. + * Set the list of network configurations. * * @param networkInterfaceConfigurations the networkInterfaceConfigurations value to set * @return the VirtualMachineScaleSetUpdateNetworkProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateOSDisk.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateOSDisk.java index bfb9fd3afdfe..7ac453037203 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateOSDisk.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateOSDisk.java @@ -44,7 +44,7 @@ public class VirtualMachineScaleSetUpdateOSDisk { private VirtualMachineScaleSetManagedDiskParameters managedDisk; /** - * Get the caching value. + * Get the caching type. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -53,7 +53,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set the caching type. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. @@ -64,7 +64,7 @@ public VirtualMachineScaleSetUpdateOSDisk withCaching(CachingTypes caching) { } /** - * Get the image value. + * Get the Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. * * @return the image value */ @@ -73,7 +73,7 @@ public VirtualHardDisk image() { } /** - * Set the image value. + * Set the Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. * * @param image the image value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. @@ -84,7 +84,7 @@ public VirtualMachineScaleSetUpdateOSDisk withImage(VirtualHardDisk image) { } /** - * Get the vhdContainers value. + * Get the list of virtual hard disk container uris. * * @return the vhdContainers value */ @@ -93,7 +93,7 @@ public List vhdContainers() { } /** - * Set the vhdContainers value. + * Set the list of virtual hard disk container uris. * * @param vhdContainers the vhdContainers value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. @@ -104,7 +104,7 @@ public VirtualMachineScaleSetUpdateOSDisk withVhdContainers(List vhdCont } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -113,7 +113,7 @@ public VirtualMachineScaleSetManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateOSProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateOSProfile.java index c428e5000181..a2e89dfb8a01 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateOSProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateOSProfile.java @@ -40,7 +40,7 @@ public class VirtualMachineScaleSetUpdateOSProfile { private List secrets; /** - * Get the customData value. + * Get a base-64 encoded string of custom data. * * @return the customData value */ @@ -49,7 +49,7 @@ public String customData() { } /** - * Set the customData value. + * Set a base-64 encoded string of custom data. * * @param customData the customData value to set * @return the VirtualMachineScaleSetUpdateOSProfile object itself. @@ -60,7 +60,7 @@ public VirtualMachineScaleSetUpdateOSProfile withCustomData(String customData) { } /** - * Get the windowsConfiguration value. + * Get the Windows Configuration of the OS profile. * * @return the windowsConfiguration value */ @@ -69,7 +69,7 @@ public WindowsConfiguration windowsConfiguration() { } /** - * Set the windowsConfiguration value. + * Set the Windows Configuration of the OS profile. * * @param windowsConfiguration the windowsConfiguration value to set * @return the VirtualMachineScaleSetUpdateOSProfile object itself. @@ -80,7 +80,7 @@ public VirtualMachineScaleSetUpdateOSProfile withWindowsConfiguration(WindowsCon } /** - * Get the linuxConfiguration value. + * Get the Linux Configuration of the OS profile. * * @return the linuxConfiguration value */ @@ -89,7 +89,7 @@ public LinuxConfiguration linuxConfiguration() { } /** - * Set the linuxConfiguration value. + * Set the Linux Configuration of the OS profile. * * @param linuxConfiguration the linuxConfiguration value to set * @return the VirtualMachineScaleSetUpdateOSProfile object itself. @@ -100,7 +100,7 @@ public VirtualMachineScaleSetUpdateOSProfile withLinuxConfiguration(LinuxConfigu } /** - * Get the secrets value. + * Get the List of certificates for addition to the VM. * * @return the secrets value */ @@ -109,7 +109,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set the List of certificates for addition to the VM. * * @param secrets the secrets value to set * @return the VirtualMachineScaleSetUpdateOSProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.java index c2fbac0f5972..48ef0b65a38a 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.java @@ -36,7 +36,7 @@ public class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration { private VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings; /** - * Get the name value. + * Get the publicIP address configuration name. * * @return the name value */ @@ -45,7 +45,7 @@ public String name() { } /** - * Set the name value. + * Set the publicIP address configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetUpdatePublicIPAddressConfiguration object itself. @@ -56,7 +56,7 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration withName(String } /** - * Get the idleTimeoutInMinutes value. + * Get the idle timeout of the public IP address. * * @return the idleTimeoutInMinutes value */ @@ -65,7 +65,7 @@ public Integer idleTimeoutInMinutes() { } /** - * Set the idleTimeoutInMinutes value. + * Set the idle timeout of the public IP address. * * @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set * @return the VirtualMachineScaleSetUpdatePublicIPAddressConfiguration object itself. @@ -76,7 +76,7 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration withIdleTimeoutI } /** - * Get the dnsSettings value. + * Get the dns settings to be applied on the publicIP addresses . * * @return the dnsSettings value */ @@ -85,7 +85,7 @@ public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings } /** - * Set the dnsSettings value. + * Set the dns settings to be applied on the publicIP addresses . * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetUpdatePublicIPAddressConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateStorageProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateStorageProfile.java index 2e5f7eb0758d..3c3dc45cd785 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateStorageProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateStorageProfile.java @@ -34,7 +34,7 @@ public class VirtualMachineScaleSetUpdateStorageProfile { private List dataDisks; /** - * Get the imageReference value. + * Get the image reference. * * @return the imageReference value */ @@ -43,7 +43,7 @@ public ImageReference imageReference() { } /** - * Set the imageReference value. + * Set the image reference. * * @param imageReference the imageReference value to set * @return the VirtualMachineScaleSetUpdateStorageProfile object itself. @@ -54,7 +54,7 @@ public VirtualMachineScaleSetUpdateStorageProfile withImageReference(ImageRefere } /** - * Get the osDisk value. + * Get the OS disk. * * @return the osDisk value */ @@ -63,7 +63,7 @@ public VirtualMachineScaleSetUpdateOSDisk osDisk() { } /** - * Set the osDisk value. + * Set the OS disk. * * @param osDisk the osDisk value to set * @return the VirtualMachineScaleSetUpdateStorageProfile object itself. @@ -74,7 +74,7 @@ public VirtualMachineScaleSetUpdateStorageProfile withOsDisk(VirtualMachineScale } /** - * Get the dataDisks value. + * Get the data disks. * * @return the dataDisks value */ @@ -83,7 +83,7 @@ public List dataDisks() { } /** - * Set the dataDisks value. + * Set the data disks. * * @param dataDisks the dataDisks value to set * @return the VirtualMachineScaleSetUpdateStorageProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateVMProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateVMProfile.java index bc9c120b8488..2d3c7b1f4683 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateVMProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetUpdateVMProfile.java @@ -51,7 +51,7 @@ public class VirtualMachineScaleSetUpdateVMProfile { private String licenseType; /** - * Get the osProfile value. + * Get the virtual machine scale set OS profile. * * @return the osProfile value */ @@ -60,7 +60,7 @@ public VirtualMachineScaleSetUpdateOSProfile osProfile() { } /** - * Set the osProfile value. + * Set the virtual machine scale set OS profile. * * @param osProfile the osProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -71,7 +71,7 @@ public VirtualMachineScaleSetUpdateVMProfile withOsProfile(VirtualMachineScaleSe } /** - * Get the storageProfile value. + * Get the virtual machine scale set storage profile. * * @return the storageProfile value */ @@ -80,7 +80,7 @@ public VirtualMachineScaleSetUpdateStorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set the virtual machine scale set storage profile. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -91,7 +91,7 @@ public VirtualMachineScaleSetUpdateVMProfile withStorageProfile(VirtualMachineSc } /** - * Get the networkProfile value. + * Get the virtual machine scale set network profile. * * @return the networkProfile value */ @@ -100,7 +100,7 @@ public VirtualMachineScaleSetUpdateNetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set the virtual machine scale set network profile. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -111,7 +111,7 @@ public VirtualMachineScaleSetUpdateVMProfile withNetworkProfile(VirtualMachineSc } /** - * Get the diagnosticsProfile value. + * Get the virtual machine scale set diagnostics profile. * * @return the diagnosticsProfile value */ @@ -120,7 +120,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set the virtual machine scale set diagnostics profile. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -131,7 +131,7 @@ public VirtualMachineScaleSetUpdateVMProfile withDiagnosticsProfile(DiagnosticsP } /** - * Get the extensionProfile value. + * Get the virtual machine scale set extension profile. * * @return the extensionProfile value */ @@ -140,7 +140,7 @@ public VirtualMachineScaleSetExtensionProfile extensionProfile() { } /** - * Set the extensionProfile value. + * Set the virtual machine scale set extension profile. * * @param extensionProfile the extensionProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -151,7 +151,7 @@ public VirtualMachineScaleSetUpdateVMProfile withExtensionProfile(VirtualMachine } /** - * Get the licenseType value. + * Get the license type, which is for bring your own license scenario. * * @return the licenseType value */ @@ -160,7 +160,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set the license type, which is for bring your own license scenario. * * @param licenseType the licenseType value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVM.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVM.java index b17368ac6c1a..30511a027f9e 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVM.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVM.java @@ -50,7 +50,7 @@ public interface VirtualMachineScaleSetVM extends HasInner statusesSummary; /** - * Get the name value. + * Get the extension name. * * @return the name value */ @@ -37,7 +37,7 @@ public String name() { } /** - * Get the statusesSummary value. + * Get the extensions information. * * @return the statusesSummary value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMInstanceIDs.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMInstanceIDs.java index 8104a7594841..eb9fa8f69ddf 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMInstanceIDs.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMInstanceIDs.java @@ -24,7 +24,7 @@ public class VirtualMachineScaleSetVMInstanceIDs { private List instanceIds; /** - * Get the instanceIds value. + * Get the virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. * * @return the instanceIds value */ @@ -33,7 +33,7 @@ public List instanceIds() { } /** - * Set the instanceIds value. + * Set the virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. * * @param instanceIds the instanceIds value to set * @return the VirtualMachineScaleSetVMInstanceIDs object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMInstanceRequiredIDs.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMInstanceRequiredIDs.java index 38b558d40fed..82bdb8ac26d9 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMInstanceRequiredIDs.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMInstanceRequiredIDs.java @@ -22,7 +22,7 @@ public class VirtualMachineScaleSetVMInstanceRequiredIDs { private List instanceIds; /** - * Get the instanceIds value. + * Get the virtual machine scale set instance ids. * * @return the instanceIds value */ @@ -31,7 +31,7 @@ public List instanceIds() { } /** - * Set the instanceIds value. + * Set the virtual machine scale set instance ids. * * @param instanceIds the instanceIds value to set * @return the VirtualMachineScaleSetVMInstanceRequiredIDs object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMProfile.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMProfile.java index eb48fe1b92b5..e4f0a0c7ccab 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMProfile.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineScaleSetVMProfile.java @@ -64,7 +64,7 @@ public class VirtualMachineScaleSetVMProfile { private String licenseType; /** - * Get the osProfile value. + * Get specifies the operating system settings for the virtual machines in the scale set. * * @return the osProfile value */ @@ -73,7 +73,7 @@ public VirtualMachineScaleSetOSProfile osProfile() { } /** - * Set the osProfile value. + * Set specifies the operating system settings for the virtual machines in the scale set. * * @param osProfile the osProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -84,7 +84,7 @@ public VirtualMachineScaleSetVMProfile withOsProfile(VirtualMachineScaleSetOSPro } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -93,7 +93,7 @@ public VirtualMachineScaleSetStorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -104,7 +104,7 @@ public VirtualMachineScaleSetVMProfile withStorageProfile(VirtualMachineScaleSet } /** - * Get the networkProfile value. + * Get specifies properties of the network interfaces of the virtual machines in the scale set. * * @return the networkProfile value */ @@ -113,7 +113,7 @@ public VirtualMachineScaleSetNetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set specifies properties of the network interfaces of the virtual machines in the scale set. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -124,7 +124,7 @@ public VirtualMachineScaleSetVMProfile withNetworkProfile(VirtualMachineScaleSet } /** - * Get the diagnosticsProfile value. + * Get specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @return the diagnosticsProfile value */ @@ -133,7 +133,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -144,7 +144,7 @@ public VirtualMachineScaleSetVMProfile withDiagnosticsProfile(DiagnosticsProfile } /** - * Get the extensionProfile value. + * Get specifies a collection of settings for extensions installed on virtual machines in the scale set. * * @return the extensionProfile value */ @@ -153,7 +153,7 @@ public VirtualMachineScaleSetExtensionProfile extensionProfile() { } /** - * Set the extensionProfile value. + * Set specifies a collection of settings for extensions installed on virtual machines in the scale set. * * @param extensionProfile the extensionProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -164,7 +164,7 @@ public VirtualMachineScaleSetVMProfile withExtensionProfile(VirtualMachineScaleS } /** - * Get the licenseType value. + * Get specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @return the licenseType value */ @@ -173,7 +173,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @param licenseType the licenseType value to set * @return the VirtualMachineScaleSetVMProfile object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineStatusCodeCount.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineStatusCodeCount.java index 63955c4f10b4..012c41b2c5b7 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineStatusCodeCount.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/VirtualMachineStatusCodeCount.java @@ -28,7 +28,7 @@ public class VirtualMachineStatusCodeCount { private Integer count; /** - * Get the code value. + * Get the instance view status code. * * @return the code value */ @@ -37,7 +37,7 @@ public String code() { } /** - * Get the count value. + * Get the number of instances having a particular status code. * * @return the count value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WinRMConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WinRMConfiguration.java index 3ee49dcbf1d3..bb850c4ad8f0 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WinRMConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WinRMConfiguration.java @@ -22,7 +22,7 @@ public class WinRMConfiguration { private List listeners; /** - * Get the listeners value. + * Get the list of Windows Remote Management listeners. * * @return the listeners value */ @@ -31,7 +31,7 @@ public List listeners() { } /** - * Set the listeners value. + * Set the list of Windows Remote Management listeners. * * @param listeners the listeners value to set * @return the WinRMConfiguration object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WinRMListener.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WinRMListener.java index ef2a3d728615..2642737cb664 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WinRMListener.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WinRMListener.java @@ -38,7 +38,7 @@ public class WinRMListener { private String certificateUrl; /** - * Get the protocol value. + * Get specifies the protocol of listener. <br><br> Possible values are: <br>**http** <br><br> **https**. Possible values include: 'Http', 'Https'. * * @return the protocol value */ @@ -47,7 +47,7 @@ public ProtocolTypes protocol() { } /** - * Set the protocol value. + * Set specifies the protocol of listener. <br><br> Possible values are: <br>**http** <br><br> **https**. Possible values include: 'Http', 'Https'. * * @param protocol the protocol value to set * @return the WinRMListener object itself. @@ -58,7 +58,7 @@ public WinRMListener withProtocol(ProtocolTypes protocol) { } /** - * Get the certificateUrl value. + * Get this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}. * * @return the certificateUrl value */ @@ -67,7 +67,7 @@ public String certificateUrl() { } /** - * Set the certificateUrl value. + * Set this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}. * * @param certificateUrl the certificateUrl value to set * @return the WinRMListener object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WindowsConfiguration.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WindowsConfiguration.java index 7964be2e792a..edcba7395dcf 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WindowsConfiguration.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/WindowsConfiguration.java @@ -53,7 +53,7 @@ public class WindowsConfiguration { private WinRMConfiguration winRM; /** - * Get the provisionVMAgent value. + * Get indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. * * @return the provisionVMAgent value */ @@ -62,7 +62,7 @@ public Boolean provisionVMAgent() { } /** - * Set the provisionVMAgent value. + * Set indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. * * @param provisionVMAgent the provisionVMAgent value to set * @return the WindowsConfiguration object itself. @@ -73,7 +73,7 @@ public WindowsConfiguration withProvisionVMAgent(Boolean provisionVMAgent) { } /** - * Get the enableAutomaticUpdates value. + * Get indicates whether virtual machine is enabled for automatic updates. * * @return the enableAutomaticUpdates value */ @@ -82,7 +82,7 @@ public Boolean enableAutomaticUpdates() { } /** - * Set the enableAutomaticUpdates value. + * Set indicates whether virtual machine is enabled for automatic updates. * * @param enableAutomaticUpdates the enableAutomaticUpdates value to set * @return the WindowsConfiguration object itself. @@ -93,7 +93,7 @@ public WindowsConfiguration withEnableAutomaticUpdates(Boolean enableAutomaticUp } /** - * Get the timeZone value. + * Get specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". * * @return the timeZone value */ @@ -102,7 +102,7 @@ public String timeZone() { } /** - * Set the timeZone value. + * Set specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". * * @param timeZone the timeZone value to set * @return the WindowsConfiguration object itself. @@ -113,7 +113,7 @@ public WindowsConfiguration withTimeZone(String timeZone) { } /** - * Get the additionalUnattendContent value. + * Get specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. * * @return the additionalUnattendContent value */ @@ -122,7 +122,7 @@ public List additionalUnattendContent() { } /** - * Set the additionalUnattendContent value. + * Set specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. * * @param additionalUnattendContent the additionalUnattendContent value to set * @return the WindowsConfiguration object itself. @@ -133,7 +133,7 @@ public WindowsConfiguration withAdditionalUnattendContent(List virtualMachines() { } /** - * Set the virtualMachines value. + * Set a list of references to all virtual machines in the availability set. * * @param virtualMachines the virtualMachines value to set * @return the AvailabilitySetInner object itself. @@ -121,7 +121,7 @@ public AvailabilitySetInner withVirtualMachines(List virtualMachine } /** - * Get the statuses value. + * Get the resource status information. * * @return the statuses value */ @@ -130,7 +130,7 @@ public List statuses() { } /** - * Get the sku value. + * Get sku of the availability set. * * @return the sku value */ @@ -139,7 +139,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set sku of the availability set. * * @param sku the sku value to set * @return the AvailabilitySetInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsImpl.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsImpl.java index 75a993a43456..159edc27cb9b 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsImpl.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsImpl.java @@ -84,10 +84,34 @@ public PagedList listByResourceGroup(String resourceGroupName) public Observable listByResourceGroupAsync(String resourceGroupName) { AvailabilitySetsInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>() { + .flatMapIterable(new Func1, Iterable>() { @Override - public Observable call(Page innerPage) { - return Observable.from(innerPage.items()); + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public AvailabilitySet call(AvailabilitySetInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + AvailabilitySetsInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + AvailabilitySetsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); } }) .map(new Func1() { diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java index ec2dcf15153d..4c45fc4cb0f7 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java @@ -10,9 +10,12 @@ import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -30,6 +33,7 @@ import retrofit2.http.Path; import retrofit2.http.PUT; import retrofit2.http.Query; +import retrofit2.http.Url; import retrofit2.Response; import rx.functions.Func1; import rx.Observable; @@ -38,7 +42,7 @@ * An instance of this class provides access to all the operations defined * in AvailabilitySets. */ -public class AvailabilitySetsInner implements InnerSupportsGet, InnerSupportsDelete { +public class AvailabilitySetsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { /** The Retrofit service to perform REST calls. */ private AvailabilitySetsService service; /** The service client containing this operation class. */ @@ -72,6 +76,10 @@ interface AvailabilitySetsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("availabilitySetName") String availabilitySetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.compute.v2017_03_30.AvailabilitySets list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.compute.v2017_03_30.AvailabilitySets listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -80,6 +88,14 @@ interface AvailabilitySetsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes") Observable> listAvailableSizes(@Path("resourceGroupName") String resourceGroupName, @Path("availabilitySetName") String availabilitySetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.compute.v2017_03_30.AvailabilitySets listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.compute.v2017_03_30.AvailabilitySets listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + } /** @@ -349,20 +365,128 @@ private ServiceResponse getByResourceGroupDelegate(Respons .build(response); } + /** + * Lists all availability sets in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AvailabilitySetInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all availability sets in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all availability sets in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all availability sets in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all availability sets in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AvailabilitySetInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Lists all availability sets in a resource group. * * @param resourceGroupName The name of the resource group. - * @return the PagedList object if successful. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AvailabilitySetInner> object if successful. */ - public PagedList listByResourceGroup(String resourceGroupName) { - PageImpl page = new PageImpl<>(); - page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body()); - page.setNextPageLink(null); - return new PagedList(page) { + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { - return null; + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } @@ -372,36 +496,67 @@ public Page nextPage(String nextPageLink) { * * @param resourceGroupName The name of the resource group. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(listByResourceGroupWithServiceResponseAsync(resourceGroupName), serviceCallback); + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** * Lists all availability sets in a resource group. * * @param resourceGroupName The name of the resource group. - * @return the observable to the List<AvailabilitySetInner> object + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object */ - public Observable> listByResourceGroupAsync(String resourceGroupName) { - return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - PageImpl page = new PageImpl<>(); - page.setItems(response.body()); - return page; - } - }); + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** * Lists all availability sets in a resource group. * * @param resourceGroupName The name of the resource group. - * @return the observable to the List<AvailabilitySetInner> object + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all availability sets in a resource group. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AvailabilitySetInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName) { + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -412,17 +567,12 @@ public Observable>> listByResourceGro throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { ServiceResponse> result = listByResourceGroupDelegate(response); - List items = null; - if (result.body() != null) { - items = result.body().items(); - } - ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); - return Observable.just(clientResponse); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -507,7 +657,7 @@ public Observable>> listAvailableS @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listAvailableSizesDelegate(response); + ServiceResponse> result = listAvailableSizesDelegate(response); List items = null; if (result.body() != null) { items = result.body().items(); @@ -521,9 +671,231 @@ public Observable>> call(Response< }); } - private ServiceResponse> listAvailableSizesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listAvailableSizesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all availability sets in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AvailabilitySetInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all availability sets in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all availability sets in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all availability sets in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all availability sets in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AvailabilitySetInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all availability sets in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AvailabilitySetInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all availability sets in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all availability sets in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all availability sets in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all availability sets in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AvailabilitySetInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/DiskInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/DiskInner.java index f53a7ed22ed8..22c14dada562 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/DiskInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/DiskInner.java @@ -83,7 +83,7 @@ public class DiskInner extends Resource { private String provisioningState; /** - * Get the managedBy value. + * Get a relative URI containing the ID of the VM that has the disk attached. * * @return the managedBy value */ @@ -112,7 +112,7 @@ public DiskInner withSku(DiskSku sku) { } /** - * Get the zones value. + * Get the Logical zone list for Disk. * * @return the zones value */ @@ -121,7 +121,7 @@ public List zones() { } /** - * Set the zones value. + * Set the Logical zone list for Disk. * * @param zones the zones value to set * @return the DiskInner object itself. @@ -132,7 +132,7 @@ public DiskInner withZones(List zones) { } /** - * Get the timeCreated value. + * Get the time when the disk was created. * * @return the timeCreated value */ @@ -141,7 +141,7 @@ public DateTime timeCreated() { } /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -150,7 +150,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the DiskInner object itself. @@ -161,7 +161,7 @@ public DiskInner withOsType(OperatingSystemTypes osType) { } /** - * Get the creationData value. + * Get disk source information. CreationData information cannot be changed after the disk has been created. * * @return the creationData value */ @@ -170,7 +170,7 @@ public CreationData creationData() { } /** - * Set the creationData value. + * Set disk source information. CreationData information cannot be changed after the disk has been created. * * @param creationData the creationData value to set * @return the DiskInner object itself. @@ -181,7 +181,7 @@ public DiskInner withCreationData(CreationData creationData) { } /** - * Get the diskSizeGB value. + * Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @return the diskSizeGB value */ @@ -190,7 +190,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @param diskSizeGB the diskSizeGB value to set * @return the DiskInner object itself. @@ -201,7 +201,7 @@ public DiskInner withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the encryptionSettings value. + * Get encryption settings for disk or snapshot. * * @return the encryptionSettings value */ @@ -210,7 +210,7 @@ public EncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set encryption settings for disk or snapshot. * * @param encryptionSettings the encryptionSettings value to set * @return the DiskInner object itself. @@ -221,7 +221,7 @@ public DiskInner withEncryptionSettings(EncryptionSettings encryptionSettings) { } /** - * Get the provisioningState value. + * Get the disk provisioning state. * * @return the provisioningState value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/DisksInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/DisksInner.java index 8ae8cf5e94f5..8a1a1585d79a 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/DisksInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/DisksInner.java @@ -797,7 +797,7 @@ public Observable>> call(ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<DiskInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -816,7 +816,7 @@ public Observable>> listByResourceGroupSinglePag @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -825,9 +825,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -923,7 +923,7 @@ public Observable>> listSinglePageAsync() { @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -932,9 +932,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1348,7 +1348,7 @@ public Observable>> call(ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<DiskInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1362,7 +1362,7 @@ public Observable>> listByResourceGroupNextSingl @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); + ServiceResponse> result = listByResourceGroupNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1371,9 +1371,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1459,7 +1459,7 @@ public Observable>> call(ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<DiskInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1473,7 +1473,7 @@ public Observable>> listNextSinglePageAsync(fina @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1482,9 +1482,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImageInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImageInner.java index e82f8ed333db..7103d2cab8fb 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImageInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImageInner.java @@ -40,7 +40,7 @@ public class ImageInner extends Resource { private String provisioningState; /** - * Get the sourceVirtualMachine value. + * Get the source virtual machine from which Image is created. * * @return the sourceVirtualMachine value */ @@ -49,7 +49,7 @@ public SubResource sourceVirtualMachine() { } /** - * Set the sourceVirtualMachine value. + * Set the source virtual machine from which Image is created. * * @param sourceVirtualMachine the sourceVirtualMachine value to set * @return the ImageInner object itself. @@ -60,7 +60,7 @@ public ImageInner withSourceVirtualMachine(SubResource sourceVirtualMachine) { } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -69,7 +69,7 @@ public ImageStorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the ImageInner object itself. @@ -80,7 +80,7 @@ public ImageInner withStorageProfile(ImageStorageProfile storageProfile) { } /** - * Get the provisioningState value. + * Get the provisioning state. * * @return the provisioningState value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImagesInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImagesInner.java index cc464508cfe6..582544f89481 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImagesInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImagesInner.java @@ -681,7 +681,7 @@ public Observable>> call(ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ImageInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -700,7 +700,7 @@ public Observable>> listByResourceGroupSinglePa @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -709,9 +709,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -807,7 +807,7 @@ public Observable>> listSinglePageAsync() { @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -816,9 +816,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -904,7 +904,7 @@ public Observable>> call(ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ImageInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -918,7 +918,7 @@ public Observable>> listByResourceGroupNextSing @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); + ServiceResponse> result = listByResourceGroupNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -927,9 +927,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1015,7 +1015,7 @@ public Observable>> call(ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ImageInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1029,7 +1029,7 @@ public Observable>> listNextSinglePageAsync(fin @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1038,9 +1038,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/OperationStatusResponseInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/OperationStatusResponseInner.java index b374aed6cc24..aee52bdc0eac 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/OperationStatusResponseInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/OperationStatusResponseInner.java @@ -47,7 +47,7 @@ public class OperationStatusResponseInner { private ApiError error; /** - * Get the name value. + * Get operation ID. * * @return the name value */ @@ -56,7 +56,7 @@ public String name() { } /** - * Get the status value. + * Get operation status. * * @return the status value */ @@ -65,7 +65,7 @@ public String status() { } /** - * Get the startTime value. + * Get start time of the operation. * * @return the startTime value */ @@ -74,7 +74,7 @@ public DateTime startTime() { } /** - * Get the endTime value. + * Get end time of the operation. * * @return the endTime value */ @@ -83,7 +83,7 @@ public DateTime endTime() { } /** - * Get the error value. + * Get api error. * * @return the error value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/PageImpl.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/PageImpl.java index d45204eb0680..e8bac3d82366 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/PageImpl.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/PageImpl.java @@ -22,7 +22,7 @@ public class PageImpl implements Page { /** * The link to the next page. */ - @JsonProperty("") + @JsonProperty("nextLink") private String nextPageLink; /** diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/PageImpl1.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/PageImpl1.java index dea4da1fef03..04155bfc51ef 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/PageImpl1.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/PageImpl1.java @@ -22,7 +22,7 @@ public class PageImpl1 implements Page { /** * The link to the next page. */ - @JsonProperty("nextLink") + @JsonProperty("") private String nextPageLink; /** diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkuInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkuInner.java index ca1f725bd3c3..bc3cf04734c4 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkuInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkuInner.java @@ -95,7 +95,7 @@ public class ResourceSkuInner { private List restrictions; /** - * Get the resourceType value. + * Get the type of resource the SKU applies to. * * @return the resourceType value */ @@ -104,7 +104,7 @@ public String resourceType() { } /** - * Get the name value. + * Get the name of SKU. * * @return the name value */ @@ -113,7 +113,7 @@ public String name() { } /** - * Get the tier value. + * Get specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**. * * @return the tier value */ @@ -122,7 +122,7 @@ public String tier() { } /** - * Get the size value. + * Get the Size of the SKU. * * @return the size value */ @@ -131,7 +131,7 @@ public String size() { } /** - * Get the family value. + * Get the Family of this particular SKU. * * @return the family value */ @@ -140,7 +140,7 @@ public String family() { } /** - * Get the kind value. + * Get the Kind of resources that are supported in this SKU. * * @return the kind value */ @@ -149,7 +149,7 @@ public String kind() { } /** - * Get the capacity value. + * Get specifies the number of virtual machines in the scale set. * * @return the capacity value */ @@ -158,7 +158,7 @@ public ResourceSkuCapacity capacity() { } /** - * Get the locations value. + * Get the set of locations that the SKU is available. * * @return the locations value */ @@ -167,7 +167,7 @@ public List locations() { } /** - * Get the apiVersions value. + * Get the api versions that support this SKU. * * @return the apiVersions value */ @@ -176,7 +176,7 @@ public List apiVersions() { } /** - * Get the costs value. + * Get metadata for retrieving price info. * * @return the costs value */ @@ -185,7 +185,7 @@ public List costs() { } /** - * Get the capabilities value. + * Get a name value pair to describe the capability. * * @return the capabilities value */ @@ -194,7 +194,7 @@ public List capabilities() { } /** - * Get the restrictions value. + * Get the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. * * @return the restrictions value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkusImpl.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkusImpl.java index 6ee776e9f26d..c46f3f4ced40 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkusImpl.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkusImpl.java @@ -37,7 +37,8 @@ public Observable listAsync() { public Iterable call(Page page) { return page.items(); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public ResourceSku call(ResourceSkuInner inner) { return new ResourceSkuImpl(inner, manager()); diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkusInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkusInner.java index 15f97bba754c..3e27cc8badab 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkusInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ResourceSkusInner.java @@ -157,7 +157,7 @@ public Observable>> listSinglePageAsync() @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -166,9 +166,9 @@ public Observable>> call(Response> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -254,7 +254,7 @@ public Observable>> call(ServiceResponse< /** * Gets the list of Microsoft.Compute SKUs available for your Subscription. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ResourceSkuInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -268,7 +268,7 @@ public Observable>> listNextSinglePageAsy @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -277,9 +277,9 @@ public Observable>> call(Response> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RollingUpgradeStatusInfoInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RollingUpgradeStatusInfoInner.java index f2ce3e57997d..12ad14318a51 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RollingUpgradeStatusInfoInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RollingUpgradeStatusInfoInner.java @@ -47,7 +47,7 @@ public class RollingUpgradeStatusInfoInner extends Resource { private ApiError error; /** - * Get the policy value. + * Get the rolling upgrade policies applied for this upgrade. * * @return the policy value */ @@ -56,7 +56,7 @@ public RollingUpgradePolicy policy() { } /** - * Get the runningStatus value. + * Get information about the current running state of the overall upgrade. * * @return the runningStatus value */ @@ -65,7 +65,7 @@ public RollingUpgradeRunningStatus runningStatus() { } /** - * Get the progress value. + * Get information about the number of virtual machine instances in each upgrade state. * * @return the progress value */ @@ -74,7 +74,7 @@ public RollingUpgradeProgressInfo progress() { } /** - * Get the error value. + * Get error details for this upgrade, if there are any. * * @return the error value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandDocumentBaseInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandDocumentBaseInner.java index fe4696407011..103e58d34d91 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandDocumentBaseInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandDocumentBaseInner.java @@ -46,7 +46,7 @@ public class RunCommandDocumentBaseInner { private String description; /** - * Get the schema value. + * Get the VM run command schema. * * @return the schema value */ @@ -55,7 +55,7 @@ public String schema() { } /** - * Set the schema value. + * Set the VM run command schema. * * @param schema the schema value to set * @return the RunCommandDocumentBaseInner object itself. @@ -66,7 +66,7 @@ public RunCommandDocumentBaseInner withSchema(String schema) { } /** - * Get the id value. + * Get the VM run command id. * * @return the id value */ @@ -75,7 +75,7 @@ public String id() { } /** - * Set the id value. + * Set the VM run command id. * * @param id the id value to set * @return the RunCommandDocumentBaseInner object itself. @@ -86,7 +86,7 @@ public RunCommandDocumentBaseInner withId(String id) { } /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -95,7 +95,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the RunCommandDocumentBaseInner object itself. @@ -106,7 +106,7 @@ public RunCommandDocumentBaseInner withOsType(OperatingSystemTypes osType) { } /** - * Get the label value. + * Get the VM run command label. * * @return the label value */ @@ -115,7 +115,7 @@ public String label() { } /** - * Set the label value. + * Set the VM run command label. * * @param label the label value to set * @return the RunCommandDocumentBaseInner object itself. @@ -126,7 +126,7 @@ public RunCommandDocumentBaseInner withLabel(String label) { } /** - * Get the description value. + * Get the VM run command description. * * @return the description value */ @@ -135,7 +135,7 @@ public String description() { } /** - * Set the description value. + * Set the VM run command description. * * @param description the description value to set * @return the RunCommandDocumentBaseInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandDocumentInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandDocumentInner.java index 26c9b200d2f0..100d65bb7a6f 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandDocumentInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandDocumentInner.java @@ -29,7 +29,7 @@ public class RunCommandDocumentInner extends RunCommandDocumentBaseInner { private List parameters; /** - * Get the script value. + * Get the script to be executed. * * @return the script value */ @@ -38,7 +38,7 @@ public List script() { } /** - * Set the script value. + * Set the script to be executed. * * @param script the script value to set * @return the RunCommandDocumentInner object itself. @@ -49,7 +49,7 @@ public RunCommandDocumentInner withScript(List script) { } /** - * Get the parameters value. + * Get the parameters used by the script. * * @return the parameters value */ @@ -58,7 +58,7 @@ public List parameters() { } /** - * Set the parameters value. + * Set the parameters used by the script. * * @param parameters the parameters value to set * @return the RunCommandDocumentInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandResultInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandResultInner.java index 41fc0773f32c..d206abb6d592 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandResultInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/RunCommandResultInner.java @@ -23,7 +23,7 @@ public class RunCommandResultInner extends OperationStatusResponseInner { private Object output; /** - * Get the output value. + * Get operation output data (raw JSON). * * @return the output value */ @@ -32,7 +32,7 @@ public Object output() { } /** - * Set the output value. + * Set operation output data (raw JSON). * * @param output the output value to set * @return the RunCommandResultInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/SnapshotInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/SnapshotInner.java index c41802fa8d11..c6157eead297 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/SnapshotInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/SnapshotInner.java @@ -76,7 +76,7 @@ public class SnapshotInner extends Resource { private String provisioningState; /** - * Get the managedBy value. + * Get unused. Always Null. * * @return the managedBy value */ @@ -105,7 +105,7 @@ public SnapshotInner withSku(DiskSku sku) { } /** - * Get the timeCreated value. + * Get the time when the disk was created. * * @return the timeCreated value */ @@ -114,7 +114,7 @@ public DateTime timeCreated() { } /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -123,7 +123,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the SnapshotInner object itself. @@ -134,7 +134,7 @@ public SnapshotInner withOsType(OperatingSystemTypes osType) { } /** - * Get the creationData value. + * Get disk source information. CreationData information cannot be changed after the disk has been created. * * @return the creationData value */ @@ -143,7 +143,7 @@ public CreationData creationData() { } /** - * Set the creationData value. + * Set disk source information. CreationData information cannot be changed after the disk has been created. * * @param creationData the creationData value to set * @return the SnapshotInner object itself. @@ -154,7 +154,7 @@ public SnapshotInner withCreationData(CreationData creationData) { } /** - * Get the diskSizeGB value. + * Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @return the diskSizeGB value */ @@ -163,7 +163,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @param diskSizeGB the diskSizeGB value to set * @return the SnapshotInner object itself. @@ -174,7 +174,7 @@ public SnapshotInner withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the encryptionSettings value. + * Get encryption settings for disk or snapshot. * * @return the encryptionSettings value */ @@ -183,7 +183,7 @@ public EncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set encryption settings for disk or snapshot. * * @param encryptionSettings the encryptionSettings value to set * @return the SnapshotInner object itself. @@ -194,7 +194,7 @@ public SnapshotInner withEncryptionSettings(EncryptionSettings encryptionSetting } /** - * Get the provisioningState value. + * Get the disk provisioning state. * * @return the provisioningState value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/SnapshotsInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/SnapshotsInner.java index c49248196a2b..979bbeb8d33d 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/SnapshotsInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/SnapshotsInner.java @@ -797,7 +797,7 @@ public Observable>> call(ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -816,7 +816,7 @@ public Observable>> listByResourceGroupSingl @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -825,9 +825,9 @@ public Observable>> call(Response> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -923,7 +923,7 @@ public Observable>> listSinglePageAsync() { @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -932,9 +932,9 @@ public Observable>> call(Response> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1348,7 +1348,7 @@ public Observable>> call(ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1362,7 +1362,7 @@ public Observable>> listByResourceGroupNextS @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); + ServiceResponse> result = listByResourceGroupNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1371,9 +1371,9 @@ public Observable>> call(Response> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1459,7 +1459,7 @@ public Observable>> call(ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1473,7 +1473,7 @@ public Observable>> listNextSinglePageAsync( @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1482,9 +1482,9 @@ public Observable>> call(Response> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/UsageInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/UsageInner.java index 49f7d996cabd..753222a9ad18 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/UsageInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/UsageInner.java @@ -41,13 +41,16 @@ public class UsageInner { /** * Creates an instance of UsageInner class. + * @param currentValue the current usage of the resource. + * @param limit the maximum permitted usage of the resource. + * @param name the name of the type of usage. */ public UsageInner() { unit = "Count"; } /** - * Get the unit value. + * Get an enum describing the unit of usage measurement. * * @return the unit value */ @@ -56,7 +59,7 @@ public String unit() { } /** - * Set the unit value. + * Set an enum describing the unit of usage measurement. * * @param unit the unit value to set * @return the UsageInner object itself. @@ -67,7 +70,7 @@ public UsageInner withUnit(String unit) { } /** - * Get the currentValue value. + * Get the current usage of the resource. * * @return the currentValue value */ @@ -76,7 +79,7 @@ public int currentValue() { } /** - * Set the currentValue value. + * Set the current usage of the resource. * * @param currentValue the currentValue value to set * @return the UsageInner object itself. @@ -87,7 +90,7 @@ public UsageInner withCurrentValue(int currentValue) { } /** - * Get the limit value. + * Get the maximum permitted usage of the resource. * * @return the limit value */ @@ -96,7 +99,7 @@ public long limit() { } /** - * Set the limit value. + * Set the maximum permitted usage of the resource. * * @param limit the limit value to set * @return the UsageInner object itself. @@ -107,7 +110,7 @@ public UsageInner withLimit(long limit) { } /** - * Get the name value. + * Get the name of the type of usage. * * @return the name value */ @@ -116,7 +119,7 @@ public UsageName name() { } /** - * Set the name value. + * Set the name of the type of usage. * * @param name the name value to set * @return the UsageInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/UsagesInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/UsagesInner.java index 6f2a1857ee95..83134f5d6c3f 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/UsagesInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/UsagesInner.java @@ -146,7 +146,7 @@ public Observable>> call(ServiceResponse> * @param location The location for which resource usage is queried. + ServiceResponse> * @param location The location for which resource usage is queried. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<UsageInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -165,7 +165,7 @@ public Observable>> listSinglePageAsync(final S @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -174,9 +174,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -262,7 +262,7 @@ public Observable>> call(ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<UsageInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -276,7 +276,7 @@ public Observable>> listNextSinglePageAsync(fin @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -285,9 +285,9 @@ public Observable>> call(Response }); } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineCaptureResultInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineCaptureResultInner.java index f9d1e66d87de..1ed5d0a3355a 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineCaptureResultInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineCaptureResultInner.java @@ -24,7 +24,7 @@ public class VirtualMachineCaptureResultInner extends SubResource { private Object output; /** - * Get the output value. + * Get operation output data (raw JSON). * * @return the output value */ @@ -33,7 +33,7 @@ public Object output() { } /** - * Set the output value. + * Set operation output data (raw JSON). * * @param output the output value to set * @return the VirtualMachineCaptureResultInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionImageInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionImageInner.java index 9a312dfa56f1..c31485ea1311 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionImageInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionImageInner.java @@ -52,7 +52,7 @@ public class VirtualMachineExtensionImageInner extends Resource { private Boolean supportsMultipleExtensions; /** - * Get the operatingSystem value. + * Get the operating system this extension supports. * * @return the operatingSystem value */ @@ -61,7 +61,7 @@ public String operatingSystem() { } /** - * Set the operatingSystem value. + * Set the operating system this extension supports. * * @param operatingSystem the operatingSystem value to set * @return the VirtualMachineExtensionImageInner object itself. @@ -72,7 +72,7 @@ public VirtualMachineExtensionImageInner withOperatingSystem(String operatingSys } /** - * Get the computeRole value. + * Get the type of role (IaaS or PaaS) this extension supports. * * @return the computeRole value */ @@ -81,7 +81,7 @@ public String computeRole() { } /** - * Set the computeRole value. + * Set the type of role (IaaS or PaaS) this extension supports. * * @param computeRole the computeRole value to set * @return the VirtualMachineExtensionImageInner object itself. @@ -92,7 +92,7 @@ public VirtualMachineExtensionImageInner withComputeRole(String computeRole) { } /** - * Get the handlerSchema value. + * Get the schema defined by publisher, where extension consumers should provide settings in a matching schema. * * @return the handlerSchema value */ @@ -101,7 +101,7 @@ public String handlerSchema() { } /** - * Set the handlerSchema value. + * Set the schema defined by publisher, where extension consumers should provide settings in a matching schema. * * @param handlerSchema the handlerSchema value to set * @return the VirtualMachineExtensionImageInner object itself. @@ -112,7 +112,7 @@ public VirtualMachineExtensionImageInner withHandlerSchema(String handlerSchema) } /** - * Get the vmScaleSetEnabled value. + * Get whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. * * @return the vmScaleSetEnabled value */ @@ -121,7 +121,7 @@ public Boolean vmScaleSetEnabled() { } /** - * Set the vmScaleSetEnabled value. + * Set whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. * * @param vmScaleSetEnabled the vmScaleSetEnabled value to set * @return the VirtualMachineExtensionImageInner object itself. @@ -132,7 +132,7 @@ public VirtualMachineExtensionImageInner withVmScaleSetEnabled(Boolean vmScaleSe } /** - * Get the supportsMultipleExtensions value. + * Get whether the handler can support multiple extensions. * * @return the supportsMultipleExtensions value */ @@ -141,7 +141,7 @@ public Boolean supportsMultipleExtensions() { } /** - * Set the supportsMultipleExtensions value. + * Set whether the handler can support multiple extensions. * * @param supportsMultipleExtensions the supportsMultipleExtensions value to set * @return the VirtualMachineExtensionImageInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionImagesImpl.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionImagesImpl.java index 497393e10526..6626aa8bf4d4 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionImagesImpl.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionImagesImpl.java @@ -80,7 +80,8 @@ public Observable listTypesAsync(String location, public Observable call(List innerList) { return Observable.from(innerList); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public VirtualMachineExtensionImage call(VirtualMachineExtensionImageInner inner) { return new VirtualMachineExtensionImageImpl(inner, manager()); diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionInner.java index 9b58ca810675..fc543c3ba5fb 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionInner.java @@ -79,7 +79,7 @@ public class VirtualMachineExtensionInner extends Resource { private VirtualMachineExtensionInstanceView instanceView; /** - * Get the forceUpdateTag value. + * Get how the extension handler should be forced to update even if the extension configuration has not changed. * * @return the forceUpdateTag value */ @@ -88,7 +88,7 @@ public String forceUpdateTag() { } /** - * Set the forceUpdateTag value. + * Set how the extension handler should be forced to update even if the extension configuration has not changed. * * @param forceUpdateTag the forceUpdateTag value to set * @return the VirtualMachineExtensionInner object itself. @@ -99,7 +99,7 @@ public VirtualMachineExtensionInner withForceUpdateTag(String forceUpdateTag) { } /** - * Get the publisher value. + * Get the name of the extension handler publisher. * * @return the publisher value */ @@ -108,7 +108,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the name of the extension handler publisher. * * @param publisher the publisher value to set * @return the VirtualMachineExtensionInner object itself. @@ -119,7 +119,7 @@ public VirtualMachineExtensionInner withPublisher(String publisher) { } /** - * Get the virtualMachineExtensionType value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the virtualMachineExtensionType value */ @@ -128,7 +128,7 @@ public String virtualMachineExtensionType() { } /** - * Set the virtualMachineExtensionType value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param virtualMachineExtensionType the virtualMachineExtensionType value to set * @return the VirtualMachineExtensionInner object itself. @@ -139,7 +139,7 @@ public VirtualMachineExtensionInner withVirtualMachineExtensionType(String virtu } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -148,7 +148,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionInner object itself. @@ -159,7 +159,7 @@ public VirtualMachineExtensionInner withTypeHandlerVersion(String typeHandlerVer } /** - * Get the autoUpgradeMinorVersion value. + * Get indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @return the autoUpgradeMinorVersion value */ @@ -168,7 +168,7 @@ public Boolean autoUpgradeMinorVersion() { } /** - * Set the autoUpgradeMinorVersion value. + * Set indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set * @return the VirtualMachineExtensionInner object itself. @@ -179,7 +179,7 @@ public VirtualMachineExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgr } /** - * Get the settings value. + * Get json formatted public settings for the extension. * * @return the settings value */ @@ -188,7 +188,7 @@ public Object settings() { } /** - * Set the settings value. + * Set json formatted public settings for the extension. * * @param settings the settings value to set * @return the VirtualMachineExtensionInner object itself. @@ -199,7 +199,7 @@ public VirtualMachineExtensionInner withSettings(Object settings) { } /** - * Get the protectedSettings value. + * Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @return the protectedSettings value */ @@ -208,7 +208,7 @@ public Object protectedSettings() { } /** - * Set the protectedSettings value. + * Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @param protectedSettings the protectedSettings value to set * @return the VirtualMachineExtensionInner object itself. @@ -219,7 +219,7 @@ public VirtualMachineExtensionInner withProtectedSettings(Object protectedSettin } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -228,7 +228,7 @@ public String provisioningState() { } /** - * Get the instanceView value. + * Get the virtual machine extension instance view. * * @return the instanceView value */ @@ -237,7 +237,7 @@ public VirtualMachineExtensionInstanceView instanceView() { } /** - * Set the instanceView value. + * Set the virtual machine extension instance view. * * @param instanceView the instanceView value to set * @return the VirtualMachineExtensionInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionsListResultInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionsListResultInner.java index 5601df2cc533..ffc8e4af0ecc 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionsListResultInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineExtensionsListResultInner.java @@ -22,7 +22,7 @@ public class VirtualMachineExtensionsListResultInner { private List value; /** - * Get the value value. + * Get the list of extensions. * * @return the value value */ @@ -31,7 +31,7 @@ public List value() { } /** - * Set the value value. + * Set the list of extensions. * * @param value the value value to set * @return the VirtualMachineExtensionsListResultInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineImageResourceInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineImageResourceInner.java index ec2ed25f8b7f..5c9b1603258c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineImageResourceInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineImageResourceInner.java @@ -37,7 +37,7 @@ public class VirtualMachineImageResourceInner extends SubResource { private Map tags; /** - * Get the name value. + * Get the name of the resource. * * @return the name value */ @@ -46,7 +46,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource. * * @param name the name value to set * @return the VirtualMachineImageResourceInner object itself. @@ -57,7 +57,7 @@ public VirtualMachineImageResourceInner withName(String name) { } /** - * Get the location value. + * Get the supported Azure location of the resource. * * @return the location value */ @@ -66,7 +66,7 @@ public String location() { } /** - * Set the location value. + * Set the supported Azure location of the resource. * * @param location the location value to set * @return the VirtualMachineImageResourceInner object itself. @@ -77,7 +77,7 @@ public VirtualMachineImageResourceInner withLocation(String location) { } /** - * Get the tags value. + * Get specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). * * @return the tags value */ @@ -86,7 +86,7 @@ public Map tags() { } /** - * Set the tags value. + * Set specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). * * @param tags the tags value to set * @return the VirtualMachineImageResourceInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineImagesImpl.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineImagesImpl.java index eebc0349bb41..43ca651069dd 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineImagesImpl.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineImagesImpl.java @@ -110,7 +110,8 @@ public Observable listOffersAsync(String location, public Observable call(List innerList) { return Observable.from(innerList); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public VirtualMachineImageResource call(VirtualMachineImageResourceInner inner) { return new VirtualMachineImageResourceImpl(inner, manager()); diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineInner.java index 9bd54cbe4913..0676d90a9a67 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineInner.java @@ -140,7 +140,7 @@ public class VirtualMachineInner extends Resource { private List zones; /** - * Get the plan value. + * Get specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @return the plan value */ @@ -149,7 +149,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @param plan the plan value to set * @return the VirtualMachineInner object itself. @@ -160,7 +160,7 @@ public VirtualMachineInner withPlan(Plan plan) { } /** - * Get the hardwareProfile value. + * Get specifies the hardware settings for the virtual machine. * * @return the hardwareProfile value */ @@ -169,7 +169,7 @@ public HardwareProfile hardwareProfile() { } /** - * Set the hardwareProfile value. + * Set specifies the hardware settings for the virtual machine. * * @param hardwareProfile the hardwareProfile value to set * @return the VirtualMachineInner object itself. @@ -180,7 +180,7 @@ public VirtualMachineInner withHardwareProfile(HardwareProfile hardwareProfile) } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -189,7 +189,7 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineInner object itself. @@ -200,7 +200,7 @@ public VirtualMachineInner withStorageProfile(StorageProfile storageProfile) { } /** - * Get the osProfile value. + * Get specifies the operating system settings for the virtual machine. * * @return the osProfile value */ @@ -209,7 +209,7 @@ public OSProfile osProfile() { } /** - * Set the osProfile value. + * Set specifies the operating system settings for the virtual machine. * * @param osProfile the osProfile value to set * @return the VirtualMachineInner object itself. @@ -220,7 +220,7 @@ public VirtualMachineInner withOsProfile(OSProfile osProfile) { } /** - * Get the networkProfile value. + * Get specifies the network interfaces of the virtual machine. * * @return the networkProfile value */ @@ -229,7 +229,7 @@ public NetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set specifies the network interfaces of the virtual machine. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineInner object itself. @@ -240,7 +240,7 @@ public VirtualMachineInner withNetworkProfile(NetworkProfile networkProfile) { } /** - * Get the diagnosticsProfile value. + * Get specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @return the diagnosticsProfile value */ @@ -249,7 +249,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineInner object itself. @@ -260,7 +260,7 @@ public VirtualMachineInner withDiagnosticsProfile(DiagnosticsProfile diagnostics } /** - * Get the availabilitySet value. + * Get specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @return the availabilitySet value */ @@ -269,7 +269,7 @@ public SubResource availabilitySet() { } /** - * Set the availabilitySet value. + * Set specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @param availabilitySet the availabilitySet value to set * @return the VirtualMachineInner object itself. @@ -280,7 +280,7 @@ public VirtualMachineInner withAvailabilitySet(SubResource availabilitySet) { } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -289,7 +289,7 @@ public String provisioningState() { } /** - * Get the instanceView value. + * Get the virtual machine instance view. * * @return the instanceView value */ @@ -298,7 +298,7 @@ public VirtualMachineInstanceViewInner instanceView() { } /** - * Get the licenseType value. + * Get specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @return the licenseType value */ @@ -307,7 +307,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @param licenseType the licenseType value to set * @return the VirtualMachineInner object itself. @@ -318,7 +318,7 @@ public VirtualMachineInner withLicenseType(String licenseType) { } /** - * Get the vmId value. + * Get specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. * * @return the vmId value */ @@ -327,7 +327,7 @@ public String vmId() { } /** - * Get the resources value. + * Get the virtual machine child extension resources. * * @return the resources value */ @@ -336,7 +336,7 @@ public List resources() { } /** - * Get the identity value. + * Get the identity of the virtual machine, if configured. * * @return the identity value */ @@ -345,7 +345,7 @@ public VirtualMachineIdentity identity() { } /** - * Set the identity value. + * Set the identity of the virtual machine, if configured. * * @param identity the identity value to set * @return the VirtualMachineInner object itself. @@ -356,7 +356,7 @@ public VirtualMachineInner withIdentity(VirtualMachineIdentity identity) { } /** - * Get the zones value. + * Get the virtual machine zones. * * @return the zones value */ @@ -365,7 +365,7 @@ public List zones() { } /** - * Set the zones value. + * Set the virtual machine zones. * * @param zones the zones value to set * @return the VirtualMachineInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineInstanceViewInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineInstanceViewInner.java index 0aa073bb21df..711214be6202 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineInstanceViewInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineInstanceViewInner.java @@ -81,7 +81,7 @@ public class VirtualMachineInstanceViewInner { private List statuses; /** - * Get the platformUpdateDomain value. + * Get specifies the update domain of the virtual machine. * * @return the platformUpdateDomain value */ @@ -90,7 +90,7 @@ public Integer platformUpdateDomain() { } /** - * Set the platformUpdateDomain value. + * Set specifies the update domain of the virtual machine. * * @param platformUpdateDomain the platformUpdateDomain value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -101,7 +101,7 @@ public VirtualMachineInstanceViewInner withPlatformUpdateDomain(Integer platform } /** - * Get the platformFaultDomain value. + * Get specifies the fault domain of the virtual machine. * * @return the platformFaultDomain value */ @@ -110,7 +110,7 @@ public Integer platformFaultDomain() { } /** - * Set the platformFaultDomain value. + * Set specifies the fault domain of the virtual machine. * * @param platformFaultDomain the platformFaultDomain value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -121,7 +121,7 @@ public VirtualMachineInstanceViewInner withPlatformFaultDomain(Integer platformF } /** - * Get the rdpThumbPrint value. + * Get the Remote desktop certificate thumbprint. * * @return the rdpThumbPrint value */ @@ -130,7 +130,7 @@ public String rdpThumbPrint() { } /** - * Set the rdpThumbPrint value. + * Set the Remote desktop certificate thumbprint. * * @param rdpThumbPrint the rdpThumbPrint value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -141,7 +141,7 @@ public VirtualMachineInstanceViewInner withRdpThumbPrint(String rdpThumbPrint) { } /** - * Get the vmAgent value. + * Get the VM Agent running on the virtual machine. * * @return the vmAgent value */ @@ -150,7 +150,7 @@ public VirtualMachineAgentInstanceView vmAgent() { } /** - * Set the vmAgent value. + * Set the VM Agent running on the virtual machine. * * @param vmAgent the vmAgent value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -161,7 +161,7 @@ public VirtualMachineInstanceViewInner withVmAgent(VirtualMachineAgentInstanceVi } /** - * Get the maintenanceRedeployStatus value. + * Get the Maintenance Operation status on the virtual machine. * * @return the maintenanceRedeployStatus value */ @@ -170,7 +170,7 @@ public MaintenanceRedeployStatus maintenanceRedeployStatus() { } /** - * Set the maintenanceRedeployStatus value. + * Set the Maintenance Operation status on the virtual machine. * * @param maintenanceRedeployStatus the maintenanceRedeployStatus value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -181,7 +181,7 @@ public VirtualMachineInstanceViewInner withMaintenanceRedeployStatus(Maintenance } /** - * Get the disks value. + * Get the virtual machine disk information. * * @return the disks value */ @@ -190,7 +190,7 @@ public List disks() { } /** - * Set the disks value. + * Set the virtual machine disk information. * * @param disks the disks value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -201,7 +201,7 @@ public VirtualMachineInstanceViewInner withDisks(List disks) { } /** - * Get the extensions value. + * Get the extensions information. * * @return the extensions value */ @@ -210,7 +210,7 @@ public List extensions() { } /** - * Set the extensions value. + * Set the extensions information. * * @param extensions the extensions value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -221,7 +221,7 @@ public VirtualMachineInstanceViewInner withExtensions(List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineInstanceViewInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineRunCommandsInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineRunCommandsInner.java index 7f45834d922c..80fda17139df 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineRunCommandsInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineRunCommandsInner.java @@ -151,7 +151,7 @@ public Observable>> call(Servi /** * Lists all available run commands for a subscription in a location. * - ServiceResponse> * @param location The location upon which run commands is queried. + ServiceResponse> * @param location The location upon which run commands is queried. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<RunCommandDocumentBaseInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -170,7 +170,7 @@ public Observable>> listSingle @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -179,9 +179,9 @@ public Observable>> call(Respo }); } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -353,7 +353,7 @@ public Observable>> call(Servi /** * Lists all available run commands for a subscription in a location. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<RunCommandDocumentBaseInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -367,7 +367,7 @@ public Observable>> listNextSi @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -376,9 +376,9 @@ public Observable>> call(Respo }); } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetExtensionInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetExtensionInner.java index 281b4e080fe5..691c2f5180bf 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetExtensionInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetExtensionInner.java @@ -79,7 +79,7 @@ public class VirtualMachineScaleSetExtensionInner extends SubResourceReadOnly { private String provisioningState; /** - * Get the name value. + * Get the name of the extension. * * @return the name value */ @@ -88,7 +88,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the extension. * * @param name the name value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -99,7 +99,7 @@ public VirtualMachineScaleSetExtensionInner withName(String name) { } /** - * Get the forceUpdateTag value. + * Get if a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. * * @return the forceUpdateTag value */ @@ -108,7 +108,7 @@ public String forceUpdateTag() { } /** - * Set the forceUpdateTag value. + * Set if a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. * * @param forceUpdateTag the forceUpdateTag value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -119,7 +119,7 @@ public VirtualMachineScaleSetExtensionInner withForceUpdateTag(String forceUpdat } /** - * Get the publisher value. + * Get the name of the extension handler publisher. * * @return the publisher value */ @@ -128,7 +128,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the name of the extension handler publisher. * * @param publisher the publisher value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -139,7 +139,7 @@ public VirtualMachineScaleSetExtensionInner withPublisher(String publisher) { } /** - * Get the type value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */ @@ -148,7 +148,7 @@ public String type() { } /** - * Set the type value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -159,7 +159,7 @@ public VirtualMachineScaleSetExtensionInner withType(String type) { } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -168,7 +168,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -179,7 +179,7 @@ public VirtualMachineScaleSetExtensionInner withTypeHandlerVersion(String typeHa } /** - * Get the autoUpgradeMinorVersion value. + * Get indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @return the autoUpgradeMinorVersion value */ @@ -188,7 +188,7 @@ public Boolean autoUpgradeMinorVersion() { } /** - * Set the autoUpgradeMinorVersion value. + * Set indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -199,7 +199,7 @@ public VirtualMachineScaleSetExtensionInner withAutoUpgradeMinorVersion(Boolean } /** - * Get the settings value. + * Get json formatted public settings for the extension. * * @return the settings value */ @@ -208,7 +208,7 @@ public Object settings() { } /** - * Set the settings value. + * Set json formatted public settings for the extension. * * @param settings the settings value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -219,7 +219,7 @@ public VirtualMachineScaleSetExtensionInner withSettings(Object settings) { } /** - * Get the protectedSettings value. + * Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @return the protectedSettings value */ @@ -228,7 +228,7 @@ public Object protectedSettings() { } /** - * Set the protectedSettings value. + * Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @param protectedSettings the protectedSettings value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -239,7 +239,7 @@ public VirtualMachineScaleSetExtensionInner withProtectedSettings(Object protect } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetExtensionsInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetExtensionsInner.java index 56a18ed6a475..71d43eac1f32 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetExtensionsInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetExtensionsInner.java @@ -716,8 +716,8 @@ public Observable>> c /** * Gets a list of all extensions in a VM scale set. * - ServiceResponse> * @param resourceGroupName The name of the resource group. - ServiceResponse> * @param vmScaleSetName The name of the VM scale set containing the extension. + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param vmScaleSetName The name of the VM scale set containing the extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetExtensionInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -739,7 +739,7 @@ public Observable>> l @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -748,9 +748,9 @@ public Observable>> c }); } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -836,7 +836,7 @@ public Observable>> c /** * Gets a list of all extensions in a VM scale set. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetExtensionInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -850,7 +850,7 @@ public Observable>> l @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -859,9 +859,9 @@ public Observable>> c }); } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetInner.java index e3bfa3c81da4..02358957991c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetInner.java @@ -92,7 +92,7 @@ public class VirtualMachineScaleSetInner extends Resource { private List zones; /** - * Get the sku value. + * Get the virtual machine scale set sku. * * @return the sku value */ @@ -101,7 +101,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the virtual machine scale set sku. * * @param sku the sku value to set * @return the VirtualMachineScaleSetInner object itself. @@ -112,7 +112,7 @@ public VirtualMachineScaleSetInner withSku(Sku sku) { } /** - * Get the plan value. + * Get specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @return the plan value */ @@ -121,7 +121,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @param plan the plan value to set * @return the VirtualMachineScaleSetInner object itself. @@ -132,7 +132,7 @@ public VirtualMachineScaleSetInner withPlan(Plan plan) { } /** - * Get the upgradePolicy value. + * Get the upgrade policy. * * @return the upgradePolicy value */ @@ -141,7 +141,7 @@ public UpgradePolicy upgradePolicy() { } /** - * Set the upgradePolicy value. + * Set the upgrade policy. * * @param upgradePolicy the upgradePolicy value to set * @return the VirtualMachineScaleSetInner object itself. @@ -152,7 +152,7 @@ public VirtualMachineScaleSetInner withUpgradePolicy(UpgradePolicy upgradePolicy } /** - * Get the virtualMachineProfile value. + * Get the virtual machine profile. * * @return the virtualMachineProfile value */ @@ -161,7 +161,7 @@ public VirtualMachineScaleSetVMProfile virtualMachineProfile() { } /** - * Set the virtualMachineProfile value. + * Set the virtual machine profile. * * @param virtualMachineProfile the virtualMachineProfile value to set * @return the VirtualMachineScaleSetInner object itself. @@ -172,7 +172,7 @@ public VirtualMachineScaleSetInner withVirtualMachineProfile(VirtualMachineScale } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -181,7 +181,7 @@ public String provisioningState() { } /** - * Get the overprovision value. + * Get specifies whether the Virtual Machine Scale Set should be overprovisioned. * * @return the overprovision value */ @@ -190,7 +190,7 @@ public Boolean overprovision() { } /** - * Set the overprovision value. + * Set specifies whether the Virtual Machine Scale Set should be overprovisioned. * * @param overprovision the overprovision value to set * @return the VirtualMachineScaleSetInner object itself. @@ -201,7 +201,7 @@ public VirtualMachineScaleSetInner withOverprovision(Boolean overprovision) { } /** - * Get the uniqueId value. + * Get specifies the ID which uniquely identifies a Virtual Machine Scale Set. * * @return the uniqueId value */ @@ -210,7 +210,7 @@ public String uniqueId() { } /** - * Get the singlePlacementGroup value. + * Get when true this limits the scale set to a single placement group, of max size 100 virtual machines. * * @return the singlePlacementGroup value */ @@ -219,7 +219,7 @@ public Boolean singlePlacementGroup() { } /** - * Set the singlePlacementGroup value. + * Set when true this limits the scale set to a single placement group, of max size 100 virtual machines. * * @param singlePlacementGroup the singlePlacementGroup value to set * @return the VirtualMachineScaleSetInner object itself. @@ -230,7 +230,7 @@ public VirtualMachineScaleSetInner withSinglePlacementGroup(Boolean singlePlacem } /** - * Get the identity value. + * Get the identity of the virtual machine scale set, if configured. * * @return the identity value */ @@ -239,7 +239,7 @@ public VirtualMachineScaleSetIdentity identity() { } /** - * Set the identity value. + * Set the identity of the virtual machine scale set, if configured. * * @param identity the identity value to set * @return the VirtualMachineScaleSetInner object itself. @@ -250,7 +250,7 @@ public VirtualMachineScaleSetInner withIdentity(VirtualMachineScaleSetIdentity i } /** - * Get the zones value. + * Get the virtual machine scale set zones. * * @return the zones value */ @@ -259,7 +259,7 @@ public List zones() { } /** - * Set the zones value. + * Set the virtual machine scale set zones. * * @param zones the zones value to set * @return the VirtualMachineScaleSetInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetInstanceViewInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetInstanceViewInner.java index 3e37fdfe9bca..55aa73351faf 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetInstanceViewInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetInstanceViewInner.java @@ -37,7 +37,7 @@ public class VirtualMachineScaleSetInstanceViewInner { private List statuses; /** - * Get the virtualMachine value. + * Get the instance view status summary for the virtual machine scale set. * * @return the virtualMachine value */ @@ -46,7 +46,7 @@ public VirtualMachineScaleSetInstanceViewStatusesSummary virtualMachine() { } /** - * Get the extensions value. + * Get the extensions information. * * @return the extensions value */ @@ -55,7 +55,7 @@ public List extensions() { } /** - * Get the statuses value. + * Get the resource status information. * * @return the statuses value */ @@ -64,7 +64,7 @@ public List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineScaleSetInstanceViewInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetSkuInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetSkuInner.java index 26845f6d289b..3e24049d2993 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetSkuInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetSkuInner.java @@ -35,7 +35,7 @@ public class VirtualMachineScaleSetSkuInner { private VirtualMachineScaleSetSkuCapacity capacity; /** - * Get the resourceType value. + * Get the type of resource the sku applies to. * * @return the resourceType value */ @@ -44,7 +44,7 @@ public String resourceType() { } /** - * Get the sku value. + * Get the Sku. * * @return the sku value */ @@ -53,7 +53,7 @@ public Sku sku() { } /** - * Get the capacity value. + * Get specifies the number of virtual machines in the scale set. * * @return the capacity value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMImpl.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMImpl.java index 5cbd48a71762..58e17c25108c 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMImpl.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMImpl.java @@ -14,7 +14,7 @@ import com.microsoft.azure.SubResource; import com.microsoft.azure.management.compute.v2017_03_30.DiagnosticsProfile; import com.microsoft.azure.management.compute.v2017_03_30.HardwareProfile; -import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachineInstanceView; +import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachineScaleSetVMInstanceView; import com.microsoft.azure.management.compute.v2017_03_30.NetworkProfile; import com.microsoft.azure.management.compute.v2017_03_30.OSProfile; import com.microsoft.azure.management.compute.v2017_03_30.Plan; @@ -78,10 +78,10 @@ public String instanceId() { } @Override - public VirtualMachineInstanceView instanceView() { - VirtualMachineInstanceViewInner inner = this.inner().instanceView(); + public VirtualMachineScaleSetVMInstanceView instanceView() { + VirtualMachineScaleSetVMInstanceViewInner inner = this.inner().instanceView(); if (inner != null) { - return new VirtualMachineInstanceViewImpl(inner, manager()); + return new VirtualMachineScaleSetVMInstanceViewImpl(inner, manager()); } else { return null; } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMInner.java index 4e30f88c9eaf..2feeb90ec6e9 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMInner.java @@ -55,7 +55,7 @@ public class VirtualMachineScaleSetVMInner extends Resource { * The virtual machine instance view. */ @JsonProperty(value = "properties.instanceView", access = JsonProperty.Access.WRITE_ONLY) - private VirtualMachineInstanceViewInner instanceView; + private VirtualMachineScaleSetVMInstanceViewInner instanceView; /** * Specifies the hardware settings for the virtual machine. @@ -145,7 +145,7 @@ public class VirtualMachineScaleSetVMInner extends Resource { private List resources; /** - * Get the instanceId value. + * Get the virtual machine instance ID. * * @return the instanceId value */ @@ -154,7 +154,7 @@ public String instanceId() { } /** - * Get the sku value. + * Get the virtual machine SKU. * * @return the sku value */ @@ -163,7 +163,7 @@ public Sku sku() { } /** - * Get the latestModelApplied value. + * Get specifies whether the latest model has been applied to the virtual machine. * * @return the latestModelApplied value */ @@ -172,7 +172,7 @@ public Boolean latestModelApplied() { } /** - * Get the vmId value. + * Get azure VM unique ID. * * @return the vmId value */ @@ -181,16 +181,16 @@ public String vmId() { } /** - * Get the instanceView value. + * Get the virtual machine instance view. * * @return the instanceView value */ - public VirtualMachineInstanceViewInner instanceView() { + public VirtualMachineScaleSetVMInstanceViewInner instanceView() { return this.instanceView; } /** - * Get the hardwareProfile value. + * Get specifies the hardware settings for the virtual machine. * * @return the hardwareProfile value */ @@ -199,7 +199,7 @@ public HardwareProfile hardwareProfile() { } /** - * Set the hardwareProfile value. + * Set specifies the hardware settings for the virtual machine. * * @param hardwareProfile the hardwareProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -210,7 +210,7 @@ public VirtualMachineScaleSetVMInner withHardwareProfile(HardwareProfile hardwar } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -219,7 +219,7 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -230,7 +230,7 @@ public VirtualMachineScaleSetVMInner withStorageProfile(StorageProfile storagePr } /** - * Get the osProfile value. + * Get specifies the operating system settings for the virtual machine. * * @return the osProfile value */ @@ -239,7 +239,7 @@ public OSProfile osProfile() { } /** - * Set the osProfile value. + * Set specifies the operating system settings for the virtual machine. * * @param osProfile the osProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -250,7 +250,7 @@ public VirtualMachineScaleSetVMInner withOsProfile(OSProfile osProfile) { } /** - * Get the networkProfile value. + * Get specifies the network interfaces of the virtual machine. * * @return the networkProfile value */ @@ -259,7 +259,7 @@ public NetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set specifies the network interfaces of the virtual machine. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -270,7 +270,7 @@ public VirtualMachineScaleSetVMInner withNetworkProfile(NetworkProfile networkPr } /** - * Get the diagnosticsProfile value. + * Get specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @return the diagnosticsProfile value */ @@ -279,7 +279,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -290,7 +290,7 @@ public VirtualMachineScaleSetVMInner withDiagnosticsProfile(DiagnosticsProfile d } /** - * Get the availabilitySet value. + * Get specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @return the availabilitySet value */ @@ -299,7 +299,7 @@ public SubResource availabilitySet() { } /** - * Set the availabilitySet value. + * Set specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @param availabilitySet the availabilitySet value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -310,7 +310,7 @@ public VirtualMachineScaleSetVMInner withAvailabilitySet(SubResource availabilit } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -319,7 +319,7 @@ public String provisioningState() { } /** - * Get the licenseType value. + * Get specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @return the licenseType value */ @@ -328,7 +328,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @param licenseType the licenseType value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -339,7 +339,7 @@ public VirtualMachineScaleSetVMInner withLicenseType(String licenseType) { } /** - * Get the plan value. + * Get specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @return the plan value */ @@ -348,7 +348,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @param plan the plan value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -359,7 +359,7 @@ public VirtualMachineScaleSetVMInner withPlan(Plan plan) { } /** - * Get the resources value. + * Get the virtual machine child extension resources. * * @return the resources value */ diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMInstanceViewInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMInstanceViewInner.java index a8c58c0dbe49..e562231ccc11 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMInstanceViewInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetVMInstanceViewInner.java @@ -88,7 +88,7 @@ public class VirtualMachineScaleSetVMInstanceViewInner { private String placementGroupId; /** - * Get the platformUpdateDomain value. + * Get the Update Domain count. * * @return the platformUpdateDomain value */ @@ -97,7 +97,7 @@ public Integer platformUpdateDomain() { } /** - * Set the platformUpdateDomain value. + * Set the Update Domain count. * * @param platformUpdateDomain the platformUpdateDomain value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -108,7 +108,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withPlatformUpdateDomain(Intege } /** - * Get the platformFaultDomain value. + * Get the Fault Domain count. * * @return the platformFaultDomain value */ @@ -117,7 +117,7 @@ public Integer platformFaultDomain() { } /** - * Set the platformFaultDomain value. + * Set the Fault Domain count. * * @param platformFaultDomain the platformFaultDomain value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -128,7 +128,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withPlatformFaultDomain(Integer } /** - * Get the rdpThumbPrint value. + * Get the Remote desktop certificate thumbprint. * * @return the rdpThumbPrint value */ @@ -137,7 +137,7 @@ public String rdpThumbPrint() { } /** - * Set the rdpThumbPrint value. + * Set the Remote desktop certificate thumbprint. * * @param rdpThumbPrint the rdpThumbPrint value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -148,7 +148,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withRdpThumbPrint(String rdpThu } /** - * Get the vmAgent value. + * Get the VM Agent running on the virtual machine. * * @return the vmAgent value */ @@ -157,7 +157,7 @@ public VirtualMachineAgentInstanceView vmAgent() { } /** - * Set the vmAgent value. + * Set the VM Agent running on the virtual machine. * * @param vmAgent the vmAgent value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -168,7 +168,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withVmAgent(VirtualMachineAgent } /** - * Get the disks value. + * Get the disks information. * * @return the disks value */ @@ -177,7 +177,7 @@ public List disks() { } /** - * Set the disks value. + * Set the disks information. * * @param disks the disks value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -188,7 +188,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withDisks(List extensions() { } /** - * Set the extensions value. + * Set the extensions information. * * @param extensions the extensions value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -208,7 +208,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withExtensions(List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -257,7 +257,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withStatuses(List>> listSing @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1215,11 +1215,11 @@ public Observable>> call(Ser /** * Gets a list of all virtual machines in a VM scale sets. * - ServiceResponse> * @param resourceGroupName The name of the resource group. - ServiceResponse> * @param virtualMachineScaleSetName The name of the VM scale set. - ServiceResponse> * @param filter The filter to apply to the operation. - ServiceResponse> * @param select The list parameters. - ServiceResponse> * @param expand The expand expression to apply to the operation. + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param virtualMachineScaleSetName The name of the VM scale set. + ServiceResponse> * @param filter The filter to apply to the operation. + ServiceResponse> * @param select The list parameters. + ServiceResponse> * @param expand The expand expression to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetVMInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1241,7 +1241,7 @@ public Observable>> listSing @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1250,9 +1250,9 @@ public Observable>> call(Res }); } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1848,7 +1848,7 @@ public Observable>> call(Ser /** * Gets a list of all virtual machines in a VM scale sets. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetVMInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1862,7 +1862,7 @@ public Observable>> listNext @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1871,9 +1871,9 @@ public Observable>> call(Res }); } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetsInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetsInner.java index 0f725f5dcf3e..519412948b99 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetsInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineScaleSetsInner.java @@ -1448,7 +1448,7 @@ public Observable>> call(Servi /** * Gets a list of all VM scale sets under a resource group. * - ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1467,7 +1467,7 @@ public Observable>> listByReso @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1476,9 +1476,9 @@ public Observable>> call(Respo }); } - private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1574,7 +1574,7 @@ public Observable>> listSingle @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1583,9 +1583,9 @@ public Observable>> call(Respo }); } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1674,8 +1674,8 @@ public Observable>> call(Se /** * Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. * - ServiceResponse> * @param resourceGroupName The name of the resource group. - ServiceResponse> * @param vmScaleSetName The name of the VM scale set. + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param vmScaleSetName The name of the VM scale set. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetSkuInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1697,7 +1697,7 @@ public Observable>> listSku @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listSkusDelegate(response); + ServiceResponse> result = listSkusDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1706,9 +1706,9 @@ public Observable>> call(Re }); } - private ServiceResponse> listSkusDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSkusDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3615,7 +3615,7 @@ public Observable>> call(Servi /** * Gets a list of all VM scale sets under a resource group. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -3629,7 +3629,7 @@ public Observable>> listByReso @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); + ServiceResponse> result = listByResourceGroupNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -3638,9 +3638,9 @@ public Observable>> call(Respo }); } - private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3726,7 +3726,7 @@ public Observable>> call(Servi /** * Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -3740,7 +3740,7 @@ public Observable>> listNextSi @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -3749,9 +3749,9 @@ public Observable>> call(Respo }); } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3837,7 +3837,7 @@ public Observable>> call(Se /** * Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineScaleSetSkuInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -3851,7 +3851,7 @@ public Observable>> listSku @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listSkusNextDelegate(response); + ServiceResponse> result = listSkusNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -3860,9 +3860,9 @@ public Observable>> call(Re }); } - private ServiceResponse> listSkusNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSkusNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineSizeInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineSizeInner.java index f171e8081ef4..068c94a4553d 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineSizeInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineSizeInner.java @@ -52,7 +52,7 @@ public class VirtualMachineSizeInner { private Integer maxDataDiskCount; /** - * Get the name value. + * Get the name of the virtual machine size. * * @return the name value */ @@ -61,7 +61,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the virtual machine size. * * @param name the name value to set * @return the VirtualMachineSizeInner object itself. @@ -72,7 +72,7 @@ public VirtualMachineSizeInner withName(String name) { } /** - * Get the numberOfCores value. + * Get the number of cores supported by the virtual machine size. * * @return the numberOfCores value */ @@ -81,7 +81,7 @@ public Integer numberOfCores() { } /** - * Set the numberOfCores value. + * Set the number of cores supported by the virtual machine size. * * @param numberOfCores the numberOfCores value to set * @return the VirtualMachineSizeInner object itself. @@ -92,7 +92,7 @@ public VirtualMachineSizeInner withNumberOfCores(Integer numberOfCores) { } /** - * Get the osDiskSizeInMB value. + * Get the OS disk size, in MB, allowed by the virtual machine size. * * @return the osDiskSizeInMB value */ @@ -101,7 +101,7 @@ public Integer osDiskSizeInMB() { } /** - * Set the osDiskSizeInMB value. + * Set the OS disk size, in MB, allowed by the virtual machine size. * * @param osDiskSizeInMB the osDiskSizeInMB value to set * @return the VirtualMachineSizeInner object itself. @@ -112,7 +112,7 @@ public VirtualMachineSizeInner withOsDiskSizeInMB(Integer osDiskSizeInMB) { } /** - * Get the resourceDiskSizeInMB value. + * Get the resource disk size, in MB, allowed by the virtual machine size. * * @return the resourceDiskSizeInMB value */ @@ -121,7 +121,7 @@ public Integer resourceDiskSizeInMB() { } /** - * Set the resourceDiskSizeInMB value. + * Set the resource disk size, in MB, allowed by the virtual machine size. * * @param resourceDiskSizeInMB the resourceDiskSizeInMB value to set * @return the VirtualMachineSizeInner object itself. @@ -132,7 +132,7 @@ public VirtualMachineSizeInner withResourceDiskSizeInMB(Integer resourceDiskSize } /** - * Get the memoryInMB value. + * Get the amount of memory, in MB, supported by the virtual machine size. * * @return the memoryInMB value */ @@ -141,7 +141,7 @@ public Integer memoryInMB() { } /** - * Set the memoryInMB value. + * Set the amount of memory, in MB, supported by the virtual machine size. * * @param memoryInMB the memoryInMB value to set * @return the VirtualMachineSizeInner object itself. @@ -152,7 +152,7 @@ public VirtualMachineSizeInner withMemoryInMB(Integer memoryInMB) { } /** - * Get the maxDataDiskCount value. + * Get the maximum number of data disks that can be attached to the virtual machine size. * * @return the maxDataDiskCount value */ @@ -161,7 +161,7 @@ public Integer maxDataDiskCount() { } /** - * Set the maxDataDiskCount value. + * Set the maximum number of data disks that can be attached to the virtual machine size. * * @param maxDataDiskCount the maxDataDiskCount value to set * @return the VirtualMachineSizeInner object itself. diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineSizesInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineSizesInner.java index e55a8aed3604..e72b2aa6ad4b 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineSizesInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachineSizesInner.java @@ -121,7 +121,7 @@ public Observable>> listWithServic @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); List items = null; if (result.body() != null) { items = result.body().items(); @@ -135,9 +135,9 @@ public Observable>> call(Response< }); } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesImpl.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesImpl.java new file mode 100644 index 000000000000..67930ac13269 --- /dev/null +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesImpl.java @@ -0,0 +1,313 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.compute.v2017_03_30.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachines; +import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachine; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachineCaptureResult; +import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachineInstanceView; +import com.microsoft.azure.management.compute.v2017_03_30.OperationStatusResponse; +import com.microsoft.azure.management.compute.v2017_03_30.RunCommandResult; +import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachineCaptureParameters; +import com.microsoft.azure.management.compute.v2017_03_30.RunCommandInput; +import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachineExtensionsListResult; +import java.util.List; +import com.microsoft.azure.management.compute.v2017_03_30.VirtualMachineVirtualMachineSize; + +class VirtualMachinesImpl extends GroupableResourcesCoreImpl implements VirtualMachines { + protected VirtualMachinesImpl(ComputeManager manager) { + super(manager.inner().virtualMachines(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + VirtualMachinesInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + VirtualMachinesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + VirtualMachinesInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + VirtualMachinesInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VirtualMachine call(VirtualMachineInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + VirtualMachinesInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + VirtualMachinesInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VirtualMachine call(VirtualMachineInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public VirtualMachineImpl define(String name) { + return wrapModel(name); + } + + @Override + public Observable captureAsync(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters) { + VirtualMachinesInner client = this.inner(); + return client.captureAsync(resourceGroupName, vmName, parameters) + .map(new Func1() { + @Override + public VirtualMachineCaptureResult call(VirtualMachineCaptureResultInner inner) { + return new VirtualMachineCaptureResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable instanceViewAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.instanceViewAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public VirtualMachineInstanceView call(VirtualMachineInstanceViewInner inner) { + return new VirtualMachineInstanceViewImpl(inner, manager()); + } + }); + } + + @Override + public Observable convertToManagedDisksAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.convertToManagedDisksAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable deallocateAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.deallocateAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable generalizeAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.generalizeAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable powerOffAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.powerOffAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable restartAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.restartAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable startAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.startAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable redeployAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.redeployAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable performMaintenanceAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.performMaintenanceAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable runCommandAsync(String resourceGroupName, String vmName, RunCommandInput parameters) { + VirtualMachinesInner client = this.inner(); + return client.runCommandAsync(resourceGroupName, vmName, parameters) + .map(new Func1() { + @Override + public RunCommandResult call(RunCommandResultInner inner) { + return new RunCommandResultImpl(inner, manager()); + } + }); + } + + @Override + protected VirtualMachineImpl wrapModel(VirtualMachineInner inner) { + return new VirtualMachineImpl(inner.name(), inner, manager()); + } + + @Override + protected VirtualMachineImpl wrapModel(String name) { + return new VirtualMachineImpl(name, new VirtualMachineInner(), this.manager()); + } + + private VirtualMachineVirtualMachineSizeImpl wrapVirtualMachineVirtualMachineSizeModel(VirtualMachineSizeInner inner) { + return new VirtualMachineVirtualMachineSizeImpl(inner, manager()); + } + + @Override + public Observable getExtensionsAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.getExtensionsAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public VirtualMachineExtensionsListResult call(VirtualMachineExtensionsListResultInner inner) { + return new VirtualMachineExtensionsListResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAvailableSizesAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.listAvailableSizesAsync(resourceGroupName, vmName) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public VirtualMachineVirtualMachineSize call(VirtualMachineSizeInner inner) { + return wrapVirtualMachineVirtualMachineSizeModel(inner); + } + }); + } + +} diff --git a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesInner.java b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesInner.java index 434379c14891..71036e8f6c72 100644 --- a/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesInner.java +++ b/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesInner.java @@ -1599,7 +1599,7 @@ public Observable>> call(ServiceRespon /** * Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. * - ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -1618,7 +1618,7 @@ public Observable>> listByResourceGrou @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1627,9 +1627,9 @@ public Observable>> call(Response> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1725,7 +1725,7 @@ public Observable>> listSinglePageAsyn @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1734,9 +1734,9 @@ public Observable>> call(Response> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1811,7 +1811,7 @@ public Observable>> listAvailableS @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listAvailableSizesDelegate(response); + ServiceResponse> result = listAvailableSizesDelegate(response); List items = null; if (result.body() != null) { items = result.body().items(); @@ -1825,9 +1825,9 @@ public Observable>> call(Response< }); } - private ServiceResponse> listAvailableSizesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listAvailableSizesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2865,7 +2865,7 @@ public Observable>> call(ServiceRespon /** * Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -2879,7 +2879,7 @@ public Observable>> listByResourceGrou @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); + ServiceResponse> result = listByResourceGroupNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -2888,9 +2888,9 @@ public Observable>> call(Response> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2976,7 +2976,7 @@ public Observable>> call(ServiceRespon /** * Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VirtualMachineInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -2990,7 +2990,7 @@ public Observable>> listNextSinglePage @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -2999,9 +2999,9 @@ public Observable>> call(Response> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/compute/resource-manager/v2017_09_01/pom.xml b/compute/resource-manager/v2017_09_01/pom.xml index 7fa6e5166ea6..43c6de24ef1c 100644 --- a/compute/resource-manager/v2017_09_01/pom.xml +++ b/compute/resource-manager/v2017_09_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.compute.v2017_09_01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-compute - 1.0.0-beta - jar - Microsoft Azure SDK for Compute Management - This package contains Microsoft Compute Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.compute.v2017_09_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-compute + 1.0.0-beta + jar + Microsoft Azure SDK for Compute Management + This package contains Microsoft Compute Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapabilities.java b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapabilities.java index 01c94ba90cea..21db00ed415e 100644 --- a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapabilities.java +++ b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapabilities.java @@ -27,7 +27,7 @@ public class ResourceSkuCapabilities { private String value; /** - * Get the name value. + * Get an invariant to describe the feature. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Get the value value. + * Get an invariant if the feature is measured by quantity. * * @return the value value */ diff --git a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapacity.java b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapacity.java index 0a164a574154..bae4e0326b52 100644 --- a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapacity.java +++ b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapacity.java @@ -40,7 +40,7 @@ public class ResourceSkuCapacity { private ResourceSkuCapacityScaleType scaleType; /** - * Get the minimum value. + * Get the minimum capacity. * * @return the minimum value */ @@ -49,7 +49,7 @@ public Long minimum() { } /** - * Get the maximum value. + * Get the maximum capacity that can be set. * * @return the maximum value */ @@ -58,7 +58,7 @@ public Long maximum() { } /** - * Get the defaultProperty value. + * Get the default capacity. * * @return the defaultProperty value */ @@ -67,7 +67,7 @@ public Long defaultProperty() { } /** - * Get the scaleType value. + * Get the scale type applicable to the sku. Possible values include: 'Automatic', 'Manual', 'None'. * * @return the scaleType value */ diff --git a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCosts.java b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCosts.java index 65f7e352fdbc..ea00d71771c2 100644 --- a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCosts.java +++ b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCosts.java @@ -33,7 +33,7 @@ public class ResourceSkuCosts { private String extendedUnit; /** - * Get the meterID value. + * Get used for querying price from commerce. * * @return the meterID value */ @@ -42,7 +42,7 @@ public String meterID() { } /** - * Get the quantity value. + * Get the multiplier is needed to extend the base metered cost. * * @return the quantity value */ @@ -51,7 +51,7 @@ public Long quantity() { } /** - * Get the extendedUnit value. + * Get an invariant to show the extended unit. * * @return the extendedUnit value */ diff --git a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuLocationInfo.java b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuLocationInfo.java index 1e205d572573..4c3a86ebb0e4 100644 --- a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuLocationInfo.java +++ b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuLocationInfo.java @@ -28,7 +28,7 @@ public class ResourceSkuLocationInfo { private List zones; /** - * Get the location value. + * Get location of the SKU. * * @return the location value */ @@ -37,7 +37,7 @@ public String location() { } /** - * Get the zones value. + * Get list of availability zones where the SKU is supported. * * @return the zones value */ diff --git a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuRestrictionInfo.java b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuRestrictionInfo.java index e539c9d6b63c..ea3f4b180536 100644 --- a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuRestrictionInfo.java +++ b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuRestrictionInfo.java @@ -28,7 +28,7 @@ public class ResourceSkuRestrictionInfo { private List zones; /** - * Get the locations value. + * Get locations where the SKU is restricted. * * @return the locations value */ @@ -37,7 +37,7 @@ public List locations() { } /** - * Get the zones value. + * Get list of availability zones where the SKU is restricted. * * @return the zones value */ diff --git a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuRestrictions.java b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuRestrictions.java index 6a32797609df..e7a4794c43b8 100644 --- a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuRestrictions.java +++ b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuRestrictions.java @@ -42,7 +42,7 @@ public class ResourceSkuRestrictions { private ResourceSkuRestrictionsReasonCode reasonCode; /** - * Get the type value. + * Get the type of restrictions. Possible values include: 'Location', 'Zone'. * * @return the type value */ @@ -51,7 +51,7 @@ public ResourceSkuRestrictionsType type() { } /** - * Get the values value. + * Get the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. * * @return the values value */ @@ -60,7 +60,7 @@ public List values() { } /** - * Get the restrictionInfo value. + * Get the information about the restriction where the SKU cannot be used. * * @return the restrictionInfo value */ @@ -69,7 +69,7 @@ public ResourceSkuRestrictionInfo restrictionInfo() { } /** - * Get the reasonCode value. + * Get the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @return the reasonCode value */ diff --git a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/implementation/ResourceSkuInner.java b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/implementation/ResourceSkuInner.java index cc07679eb97e..da5b155234ac 100644 --- a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/implementation/ResourceSkuInner.java +++ b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/implementation/ResourceSkuInner.java @@ -103,7 +103,7 @@ public class ResourceSkuInner { private List restrictions; /** - * Get the resourceType value. + * Get the type of resource the SKU applies to. * * @return the resourceType value */ @@ -112,7 +112,7 @@ public String resourceType() { } /** - * Get the name value. + * Get the name of SKU. * * @return the name value */ @@ -121,7 +121,7 @@ public String name() { } /** - * Get the tier value. + * Get specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**. * * @return the tier value */ @@ -130,7 +130,7 @@ public String tier() { } /** - * Get the size value. + * Get the Size of the SKU. * * @return the size value */ @@ -139,7 +139,7 @@ public String size() { } /** - * Get the family value. + * Get the Family of this particular SKU. * * @return the family value */ @@ -148,7 +148,7 @@ public String family() { } /** - * Get the kind value. + * Get the Kind of resources that are supported in this SKU. * * @return the kind value */ @@ -157,7 +157,7 @@ public String kind() { } /** - * Get the capacity value. + * Get specifies the number of virtual machines in the scale set. * * @return the capacity value */ @@ -166,7 +166,7 @@ public ResourceSkuCapacity capacity() { } /** - * Get the locations value. + * Get the set of locations that the SKU is available. * * @return the locations value */ @@ -175,7 +175,7 @@ public List locations() { } /** - * Get the locationInfo value. + * Get a list of locations and availability zones in those locations where the SKU is available. * * @return the locationInfo value */ @@ -184,7 +184,7 @@ public List locationInfo() { } /** - * Get the apiVersions value. + * Get the api versions that support this SKU. * * @return the apiVersions value */ @@ -193,7 +193,7 @@ public List apiVersions() { } /** - * Get the costs value. + * Get metadata for retrieving price info. * * @return the costs value */ @@ -202,7 +202,7 @@ public List costs() { } /** - * Get the capabilities value. + * Get a name value pair to describe the capability. * * @return the capabilities value */ @@ -211,7 +211,7 @@ public List capabilities() { } /** - * Get the restrictions value. + * Get the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. * * @return the restrictions value */ diff --git a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/implementation/ResourceSkusImpl.java b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/implementation/ResourceSkusImpl.java index a9f341529dea..68d8220ac874 100644 --- a/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/implementation/ResourceSkusImpl.java +++ b/compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/implementation/ResourceSkusImpl.java @@ -37,7 +37,8 @@ public Observable listAsync() { public Iterable call(Page page) { return page.items(); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public ResourceSku call(ResourceSkuInner inner) { return new ResourceSkuImpl(inner, manager()); diff --git a/compute/resource-manager/v2017_12_01/pom.xml b/compute/resource-manager/v2017_12_01/pom.xml index faf890d33173..5598567de1f3 100644 --- a/compute/resource-manager/v2017_12_01/pom.xml +++ b/compute/resource-manager/v2017_12_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.compute.v2017_12_01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-compute - 1.0.0-beta - jar - Microsoft Azure SDK for Compute Management - This package contains Microsoft Compute Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.compute.v2017_12_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-compute + 1.0.0-beta + jar + Microsoft Azure SDK for Compute Management + This package contains Microsoft Compute Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AdditionalUnattendContent.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AdditionalUnattendContent.java index 749f7491712c..bdd5f10b3a40 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AdditionalUnattendContent.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AdditionalUnattendContent.java @@ -49,7 +49,7 @@ public class AdditionalUnattendContent { private String content; /** - * Get the passName value. + * Get the pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'OobeSystem'. * * @return the passName value */ @@ -58,7 +58,7 @@ public PassNames passName() { } /** - * Set the passName value. + * Set the pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'OobeSystem'. * * @param passName the passName value to set * @return the AdditionalUnattendContent object itself. @@ -69,7 +69,7 @@ public AdditionalUnattendContent withPassName(PassNames passName) { } /** - * Get the componentName value. + * Get the component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'Microsoft-Windows-Shell-Setup'. * * @return the componentName value */ @@ -78,7 +78,7 @@ public ComponentNames componentName() { } /** - * Set the componentName value. + * Set the component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'Microsoft-Windows-Shell-Setup'. * * @param componentName the componentName value to set * @return the AdditionalUnattendContent object itself. @@ -89,7 +89,7 @@ public AdditionalUnattendContent withComponentName(ComponentNames componentName) } /** - * Get the settingName value. + * Get specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'AutoLogon', 'FirstLogonCommands'. * * @return the settingName value */ @@ -98,7 +98,7 @@ public SettingNames settingName() { } /** - * Set the settingName value. + * Set specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'AutoLogon', 'FirstLogonCommands'. * * @param settingName the settingName value to set * @return the AdditionalUnattendContent object itself. @@ -109,7 +109,7 @@ public AdditionalUnattendContent withSettingName(SettingNames settingName) { } /** - * Get the content value. + * Get specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. * * @return the content value */ @@ -118,7 +118,7 @@ public String content() { } /** - * Set the content value. + * Set specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. * * @param content the content value to set * @return the AdditionalUnattendContent object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiEntityReference.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiEntityReference.java index 19bc4c49cf91..7c8662dff75e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiEntityReference.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiEntityReference.java @@ -22,7 +22,7 @@ public class ApiEntityReference { private String id; /** - * Get the id value. + * Get the ARM resource id in the form of /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/... * * @return the id value */ @@ -31,7 +31,7 @@ public String id() { } /** - * Set the id value. + * Set the ARM resource id in the form of /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/... * * @param id the id value to set * @return the ApiEntityReference object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiError.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiError.java index e904db231ec6..44d455c8b007 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiError.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiError.java @@ -46,7 +46,7 @@ public class ApiError { private String message; /** - * Get the details value. + * Get the Api error details. * * @return the details value */ @@ -55,7 +55,7 @@ public List details() { } /** - * Set the details value. + * Set the Api error details. * * @param details the details value to set * @return the ApiError object itself. @@ -66,7 +66,7 @@ public ApiError withDetails(List details) { } /** - * Get the innererror value. + * Get the Api inner error. * * @return the innererror value */ @@ -75,7 +75,7 @@ public InnerError innererror() { } /** - * Set the innererror value. + * Set the Api inner error. * * @param innererror the innererror value to set * @return the ApiError object itself. @@ -86,7 +86,7 @@ public ApiError withInnererror(InnerError innererror) { } /** - * Get the code value. + * Get the error code. * * @return the code value */ @@ -95,7 +95,7 @@ public String code() { } /** - * Set the code value. + * Set the error code. * * @param code the code value to set * @return the ApiError object itself. @@ -106,7 +106,7 @@ public ApiError withCode(String code) { } /** - * Get the target value. + * Get the target of the particular error. * * @return the target value */ @@ -115,7 +115,7 @@ public String target() { } /** - * Set the target value. + * Set the target of the particular error. * * @param target the target value to set * @return the ApiError object itself. @@ -126,7 +126,7 @@ public ApiError withTarget(String target) { } /** - * Get the message value. + * Get the error message. * * @return the message value */ @@ -135,7 +135,7 @@ public String message() { } /** - * Set the message value. + * Set the error message. * * @param message the message value to set * @return the ApiError object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiErrorBase.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiErrorBase.java index 006a9da8cd1b..dc54be551336 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiErrorBase.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ApiErrorBase.java @@ -33,7 +33,7 @@ public class ApiErrorBase { private String message; /** - * Get the code value. + * Get the error code. * * @return the code value */ @@ -42,7 +42,7 @@ public String code() { } /** - * Set the code value. + * Set the error code. * * @param code the code value to set * @return the ApiErrorBase object itself. @@ -53,7 +53,7 @@ public ApiErrorBase withCode(String code) { } /** - * Get the target value. + * Get the target of the particular error. * * @return the target value */ @@ -62,7 +62,7 @@ public String target() { } /** - * Set the target value. + * Set the target of the particular error. * * @param target the target value to set * @return the ApiErrorBase object itself. @@ -73,7 +73,7 @@ public ApiErrorBase withTarget(String target) { } /** - * Get the message value. + * Get the error message. * * @return the message value */ @@ -82,7 +82,7 @@ public String message() { } /** - * Set the message value. + * Set the error message. * * @param message the message value to set * @return the ApiErrorBase object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AutoOSUpgradePolicy.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AutoOSUpgradePolicy.java index 43aebfafe79c..548ce0d970d4 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AutoOSUpgradePolicy.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AutoOSUpgradePolicy.java @@ -22,7 +22,7 @@ public class AutoOSUpgradePolicy { private Boolean disableAutoRollback; /** - * Get the disableAutoRollback value. + * Get whether OS image rollback feature should be disabled. Default value is false. * * @return the disableAutoRollback value */ @@ -31,7 +31,7 @@ public Boolean disableAutoRollback() { } /** - * Set the disableAutoRollback value. + * Set whether OS image rollback feature should be disabled. Default value is false. * * @param disableAutoRollback the disableAutoRollback value to set * @return the AutoOSUpgradePolicy object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySet.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySet.java index a00ca6b22d26..7af6a91bcb23 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySet.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySet.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_12_01.implementation.ComputeManager; import java.util.List; diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySetUpdate.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySetUpdate.java index 0628498364ef..246ef30bf0b5 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySetUpdate.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySetUpdate.java @@ -50,7 +50,7 @@ public class AvailabilitySetUpdate extends UpdateResource { private Sku sku; /** - * Get the platformUpdateDomainCount value. + * Get update Domain count. * * @return the platformUpdateDomainCount value */ @@ -59,7 +59,7 @@ public Integer platformUpdateDomainCount() { } /** - * Set the platformUpdateDomainCount value. + * Set update Domain count. * * @param platformUpdateDomainCount the platformUpdateDomainCount value to set * @return the AvailabilitySetUpdate object itself. @@ -70,7 +70,7 @@ public AvailabilitySetUpdate withPlatformUpdateDomainCount(Integer platformUpdat } /** - * Get the platformFaultDomainCount value. + * Get fault Domain count. * * @return the platformFaultDomainCount value */ @@ -79,7 +79,7 @@ public Integer platformFaultDomainCount() { } /** - * Set the platformFaultDomainCount value. + * Set fault Domain count. * * @param platformFaultDomainCount the platformFaultDomainCount value to set * @return the AvailabilitySetUpdate object itself. @@ -90,7 +90,7 @@ public AvailabilitySetUpdate withPlatformFaultDomainCount(Integer platformFaultD } /** - * Get the virtualMachines value. + * Get a list of references to all virtual machines in the availability set. * * @return the virtualMachines value */ @@ -99,7 +99,7 @@ public List virtualMachines() { } /** - * Set the virtualMachines value. + * Set a list of references to all virtual machines in the availability set. * * @param virtualMachines the virtualMachines value to set * @return the AvailabilitySetUpdate object itself. @@ -110,7 +110,7 @@ public AvailabilitySetUpdate withVirtualMachines(List virtualMachin } /** - * Get the statuses value. + * Get the resource status information. * * @return the statuses value */ @@ -119,7 +119,7 @@ public List statuses() { } /** - * Get the sku value. + * Get sku of the availability set. * * @return the sku value */ @@ -128,7 +128,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set sku of the availability set. * * @param sku the sku value to set * @return the AvailabilitySetUpdate object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySets.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySets.java index fc354bbb5fb5..3b77fc24a909 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySets.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/AvailabilitySets.java @@ -14,6 +14,7 @@ import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; import com.microsoft.azure.management.compute.v2017_12_01.implementation.AvailabilitySetsInner; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.compute.v2017_12_01.AvailabilitySetVirtualMachineSize; @@ -21,7 +22,7 @@ /** * Type representing AvailabilitySets. */ -public interface AvailabilitySets extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, HasInner { +public interface AvailabilitySets extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { /** * Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. * diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/BootDiagnostics.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/BootDiagnostics.java index d59fd7c2fa03..abde4fb15a84 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/BootDiagnostics.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/BootDiagnostics.java @@ -32,7 +32,7 @@ public class BootDiagnostics { private String storageUri; /** - * Get the enabled value. + * Get whether boot diagnostics should be enabled on the Virtual Machine. * * @return the enabled value */ @@ -41,7 +41,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set whether boot diagnostics should be enabled on the Virtual Machine. * * @param enabled the enabled value to set * @return the BootDiagnostics object itself. @@ -52,7 +52,7 @@ public BootDiagnostics withEnabled(Boolean enabled) { } /** - * Get the storageUri value. + * Get uri of the storage account to use for placing the console output and screenshot. * * @return the storageUri value */ @@ -61,7 +61,7 @@ public String storageUri() { } /** - * Set the storageUri value. + * Set uri of the storage account to use for placing the console output and screenshot. * * @param storageUri the storageUri value to set * @return the BootDiagnostics object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/BootDiagnosticsInstanceView.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/BootDiagnosticsInstanceView.java index f374f8673820..038592758e98 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/BootDiagnosticsInstanceView.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/BootDiagnosticsInstanceView.java @@ -27,7 +27,7 @@ public class BootDiagnosticsInstanceView { private String serialConsoleLogBlobUri; /** - * Get the consoleScreenshotBlobUri value. + * Get the console screenshot blob URI. * * @return the consoleScreenshotBlobUri value */ @@ -36,7 +36,7 @@ public String consoleScreenshotBlobUri() { } /** - * Set the consoleScreenshotBlobUri value. + * Set the console screenshot blob URI. * * @param consoleScreenshotBlobUri the consoleScreenshotBlobUri value to set * @return the BootDiagnosticsInstanceView object itself. @@ -47,7 +47,7 @@ public BootDiagnosticsInstanceView withConsoleScreenshotBlobUri(String consoleSc } /** - * Get the serialConsoleLogBlobUri value. + * Get the Linux serial console log blob Uri. * * @return the serialConsoleLogBlobUri value */ @@ -56,7 +56,7 @@ public String serialConsoleLogBlobUri() { } /** - * Set the serialConsoleLogBlobUri value. + * Set the Linux serial console log blob Uri. * * @param serialConsoleLogBlobUri the serialConsoleLogBlobUri value to set * @return the BootDiagnosticsInstanceView object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ComputeLongRunningOperationProperties.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ComputeLongRunningOperationProperties.java index b3871c2f9069..d14498f6bc55 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ComputeLongRunningOperationProperties.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ComputeLongRunningOperationProperties.java @@ -21,7 +21,7 @@ public class ComputeLongRunningOperationProperties { private Object output; /** - * Get the output value. + * Get operation output data (raw JSON). * * @return the output value */ @@ -30,7 +30,7 @@ public Object output() { } /** - * Set the output value. + * Set operation output data (raw JSON). * * @param output the output value to set * @return the ComputeLongRunningOperationProperties object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DataDisk.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DataDisk.java index 3e61f8aa104a..4301e7849006 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DataDisk.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DataDisk.java @@ -88,7 +88,7 @@ public class DataDisk { private ManagedDiskParameters managedDisk; /** - * Get the lun value. + * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */ @@ -97,7 +97,7 @@ public int lun() { } /** - * Set the lun value. + * Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @param lun the lun value to set * @return the DataDisk object itself. @@ -108,7 +108,7 @@ public DataDisk withLun(int lun) { } /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -117,7 +117,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the DataDisk object itself. @@ -128,7 +128,7 @@ public DataDisk withName(String name) { } /** - * Get the vhd value. + * Get the virtual hard disk. * * @return the vhd value */ @@ -137,7 +137,7 @@ public VirtualHardDisk vhd() { } /** - * Set the vhd value. + * Set the virtual hard disk. * * @param vhd the vhd value to set * @return the DataDisk object itself. @@ -148,7 +148,7 @@ public DataDisk withVhd(VirtualHardDisk vhd) { } /** - * Get the image value. + * Get the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. * * @return the image value */ @@ -157,7 +157,7 @@ public VirtualHardDisk image() { } /** - * Set the image value. + * Set the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. * * @param image the image value to set * @return the DataDisk object itself. @@ -168,7 +168,7 @@ public DataDisk withImage(VirtualHardDisk image) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -177,7 +177,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the DataDisk object itself. @@ -188,7 +188,7 @@ public DataDisk withCaching(CachingTypes caching) { } /** - * Get the writeAcceleratorEnabled value. + * Get specifies whether writeAccelerator should be enabled or disabled on the disk. * * @return the writeAcceleratorEnabled value */ @@ -197,7 +197,7 @@ public Boolean writeAcceleratorEnabled() { } /** - * Set the writeAcceleratorEnabled value. + * Set specifies whether writeAccelerator should be enabled or disabled on the disk. * * @param writeAcceleratorEnabled the writeAcceleratorEnabled value to set * @return the DataDisk object itself. @@ -208,7 +208,7 @@ public DataDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) { } /** - * Get the createOption value. + * Get specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */ @@ -217,7 +217,7 @@ public DiskCreateOptionTypes createOption() { } /** - * Set the createOption value. + * Set specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the DataDisk object itself. @@ -228,7 +228,7 @@ public DataDisk withCreateOption(DiskCreateOptionTypes createOption) { } /** - * Get the diskSizeGB value. + * Get specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -237,7 +237,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the DataDisk object itself. @@ -248,7 +248,7 @@ public DataDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -257,7 +257,7 @@ public ManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the DataDisk object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DataDiskImage.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DataDiskImage.java index a4641b82cb16..9bc924c3cd7a 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DataDiskImage.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DataDiskImage.java @@ -23,7 +23,7 @@ public class DataDiskImage { private Integer lun; /** - * Get the lun value. + * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiagnosticsProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiagnosticsProfile.java index 485d4e5892b6..9bdc138e1abc 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiagnosticsProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiagnosticsProfile.java @@ -27,7 +27,7 @@ public class DiagnosticsProfile { private BootDiagnostics bootDiagnostics; /** - * Get the bootDiagnostics value. + * Get boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> For Linux Virtual Machines, you can easily view the output of your console log. <br><br> For both Windows and Linux virtual machines, Azure also enables you to see a screenshot of the VM from the hypervisor. * * @return the bootDiagnostics value */ @@ -36,7 +36,7 @@ public BootDiagnostics bootDiagnostics() { } /** - * Set the bootDiagnostics value. + * Set boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> For Linux Virtual Machines, you can easily view the output of your console log. <br><br> For both Windows and Linux virtual machines, Azure also enables you to see a screenshot of the VM from the hypervisor. * * @param bootDiagnostics the bootDiagnostics value to set * @return the DiagnosticsProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiskEncryptionSettings.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiskEncryptionSettings.java index 6d8f1da0a575..9112faee31c9 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiskEncryptionSettings.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiskEncryptionSettings.java @@ -35,7 +35,7 @@ public class DiskEncryptionSettings { private Boolean enabled; /** - * Get the diskEncryptionKey value. + * Get specifies the location of the disk encryption key, which is a Key Vault Secret. * * @return the diskEncryptionKey value */ @@ -44,7 +44,7 @@ public KeyVaultSecretReference diskEncryptionKey() { } /** - * Set the diskEncryptionKey value. + * Set specifies the location of the disk encryption key, which is a Key Vault Secret. * * @param diskEncryptionKey the diskEncryptionKey value to set * @return the DiskEncryptionSettings object itself. @@ -55,7 +55,7 @@ public DiskEncryptionSettings withDiskEncryptionKey(KeyVaultSecretReference disk } /** - * Get the keyEncryptionKey value. + * Get specifies the location of the key encryption key in Key Vault. * * @return the keyEncryptionKey value */ @@ -64,7 +64,7 @@ public KeyVaultKeyReference keyEncryptionKey() { } /** - * Set the keyEncryptionKey value. + * Set specifies the location of the key encryption key in Key Vault. * * @param keyEncryptionKey the keyEncryptionKey value to set * @return the DiskEncryptionSettings object itself. @@ -75,7 +75,7 @@ public DiskEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncry } /** - * Get the enabled value. + * Get specifies whether disk encryption should be enabled on the virtual machine. * * @return the enabled value */ @@ -84,7 +84,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set specifies whether disk encryption should be enabled on the virtual machine. * * @param enabled the enabled value to set * @return the DiskEncryptionSettings object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiskInstanceView.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiskInstanceView.java index edcd01330973..3f91db1d3b71 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiskInstanceView.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/DiskInstanceView.java @@ -35,7 +35,7 @@ public class DiskInstanceView { private List statuses; /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -44,7 +44,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the DiskInstanceView object itself. @@ -55,7 +55,7 @@ public DiskInstanceView withName(String name) { } /** - * Get the encryptionSettings value. + * Get specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15. * * @return the encryptionSettings value */ @@ -64,7 +64,7 @@ public List encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15. * * @param encryptionSettings the encryptionSettings value to set * @return the DiskInstanceView object itself. @@ -75,7 +75,7 @@ public DiskInstanceView withEncryptionSettings(List encr } /** - * Get the statuses value. + * Get the resource status information. * * @return the statuses value */ @@ -84,7 +84,7 @@ public List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the DiskInstanceView object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/HardwareProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/HardwareProfile.java index 0de0d9e4a29b..13dd315fb367 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/HardwareProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/HardwareProfile.java @@ -79,7 +79,7 @@ public class HardwareProfile { private VirtualMachineSizeTypes vmSize; /** - * Get the vmSize value. + * Get specifies the size of the virtual machine. For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: <br><br> [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes) <br><br> [List all available virtual machine sizes in a region](https://docs.microsoft.com/rest/api/compute/virtualmachinesizes/list) <br><br> [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', 'Standard_B2ms', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3', 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_DS13-4_v2', 'Standard_DS13-2_v2', 'Standard_DS14-8_v2', 'Standard_DS14-4_v2', 'Standard_E2_v3', 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', 'Standard_E32_v3', 'Standard_E64_v3', 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_E32-16_v3', 'Standard_E32-8s_v3', 'Standard_E64-32s_v3', 'Standard_E64-16s_v3', 'Standard_F1', 'Standard_F2', 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', 'Standard_F2s_v2', 'Standard_F4s_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_GS4-8', 'Standard_GS4-4', 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_M64s', 'Standard_M64ms', 'Standard_M128s', 'Standard_M128ms', 'Standard_M64-32ms', 'Standard_M64-16ms', 'Standard_M128-64ms', 'Standard_M128-32ms', 'Standard_NC6', 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NC6s_v2', 'Standard_NC12s_v2', 'Standard_NC24s_v2', 'Standard_NC24rs_v2', 'Standard_NC6s_v3', 'Standard_NC12s_v3', 'Standard_NC24s_v3', 'Standard_NC24rs_v3', 'Standard_ND6s', 'Standard_ND12s', 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24'. * * @return the vmSize value */ @@ -88,7 +88,7 @@ public VirtualMachineSizeTypes vmSize() { } /** - * Set the vmSize value. + * Set specifies the size of the virtual machine. For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: <br><br> [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes) <br><br> [List all available virtual machine sizes in a region](https://docs.microsoft.com/rest/api/compute/virtualmachinesizes/list) <br><br> [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', 'Standard_B2ms', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3', 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_DS13-4_v2', 'Standard_DS13-2_v2', 'Standard_DS14-8_v2', 'Standard_DS14-4_v2', 'Standard_E2_v3', 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', 'Standard_E32_v3', 'Standard_E64_v3', 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_E32-16_v3', 'Standard_E32-8s_v3', 'Standard_E64-32s_v3', 'Standard_E64-16s_v3', 'Standard_F1', 'Standard_F2', 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', 'Standard_F2s_v2', 'Standard_F4s_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_GS4-8', 'Standard_GS4-4', 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_M64s', 'Standard_M64ms', 'Standard_M128s', 'Standard_M128ms', 'Standard_M64-32ms', 'Standard_M64-16ms', 'Standard_M128-64ms', 'Standard_M128-32ms', 'Standard_NC6', 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NC6s_v2', 'Standard_NC12s_v2', 'Standard_NC24s_v2', 'Standard_NC24rs_v2', 'Standard_NC6s_v3', 'Standard_NC12s_v3', 'Standard_NC24s_v3', 'Standard_NC24rs_v3', 'Standard_ND6s', 'Standard_ND12s', 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24'. * * @param vmSize the vmSize value to set * @return the HardwareProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Image.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Image.java index ebfaa9082c5f..1fa9d68824d5 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Image.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Image.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_12_01.implementation.ComputeManager; import com.microsoft.azure.SubResource; diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageDataDisk.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageDataDisk.java index 2c479d174eeb..b8b8fff74e98 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageDataDisk.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageDataDisk.java @@ -68,7 +68,7 @@ public class ImageDataDisk { private StorageAccountTypes storageAccountType; /** - * Get the lun value. + * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */ @@ -77,7 +77,7 @@ public int lun() { } /** - * Set the lun value. + * Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @param lun the lun value to set * @return the ImageDataDisk object itself. @@ -88,7 +88,7 @@ public ImageDataDisk withLun(int lun) { } /** - * Get the snapshot value. + * Get the snapshot. * * @return the snapshot value */ @@ -97,7 +97,7 @@ public SubResource snapshot() { } /** - * Set the snapshot value. + * Set the snapshot. * * @param snapshot the snapshot value to set * @return the ImageDataDisk object itself. @@ -108,7 +108,7 @@ public ImageDataDisk withSnapshot(SubResource snapshot) { } /** - * Get the managedDisk value. + * Get the managedDisk. * * @return the managedDisk value */ @@ -117,7 +117,7 @@ public SubResource managedDisk() { } /** - * Set the managedDisk value. + * Set the managedDisk. * * @param managedDisk the managedDisk value to set * @return the ImageDataDisk object itself. @@ -128,7 +128,7 @@ public ImageDataDisk withManagedDisk(SubResource managedDisk) { } /** - * Get the blobUri value. + * Get the Virtual Hard Disk. * * @return the blobUri value */ @@ -137,7 +137,7 @@ public String blobUri() { } /** - * Set the blobUri value. + * Set the Virtual Hard Disk. * * @param blobUri the blobUri value to set * @return the ImageDataDisk object itself. @@ -148,7 +148,7 @@ public ImageDataDisk withBlobUri(String blobUri) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -157,7 +157,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the ImageDataDisk object itself. @@ -168,7 +168,7 @@ public ImageDataDisk withCaching(CachingTypes caching) { } /** - * Get the diskSizeGB value. + * Get specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -177,7 +177,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the ImageDataDisk object itself. @@ -188,7 +188,7 @@ public ImageDataDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the storageAccountType value. + * Get specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -197,7 +197,7 @@ public StorageAccountTypes storageAccountType() { } /** - * Set the storageAccountType value. + * Set specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the ImageDataDisk object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageOSDisk.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageOSDisk.java index 4403e1300004..f56294fef177 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageOSDisk.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageOSDisk.java @@ -76,7 +76,7 @@ public class ImageOSDisk { private StorageAccountTypes storageAccountType; /** - * Get the osType value. + * Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -85,7 +85,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the ImageOSDisk object itself. @@ -96,7 +96,7 @@ public ImageOSDisk withOsType(OperatingSystemTypes osType) { } /** - * Get the osState value. + * Get the OS State. Possible values include: 'Generalized', 'Specialized'. * * @return the osState value */ @@ -105,7 +105,7 @@ public OperatingSystemStateTypes osState() { } /** - * Set the osState value. + * Set the OS State. Possible values include: 'Generalized', 'Specialized'. * * @param osState the osState value to set * @return the ImageOSDisk object itself. @@ -116,7 +116,7 @@ public ImageOSDisk withOsState(OperatingSystemStateTypes osState) { } /** - * Get the snapshot value. + * Get the snapshot. * * @return the snapshot value */ @@ -125,7 +125,7 @@ public SubResource snapshot() { } /** - * Set the snapshot value. + * Set the snapshot. * * @param snapshot the snapshot value to set * @return the ImageOSDisk object itself. @@ -136,7 +136,7 @@ public ImageOSDisk withSnapshot(SubResource snapshot) { } /** - * Get the managedDisk value. + * Get the managedDisk. * * @return the managedDisk value */ @@ -145,7 +145,7 @@ public SubResource managedDisk() { } /** - * Set the managedDisk value. + * Set the managedDisk. * * @param managedDisk the managedDisk value to set * @return the ImageOSDisk object itself. @@ -156,7 +156,7 @@ public ImageOSDisk withManagedDisk(SubResource managedDisk) { } /** - * Get the blobUri value. + * Get the Virtual Hard Disk. * * @return the blobUri value */ @@ -165,7 +165,7 @@ public String blobUri() { } /** - * Set the blobUri value. + * Set the Virtual Hard Disk. * * @param blobUri the blobUri value to set * @return the ImageOSDisk object itself. @@ -176,7 +176,7 @@ public ImageOSDisk withBlobUri(String blobUri) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -185,7 +185,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the ImageOSDisk object itself. @@ -196,7 +196,7 @@ public ImageOSDisk withCaching(CachingTypes caching) { } /** - * Get the diskSizeGB value. + * Get specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -205,7 +205,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the ImageOSDisk object itself. @@ -216,7 +216,7 @@ public ImageOSDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the storageAccountType value. + * Get specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -225,7 +225,7 @@ public StorageAccountTypes storageAccountType() { } /** - * Set the storageAccountType value. + * Set specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the ImageOSDisk object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageReference.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageReference.java index 2dc2dcc9cc55..7b4415e5cc72 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageReference.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageReference.java @@ -50,7 +50,7 @@ public class ImageReference extends SubResource { private String version; /** - * Get the publisher value. + * Get the image publisher. * * @return the publisher value */ @@ -59,7 +59,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the image publisher. * * @param publisher the publisher value to set * @return the ImageReference object itself. @@ -70,7 +70,7 @@ public ImageReference withPublisher(String publisher) { } /** - * Get the offer value. + * Get specifies the offer of the platform image or marketplace image used to create the virtual machine. * * @return the offer value */ @@ -79,7 +79,7 @@ public String offer() { } /** - * Set the offer value. + * Set specifies the offer of the platform image or marketplace image used to create the virtual machine. * * @param offer the offer value to set * @return the ImageReference object itself. @@ -90,7 +90,7 @@ public ImageReference withOffer(String offer) { } /** - * Get the sku value. + * Get the image SKU. * * @return the sku value */ @@ -99,7 +99,7 @@ public String sku() { } /** - * Set the sku value. + * Set the image SKU. * * @param sku the sku value to set * @return the ImageReference object itself. @@ -110,7 +110,7 @@ public ImageReference withSku(String sku) { } /** - * Get the version value. + * Get specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. * * @return the version value */ @@ -119,7 +119,7 @@ public String version() { } /** - * Set the version value. + * Set specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. * * @param version the version value to set * @return the ImageReference object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageStorageProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageStorageProfile.java index 175d97c41ec5..d6d17915afdf 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageStorageProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageStorageProfile.java @@ -42,7 +42,7 @@ public class ImageStorageProfile { private Boolean zoneResilient; /** - * Get the osDisk value. + * Get specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the osDisk value */ @@ -51,7 +51,7 @@ public ImageOSDisk osDisk() { } /** - * Set the osDisk value. + * Set specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param osDisk the osDisk value to set * @return the ImageStorageProfile object itself. @@ -62,7 +62,7 @@ public ImageStorageProfile withOsDisk(ImageOSDisk osDisk) { } /** - * Get the dataDisks value. + * Get specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the dataDisks value */ @@ -71,7 +71,7 @@ public List dataDisks() { } /** - * Set the dataDisks value. + * Set specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param dataDisks the dataDisks value to set * @return the ImageStorageProfile object itself. @@ -82,7 +82,7 @@ public ImageStorageProfile withDataDisks(List dataDisks) { } /** - * Get the zoneResilient value. + * Get specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS). * * @return the zoneResilient value */ @@ -91,7 +91,7 @@ public Boolean zoneResilient() { } /** - * Set the zoneResilient value. + * Set specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS). * * @param zoneResilient the zoneResilient value to set * @return the ImageStorageProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageUpdate.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageUpdate.java index f365e080bb14..a618273c6fbd 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageUpdate.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ImageUpdate.java @@ -36,7 +36,7 @@ public class ImageUpdate extends UpdateResource { private String provisioningState; /** - * Get the sourceVirtualMachine value. + * Get the source virtual machine from which Image is created. * * @return the sourceVirtualMachine value */ @@ -45,7 +45,7 @@ public SubResource sourceVirtualMachine() { } /** - * Set the sourceVirtualMachine value. + * Set the source virtual machine from which Image is created. * * @param sourceVirtualMachine the sourceVirtualMachine value to set * @return the ImageUpdate object itself. @@ -56,7 +56,7 @@ public ImageUpdate withSourceVirtualMachine(SubResource sourceVirtualMachine) { } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -65,7 +65,7 @@ public ImageStorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the ImageUpdate object itself. @@ -76,7 +76,7 @@ public ImageUpdate withStorageProfile(ImageStorageProfile storageProfile) { } /** - * Get the provisioningState value. + * Get the provisioning state. * * @return the provisioningState value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/InnerError.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/InnerError.java index f6eb66554eed..05fc927e8af5 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/InnerError.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/InnerError.java @@ -27,7 +27,7 @@ public class InnerError { private String errordetail; /** - * Get the exceptiontype value. + * Get the exception type. * * @return the exceptiontype value */ @@ -36,7 +36,7 @@ public String exceptiontype() { } /** - * Set the exceptiontype value. + * Set the exception type. * * @param exceptiontype the exceptiontype value to set * @return the InnerError object itself. @@ -47,7 +47,7 @@ public InnerError withExceptiontype(String exceptiontype) { } /** - * Get the errordetail value. + * Get the internal error message or exception dump. * * @return the errordetail value */ @@ -56,7 +56,7 @@ public String errordetail() { } /** - * Set the errordetail value. + * Set the internal error message or exception dump. * * @param errordetail the errordetail value to set * @return the InnerError object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/InstanceViewStatus.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/InstanceViewStatus.java index 44231fbbfb28..b9c74cb5d474 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/InstanceViewStatus.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/InstanceViewStatus.java @@ -46,7 +46,7 @@ public class InstanceViewStatus { private DateTime time; /** - * Get the code value. + * Get the status code. * * @return the code value */ @@ -55,7 +55,7 @@ public String code() { } /** - * Set the code value. + * Set the status code. * * @param code the code value to set * @return the InstanceViewStatus object itself. @@ -66,7 +66,7 @@ public InstanceViewStatus withCode(String code) { } /** - * Get the level value. + * Get the level code. Possible values include: 'Info', 'Warning', 'Error'. * * @return the level value */ @@ -75,7 +75,7 @@ public StatusLevelTypes level() { } /** - * Set the level value. + * Set the level code. Possible values include: 'Info', 'Warning', 'Error'. * * @param level the level value to set * @return the InstanceViewStatus object itself. @@ -86,7 +86,7 @@ public InstanceViewStatus withLevel(StatusLevelTypes level) { } /** - * Get the displayStatus value. + * Get the short localizable label for the status. * * @return the displayStatus value */ @@ -95,7 +95,7 @@ public String displayStatus() { } /** - * Set the displayStatus value. + * Set the short localizable label for the status. * * @param displayStatus the displayStatus value to set * @return the InstanceViewStatus object itself. @@ -106,7 +106,7 @@ public InstanceViewStatus withDisplayStatus(String displayStatus) { } /** - * Get the message value. + * Get the detailed status message, including for alerts and error messages. * * @return the message value */ @@ -115,7 +115,7 @@ public String message() { } /** - * Set the message value. + * Set the detailed status message, including for alerts and error messages. * * @param message the message value to set * @return the InstanceViewStatus object itself. @@ -126,7 +126,7 @@ public InstanceViewStatus withMessage(String message) { } /** - * Get the time value. + * Get the time of the status. * * @return the time value */ @@ -135,7 +135,7 @@ public DateTime time() { } /** - * Set the time value. + * Set the time of the status. * * @param time the time value to set * @return the InstanceViewStatus object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/KeyVaultKeyReference.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/KeyVaultKeyReference.java index 660eedd02e02..5a4b54244b16 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/KeyVaultKeyReference.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/KeyVaultKeyReference.java @@ -28,7 +28,7 @@ public class KeyVaultKeyReference { private SubResource sourceVault; /** - * Get the keyUrl value. + * Get the URL referencing a key encryption key in Key Vault. * * @return the keyUrl value */ @@ -37,7 +37,7 @@ public String keyUrl() { } /** - * Set the keyUrl value. + * Set the URL referencing a key encryption key in Key Vault. * * @param keyUrl the keyUrl value to set * @return the KeyVaultKeyReference object itself. @@ -48,7 +48,7 @@ public KeyVaultKeyReference withKeyUrl(String keyUrl) { } /** - * Get the sourceVault value. + * Get the relative URL of the Key Vault containing the key. * * @return the sourceVault value */ @@ -57,7 +57,7 @@ public SubResource sourceVault() { } /** - * Set the sourceVault value. + * Set the relative URL of the Key Vault containing the key. * * @param sourceVault the sourceVault value to set * @return the KeyVaultKeyReference object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/KeyVaultSecretReference.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/KeyVaultSecretReference.java index c64fffff70d3..d950e13de31e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/KeyVaultSecretReference.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/KeyVaultSecretReference.java @@ -28,7 +28,7 @@ public class KeyVaultSecretReference { private SubResource sourceVault; /** - * Get the secretUrl value. + * Get the URL referencing a secret in a Key Vault. * * @return the secretUrl value */ @@ -37,7 +37,7 @@ public String secretUrl() { } /** - * Set the secretUrl value. + * Set the URL referencing a secret in a Key Vault. * * @param secretUrl the secretUrl value to set * @return the KeyVaultSecretReference object itself. @@ -48,7 +48,7 @@ public KeyVaultSecretReference withSecretUrl(String secretUrl) { } /** - * Get the sourceVault value. + * Get the relative URL of the Key Vault containing the secret. * * @return the sourceVault value */ @@ -57,7 +57,7 @@ public SubResource sourceVault() { } /** - * Set the sourceVault value. + * Set the relative URL of the Key Vault containing the secret. * * @param sourceVault the sourceVault value to set * @return the KeyVaultSecretReference object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LinuxConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LinuxConfiguration.java index dd065115e926..1583ee4dc3dd 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LinuxConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LinuxConfiguration.java @@ -33,7 +33,7 @@ public class LinuxConfiguration { private SshConfiguration ssh; /** - * Get the disablePasswordAuthentication value. + * Get specifies whether password authentication should be disabled. * * @return the disablePasswordAuthentication value */ @@ -42,7 +42,7 @@ public Boolean disablePasswordAuthentication() { } /** - * Set the disablePasswordAuthentication value. + * Set specifies whether password authentication should be disabled. * * @param disablePasswordAuthentication the disablePasswordAuthentication value to set * @return the LinuxConfiguration object itself. @@ -53,7 +53,7 @@ public LinuxConfiguration withDisablePasswordAuthentication(Boolean disablePassw } /** - * Get the ssh value. + * Get specifies the ssh key configuration for a Linux OS. * * @return the ssh value */ @@ -62,7 +62,7 @@ public SshConfiguration ssh() { } /** - * Set the ssh value. + * Set specifies the ssh key configuration for a Linux OS. * * @param ssh the ssh value to set * @return the LinuxConfiguration object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LogAnalyticsInputBase.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LogAnalyticsInputBase.java index 32315ac3bf96..67c7e05d4059 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LogAnalyticsInputBase.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LogAnalyticsInputBase.java @@ -53,7 +53,7 @@ public class LogAnalyticsInputBase { private Boolean groupByResourceName; /** - * Get the blobContainerSasUri value. + * Get sAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. * * @return the blobContainerSasUri value */ @@ -62,7 +62,7 @@ public String blobContainerSasUri() { } /** - * Set the blobContainerSasUri value. + * Set sAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. * * @param blobContainerSasUri the blobContainerSasUri value to set * @return the LogAnalyticsInputBase object itself. @@ -73,7 +73,7 @@ public LogAnalyticsInputBase withBlobContainerSasUri(String blobContainerSasUri) } /** - * Get the fromTime value. + * Get from time of the query. * * @return the fromTime value */ @@ -82,7 +82,7 @@ public DateTime fromTime() { } /** - * Set the fromTime value. + * Set from time of the query. * * @param fromTime the fromTime value to set * @return the LogAnalyticsInputBase object itself. @@ -93,7 +93,7 @@ public LogAnalyticsInputBase withFromTime(DateTime fromTime) { } /** - * Get the toTime value. + * Get to time of the query. * * @return the toTime value */ @@ -102,7 +102,7 @@ public DateTime toTime() { } /** - * Set the toTime value. + * Set to time of the query. * * @param toTime the toTime value to set * @return the LogAnalyticsInputBase object itself. @@ -113,7 +113,7 @@ public LogAnalyticsInputBase withToTime(DateTime toTime) { } /** - * Get the groupByThrottlePolicy value. + * Get group query result by Throttle Policy applied. * * @return the groupByThrottlePolicy value */ @@ -122,7 +122,7 @@ public Boolean groupByThrottlePolicy() { } /** - * Set the groupByThrottlePolicy value. + * Set group query result by Throttle Policy applied. * * @param groupByThrottlePolicy the groupByThrottlePolicy value to set * @return the LogAnalyticsInputBase object itself. @@ -133,7 +133,7 @@ public LogAnalyticsInputBase withGroupByThrottlePolicy(Boolean groupByThrottlePo } /** - * Get the groupByOperationName value. + * Get group query result by by Operation Name. * * @return the groupByOperationName value */ @@ -142,7 +142,7 @@ public Boolean groupByOperationName() { } /** - * Set the groupByOperationName value. + * Set group query result by by Operation Name. * * @param groupByOperationName the groupByOperationName value to set * @return the LogAnalyticsInputBase object itself. @@ -153,7 +153,7 @@ public LogAnalyticsInputBase withGroupByOperationName(Boolean groupByOperationNa } /** - * Get the groupByResourceName value. + * Get group query result by Resource Name. * * @return the groupByResourceName value */ @@ -162,7 +162,7 @@ public Boolean groupByResourceName() { } /** - * Set the groupByResourceName value. + * Set group query result by Resource Name. * * @param groupByResourceName the groupByResourceName value to set * @return the LogAnalyticsInputBase object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LogAnalyticsOutput.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LogAnalyticsOutput.java index ffadc4edb9bc..be24b5f7aae9 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LogAnalyticsOutput.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/LogAnalyticsOutput.java @@ -21,7 +21,7 @@ public class LogAnalyticsOutput { private String output; /** - * Get the output value. + * Get output file Uri path to blob container. * * @return the output value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/MaintenanceRedeployStatus.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/MaintenanceRedeployStatus.java index b0f8b898bff7..96357e6bcf37 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/MaintenanceRedeployStatus.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/MaintenanceRedeployStatus.java @@ -59,7 +59,7 @@ public class MaintenanceRedeployStatus { private String lastOperationMessage; /** - * Get the isCustomerInitiatedMaintenanceAllowed value. + * Get true, if customer is allowed to perform Maintenance. * * @return the isCustomerInitiatedMaintenanceAllowed value */ @@ -68,7 +68,7 @@ public Boolean isCustomerInitiatedMaintenanceAllowed() { } /** - * Set the isCustomerInitiatedMaintenanceAllowed value. + * Set true, if customer is allowed to perform Maintenance. * * @param isCustomerInitiatedMaintenanceAllowed the isCustomerInitiatedMaintenanceAllowed value to set * @return the MaintenanceRedeployStatus object itself. @@ -79,7 +79,7 @@ public MaintenanceRedeployStatus withIsCustomerInitiatedMaintenanceAllowed(Boole } /** - * Get the preMaintenanceWindowStartTime value. + * Get start Time for the Pre Maintenance Window. * * @return the preMaintenanceWindowStartTime value */ @@ -88,7 +88,7 @@ public DateTime preMaintenanceWindowStartTime() { } /** - * Set the preMaintenanceWindowStartTime value. + * Set start Time for the Pre Maintenance Window. * * @param preMaintenanceWindowStartTime the preMaintenanceWindowStartTime value to set * @return the MaintenanceRedeployStatus object itself. @@ -99,7 +99,7 @@ public MaintenanceRedeployStatus withPreMaintenanceWindowStartTime(DateTime preM } /** - * Get the preMaintenanceWindowEndTime value. + * Get end Time for the Pre Maintenance Window. * * @return the preMaintenanceWindowEndTime value */ @@ -108,7 +108,7 @@ public DateTime preMaintenanceWindowEndTime() { } /** - * Set the preMaintenanceWindowEndTime value. + * Set end Time for the Pre Maintenance Window. * * @param preMaintenanceWindowEndTime the preMaintenanceWindowEndTime value to set * @return the MaintenanceRedeployStatus object itself. @@ -119,7 +119,7 @@ public MaintenanceRedeployStatus withPreMaintenanceWindowEndTime(DateTime preMai } /** - * Get the maintenanceWindowStartTime value. + * Get start Time for the Maintenance Window. * * @return the maintenanceWindowStartTime value */ @@ -128,7 +128,7 @@ public DateTime maintenanceWindowStartTime() { } /** - * Set the maintenanceWindowStartTime value. + * Set start Time for the Maintenance Window. * * @param maintenanceWindowStartTime the maintenanceWindowStartTime value to set * @return the MaintenanceRedeployStatus object itself. @@ -139,7 +139,7 @@ public MaintenanceRedeployStatus withMaintenanceWindowStartTime(DateTime mainten } /** - * Get the maintenanceWindowEndTime value. + * Get end Time for the Maintenance Window. * * @return the maintenanceWindowEndTime value */ @@ -148,7 +148,7 @@ public DateTime maintenanceWindowEndTime() { } /** - * Set the maintenanceWindowEndTime value. + * Set end Time for the Maintenance Window. * * @param maintenanceWindowEndTime the maintenanceWindowEndTime value to set * @return the MaintenanceRedeployStatus object itself. @@ -159,7 +159,7 @@ public MaintenanceRedeployStatus withMaintenanceWindowEndTime(DateTime maintenan } /** - * Get the lastOperationResultCode value. + * Get the Last Maintenance Operation Result Code. Possible values include: 'None', 'RetryLater', 'MaintenanceAborted', 'MaintenanceCompleted'. * * @return the lastOperationResultCode value */ @@ -168,7 +168,7 @@ public MaintenanceOperationResultCodeTypes lastOperationResultCode() { } /** - * Set the lastOperationResultCode value. + * Set the Last Maintenance Operation Result Code. Possible values include: 'None', 'RetryLater', 'MaintenanceAborted', 'MaintenanceCompleted'. * * @param lastOperationResultCode the lastOperationResultCode value to set * @return the MaintenanceRedeployStatus object itself. @@ -179,7 +179,7 @@ public MaintenanceRedeployStatus withLastOperationResultCode(MaintenanceOperatio } /** - * Get the lastOperationMessage value. + * Get message returned for the last Maintenance Operation. * * @return the lastOperationMessage value */ @@ -188,7 +188,7 @@ public String lastOperationMessage() { } /** - * Set the lastOperationMessage value. + * Set message returned for the last Maintenance Operation. * * @param lastOperationMessage the lastOperationMessage value to set * @return the MaintenanceRedeployStatus object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ManagedDiskParameters.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ManagedDiskParameters.java index f0a64bfd5b71..cc9c9e212073 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ManagedDiskParameters.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/ManagedDiskParameters.java @@ -24,7 +24,7 @@ public class ManagedDiskParameters extends SubResource { private StorageAccountTypes storageAccountType; /** - * Get the storageAccountType value. + * Get specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -33,7 +33,7 @@ public StorageAccountTypes storageAccountType() { } /** - * Set the storageAccountType value. + * Set specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the ManagedDiskParameters object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/NetworkInterfaceReference.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/NetworkInterfaceReference.java index f2e1554a4664..04a43568b56c 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/NetworkInterfaceReference.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/NetworkInterfaceReference.java @@ -25,7 +25,7 @@ public class NetworkInterfaceReference extends SubResource { private Boolean primary; /** - * Get the primary value. + * Get specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @return the primary value */ @@ -34,7 +34,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @param primary the primary value to set * @return the NetworkInterfaceReference object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/NetworkProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/NetworkProfile.java index 4df59c458a67..a5b70bffd93f 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/NetworkProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/NetworkProfile.java @@ -23,7 +23,7 @@ public class NetworkProfile { private List networkInterfaces; /** - * Get the networkInterfaces value. + * Get specifies the list of resource Ids for the network interfaces associated with the virtual machine. * * @return the networkInterfaces value */ @@ -32,7 +32,7 @@ public List networkInterfaces() { } /** - * Set the networkInterfaces value. + * Set specifies the list of resource Ids for the network interfaces associated with the virtual machine. * * @param networkInterfaces the networkInterfaces value to set * @return the NetworkProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSDisk.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSDisk.java index 08aaf14028c6..ea16de6858a7 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSDisk.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSDisk.java @@ -100,7 +100,7 @@ public class OSDisk { private ManagedDiskParameters managedDisk; /** - * Get the osType value. + * Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -109,7 +109,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the OSDisk object itself. @@ -120,7 +120,7 @@ public OSDisk withOsType(OperatingSystemTypes osType) { } /** - * Get the encryptionSettings value. + * Get specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15. * * @return the encryptionSettings value */ @@ -129,7 +129,7 @@ public DiskEncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15. * * @param encryptionSettings the encryptionSettings value to set * @return the OSDisk object itself. @@ -140,7 +140,7 @@ public OSDisk withEncryptionSettings(DiskEncryptionSettings encryptionSettings) } /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -149,7 +149,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the OSDisk object itself. @@ -160,7 +160,7 @@ public OSDisk withName(String name) { } /** - * Get the vhd value. + * Get the virtual hard disk. * * @return the vhd value */ @@ -169,7 +169,7 @@ public VirtualHardDisk vhd() { } /** - * Set the vhd value. + * Set the virtual hard disk. * * @param vhd the vhd value to set * @return the OSDisk object itself. @@ -180,7 +180,7 @@ public OSDisk withVhd(VirtualHardDisk vhd) { } /** - * Get the image value. + * Get the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. * * @return the image value */ @@ -189,7 +189,7 @@ public VirtualHardDisk image() { } /** - * Set the image value. + * Set the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. * * @param image the image value to set * @return the OSDisk object itself. @@ -200,7 +200,7 @@ public OSDisk withImage(VirtualHardDisk image) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -209,7 +209,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the OSDisk object itself. @@ -220,7 +220,7 @@ public OSDisk withCaching(CachingTypes caching) { } /** - * Get the writeAcceleratorEnabled value. + * Get specifies whether writeAccelerator should be enabled or disabled on the disk. * * @return the writeAcceleratorEnabled value */ @@ -229,7 +229,7 @@ public Boolean writeAcceleratorEnabled() { } /** - * Set the writeAcceleratorEnabled value. + * Set specifies whether writeAccelerator should be enabled or disabled on the disk. * * @param writeAcceleratorEnabled the writeAcceleratorEnabled value to set * @return the OSDisk object itself. @@ -240,7 +240,7 @@ public OSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) { } /** - * Get the createOption value. + * Get specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */ @@ -249,7 +249,7 @@ public DiskCreateOptionTypes createOption() { } /** - * Set the createOption value. + * Set specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the OSDisk object itself. @@ -260,7 +260,7 @@ public OSDisk withCreateOption(DiskCreateOptionTypes createOption) { } /** - * Get the diskSizeGB value. + * Get specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -269,7 +269,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the OSDisk object itself. @@ -280,7 +280,7 @@ public OSDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -289,7 +289,7 @@ public ManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the OSDisk object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSDiskImage.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSDiskImage.java index 38d51530f40c..bf17d019ec67 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSDiskImage.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSDiskImage.java @@ -22,7 +22,7 @@ public class OSDiskImage { private OperatingSystemTypes operatingSystem; /** - * Get the operatingSystem value. + * Get the operating system of the osDiskImage. Possible values include: 'Windows', 'Linux'. * * @return the operatingSystem value */ @@ -31,7 +31,7 @@ public OperatingSystemTypes operatingSystem() { } /** - * Set the operatingSystem value. + * Set the operating system of the osDiskImage. Possible values include: 'Windows', 'Linux'. * * @param operatingSystem the operatingSystem value to set * @return the OSDiskImage object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSProfile.java index f4489702f4f1..cd0a248ce850 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/OSProfile.java @@ -106,7 +106,7 @@ public class OSProfile { private List secrets; /** - * Get the computerName value. + * Get specifies the host OS name of the virtual machine. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). * * @return the computerName value */ @@ -115,7 +115,7 @@ public String computerName() { } /** - * Set the computerName value. + * Set specifies the host OS name of the virtual machine. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). * * @param computerName the computerName value to set * @return the OSProfile object itself. @@ -126,7 +126,7 @@ public OSProfile withComputerName(String computerName) { } /** - * Get the adminUsername value. + * Get specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the adminUsername value */ @@ -135,7 +135,7 @@ public String adminUsername() { } /** - * Set the adminUsername value. + * Set specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param adminUsername the adminUsername value to set * @return the OSProfile object itself. @@ -146,7 +146,7 @@ public OSProfile withAdminUsername(String adminUsername) { } /** - * Get the adminPassword value. + * Get specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password). * * @return the adminPassword value */ @@ -155,7 +155,7 @@ public String adminPassword() { } /** - * Set the adminPassword value. + * Set specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password). * * @param adminPassword the adminPassword value to set * @return the OSProfile object itself. @@ -166,7 +166,7 @@ public OSProfile withAdminPassword(String adminPassword) { } /** - * Get the customData value. + * Get specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the customData value */ @@ -175,7 +175,7 @@ public String customData() { } /** - * Set the customData value. + * Set specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param customData the customData value to set * @return the OSProfile object itself. @@ -186,7 +186,7 @@ public OSProfile withCustomData(String customData) { } /** - * Get the windowsConfiguration value. + * Get specifies Windows operating system settings on the virtual machine. * * @return the windowsConfiguration value */ @@ -195,7 +195,7 @@ public WindowsConfiguration windowsConfiguration() { } /** - * Set the windowsConfiguration value. + * Set specifies Windows operating system settings on the virtual machine. * * @param windowsConfiguration the windowsConfiguration value to set * @return the OSProfile object itself. @@ -206,7 +206,7 @@ public OSProfile withWindowsConfiguration(WindowsConfiguration windowsConfigurat } /** - * Get the linuxConfiguration value. + * Get specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the linuxConfiguration value */ @@ -215,7 +215,7 @@ public LinuxConfiguration linuxConfiguration() { } /** - * Set the linuxConfiguration value. + * Set specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param linuxConfiguration the linuxConfiguration value to set * @return the OSProfile object itself. @@ -226,7 +226,7 @@ public OSProfile withLinuxConfiguration(LinuxConfiguration linuxConfiguration) { } /** - * Get the secrets value. + * Get specifies set of certificates that should be installed onto the virtual machine. * * @return the secrets value */ @@ -235,7 +235,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set specifies set of certificates that should be installed onto the virtual machine. * * @param secrets the secrets value to set * @return the OSProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Plan.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Plan.java index 706959e783f6..c558718b558e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Plan.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Plan.java @@ -45,7 +45,7 @@ public class Plan { private String promotionCode; /** - * Get the name value. + * Get the plan ID. * * @return the name value */ @@ -54,7 +54,7 @@ public String name() { } /** - * Set the name value. + * Set the plan ID. * * @param name the name value to set * @return the Plan object itself. @@ -65,7 +65,7 @@ public Plan withName(String name) { } /** - * Get the publisher value. + * Get the publisher ID. * * @return the publisher value */ @@ -74,7 +74,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the publisher ID. * * @param publisher the publisher value to set * @return the Plan object itself. @@ -85,7 +85,7 @@ public Plan withPublisher(String publisher) { } /** - * Get the product value. + * Get specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @return the product value */ @@ -94,7 +94,7 @@ public String product() { } /** - * Set the product value. + * Set specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @param product the product value to set * @return the Plan object itself. @@ -105,7 +105,7 @@ public Plan withProduct(String product) { } /** - * Get the promotionCode value. + * Get the promotion code. * * @return the promotionCode value */ @@ -114,7 +114,7 @@ public String promotionCode() { } /** - * Set the promotionCode value. + * Set the promotion code. * * @param promotionCode the promotionCode value to set * @return the Plan object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/PurchasePlan.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/PurchasePlan.java index 2c35d99d844d..07ecdb4dff25 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/PurchasePlan.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/PurchasePlan.java @@ -35,7 +35,7 @@ public class PurchasePlan { private String product; /** - * Get the publisher value. + * Get the publisher ID. * * @return the publisher value */ @@ -44,7 +44,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the publisher ID. * * @param publisher the publisher value to set * @return the PurchasePlan object itself. @@ -55,7 +55,7 @@ public PurchasePlan withPublisher(String publisher) { } /** - * Get the name value. + * Get the plan ID. * * @return the name value */ @@ -64,7 +64,7 @@ public String name() { } /** - * Set the name value. + * Set the plan ID. * * @param name the name value to set * @return the PurchasePlan object itself. @@ -75,7 +75,7 @@ public PurchasePlan withName(String name) { } /** - * Get the product value. + * Get specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @return the product value */ @@ -84,7 +84,7 @@ public String product() { } /** - * Set the product value. + * Set specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @param product the product value to set * @return the PurchasePlan object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RequestRateByIntervalInput.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RequestRateByIntervalInput.java index bf1a991b190e..d1511a067772 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RequestRateByIntervalInput.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RequestRateByIntervalInput.java @@ -23,7 +23,7 @@ public class RequestRateByIntervalInput extends LogAnalyticsInputBase { private IntervalInMins intervalLength; /** - * Get the intervalLength value. + * Get interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins'. * * @return the intervalLength value */ @@ -32,7 +32,7 @@ public IntervalInMins intervalLength() { } /** - * Set the intervalLength value. + * Set interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins'. * * @param intervalLength the intervalLength value to set * @return the RequestRateByIntervalInput object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollbackStatusInfo.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollbackStatusInfo.java index 8207a42eda11..db0955bfd4d4 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollbackStatusInfo.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollbackStatusInfo.java @@ -34,7 +34,7 @@ public class RollbackStatusInfo { private ApiError rollbackError; /** - * Get the successfullyRolledbackInstanceCount value. + * Get the number of instances which have been successfully rolled back. * * @return the successfullyRolledbackInstanceCount value */ @@ -43,7 +43,7 @@ public Integer successfullyRolledbackInstanceCount() { } /** - * Get the failedRolledbackInstanceCount value. + * Get the number of instances which failed to rollback. * * @return the failedRolledbackInstanceCount value */ @@ -52,7 +52,7 @@ public Integer failedRolledbackInstanceCount() { } /** - * Get the rollbackError value. + * Get error details if OS rollback failed. * * @return the rollbackError value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradePolicy.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradePolicy.java index 999b0e8ea431..359050d4bde2 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradePolicy.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradePolicy.java @@ -53,7 +53,7 @@ public class RollingUpgradePolicy { private String pauseTimeBetweenBatches; /** - * Get the maxBatchInstancePercent value. + * Get the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. * * @return the maxBatchInstancePercent value */ @@ -62,7 +62,7 @@ public Integer maxBatchInstancePercent() { } /** - * Set the maxBatchInstancePercent value. + * Set the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. * * @param maxBatchInstancePercent the maxBatchInstancePercent value to set * @return the RollingUpgradePolicy object itself. @@ -73,7 +73,7 @@ public RollingUpgradePolicy withMaxBatchInstancePercent(Integer maxBatchInstance } /** - * Get the maxUnhealthyInstancePercent value. + * Get the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. * * @return the maxUnhealthyInstancePercent value */ @@ -82,7 +82,7 @@ public Integer maxUnhealthyInstancePercent() { } /** - * Set the maxUnhealthyInstancePercent value. + * Set the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. * * @param maxUnhealthyInstancePercent the maxUnhealthyInstancePercent value to set * @return the RollingUpgradePolicy object itself. @@ -93,7 +93,7 @@ public RollingUpgradePolicy withMaxUnhealthyInstancePercent(Integer maxUnhealthy } /** - * Get the maxUnhealthyUpgradedInstancePercent value. + * Get the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. * * @return the maxUnhealthyUpgradedInstancePercent value */ @@ -102,7 +102,7 @@ public Integer maxUnhealthyUpgradedInstancePercent() { } /** - * Set the maxUnhealthyUpgradedInstancePercent value. + * Set the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. * * @param maxUnhealthyUpgradedInstancePercent the maxUnhealthyUpgradedInstancePercent value to set * @return the RollingUpgradePolicy object itself. @@ -113,7 +113,7 @@ public RollingUpgradePolicy withMaxUnhealthyUpgradedInstancePercent(Integer maxU } /** - * Get the pauseTimeBetweenBatches value. + * Get the wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). * * @return the pauseTimeBetweenBatches value */ @@ -122,7 +122,7 @@ public String pauseTimeBetweenBatches() { } /** - * Set the pauseTimeBetweenBatches value. + * Set the wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). * * @param pauseTimeBetweenBatches the pauseTimeBetweenBatches value to set * @return the RollingUpgradePolicy object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradeProgressInfo.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradeProgressInfo.java index fe594d70d731..d683e53001f6 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradeProgressInfo.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradeProgressInfo.java @@ -40,7 +40,7 @@ public class RollingUpgradeProgressInfo { private Integer pendingInstanceCount; /** - * Get the successfulInstanceCount value. + * Get the number of instances that have been successfully upgraded. * * @return the successfulInstanceCount value */ @@ -49,7 +49,7 @@ public Integer successfulInstanceCount() { } /** - * Get the failedInstanceCount value. + * Get the number of instances that have failed to be upgraded successfully. * * @return the failedInstanceCount value */ @@ -58,7 +58,7 @@ public Integer failedInstanceCount() { } /** - * Get the inProgressInstanceCount value. + * Get the number of instances that are currently being upgraded. * * @return the inProgressInstanceCount value */ @@ -67,7 +67,7 @@ public Integer inProgressInstanceCount() { } /** - * Get the pendingInstanceCount value. + * Get the number of instances that have not yet begun to be upgraded. * * @return the pendingInstanceCount value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradeRunningStatus.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradeRunningStatus.java index d54aa47da1b8..e1b9cf54f0e2 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradeRunningStatus.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RollingUpgradeRunningStatus.java @@ -42,7 +42,7 @@ public class RollingUpgradeRunningStatus { private DateTime lastActionTime; /** - * Get the code value. + * Get code indicating the current status of the upgrade. Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted'. * * @return the code value */ @@ -51,7 +51,7 @@ public RollingUpgradeStatusCode code() { } /** - * Get the startTime value. + * Get start time of the upgrade. * * @return the startTime value */ @@ -60,7 +60,7 @@ public DateTime startTime() { } /** - * Get the lastAction value. + * Get the last action performed on the rolling upgrade. Possible values include: 'Start', 'Cancel'. * * @return the lastAction value */ @@ -69,7 +69,7 @@ public RollingUpgradeActionType lastAction() { } /** - * Get the lastActionTime value. + * Get last action time of the upgrade. * * @return the lastActionTime value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandInput.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandInput.java index 5c66fe6db133..d0bdd3cc2471 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandInput.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandInput.java @@ -35,7 +35,7 @@ public class RunCommandInput { private List parameters; /** - * Get the commandId value. + * Get the run command id. * * @return the commandId value */ @@ -44,7 +44,7 @@ public String commandId() { } /** - * Set the commandId value. + * Set the run command id. * * @param commandId the commandId value to set * @return the RunCommandInput object itself. @@ -55,7 +55,7 @@ public RunCommandInput withCommandId(String commandId) { } /** - * Get the script value. + * Get optional. The script to be executed. When this value is given, the given script will override the default script of the command. * * @return the script value */ @@ -64,7 +64,7 @@ public List script() { } /** - * Set the script value. + * Set optional. The script to be executed. When this value is given, the given script will override the default script of the command. * * @param script the script value to set * @return the RunCommandInput object itself. @@ -75,7 +75,7 @@ public RunCommandInput withScript(List script) { } /** - * Get the parameters value. + * Get the run command parameters. * * @return the parameters value */ @@ -84,7 +84,7 @@ public List parameters() { } /** - * Set the parameters value. + * Set the run command parameters. * * @param parameters the parameters value to set * @return the RunCommandInput object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandInputParameter.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandInputParameter.java index 7e18c716d015..6027c0967754 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandInputParameter.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandInputParameter.java @@ -27,7 +27,7 @@ public class RunCommandInputParameter { private String value; /** - * Get the name value. + * Get the run command parameter name. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Set the name value. + * Set the run command parameter name. * * @param name the name value to set * @return the RunCommandInputParameter object itself. @@ -47,7 +47,7 @@ public RunCommandInputParameter withName(String name) { } /** - * Get the value value. + * Get the run command parameter value. * * @return the value value */ @@ -56,7 +56,7 @@ public String value() { } /** - * Set the value value. + * Set the run command parameter value. * * @param value the value value to set * @return the RunCommandInputParameter object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandParameterDefinition.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandParameterDefinition.java index 902143de1f2a..2a363b3103d6 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandParameterDefinition.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/RunCommandParameterDefinition.java @@ -39,7 +39,7 @@ public class RunCommandParameterDefinition { private Boolean required; /** - * Get the name value. + * Get the run command parameter name. * * @return the name value */ @@ -48,7 +48,7 @@ public String name() { } /** - * Set the name value. + * Set the run command parameter name. * * @param name the name value to set * @return the RunCommandParameterDefinition object itself. @@ -59,7 +59,7 @@ public RunCommandParameterDefinition withName(String name) { } /** - * Get the type value. + * Get the run command parameter type. * * @return the type value */ @@ -68,7 +68,7 @@ public String type() { } /** - * Set the type value. + * Set the run command parameter type. * * @param type the type value to set * @return the RunCommandParameterDefinition object itself. @@ -79,7 +79,7 @@ public RunCommandParameterDefinition withType(String type) { } /** - * Get the defaultValue value. + * Get the run command parameter default value. * * @return the defaultValue value */ @@ -88,7 +88,7 @@ public String defaultValue() { } /** - * Set the defaultValue value. + * Set the run command parameter default value. * * @param defaultValue the defaultValue value to set * @return the RunCommandParameterDefinition object itself. @@ -99,7 +99,7 @@ public RunCommandParameterDefinition withDefaultValue(String defaultValue) { } /** - * Get the required value. + * Get the run command parameter required. * * @return the required value */ @@ -108,7 +108,7 @@ public Boolean required() { } /** - * Set the required value. + * Set the run command parameter required. * * @param required the required value to set * @return the RunCommandParameterDefinition object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Sku.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Sku.java index 35f2570273dc..6ebaaff19274 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Sku.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/Sku.java @@ -35,7 +35,7 @@ public class Sku { private Long capacity; /** - * Get the name value. + * Get the sku name. * * @return the name value */ @@ -44,7 +44,7 @@ public String name() { } /** - * Set the name value. + * Set the sku name. * * @param name the name value to set * @return the Sku object itself. @@ -55,7 +55,7 @@ public Sku withName(String name) { } /** - * Get the tier value. + * Get specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**. * * @return the tier value */ @@ -64,7 +64,7 @@ public String tier() { } /** - * Set the tier value. + * Set specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**. * * @param tier the tier value to set * @return the Sku object itself. @@ -75,7 +75,7 @@ public Sku withTier(String tier) { } /** - * Get the capacity value. + * Get specifies the number of virtual machines in the scale set. * * @return the capacity value */ @@ -84,7 +84,7 @@ public Long capacity() { } /** - * Set the capacity value. + * Set specifies the number of virtual machines in the scale set. * * @param capacity the capacity value to set * @return the Sku object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SshConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SshConfiguration.java index be0ba2e5a809..62efd514bf07 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SshConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SshConfiguration.java @@ -22,7 +22,7 @@ public class SshConfiguration { private List publicKeys; /** - * Get the publicKeys value. + * Get the list of SSH public keys used to authenticate with linux based VMs. * * @return the publicKeys value */ @@ -31,7 +31,7 @@ public List publicKeys() { } /** - * Set the publicKeys value. + * Set the list of SSH public keys used to authenticate with linux based VMs. * * @param publicKeys the publicKeys value to set * @return the SshConfiguration object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SshPublicKey.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SshPublicKey.java index 974bab7868b0..50b9a336e3ec 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SshPublicKey.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SshPublicKey.java @@ -34,7 +34,7 @@ public class SshPublicKey { private String keyData; /** - * Get the path value. + * Get specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys. * * @return the path value */ @@ -43,7 +43,7 @@ public String path() { } /** - * Set the path value. + * Set specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys. * * @param path the path value to set * @return the SshPublicKey object itself. @@ -54,7 +54,7 @@ public SshPublicKey withPath(String path) { } /** - * Get the keyData value. + * Get sSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the keyData value */ @@ -63,7 +63,7 @@ public String keyData() { } /** - * Set the keyData value. + * Set sSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param keyData the keyData value to set * @return the SshPublicKey object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/StorageProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/StorageProfile.java index 7ec35f671971..336f5dbe3f48 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/StorageProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/StorageProfile.java @@ -44,7 +44,7 @@ public class StorageProfile { private List dataDisks; /** - * Get the imageReference value. + * Get specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. * * @return the imageReference value */ @@ -53,7 +53,7 @@ public ImageReference imageReference() { } /** - * Set the imageReference value. + * Set specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. * * @param imageReference the imageReference value to set * @return the StorageProfile object itself. @@ -64,7 +64,7 @@ public StorageProfile withImageReference(ImageReference imageReference) { } /** - * Get the osDisk value. + * Get specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the osDisk value */ @@ -73,7 +73,7 @@ public OSDisk osDisk() { } /** - * Set the osDisk value. + * Set specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param osDisk the osDisk value to set * @return the StorageProfile object itself. @@ -84,7 +84,7 @@ public StorageProfile withOsDisk(OSDisk osDisk) { } /** - * Get the dataDisks value. + * Get specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the dataDisks value */ @@ -93,7 +93,7 @@ public List dataDisks() { } /** - * Set the dataDisks value. + * Set specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param dataDisks the dataDisks value to set * @return the StorageProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SubResourceReadOnly.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SubResourceReadOnly.java index e66fe0e581ee..80a1765517e9 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SubResourceReadOnly.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/SubResourceReadOnly.java @@ -21,7 +21,7 @@ public class SubResourceReadOnly { private String id; /** - * Get the id value. + * Get resource Id. * * @return the id value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpdateResource.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpdateResource.java index 8808b169e2ce..1fb55920f690 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpdateResource.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpdateResource.java @@ -22,7 +22,7 @@ public class UpdateResource { private Map tags; /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -31,7 +31,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the UpdateResource object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradeOperationHistoricalStatusInfoProperties.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradeOperationHistoricalStatusInfoProperties.java index 096b287640d6..3b26e8e0dec5 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradeOperationHistoricalStatusInfoProperties.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradeOperationHistoricalStatusInfoProperties.java @@ -52,7 +52,7 @@ public class UpgradeOperationHistoricalStatusInfoProperties { private RollbackStatusInfo rollbackInfo; /** - * Get the runningStatus value. + * Get information about the overall status of the upgrade operation. * * @return the runningStatus value */ @@ -61,7 +61,7 @@ public UpgradeOperationHistoryStatus runningStatus() { } /** - * Get the progress value. + * Get counts of the VM's in each state. * * @return the progress value */ @@ -70,7 +70,7 @@ public RollingUpgradeProgressInfo progress() { } /** - * Get the error value. + * Get error Details for this upgrade if there are any. * * @return the error value */ @@ -79,7 +79,7 @@ public ApiError error() { } /** - * Get the startedBy value. + * Get invoker of the Upgrade Operation. Possible values include: 'Unknown', 'User', 'Platform'. * * @return the startedBy value */ @@ -88,7 +88,7 @@ public UpgradeOperationInvoker startedBy() { } /** - * Get the targetImageReference value. + * Get image Reference details. * * @return the targetImageReference value */ @@ -97,7 +97,7 @@ public ImageReference targetImageReference() { } /** - * Get the rollbackInfo value. + * Get information about OS rollback if performed. * * @return the rollbackInfo value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradeOperationHistoryStatus.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradeOperationHistoryStatus.java index c013fe0b73de..8eead01d5506 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradeOperationHistoryStatus.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradeOperationHistoryStatus.java @@ -35,7 +35,7 @@ public class UpgradeOperationHistoryStatus { private DateTime endTime; /** - * Get the code value. + * Get code indicating the current status of the upgrade. Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted'. * * @return the code value */ @@ -44,7 +44,7 @@ public UpgradeState code() { } /** - * Get the startTime value. + * Get start time of the upgrade. * * @return the startTime value */ @@ -53,7 +53,7 @@ public DateTime startTime() { } /** - * Get the endTime value. + * Get end time of the upgrade. * * @return the endTime value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradePolicy.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradePolicy.java index 3072edd998ab..9509b264727f 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradePolicy.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UpgradePolicy.java @@ -47,7 +47,7 @@ public class UpgradePolicy { private AutoOSUpgradePolicy autoOSUpgradePolicy; /** - * Get the mode value. + * Get specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'. * * @return the mode value */ @@ -56,7 +56,7 @@ public UpgradeMode mode() { } /** - * Set the mode value. + * Set specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'. * * @param mode the mode value to set * @return the UpgradePolicy object itself. @@ -67,7 +67,7 @@ public UpgradePolicy withMode(UpgradeMode mode) { } /** - * Get the rollingUpgradePolicy value. + * Get the configuration parameters used while performing a rolling upgrade. * * @return the rollingUpgradePolicy value */ @@ -76,7 +76,7 @@ public RollingUpgradePolicy rollingUpgradePolicy() { } /** - * Set the rollingUpgradePolicy value. + * Set the configuration parameters used while performing a rolling upgrade. * * @param rollingUpgradePolicy the rollingUpgradePolicy value to set * @return the UpgradePolicy object itself. @@ -87,7 +87,7 @@ public UpgradePolicy withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgrad } /** - * Get the automaticOSUpgrade value. + * Get whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available. * * @return the automaticOSUpgrade value */ @@ -96,7 +96,7 @@ public Boolean automaticOSUpgrade() { } /** - * Set the automaticOSUpgrade value. + * Set whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available. * * @param automaticOSUpgrade the automaticOSUpgrade value to set * @return the UpgradePolicy object itself. @@ -107,7 +107,7 @@ public UpgradePolicy withAutomaticOSUpgrade(Boolean automaticOSUpgrade) { } /** - * Get the autoOSUpgradePolicy value. + * Get configuration parameters used for performing automatic OS Upgrade. * * @return the autoOSUpgradePolicy value */ @@ -116,7 +116,7 @@ public AutoOSUpgradePolicy autoOSUpgradePolicy() { } /** - * Set the autoOSUpgradePolicy value. + * Set configuration parameters used for performing automatic OS Upgrade. * * @param autoOSUpgradePolicy the autoOSUpgradePolicy value to set * @return the UpgradePolicy object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UsageName.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UsageName.java index 3e4ae08bcd7a..a357996d2295 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UsageName.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get the name of the resource. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Set the value value. + * Set the name of the resource. * * @param value the value value to set * @return the UsageName object itself. @@ -47,7 +47,7 @@ public UsageName withValue(String value) { } /** - * Get the localizedValue value. + * Get the localized name of the resource. * * @return the localizedValue value */ @@ -56,7 +56,7 @@ public String localizedValue() { } /** - * Set the localizedValue value. + * Set the localized name of the resource. * * @param localizedValue the localizedValue value to set * @return the UsageName object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VaultCertificate.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VaultCertificate.java index 59e13305a5e5..8282664d6d00 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VaultCertificate.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VaultCertificate.java @@ -43,7 +43,7 @@ public class VaultCertificate { private String certificateStore; /** - * Get the certificateUrl value. + * Get this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}. * * @return the certificateUrl value */ @@ -52,7 +52,7 @@ public String certificateUrl() { } /** - * Set the certificateUrl value. + * Set this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}. * * @param certificateUrl the certificateUrl value to set * @return the VaultCertificate object itself. @@ -63,7 +63,7 @@ public VaultCertificate withCertificateUrl(String certificateUrl) { } /** - * Get the certificateStore value. + * Get for Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. <br><br>For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbpring>.prv for private key. Both of these files are .pem formatted. * * @return the certificateStore value */ @@ -72,7 +72,7 @@ public String certificateStore() { } /** - * Set the certificateStore value. + * Set for Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. <br><br>For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbpring>.prv for private key. Both of these files are .pem formatted. * * @param certificateStore the certificateStore value to set * @return the VaultCertificate object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VaultSecretGroup.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VaultSecretGroup.java index d335a0a37e0c..1a133a55dc81 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VaultSecretGroup.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VaultSecretGroup.java @@ -31,7 +31,7 @@ public class VaultSecretGroup { private List vaultCertificates; /** - * Get the sourceVault value. + * Get the relative URL of the Key Vault containing all of the certificates in VaultCertificates. * * @return the sourceVault value */ @@ -40,7 +40,7 @@ public SubResource sourceVault() { } /** - * Set the sourceVault value. + * Set the relative URL of the Key Vault containing all of the certificates in VaultCertificates. * * @param sourceVault the sourceVault value to set * @return the VaultSecretGroup object itself. @@ -51,7 +51,7 @@ public VaultSecretGroup withSourceVault(SubResource sourceVault) { } /** - * Get the vaultCertificates value. + * Get the list of key vault references in SourceVault which contain certificates. * * @return the vaultCertificates value */ @@ -60,7 +60,7 @@ public List vaultCertificates() { } /** - * Set the vaultCertificates value. + * Set the list of key vault references in SourceVault which contain certificates. * * @param vaultCertificates the vaultCertificates value to set * @return the VaultSecretGroup object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualHardDisk.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualHardDisk.java index 6e765d76372c..268869d60c12 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualHardDisk.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualHardDisk.java @@ -21,7 +21,7 @@ public class VirtualHardDisk { private String uri; /** - * Get the uri value. + * Get specifies the virtual hard disk's uri. * * @return the uri value */ @@ -30,7 +30,7 @@ public String uri() { } /** - * Set the uri value. + * Set specifies the virtual hard disk's uri. * * @param uri the uri value to set * @return the VirtualHardDisk object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachine.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachine.java index 83f99f4007e2..c356b5c81ee4 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachine.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachine.java @@ -10,16 +10,16 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_12_01.implementation.ComputeManager; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.compute.v2017_12_01.implementation.VirtualMachineInstanceViewInner; +import com.microsoft.azure.management.compute.v2017_12_01.implementation.VirtualMachineScaleSetVMInstanceViewInner; import java.util.List; import com.microsoft.azure.management.compute.v2017_12_01.implementation.VirtualMachineInner; @@ -50,7 +50,7 @@ public interface VirtualMachine extends HasInner, Resource, /** * @return the instanceView value. */ - VirtualMachineInstanceView instanceView(); + VirtualMachineScaleSetVMInstanceView instanceView(); /** * @return the licenseType value. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineAgentInstanceView.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineAgentInstanceView.java index 156da0dfb183..30ffe785bc13 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineAgentInstanceView.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineAgentInstanceView.java @@ -34,7 +34,7 @@ public class VirtualMachineAgentInstanceView { private List statuses; /** - * Get the vmAgentVersion value. + * Get the VM Agent full version. * * @return the vmAgentVersion value */ @@ -43,7 +43,7 @@ public String vmAgentVersion() { } /** - * Set the vmAgentVersion value. + * Set the VM Agent full version. * * @param vmAgentVersion the vmAgentVersion value to set * @return the VirtualMachineAgentInstanceView object itself. @@ -54,7 +54,7 @@ public VirtualMachineAgentInstanceView withVmAgentVersion(String vmAgentVersion) } /** - * Get the extensionHandlers value. + * Get the virtual machine extension handler instance view. * * @return the extensionHandlers value */ @@ -63,7 +63,7 @@ public List extensionHandlers() { } /** - * Set the extensionHandlers value. + * Set the virtual machine extension handler instance view. * * @param extensionHandlers the extensionHandlers value to set * @return the VirtualMachineAgentInstanceView object itself. @@ -74,7 +74,7 @@ public VirtualMachineAgentInstanceView withExtensionHandlers(List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineAgentInstanceView object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineCaptureParameters.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineCaptureParameters.java index 50c508531712..4fe94993e26b 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineCaptureParameters.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineCaptureParameters.java @@ -34,7 +34,7 @@ public class VirtualMachineCaptureParameters { private boolean overwriteVhds; /** - * Get the vhdPrefix value. + * Get the captured virtual hard disk's name prefix. * * @return the vhdPrefix value */ @@ -43,7 +43,7 @@ public String vhdPrefix() { } /** - * Set the vhdPrefix value. + * Set the captured virtual hard disk's name prefix. * * @param vhdPrefix the vhdPrefix value to set * @return the VirtualMachineCaptureParameters object itself. @@ -54,7 +54,7 @@ public VirtualMachineCaptureParameters withVhdPrefix(String vhdPrefix) { } /** - * Get the destinationContainerName value. + * Get the destination container name. * * @return the destinationContainerName value */ @@ -63,7 +63,7 @@ public String destinationContainerName() { } /** - * Set the destinationContainerName value. + * Set the destination container name. * * @param destinationContainerName the destinationContainerName value to set * @return the VirtualMachineCaptureParameters object itself. @@ -74,7 +74,7 @@ public VirtualMachineCaptureParameters withDestinationContainerName(String desti } /** - * Get the overwriteVhds value. + * Get specifies whether to overwrite the destination virtual hard disk, in case of conflict. * * @return the overwriteVhds value */ @@ -83,7 +83,7 @@ public boolean overwriteVhds() { } /** - * Set the overwriteVhds value. + * Set specifies whether to overwrite the destination virtual hard disk, in case of conflict. * * @param overwriteVhds the overwriteVhds value to set * @return the VirtualMachineCaptureParameters object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionHandlerInstanceView.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionHandlerInstanceView.java index 3f556377c748..9d07f64defed 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionHandlerInstanceView.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionHandlerInstanceView.java @@ -34,7 +34,7 @@ public class VirtualMachineExtensionHandlerInstanceView { private InstanceViewStatus status; /** - * Get the type value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */ @@ -43,7 +43,7 @@ public String type() { } /** - * Set the type value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineExtensionHandlerInstanceView object itself. @@ -54,7 +54,7 @@ public VirtualMachineExtensionHandlerInstanceView withType(String type) { } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -63,7 +63,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionHandlerInstanceView object itself. @@ -74,7 +74,7 @@ public VirtualMachineExtensionHandlerInstanceView withTypeHandlerVersion(String } /** - * Get the status value. + * Get the extension handler status. * * @return the status value */ @@ -83,7 +83,7 @@ public InstanceViewStatus status() { } /** - * Set the status value. + * Set the extension handler status. * * @param status the status value to set * @return the VirtualMachineExtensionHandlerInstanceView object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionInstanceView.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionInstanceView.java index fb61f04c3eb7..d52e0ea12b1f 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionInstanceView.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionInstanceView.java @@ -47,7 +47,7 @@ public class VirtualMachineExtensionInstanceView { private List statuses; /** - * Get the name value. + * Get the virtual machine extension name. * * @return the name value */ @@ -56,7 +56,7 @@ public String name() { } /** - * Set the name value. + * Set the virtual machine extension name. * * @param name the name value to set * @return the VirtualMachineExtensionInstanceView object itself. @@ -67,7 +67,7 @@ public VirtualMachineExtensionInstanceView withName(String name) { } /** - * Get the type value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */ @@ -76,7 +76,7 @@ public String type() { } /** - * Set the type value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineExtensionInstanceView object itself. @@ -87,7 +87,7 @@ public VirtualMachineExtensionInstanceView withType(String type) { } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -96,7 +96,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionInstanceView object itself. @@ -107,7 +107,7 @@ public VirtualMachineExtensionInstanceView withTypeHandlerVersion(String typeHan } /** - * Get the substatuses value. + * Get the resource status information. * * @return the substatuses value */ @@ -116,7 +116,7 @@ public List substatuses() { } /** - * Set the substatuses value. + * Set the resource status information. * * @param substatuses the substatuses value to set * @return the VirtualMachineExtensionInstanceView object itself. @@ -127,7 +127,7 @@ public VirtualMachineExtensionInstanceView withSubstatuses(List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineExtensionInstanceView object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionUpdate.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionUpdate.java index e13c73f1e495..0e7ee520fb03 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionUpdate.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineExtensionUpdate.java @@ -65,7 +65,7 @@ public class VirtualMachineExtensionUpdate extends UpdateResource { private Object protectedSettings; /** - * Get the forceUpdateTag value. + * Get how the extension handler should be forced to update even if the extension configuration has not changed. * * @return the forceUpdateTag value */ @@ -74,7 +74,7 @@ public String forceUpdateTag() { } /** - * Set the forceUpdateTag value. + * Set how the extension handler should be forced to update even if the extension configuration has not changed. * * @param forceUpdateTag the forceUpdateTag value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -85,7 +85,7 @@ public VirtualMachineExtensionUpdate withForceUpdateTag(String forceUpdateTag) { } /** - * Get the publisher value. + * Get the name of the extension handler publisher. * * @return the publisher value */ @@ -94,7 +94,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the name of the extension handler publisher. * * @param publisher the publisher value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -105,7 +105,7 @@ public VirtualMachineExtensionUpdate withPublisher(String publisher) { } /** - * Get the type value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */ @@ -114,7 +114,7 @@ public String type() { } /** - * Set the type value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -125,7 +125,7 @@ public VirtualMachineExtensionUpdate withType(String type) { } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -134,7 +134,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -145,7 +145,7 @@ public VirtualMachineExtensionUpdate withTypeHandlerVersion(String typeHandlerVe } /** - * Get the autoUpgradeMinorVersion value. + * Get indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @return the autoUpgradeMinorVersion value */ @@ -154,7 +154,7 @@ public Boolean autoUpgradeMinorVersion() { } /** - * Set the autoUpgradeMinorVersion value. + * Set indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -165,7 +165,7 @@ public VirtualMachineExtensionUpdate withAutoUpgradeMinorVersion(Boolean autoUpg } /** - * Get the settings value. + * Get json formatted public settings for the extension. * * @return the settings value */ @@ -174,7 +174,7 @@ public Object settings() { } /** - * Set the settings value. + * Set json formatted public settings for the extension. * * @param settings the settings value to set * @return the VirtualMachineExtensionUpdate object itself. @@ -185,7 +185,7 @@ public VirtualMachineExtensionUpdate withSettings(Object settings) { } /** - * Get the protectedSettings value. + * Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @return the protectedSettings value */ @@ -194,7 +194,7 @@ public Object protectedSettings() { } /** - * Set the protectedSettings value. + * Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @param protectedSettings the protectedSettings value to set * @return the VirtualMachineExtensionUpdate object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineHealthStatus.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineHealthStatus.java index b9c7c6b1fe99..7b9080432236 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineHealthStatus.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineHealthStatus.java @@ -21,7 +21,7 @@ public class VirtualMachineHealthStatus { private InstanceViewStatus status; /** - * Get the status value. + * Get the health status information for the VM. * * @return the status value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineIdentity.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineIdentity.java index 04e0d23f7d4b..1fa8534a402e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineIdentity.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineIdentity.java @@ -49,7 +49,7 @@ public class VirtualMachineIdentity { private List identityIds; /** - * Get the principalId value. + * Get the principal id of virtual machine identity. This property will only be provided for a system assigned identity. * * @return the principalId value */ @@ -58,7 +58,7 @@ public String principalId() { } /** - * Get the tenantId value. + * Get the tenant id associated with the virtual machine. This property will only be provided for a system assigned identity. * * @return the tenantId value */ @@ -67,7 +67,7 @@ public String tenantId() { } /** - * Get the type value. + * Get the type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'. * * @return the type value */ @@ -76,7 +76,7 @@ public ResourceIdentityType type() { } /** - * Set the type value. + * Set the type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'. * * @param type the type value to set * @return the VirtualMachineIdentity object itself. @@ -87,7 +87,7 @@ public VirtualMachineIdentity withType(ResourceIdentityType type) { } /** - * Get the identityIds value. + * Get the list of user identities associated with the Virtual Machine. The user identity references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/identities/{identityName}'. * * @return the identityIds value */ @@ -96,7 +96,7 @@ public List identityIds() { } /** - * Set the identityIds value. + * Set the list of user identities associated with the Virtual Machine. The user identity references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/identities/{identityName}'. * * @param identityIds the identityIds value to set * @return the VirtualMachineIdentity object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSet.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSet.java index 953bad5b6f46..fb47a4a4631c 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSet.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSet.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2017_12_01.implementation.ComputeManager; import java.util.List; diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetDataDisk.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetDataDisk.java index 6a89052b6d82..90627671f18d 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetDataDisk.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetDataDisk.java @@ -67,7 +67,7 @@ public class VirtualMachineScaleSetDataDisk { private VirtualMachineScaleSetManagedDiskParameters managedDisk; /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -76,7 +76,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -87,7 +87,7 @@ public VirtualMachineScaleSetDataDisk withName(String name) { } /** - * Get the lun value. + * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */ @@ -96,7 +96,7 @@ public int lun() { } /** - * Set the lun value. + * Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @param lun the lun value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -107,7 +107,7 @@ public VirtualMachineScaleSetDataDisk withLun(int lun) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -116,7 +116,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -127,7 +127,7 @@ public VirtualMachineScaleSetDataDisk withCaching(CachingTypes caching) { } /** - * Get the writeAcceleratorEnabled value. + * Get specifies whether writeAccelerator should be enabled or disabled on the disk. * * @return the writeAcceleratorEnabled value */ @@ -136,7 +136,7 @@ public Boolean writeAcceleratorEnabled() { } /** - * Set the writeAcceleratorEnabled value. + * Set specifies whether writeAccelerator should be enabled or disabled on the disk. * * @param writeAcceleratorEnabled the writeAcceleratorEnabled value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -147,7 +147,7 @@ public VirtualMachineScaleSetDataDisk withWriteAcceleratorEnabled(Boolean writeA } /** - * Get the createOption value. + * Get the create option. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */ @@ -156,7 +156,7 @@ public DiskCreateOptionTypes createOption() { } /** - * Set the createOption value. + * Set the create option. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -167,7 +167,7 @@ public VirtualMachineScaleSetDataDisk withCreateOption(DiskCreateOptionTypes cre } /** - * Get the diskSizeGB value. + * Get specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */ @@ -176,7 +176,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the VirtualMachineScaleSetDataDisk object itself. @@ -187,7 +187,7 @@ public VirtualMachineScaleSetDataDisk withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -196,7 +196,7 @@ public VirtualMachineScaleSetManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the VirtualMachineScaleSetDataDisk object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetExtensionProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetExtensionProfile.java index 4ae80e5e54a8..4ee5c605bd15 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetExtensionProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetExtensionProfile.java @@ -23,7 +23,7 @@ public class VirtualMachineScaleSetExtensionProfile { private List extensions; /** - * Get the extensions value. + * Get the virtual machine scale set child extension resources. * * @return the extensions value */ @@ -32,7 +32,7 @@ public List extensions() { } /** - * Set the extensions value. + * Set the virtual machine scale set child extension resources. * * @param extensions the extensions value to set * @return the VirtualMachineScaleSetExtensionProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetIPConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetIPConfiguration.java index e900b48a195f..c2eb7449e57a 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetIPConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetIPConfiguration.java @@ -80,7 +80,7 @@ public class VirtualMachineScaleSetIPConfiguration extends SubResource { private List loadBalancerInboundNatPools; /** - * Get the name value. + * Get the IP configuration name. * * @return the name value */ @@ -89,7 +89,7 @@ public String name() { } /** - * Set the name value. + * Set the IP configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -100,7 +100,7 @@ public VirtualMachineScaleSetIPConfiguration withName(String name) { } /** - * Get the subnet value. + * Get specifies the identifier of the subnet. * * @return the subnet value */ @@ -109,7 +109,7 @@ public ApiEntityReference subnet() { } /** - * Set the subnet value. + * Set specifies the identifier of the subnet. * * @param subnet the subnet value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -120,7 +120,7 @@ public VirtualMachineScaleSetIPConfiguration withSubnet(ApiEntityReference subne } /** - * Get the primary value. + * Get specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @return the primary value */ @@ -129,7 +129,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @param primary the primary value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -140,7 +140,7 @@ public VirtualMachineScaleSetIPConfiguration withPrimary(Boolean primary) { } /** - * Get the publicIPAddressConfiguration value. + * Get the publicIPAddressConfiguration. * * @return the publicIPAddressConfiguration value */ @@ -149,7 +149,7 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfigu } /** - * Set the publicIPAddressConfiguration value. + * Set the publicIPAddressConfiguration. * * @param publicIPAddressConfiguration the publicIPAddressConfiguration value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -160,7 +160,7 @@ public VirtualMachineScaleSetIPConfiguration withPublicIPAddressConfiguration(Vi } /** - * Get the privateIPAddressVersion value. + * Get available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @return the privateIPAddressVersion value */ @@ -169,7 +169,7 @@ public IPVersion privateIPAddressVersion() { } /** - * Set the privateIPAddressVersion value. + * Set available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @param privateIPAddressVersion the privateIPAddressVersion value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -180,7 +180,7 @@ public VirtualMachineScaleSetIPConfiguration withPrivateIPAddressVersion(IPVersi } /** - * Get the applicationGatewayBackendAddressPools value. + * Get specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. * * @return the applicationGatewayBackendAddressPools value */ @@ -189,7 +189,7 @@ public List applicationGatewayBackendAddressPools() { } /** - * Set the applicationGatewayBackendAddressPools value. + * Set specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. * * @param applicationGatewayBackendAddressPools the applicationGatewayBackendAddressPools value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -200,7 +200,7 @@ public VirtualMachineScaleSetIPConfiguration withApplicationGatewayBackendAddres } /** - * Get the loadBalancerBackendAddressPools value. + * Get specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer. * * @return the loadBalancerBackendAddressPools value */ @@ -209,7 +209,7 @@ public List loadBalancerBackendAddressPools() { } /** - * Set the loadBalancerBackendAddressPools value. + * Set specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer. * * @param loadBalancerBackendAddressPools the loadBalancerBackendAddressPools value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. @@ -220,7 +220,7 @@ public VirtualMachineScaleSetIPConfiguration withLoadBalancerBackendAddressPools } /** - * Get the loadBalancerInboundNatPools value. + * Get specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer. * * @return the loadBalancerInboundNatPools value */ @@ -229,7 +229,7 @@ public List loadBalancerInboundNatPools() { } /** - * Set the loadBalancerInboundNatPools value. + * Set specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer. * * @param loadBalancerInboundNatPools the loadBalancerInboundNatPools value to set * @return the VirtualMachineScaleSetIPConfiguration object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetIdentity.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetIdentity.java index ae3f99507ab3..c9dfba41d0c8 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetIdentity.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetIdentity.java @@ -49,7 +49,7 @@ public class VirtualMachineScaleSetIdentity { private List identityIds; /** - * Get the principalId value. + * Get the principal id of virtual machine scale set identity. This property will only be provided for a system assigned identity. * * @return the principalId value */ @@ -58,7 +58,7 @@ public String principalId() { } /** - * Get the tenantId value. + * Get the tenant id associated with the virtual machine scale set. This property will only be provided for a system assigned identity. * * @return the tenantId value */ @@ -67,7 +67,7 @@ public String tenantId() { } /** - * Get the type value. + * Get the type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'. * * @return the type value */ @@ -76,7 +76,7 @@ public ResourceIdentityType type() { } /** - * Set the type value. + * Set the type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'. * * @param type the type value to set * @return the VirtualMachineScaleSetIdentity object itself. @@ -87,7 +87,7 @@ public VirtualMachineScaleSetIdentity withType(ResourceIdentityType type) { } /** - * Get the identityIds value. + * Get the list of user identities associated with the virtual machine scale set. The user identity references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/identities/{identityName}'. * * @return the identityIds value */ @@ -96,7 +96,7 @@ public List identityIds() { } /** - * Set the identityIds value. + * Set the list of user identities associated with the virtual machine scale set. The user identity references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/identities/{identityName}'. * * @param identityIds the identityIds value to set * @return the VirtualMachineScaleSetIdentity object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetInstanceViewStatusesSummary.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetInstanceViewStatusesSummary.java index 89a115546d2f..c41e5a3cd64f 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetInstanceViewStatusesSummary.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetInstanceViewStatusesSummary.java @@ -23,7 +23,7 @@ public class VirtualMachineScaleSetInstanceViewStatusesSummary { private List statusesSummary; /** - * Get the statusesSummary value. + * Get the extensions information. * * @return the statusesSummary value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetManagedDiskParameters.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetManagedDiskParameters.java index 46d2bd0badf3..dca60d3e05b6 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetManagedDiskParameters.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetManagedDiskParameters.java @@ -23,7 +23,7 @@ public class VirtualMachineScaleSetManagedDiskParameters { private StorageAccountTypes storageAccountType; /** - * Get the storageAccountType value. + * Get specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -32,7 +32,7 @@ public StorageAccountTypes storageAccountType() { } /** - * Set the storageAccountType value. + * Set specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the VirtualMachineScaleSetManagedDiskParameters object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetNetworkConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetNetworkConfiguration.java index da9b07362594..988099e1d668 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetNetworkConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetNetworkConfiguration.java @@ -64,7 +64,7 @@ public class VirtualMachineScaleSetNetworkConfiguration extends SubResource { private Boolean enableIPForwarding; /** - * Get the name value. + * Get the network configuration name. * * @return the name value */ @@ -73,7 +73,7 @@ public String name() { } /** - * Set the name value. + * Set the network configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -84,7 +84,7 @@ public VirtualMachineScaleSetNetworkConfiguration withName(String name) { } /** - * Get the primary value. + * Get specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @return the primary value */ @@ -93,7 +93,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @param primary the primary value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -104,7 +104,7 @@ public VirtualMachineScaleSetNetworkConfiguration withPrimary(Boolean primary) { } /** - * Get the enableAcceleratedNetworking value. + * Get specifies whether the network interface is accelerated networking-enabled. * * @return the enableAcceleratedNetworking value */ @@ -113,7 +113,7 @@ public Boolean enableAcceleratedNetworking() { } /** - * Set the enableAcceleratedNetworking value. + * Set specifies whether the network interface is accelerated networking-enabled. * * @param enableAcceleratedNetworking the enableAcceleratedNetworking value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -124,7 +124,7 @@ public VirtualMachineScaleSetNetworkConfiguration withEnableAcceleratedNetworkin } /** - * Get the networkSecurityGroup value. + * Get the network security group. * * @return the networkSecurityGroup value */ @@ -133,7 +133,7 @@ public SubResource networkSecurityGroup() { } /** - * Set the networkSecurityGroup value. + * Set the network security group. * * @param networkSecurityGroup the networkSecurityGroup value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -144,7 +144,7 @@ public VirtualMachineScaleSetNetworkConfiguration withNetworkSecurityGroup(SubRe } /** - * Get the dnsSettings value. + * Get the dns settings to be applied on the network interfaces. * * @return the dnsSettings value */ @@ -153,7 +153,7 @@ public VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings() { } /** - * Set the dnsSettings value. + * Set the dns settings to be applied on the network interfaces. * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -164,7 +164,7 @@ public VirtualMachineScaleSetNetworkConfiguration withDnsSettings(VirtualMachine } /** - * Get the ipConfigurations value. + * Get specifies the IP configurations of the network interface. * * @return the ipConfigurations value */ @@ -173,7 +173,7 @@ public List ipConfigurations() { } /** - * Set the ipConfigurations value. + * Set specifies the IP configurations of the network interface. * * @param ipConfigurations the ipConfigurations value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. @@ -184,7 +184,7 @@ public VirtualMachineScaleSetNetworkConfiguration withIpConfigurations(List dnsServers; /** - * Get the dnsServers value. + * Get list of DNS servers IP addresses. * * @return the dnsServers value */ @@ -32,7 +32,7 @@ public List dnsServers() { } /** - * Set the dnsServers value. + * Set list of DNS servers IP addresses. * * @param dnsServers the dnsServers value to set * @return the VirtualMachineScaleSetNetworkConfigurationDnsSettings object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetNetworkProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetNetworkProfile.java index 20a4f21334b9..5846717bccc2 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetNetworkProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetNetworkProfile.java @@ -31,7 +31,7 @@ public class VirtualMachineScaleSetNetworkProfile { private List networkInterfaceConfigurations; /** - * Get the healthProbe value. + * Get a reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. * * @return the healthProbe value */ @@ -40,7 +40,7 @@ public ApiEntityReference healthProbe() { } /** - * Set the healthProbe value. + * Set a reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. * * @param healthProbe the healthProbe value to set * @return the VirtualMachineScaleSetNetworkProfile object itself. @@ -51,7 +51,7 @@ public VirtualMachineScaleSetNetworkProfile withHealthProbe(ApiEntityReference h } /** - * Get the networkInterfaceConfigurations value. + * Get the list of network configurations. * * @return the networkInterfaceConfigurations value */ @@ -60,7 +60,7 @@ public List networkInterfaceConfigur } /** - * Set the networkInterfaceConfigurations value. + * Set the list of network configurations. * * @param networkInterfaceConfigurations the networkInterfaceConfigurations value to set * @return the VirtualMachineScaleSetNetworkProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetOSDisk.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetOSDisk.java index 2fa837682605..3e7faba4dc5b 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetOSDisk.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetOSDisk.java @@ -81,7 +81,7 @@ public class VirtualMachineScaleSetOSDisk { private VirtualMachineScaleSetManagedDiskParameters managedDisk; /** - * Get the name value. + * Get the disk name. * * @return the name value */ @@ -90,7 +90,7 @@ public String name() { } /** - * Set the name value. + * Set the disk name. * * @param name the name value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -101,7 +101,7 @@ public VirtualMachineScaleSetOSDisk withName(String name) { } /** - * Get the caching value. + * Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -110,7 +110,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -121,7 +121,7 @@ public VirtualMachineScaleSetOSDisk withCaching(CachingTypes caching) { } /** - * Get the writeAcceleratorEnabled value. + * Get specifies whether writeAccelerator should be enabled or disabled on the disk. * * @return the writeAcceleratorEnabled value */ @@ -130,7 +130,7 @@ public Boolean writeAcceleratorEnabled() { } /** - * Set the writeAcceleratorEnabled value. + * Set specifies whether writeAccelerator should be enabled or disabled on the disk. * * @param writeAcceleratorEnabled the writeAcceleratorEnabled value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -141,7 +141,7 @@ public VirtualMachineScaleSetOSDisk withWriteAcceleratorEnabled(Boolean writeAcc } /** - * Get the createOption value. + * Get specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */ @@ -150,7 +150,7 @@ public DiskCreateOptionTypes createOption() { } /** - * Set the createOption value. + * Set specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -161,7 +161,7 @@ public VirtualMachineScaleSetOSDisk withCreateOption(DiskCreateOptionTypes creat } /** - * Get the osType value. + * Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -170,7 +170,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -181,7 +181,7 @@ public VirtualMachineScaleSetOSDisk withOsType(OperatingSystemTypes osType) { } /** - * Get the image value. + * Get specifies information about the unmanaged user image to base the scale set on. * * @return the image value */ @@ -190,7 +190,7 @@ public VirtualHardDisk image() { } /** - * Set the image value. + * Set specifies information about the unmanaged user image to base the scale set on. * * @param image the image value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -201,7 +201,7 @@ public VirtualMachineScaleSetOSDisk withImage(VirtualHardDisk image) { } /** - * Get the vhdContainers value. + * Get specifies the container urls that are used to store operating system disks for the scale set. * * @return the vhdContainers value */ @@ -210,7 +210,7 @@ public List vhdContainers() { } /** - * Set the vhdContainers value. + * Set specifies the container urls that are used to store operating system disks for the scale set. * * @param vhdContainers the vhdContainers value to set * @return the VirtualMachineScaleSetOSDisk object itself. @@ -221,7 +221,7 @@ public VirtualMachineScaleSetOSDisk withVhdContainers(List vhdContainers } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -230,7 +230,7 @@ public VirtualMachineScaleSetManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the VirtualMachineScaleSetOSDisk object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetOSProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetOSProfile.java index 2ba8f8865d1f..18636b79d422 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetOSProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetOSProfile.java @@ -102,7 +102,7 @@ public class VirtualMachineScaleSetOSProfile { private List secrets; /** - * Get the computerNamePrefix value. + * Get specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. * * @return the computerNamePrefix value */ @@ -111,7 +111,7 @@ public String computerNamePrefix() { } /** - * Set the computerNamePrefix value. + * Set specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. * * @param computerNamePrefix the computerNamePrefix value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -122,7 +122,7 @@ public VirtualMachineScaleSetOSProfile withComputerNamePrefix(String computerNam } /** - * Get the adminUsername value. + * Get specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the adminUsername value */ @@ -131,7 +131,7 @@ public String adminUsername() { } /** - * Set the adminUsername value. + * Set specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param adminUsername the adminUsername value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -142,7 +142,7 @@ public VirtualMachineScaleSetOSProfile withAdminUsername(String adminUsername) { } /** - * Get the adminPassword value. + * Get specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password). * * @return the adminPassword value */ @@ -151,7 +151,7 @@ public String adminPassword() { } /** - * Set the adminPassword value. + * Set specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password). * * @param adminPassword the adminPassword value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -162,7 +162,7 @@ public VirtualMachineScaleSetOSProfile withAdminPassword(String adminPassword) { } /** - * Get the customData value. + * Get specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the customData value */ @@ -171,7 +171,7 @@ public String customData() { } /** - * Set the customData value. + * Set specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param customData the customData value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -182,7 +182,7 @@ public VirtualMachineScaleSetOSProfile withCustomData(String customData) { } /** - * Get the windowsConfiguration value. + * Get specifies Windows operating system settings on the virtual machine. * * @return the windowsConfiguration value */ @@ -191,7 +191,7 @@ public WindowsConfiguration windowsConfiguration() { } /** - * Set the windowsConfiguration value. + * Set specifies Windows operating system settings on the virtual machine. * * @param windowsConfiguration the windowsConfiguration value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -202,7 +202,7 @@ public VirtualMachineScaleSetOSProfile withWindowsConfiguration(WindowsConfigura } /** - * Get the linuxConfiguration value. + * Get specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @return the linuxConfiguration value */ @@ -211,7 +211,7 @@ public LinuxConfiguration linuxConfiguration() { } /** - * Set the linuxConfiguration value. + * Set specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). * * @param linuxConfiguration the linuxConfiguration value to set * @return the VirtualMachineScaleSetOSProfile object itself. @@ -222,7 +222,7 @@ public VirtualMachineScaleSetOSProfile withLinuxConfiguration(LinuxConfiguration } /** - * Get the secrets value. + * Get specifies set of certificates that should be installed onto the virtual machines in the scale set. * * @return the secrets value */ @@ -231,7 +231,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set specifies set of certificates that should be installed onto the virtual machines in the scale set. * * @param secrets the secrets value to set * @return the VirtualMachineScaleSetOSProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetPublicIPAddressConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetPublicIPAddressConfiguration.java index e4fe35588ea0..1b29e8281cc3 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetPublicIPAddressConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetPublicIPAddressConfiguration.java @@ -36,7 +36,7 @@ public class VirtualMachineScaleSetPublicIPAddressConfiguration { private VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings; /** - * Get the name value. + * Get the publicIP address configuration name. * * @return the name value */ @@ -45,7 +45,7 @@ public String name() { } /** - * Set the name value. + * Set the publicIP address configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetPublicIPAddressConfiguration object itself. @@ -56,7 +56,7 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration withName(String name) } /** - * Get the idleTimeoutInMinutes value. + * Get the idle timeout of the public IP address. * * @return the idleTimeoutInMinutes value */ @@ -65,7 +65,7 @@ public Integer idleTimeoutInMinutes() { } /** - * Set the idleTimeoutInMinutes value. + * Set the idle timeout of the public IP address. * * @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set * @return the VirtualMachineScaleSetPublicIPAddressConfiguration object itself. @@ -76,7 +76,7 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration withIdleTimeoutInMinut } /** - * Get the dnsSettings value. + * Get the dns settings to be applied on the publicIP addresses . * * @return the dnsSettings value */ @@ -85,7 +85,7 @@ public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings } /** - * Set the dnsSettings value. + * Set the dns settings to be applied on the publicIP addresses . * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetPublicIPAddressConfiguration object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.java index f0639265059f..c44a35870b2e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.java @@ -24,7 +24,7 @@ public class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { private String domainNameLabel; /** - * Get the domainNameLabel value. + * Get the Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. * * @return the domainNameLabel value */ @@ -33,7 +33,7 @@ public String domainNameLabel() { } /** - * Set the domainNameLabel value. + * Set the Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. * * @param domainNameLabel the domainNameLabel value to set * @return the VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetSkuCapacity.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetSkuCapacity.java index c7c6b826cd1a..73cbebc94db1 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetSkuCapacity.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetSkuCapacity.java @@ -40,7 +40,7 @@ public class VirtualMachineScaleSetSkuCapacity { private VirtualMachineScaleSetSkuScaleType scaleType; /** - * Get the minimum value. + * Get the minimum capacity. * * @return the minimum value */ @@ -49,7 +49,7 @@ public Long minimum() { } /** - * Get the maximum value. + * Get the maximum capacity that can be set. * * @return the maximum value */ @@ -58,7 +58,7 @@ public Long maximum() { } /** - * Get the defaultCapacity value. + * Get the default capacity. * * @return the defaultCapacity value */ @@ -67,7 +67,7 @@ public Long defaultCapacity() { } /** - * Get the scaleType value. + * Get the scale type applicable to the sku. Possible values include: 'Automatic', 'None'. * * @return the scaleType value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetStorageProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetStorageProfile.java index 19029de8ae06..83c6b538596e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetStorageProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetStorageProfile.java @@ -44,7 +44,7 @@ public class VirtualMachineScaleSetStorageProfile { private List dataDisks; /** - * Get the imageReference value. + * Get specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. * * @return the imageReference value */ @@ -53,7 +53,7 @@ public ImageReference imageReference() { } /** - * Set the imageReference value. + * Set specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. * * @param imageReference the imageReference value to set * @return the VirtualMachineScaleSetStorageProfile object itself. @@ -64,7 +64,7 @@ public VirtualMachineScaleSetStorageProfile withImageReference(ImageReference im } /** - * Get the osDisk value. + * Get specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the osDisk value */ @@ -73,7 +73,7 @@ public VirtualMachineScaleSetOSDisk osDisk() { } /** - * Set the osDisk value. + * Set specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param osDisk the osDisk value to set * @return the VirtualMachineScaleSetStorageProfile object itself. @@ -84,7 +84,7 @@ public VirtualMachineScaleSetStorageProfile withOsDisk(VirtualMachineScaleSetOSD } /** - * Get the dataDisks value. + * Get specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @return the dataDisks value */ @@ -93,7 +93,7 @@ public List dataDisks() { } /** - * Set the dataDisks value. + * Set specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). * * @param dataDisks the dataDisks value to set * @return the VirtualMachineScaleSetStorageProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdate.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdate.java index c2fee99f9fbe..c5b549ad809f 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdate.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdate.java @@ -62,7 +62,7 @@ public class VirtualMachineScaleSetUpdate extends UpdateResource { private VirtualMachineScaleSetIdentity identity; /** - * Get the sku value. + * Get the virtual machine scale set sku. * * @return the sku value */ @@ -71,7 +71,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the virtual machine scale set sku. * * @param sku the sku value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -82,7 +82,7 @@ public VirtualMachineScaleSetUpdate withSku(Sku sku) { } /** - * Get the plan value. + * Get the purchase plan when deploying a virtual machine scale set from VM Marketplace images. * * @return the plan value */ @@ -91,7 +91,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set the purchase plan when deploying a virtual machine scale set from VM Marketplace images. * * @param plan the plan value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -102,7 +102,7 @@ public VirtualMachineScaleSetUpdate withPlan(Plan plan) { } /** - * Get the upgradePolicy value. + * Get the upgrade policy. * * @return the upgradePolicy value */ @@ -111,7 +111,7 @@ public UpgradePolicy upgradePolicy() { } /** - * Set the upgradePolicy value. + * Set the upgrade policy. * * @param upgradePolicy the upgradePolicy value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -122,7 +122,7 @@ public VirtualMachineScaleSetUpdate withUpgradePolicy(UpgradePolicy upgradePolic } /** - * Get the virtualMachineProfile value. + * Get the virtual machine profile. * * @return the virtualMachineProfile value */ @@ -131,7 +131,7 @@ public VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile() { } /** - * Set the virtualMachineProfile value. + * Set the virtual machine profile. * * @param virtualMachineProfile the virtualMachineProfile value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -142,7 +142,7 @@ public VirtualMachineScaleSetUpdate withVirtualMachineProfile(VirtualMachineScal } /** - * Get the overprovision value. + * Get specifies whether the Virtual Machine Scale Set should be overprovisioned. * * @return the overprovision value */ @@ -151,7 +151,7 @@ public Boolean overprovision() { } /** - * Set the overprovision value. + * Set specifies whether the Virtual Machine Scale Set should be overprovisioned. * * @param overprovision the overprovision value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -162,7 +162,7 @@ public VirtualMachineScaleSetUpdate withOverprovision(Boolean overprovision) { } /** - * Get the singlePlacementGroup value. + * Get when true this limits the scale set to a single placement group, of max size 100 virtual machines. * * @return the singlePlacementGroup value */ @@ -171,7 +171,7 @@ public Boolean singlePlacementGroup() { } /** - * Set the singlePlacementGroup value. + * Set when true this limits the scale set to a single placement group, of max size 100 virtual machines. * * @param singlePlacementGroup the singlePlacementGroup value to set * @return the VirtualMachineScaleSetUpdate object itself. @@ -182,7 +182,7 @@ public VirtualMachineScaleSetUpdate withSinglePlacementGroup(Boolean singlePlace } /** - * Get the identity value. + * Get the identity of the virtual machine scale set, if configured. * * @return the identity value */ @@ -191,7 +191,7 @@ public VirtualMachineScaleSetIdentity identity() { } /** - * Set the identity value. + * Set the identity of the virtual machine scale set, if configured. * * @param identity the identity value to set * @return the VirtualMachineScaleSetUpdate object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateIPConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateIPConfiguration.java index be15c1aa49e8..338714c1be22 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateIPConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateIPConfiguration.java @@ -71,7 +71,7 @@ public class VirtualMachineScaleSetUpdateIPConfiguration extends SubResource { private List loadBalancerInboundNatPools; /** - * Get the name value. + * Get the IP configuration name. * * @return the name value */ @@ -80,7 +80,7 @@ public String name() { } /** - * Set the name value. + * Set the IP configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -91,7 +91,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withName(String name) { } /** - * Get the subnet value. + * Get the subnet. * * @return the subnet value */ @@ -100,7 +100,7 @@ public ApiEntityReference subnet() { } /** - * Set the subnet value. + * Set the subnet. * * @param subnet the subnet value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -111,7 +111,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withSubnet(ApiEntityReference } /** - * Get the primary value. + * Get specifies the primary IP Configuration in case the network interface has more than one IP Configuration. * * @return the primary value */ @@ -120,7 +120,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set specifies the primary IP Configuration in case the network interface has more than one IP Configuration. * * @param primary the primary value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -131,7 +131,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withPrimary(Boolean primary) } /** - * Get the publicIPAddressConfiguration value. + * Get the publicIPAddressConfiguration. * * @return the publicIPAddressConfiguration value */ @@ -140,7 +140,7 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration publicIPAddressC } /** - * Set the publicIPAddressConfiguration value. + * Set the publicIPAddressConfiguration. * * @param publicIPAddressConfiguration the publicIPAddressConfiguration value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -151,7 +151,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withPublicIPAddressConfigurat } /** - * Get the privateIPAddressVersion value. + * Get available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @return the privateIPAddressVersion value */ @@ -160,7 +160,7 @@ public IPVersion privateIPAddressVersion() { } /** - * Set the privateIPAddressVersion value. + * Set available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @param privateIPAddressVersion the privateIPAddressVersion value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -171,7 +171,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withPrivateIPAddressVersion(I } /** - * Get the applicationGatewayBackendAddressPools value. + * Get the application gateway backend address pools. * * @return the applicationGatewayBackendAddressPools value */ @@ -180,7 +180,7 @@ public List applicationGatewayBackendAddressPools() { } /** - * Set the applicationGatewayBackendAddressPools value. + * Set the application gateway backend address pools. * * @param applicationGatewayBackendAddressPools the applicationGatewayBackendAddressPools value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -191,7 +191,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withApplicationGatewayBackend } /** - * Get the loadBalancerBackendAddressPools value. + * Get the load balancer backend address pools. * * @return the loadBalancerBackendAddressPools value */ @@ -200,7 +200,7 @@ public List loadBalancerBackendAddressPools() { } /** - * Set the loadBalancerBackendAddressPools value. + * Set the load balancer backend address pools. * * @param loadBalancerBackendAddressPools the loadBalancerBackendAddressPools value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. @@ -211,7 +211,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration withLoadBalancerBackendAddres } /** - * Get the loadBalancerInboundNatPools value. + * Get the load balancer inbound nat pools. * * @return the loadBalancerInboundNatPools value */ @@ -220,7 +220,7 @@ public List loadBalancerInboundNatPools() { } /** - * Set the loadBalancerInboundNatPools value. + * Set the load balancer inbound nat pools. * * @param loadBalancerInboundNatPools the loadBalancerInboundNatPools value to set * @return the VirtualMachineScaleSetUpdateIPConfiguration object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateNetworkConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateNetworkConfiguration.java index 65cf928769b8..164e5ff3a3b9 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateNetworkConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateNetworkConfiguration.java @@ -63,7 +63,7 @@ public class VirtualMachineScaleSetUpdateNetworkConfiguration extends SubResourc private Boolean enableIPForwarding; /** - * Get the name value. + * Get the network configuration name. * * @return the name value */ @@ -72,7 +72,7 @@ public String name() { } /** - * Set the name value. + * Set the network configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -83,7 +83,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withName(String name) { } /** - * Get the primary value. + * Get whether this is a primary NIC on a virtual machine. * * @return the primary value */ @@ -92,7 +92,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set whether this is a primary NIC on a virtual machine. * * @param primary the primary value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -103,7 +103,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withPrimary(Boolean prim } /** - * Get the enableAcceleratedNetworking value. + * Get specifies whether the network interface is accelerated networking-enabled. * * @return the enableAcceleratedNetworking value */ @@ -112,7 +112,7 @@ public Boolean enableAcceleratedNetworking() { } /** - * Set the enableAcceleratedNetworking value. + * Set specifies whether the network interface is accelerated networking-enabled. * * @param enableAcceleratedNetworking the enableAcceleratedNetworking value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -123,7 +123,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withEnableAcceleratedNet } /** - * Get the networkSecurityGroup value. + * Get the network security group. * * @return the networkSecurityGroup value */ @@ -132,7 +132,7 @@ public SubResource networkSecurityGroup() { } /** - * Set the networkSecurityGroup value. + * Set the network security group. * * @param networkSecurityGroup the networkSecurityGroup value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -143,7 +143,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withNetworkSecurityGroup } /** - * Get the dnsSettings value. + * Get the dns settings to be applied on the network interfaces. * * @return the dnsSettings value */ @@ -152,7 +152,7 @@ public VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings() { } /** - * Set the dnsSettings value. + * Set the dns settings to be applied on the network interfaces. * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -163,7 +163,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withDnsSettings(VirtualM } /** - * Get the ipConfigurations value. + * Get the virtual machine scale set IP Configuration. * * @return the ipConfigurations value */ @@ -172,7 +172,7 @@ public List ipConfigurations() { } /** - * Set the ipConfigurations value. + * Set the virtual machine scale set IP Configuration. * * @param ipConfigurations the ipConfigurations value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. @@ -183,7 +183,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration withIpConfigurations(Lis } /** - * Get the enableIPForwarding value. + * Get whether IP forwarding enabled on this NIC. * * @return the enableIPForwarding value */ @@ -192,7 +192,7 @@ public Boolean enableIPForwarding() { } /** - * Set the enableIPForwarding value. + * Set whether IP forwarding enabled on this NIC. * * @param enableIPForwarding the enableIPForwarding value to set * @return the VirtualMachineScaleSetUpdateNetworkConfiguration object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateNetworkProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateNetworkProfile.java index cc84e6a723df..baa850b4f875 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateNetworkProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateNetworkProfile.java @@ -22,7 +22,7 @@ public class VirtualMachineScaleSetUpdateNetworkProfile { private List networkInterfaceConfigurations; /** - * Get the networkInterfaceConfigurations value. + * Get the list of network configurations. * * @return the networkInterfaceConfigurations value */ @@ -31,7 +31,7 @@ public List networkInterfaceCo } /** - * Set the networkInterfaceConfigurations value. + * Set the list of network configurations. * * @param networkInterfaceConfigurations the networkInterfaceConfigurations value to set * @return the VirtualMachineScaleSetUpdateNetworkProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateOSDisk.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateOSDisk.java index bed53718e5ec..74acab75698e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateOSDisk.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateOSDisk.java @@ -51,7 +51,7 @@ public class VirtualMachineScaleSetUpdateOSDisk { private VirtualMachineScaleSetManagedDiskParameters managedDisk; /** - * Get the caching value. + * Get the caching type. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */ @@ -60,7 +60,7 @@ public CachingTypes caching() { } /** - * Set the caching value. + * Set the caching type. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. @@ -71,7 +71,7 @@ public VirtualMachineScaleSetUpdateOSDisk withCaching(CachingTypes caching) { } /** - * Get the writeAcceleratorEnabled value. + * Get specifies whether writeAccelerator should be enabled or disabled on the disk. * * @return the writeAcceleratorEnabled value */ @@ -80,7 +80,7 @@ public Boolean writeAcceleratorEnabled() { } /** - * Set the writeAcceleratorEnabled value. + * Set specifies whether writeAccelerator should be enabled or disabled on the disk. * * @param writeAcceleratorEnabled the writeAcceleratorEnabled value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. @@ -91,7 +91,7 @@ public VirtualMachineScaleSetUpdateOSDisk withWriteAcceleratorEnabled(Boolean wr } /** - * Get the image value. + * Get the Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. * * @return the image value */ @@ -100,7 +100,7 @@ public VirtualHardDisk image() { } /** - * Set the image value. + * Set the Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. * * @param image the image value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. @@ -111,7 +111,7 @@ public VirtualMachineScaleSetUpdateOSDisk withImage(VirtualHardDisk image) { } /** - * Get the vhdContainers value. + * Get the list of virtual hard disk container uris. * * @return the vhdContainers value */ @@ -120,7 +120,7 @@ public List vhdContainers() { } /** - * Set the vhdContainers value. + * Set the list of virtual hard disk container uris. * * @param vhdContainers the vhdContainers value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. @@ -131,7 +131,7 @@ public VirtualMachineScaleSetUpdateOSDisk withVhdContainers(List vhdCont } /** - * Get the managedDisk value. + * Get the managed disk parameters. * * @return the managedDisk value */ @@ -140,7 +140,7 @@ public VirtualMachineScaleSetManagedDiskParameters managedDisk() { } /** - * Set the managedDisk value. + * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the VirtualMachineScaleSetUpdateOSDisk object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateOSProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateOSProfile.java index 11839825f71a..49374b9ce975 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateOSProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateOSProfile.java @@ -40,7 +40,7 @@ public class VirtualMachineScaleSetUpdateOSProfile { private List secrets; /** - * Get the customData value. + * Get a base-64 encoded string of custom data. * * @return the customData value */ @@ -49,7 +49,7 @@ public String customData() { } /** - * Set the customData value. + * Set a base-64 encoded string of custom data. * * @param customData the customData value to set * @return the VirtualMachineScaleSetUpdateOSProfile object itself. @@ -60,7 +60,7 @@ public VirtualMachineScaleSetUpdateOSProfile withCustomData(String customData) { } /** - * Get the windowsConfiguration value. + * Get the Windows Configuration of the OS profile. * * @return the windowsConfiguration value */ @@ -69,7 +69,7 @@ public WindowsConfiguration windowsConfiguration() { } /** - * Set the windowsConfiguration value. + * Set the Windows Configuration of the OS profile. * * @param windowsConfiguration the windowsConfiguration value to set * @return the VirtualMachineScaleSetUpdateOSProfile object itself. @@ -80,7 +80,7 @@ public VirtualMachineScaleSetUpdateOSProfile withWindowsConfiguration(WindowsCon } /** - * Get the linuxConfiguration value. + * Get the Linux Configuration of the OS profile. * * @return the linuxConfiguration value */ @@ -89,7 +89,7 @@ public LinuxConfiguration linuxConfiguration() { } /** - * Set the linuxConfiguration value. + * Set the Linux Configuration of the OS profile. * * @param linuxConfiguration the linuxConfiguration value to set * @return the VirtualMachineScaleSetUpdateOSProfile object itself. @@ -100,7 +100,7 @@ public VirtualMachineScaleSetUpdateOSProfile withLinuxConfiguration(LinuxConfigu } /** - * Get the secrets value. + * Get the List of certificates for addition to the VM. * * @return the secrets value */ @@ -109,7 +109,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set the List of certificates for addition to the VM. * * @param secrets the secrets value to set * @return the VirtualMachineScaleSetUpdateOSProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.java index b5b410999086..bd011b083f93 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.java @@ -36,7 +36,7 @@ public class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration { private VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings; /** - * Get the name value. + * Get the publicIP address configuration name. * * @return the name value */ @@ -45,7 +45,7 @@ public String name() { } /** - * Set the name value. + * Set the publicIP address configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetUpdatePublicIPAddressConfiguration object itself. @@ -56,7 +56,7 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration withName(String } /** - * Get the idleTimeoutInMinutes value. + * Get the idle timeout of the public IP address. * * @return the idleTimeoutInMinutes value */ @@ -65,7 +65,7 @@ public Integer idleTimeoutInMinutes() { } /** - * Set the idleTimeoutInMinutes value. + * Set the idle timeout of the public IP address. * * @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set * @return the VirtualMachineScaleSetUpdatePublicIPAddressConfiguration object itself. @@ -76,7 +76,7 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration withIdleTimeoutI } /** - * Get the dnsSettings value. + * Get the dns settings to be applied on the publicIP addresses . * * @return the dnsSettings value */ @@ -85,7 +85,7 @@ public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings } /** - * Set the dnsSettings value. + * Set the dns settings to be applied on the publicIP addresses . * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetUpdatePublicIPAddressConfiguration object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateStorageProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateStorageProfile.java index c631fca0fbce..9ca0f7b2f2b2 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateStorageProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateStorageProfile.java @@ -34,7 +34,7 @@ public class VirtualMachineScaleSetUpdateStorageProfile { private List dataDisks; /** - * Get the imageReference value. + * Get the image reference. * * @return the imageReference value */ @@ -43,7 +43,7 @@ public ImageReference imageReference() { } /** - * Set the imageReference value. + * Set the image reference. * * @param imageReference the imageReference value to set * @return the VirtualMachineScaleSetUpdateStorageProfile object itself. @@ -54,7 +54,7 @@ public VirtualMachineScaleSetUpdateStorageProfile withImageReference(ImageRefere } /** - * Get the osDisk value. + * Get the OS disk. * * @return the osDisk value */ @@ -63,7 +63,7 @@ public VirtualMachineScaleSetUpdateOSDisk osDisk() { } /** - * Set the osDisk value. + * Set the OS disk. * * @param osDisk the osDisk value to set * @return the VirtualMachineScaleSetUpdateStorageProfile object itself. @@ -74,7 +74,7 @@ public VirtualMachineScaleSetUpdateStorageProfile withOsDisk(VirtualMachineScale } /** - * Get the dataDisks value. + * Get the data disks. * * @return the dataDisks value */ @@ -83,7 +83,7 @@ public List dataDisks() { } /** - * Set the dataDisks value. + * Set the data disks. * * @param dataDisks the dataDisks value to set * @return the VirtualMachineScaleSetUpdateStorageProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateVMProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateVMProfile.java index 0e4083a5c1f0..2eee2eee5abe 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateVMProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetUpdateVMProfile.java @@ -51,7 +51,7 @@ public class VirtualMachineScaleSetUpdateVMProfile { private String licenseType; /** - * Get the osProfile value. + * Get the virtual machine scale set OS profile. * * @return the osProfile value */ @@ -60,7 +60,7 @@ public VirtualMachineScaleSetUpdateOSProfile osProfile() { } /** - * Set the osProfile value. + * Set the virtual machine scale set OS profile. * * @param osProfile the osProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -71,7 +71,7 @@ public VirtualMachineScaleSetUpdateVMProfile withOsProfile(VirtualMachineScaleSe } /** - * Get the storageProfile value. + * Get the virtual machine scale set storage profile. * * @return the storageProfile value */ @@ -80,7 +80,7 @@ public VirtualMachineScaleSetUpdateStorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set the virtual machine scale set storage profile. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -91,7 +91,7 @@ public VirtualMachineScaleSetUpdateVMProfile withStorageProfile(VirtualMachineSc } /** - * Get the networkProfile value. + * Get the virtual machine scale set network profile. * * @return the networkProfile value */ @@ -100,7 +100,7 @@ public VirtualMachineScaleSetUpdateNetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set the virtual machine scale set network profile. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -111,7 +111,7 @@ public VirtualMachineScaleSetUpdateVMProfile withNetworkProfile(VirtualMachineSc } /** - * Get the diagnosticsProfile value. + * Get the virtual machine scale set diagnostics profile. * * @return the diagnosticsProfile value */ @@ -120,7 +120,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set the virtual machine scale set diagnostics profile. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -131,7 +131,7 @@ public VirtualMachineScaleSetUpdateVMProfile withDiagnosticsProfile(DiagnosticsP } /** - * Get the extensionProfile value. + * Get the virtual machine scale set extension profile. * * @return the extensionProfile value */ @@ -140,7 +140,7 @@ public VirtualMachineScaleSetExtensionProfile extensionProfile() { } /** - * Set the extensionProfile value. + * Set the virtual machine scale set extension profile. * * @param extensionProfile the extensionProfile value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. @@ -151,7 +151,7 @@ public VirtualMachineScaleSetUpdateVMProfile withExtensionProfile(VirtualMachine } /** - * Get the licenseType value. + * Get the license type, which is for bring your own license scenario. * * @return the licenseType value */ @@ -160,7 +160,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set the license type, which is for bring your own license scenario. * * @param licenseType the licenseType value to set * @return the VirtualMachineScaleSetUpdateVMProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMExtensionsSummary.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMExtensionsSummary.java index 3cc0b1117e51..726e86547d25 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMExtensionsSummary.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMExtensionsSummary.java @@ -28,7 +28,7 @@ public class VirtualMachineScaleSetVMExtensionsSummary { private List statusesSummary; /** - * Get the name value. + * Get the extension name. * * @return the name value */ @@ -37,7 +37,7 @@ public String name() { } /** - * Get the statusesSummary value. + * Get the extensions information. * * @return the statusesSummary value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMInstanceIDs.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMInstanceIDs.java index ea1977fc1ae0..6c2b2d9c19e3 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMInstanceIDs.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMInstanceIDs.java @@ -24,7 +24,7 @@ public class VirtualMachineScaleSetVMInstanceIDs { private List instanceIds; /** - * Get the instanceIds value. + * Get the virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. * * @return the instanceIds value */ @@ -33,7 +33,7 @@ public List instanceIds() { } /** - * Set the instanceIds value. + * Set the virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. * * @param instanceIds the instanceIds value to set * @return the VirtualMachineScaleSetVMInstanceIDs object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMInstanceRequiredIDs.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMInstanceRequiredIDs.java index 21a2329dcbac..a80417dda49c 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMInstanceRequiredIDs.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMInstanceRequiredIDs.java @@ -22,7 +22,7 @@ public class VirtualMachineScaleSetVMInstanceRequiredIDs { private List instanceIds; /** - * Get the instanceIds value. + * Get the virtual machine scale set instance ids. * * @return the instanceIds value */ @@ -31,7 +31,7 @@ public List instanceIds() { } /** - * Set the instanceIds value. + * Set the virtual machine scale set instance ids. * * @param instanceIds the instanceIds value to set * @return the VirtualMachineScaleSetVMInstanceRequiredIDs object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMProfile.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMProfile.java index 875ae1de688b..821e6e66e0b7 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMProfile.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSetVMProfile.java @@ -80,7 +80,7 @@ public class VirtualMachineScaleSetVMProfile { private VirtualMachineEvictionPolicyTypes evictionPolicy; /** - * Get the osProfile value. + * Get specifies the operating system settings for the virtual machines in the scale set. * * @return the osProfile value */ @@ -89,7 +89,7 @@ public VirtualMachineScaleSetOSProfile osProfile() { } /** - * Set the osProfile value. + * Set specifies the operating system settings for the virtual machines in the scale set. * * @param osProfile the osProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -100,7 +100,7 @@ public VirtualMachineScaleSetVMProfile withOsProfile(VirtualMachineScaleSetOSPro } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -109,7 +109,7 @@ public VirtualMachineScaleSetStorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -120,7 +120,7 @@ public VirtualMachineScaleSetVMProfile withStorageProfile(VirtualMachineScaleSet } /** - * Get the networkProfile value. + * Get specifies properties of the network interfaces of the virtual machines in the scale set. * * @return the networkProfile value */ @@ -129,7 +129,7 @@ public VirtualMachineScaleSetNetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set specifies properties of the network interfaces of the virtual machines in the scale set. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -140,7 +140,7 @@ public VirtualMachineScaleSetVMProfile withNetworkProfile(VirtualMachineScaleSet } /** - * Get the diagnosticsProfile value. + * Get specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @return the diagnosticsProfile value */ @@ -149,7 +149,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -160,7 +160,7 @@ public VirtualMachineScaleSetVMProfile withDiagnosticsProfile(DiagnosticsProfile } /** - * Get the extensionProfile value. + * Get specifies a collection of settings for extensions installed on virtual machines in the scale set. * * @return the extensionProfile value */ @@ -169,7 +169,7 @@ public VirtualMachineScaleSetExtensionProfile extensionProfile() { } /** - * Set the extensionProfile value. + * Set specifies a collection of settings for extensions installed on virtual machines in the scale set. * * @param extensionProfile the extensionProfile value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -180,7 +180,7 @@ public VirtualMachineScaleSetVMProfile withExtensionProfile(VirtualMachineScaleS } /** - * Get the licenseType value. + * Get specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @return the licenseType value */ @@ -189,7 +189,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @param licenseType the licenseType value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -200,7 +200,7 @@ public VirtualMachineScaleSetVMProfile withLicenseType(String licenseType) { } /** - * Get the priority value. + * Get specifies the priority for the virtual machines in the scale set. <br><br>Minimum api-version: 2017-10-30-preview. Possible values include: 'Regular', 'Low'. * * @return the priority value */ @@ -209,7 +209,7 @@ public VirtualMachinePriorityTypes priority() { } /** - * Set the priority value. + * Set specifies the priority for the virtual machines in the scale set. <br><br>Minimum api-version: 2017-10-30-preview. Possible values include: 'Regular', 'Low'. * * @param priority the priority value to set * @return the VirtualMachineScaleSetVMProfile object itself. @@ -220,7 +220,7 @@ public VirtualMachineScaleSetVMProfile withPriority(VirtualMachinePriorityTypes } /** - * Get the evictionPolicy value. + * Get specifies the eviction policy for virtual machines in a low priority scale set. <br><br>Minimum api-version: 2017-10-30-preview. Possible values include: 'Deallocate', 'Delete'. * * @return the evictionPolicy value */ @@ -229,7 +229,7 @@ public VirtualMachineEvictionPolicyTypes evictionPolicy() { } /** - * Set the evictionPolicy value. + * Set specifies the eviction policy for virtual machines in a low priority scale set. <br><br>Minimum api-version: 2017-10-30-preview. Possible values include: 'Deallocate', 'Delete'. * * @param evictionPolicy the evictionPolicy value to set * @return the VirtualMachineScaleSetVMProfile object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSets.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSets.java index 678ae9efeef9..d160337ede05 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSets.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineScaleSets.java @@ -106,7 +106,7 @@ public interface VirtualMachineScaleSets extends SupportsCreating redeployAsync(String resourceGroupName, String vmScaleSetName); /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineStatusCodeCount.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineStatusCodeCount.java index 018f8c719e76..9ea79047103c 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineStatusCodeCount.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineStatusCodeCount.java @@ -28,7 +28,7 @@ public class VirtualMachineStatusCodeCount { private Integer count; /** - * Get the code value. + * Get the instance view status code. * * @return the code value */ @@ -37,7 +37,7 @@ public String code() { } /** - * Get the count value. + * Get the number of instances having a particular status code. * * @return the count value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineUpdate.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineUpdate.java index e1ccbb507cd9..e34ca353e78f 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineUpdate.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/VirtualMachineUpdate.java @@ -9,7 +9,7 @@ package com.microsoft.azure.management.compute.v2017_12_01; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.compute.v2017_12_01.implementation.VirtualMachineInstanceViewInner; +import com.microsoft.azure.management.compute.v2017_12_01.implementation.VirtualMachineScaleSetVMInstanceViewInner; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; @@ -89,7 +89,7 @@ public class VirtualMachineUpdate extends UpdateResource { * The virtual machine instance view. */ @JsonProperty(value = "properties.instanceView", access = JsonProperty.Access.WRITE_ONLY) - private VirtualMachineInstanceViewInner instanceView; + private VirtualMachineScaleSetVMInstanceViewInner instanceView; /** * Specifies that the image or disk that is being used was licensed @@ -127,7 +127,7 @@ public class VirtualMachineUpdate extends UpdateResource { private List zones; /** - * Get the plan value. + * Get specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @return the plan value */ @@ -136,7 +136,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @param plan the plan value to set * @return the VirtualMachineUpdate object itself. @@ -147,7 +147,7 @@ public VirtualMachineUpdate withPlan(Plan plan) { } /** - * Get the hardwareProfile value. + * Get specifies the hardware settings for the virtual machine. * * @return the hardwareProfile value */ @@ -156,7 +156,7 @@ public HardwareProfile hardwareProfile() { } /** - * Set the hardwareProfile value. + * Set specifies the hardware settings for the virtual machine. * * @param hardwareProfile the hardwareProfile value to set * @return the VirtualMachineUpdate object itself. @@ -167,7 +167,7 @@ public VirtualMachineUpdate withHardwareProfile(HardwareProfile hardwareProfile) } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -176,7 +176,7 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineUpdate object itself. @@ -187,7 +187,7 @@ public VirtualMachineUpdate withStorageProfile(StorageProfile storageProfile) { } /** - * Get the osProfile value. + * Get specifies the operating system settings for the virtual machine. * * @return the osProfile value */ @@ -196,7 +196,7 @@ public OSProfile osProfile() { } /** - * Set the osProfile value. + * Set specifies the operating system settings for the virtual machine. * * @param osProfile the osProfile value to set * @return the VirtualMachineUpdate object itself. @@ -207,7 +207,7 @@ public VirtualMachineUpdate withOsProfile(OSProfile osProfile) { } /** - * Get the networkProfile value. + * Get specifies the network interfaces of the virtual machine. * * @return the networkProfile value */ @@ -216,7 +216,7 @@ public NetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set specifies the network interfaces of the virtual machine. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineUpdate object itself. @@ -227,7 +227,7 @@ public VirtualMachineUpdate withNetworkProfile(NetworkProfile networkProfile) { } /** - * Get the diagnosticsProfile value. + * Get specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @return the diagnosticsProfile value */ @@ -236,7 +236,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineUpdate object itself. @@ -247,7 +247,7 @@ public VirtualMachineUpdate withDiagnosticsProfile(DiagnosticsProfile diagnostic } /** - * Get the availabilitySet value. + * Get specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @return the availabilitySet value */ @@ -256,7 +256,7 @@ public SubResource availabilitySet() { } /** - * Set the availabilitySet value. + * Set specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @param availabilitySet the availabilitySet value to set * @return the VirtualMachineUpdate object itself. @@ -267,7 +267,7 @@ public VirtualMachineUpdate withAvailabilitySet(SubResource availabilitySet) { } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -276,16 +276,16 @@ public String provisioningState() { } /** - * Get the instanceView value. + * Get the virtual machine instance view. * * @return the instanceView value */ - public VirtualMachineInstanceViewInner instanceView() { + public VirtualMachineScaleSetVMInstanceViewInner instanceView() { return this.instanceView; } /** - * Get the licenseType value. + * Get specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @return the licenseType value */ @@ -294,7 +294,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @param licenseType the licenseType value to set * @return the VirtualMachineUpdate object itself. @@ -305,7 +305,7 @@ public VirtualMachineUpdate withLicenseType(String licenseType) { } /** - * Get the vmId value. + * Get specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. * * @return the vmId value */ @@ -314,7 +314,7 @@ public String vmId() { } /** - * Get the identity value. + * Get the identity of the virtual machine, if configured. * * @return the identity value */ @@ -323,7 +323,7 @@ public VirtualMachineIdentity identity() { } /** - * Set the identity value. + * Set the identity of the virtual machine, if configured. * * @param identity the identity value to set * @return the VirtualMachineUpdate object itself. @@ -334,7 +334,7 @@ public VirtualMachineUpdate withIdentity(VirtualMachineIdentity identity) { } /** - * Get the zones value. + * Get the virtual machine zones. * * @return the zones value */ @@ -343,7 +343,7 @@ public List zones() { } /** - * Set the zones value. + * Set the virtual machine zones. * * @param zones the zones value to set * @return the VirtualMachineUpdate object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WinRMConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WinRMConfiguration.java index 30bdcfe1e06e..da00d7ac9051 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WinRMConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WinRMConfiguration.java @@ -22,7 +22,7 @@ public class WinRMConfiguration { private List listeners; /** - * Get the listeners value. + * Get the list of Windows Remote Management listeners. * * @return the listeners value */ @@ -31,7 +31,7 @@ public List listeners() { } /** - * Set the listeners value. + * Set the list of Windows Remote Management listeners. * * @param listeners the listeners value to set * @return the WinRMConfiguration object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WinRMListener.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WinRMListener.java index 66941981f508..0cf0c4c7fafa 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WinRMListener.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WinRMListener.java @@ -38,7 +38,7 @@ public class WinRMListener { private String certificateUrl; /** - * Get the protocol value. + * Get specifies the protocol of listener. <br><br> Possible values are: <br>**http** <br><br> **https**. Possible values include: 'Http', 'Https'. * * @return the protocol value */ @@ -47,7 +47,7 @@ public ProtocolTypes protocol() { } /** - * Set the protocol value. + * Set specifies the protocol of listener. <br><br> Possible values are: <br>**http** <br><br> **https**. Possible values include: 'Http', 'Https'. * * @param protocol the protocol value to set * @return the WinRMListener object itself. @@ -58,7 +58,7 @@ public WinRMListener withProtocol(ProtocolTypes protocol) { } /** - * Get the certificateUrl value. + * Get this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}. * * @return the certificateUrl value */ @@ -67,7 +67,7 @@ public String certificateUrl() { } /** - * Set the certificateUrl value. + * Set this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}. * * @param certificateUrl the certificateUrl value to set * @return the WinRMListener object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WindowsConfiguration.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WindowsConfiguration.java index a4276da6d0b6..74eb118f148e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WindowsConfiguration.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/WindowsConfiguration.java @@ -53,7 +53,7 @@ public class WindowsConfiguration { private WinRMConfiguration winRM; /** - * Get the provisionVMAgent value. + * Get indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. * * @return the provisionVMAgent value */ @@ -62,7 +62,7 @@ public Boolean provisionVMAgent() { } /** - * Set the provisionVMAgent value. + * Set indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. * * @param provisionVMAgent the provisionVMAgent value to set * @return the WindowsConfiguration object itself. @@ -73,7 +73,7 @@ public WindowsConfiguration withProvisionVMAgent(Boolean provisionVMAgent) { } /** - * Get the enableAutomaticUpdates value. + * Get indicates whether virtual machine is enabled for automatic updates. * * @return the enableAutomaticUpdates value */ @@ -82,7 +82,7 @@ public Boolean enableAutomaticUpdates() { } /** - * Set the enableAutomaticUpdates value. + * Set indicates whether virtual machine is enabled for automatic updates. * * @param enableAutomaticUpdates the enableAutomaticUpdates value to set * @return the WindowsConfiguration object itself. @@ -93,7 +93,7 @@ public WindowsConfiguration withEnableAutomaticUpdates(Boolean enableAutomaticUp } /** - * Get the timeZone value. + * Get specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". * * @return the timeZone value */ @@ -102,7 +102,7 @@ public String timeZone() { } /** - * Set the timeZone value. + * Set specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". * * @param timeZone the timeZone value to set * @return the WindowsConfiguration object itself. @@ -113,7 +113,7 @@ public WindowsConfiguration withTimeZone(String timeZone) { } /** - * Get the additionalUnattendContent value. + * Get specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. * * @return the additionalUnattendContent value */ @@ -122,7 +122,7 @@ public List additionalUnattendContent() { } /** - * Set the additionalUnattendContent value. + * Set specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. * * @param additionalUnattendContent the additionalUnattendContent value to set * @return the WindowsConfiguration object itself. @@ -133,7 +133,7 @@ public WindowsConfiguration withAdditionalUnattendContent(List virtualMachines() { } /** - * Set the virtualMachines value. + * Set a list of references to all virtual machines in the availability set. * * @param virtualMachines the virtualMachines value to set * @return the AvailabilitySetInner object itself. @@ -121,7 +121,7 @@ public AvailabilitySetInner withVirtualMachines(List virtualMachine } /** - * Get the statuses value. + * Get the resource status information. * * @return the statuses value */ @@ -130,7 +130,7 @@ public List statuses() { } /** - * Get the sku value. + * Get sku of the availability set. * * @return the sku value */ @@ -139,7 +139,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set sku of the availability set. * * @param sku the sku value to set * @return the AvailabilitySetInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsImpl.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsImpl.java index 6ce355a24014..2a6b514d323c 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsImpl.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsImpl.java @@ -84,10 +84,34 @@ public PagedList listByResourceGroup(String resourceGroupName) public Observable listByResourceGroupAsync(String resourceGroupName) { AvailabilitySetsInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>() { + .flatMapIterable(new Func1, Iterable>() { @Override - public Observable call(Page innerPage) { - return Observable.from(innerPage.items()); + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public AvailabilitySet call(AvailabilitySetInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + AvailabilitySetsInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + AvailabilitySetsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); } }) .map(new Func1() { diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsInner.java index fa14ad6ae1b6..b8d28f9534ac 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/AvailabilitySetsInner.java @@ -10,9 +10,12 @@ import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.management.compute.v2017_12_01.AvailabilitySetUpdate; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; @@ -32,6 +35,7 @@ import retrofit2.http.Path; import retrofit2.http.PUT; import retrofit2.http.Query; +import retrofit2.http.Url; import retrofit2.Response; import rx.functions.Func1; import rx.Observable; @@ -40,7 +44,7 @@ * An instance of this class provides access to all the operations defined * in AvailabilitySets. */ -public class AvailabilitySetsInner implements InnerSupportsGet, InnerSupportsDelete { +public class AvailabilitySetsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { /** The Retrofit service to perform REST calls. */ private AvailabilitySetsService service; /** The service client containing this operation class. */ @@ -78,6 +82,10 @@ interface AvailabilitySetsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("availabilitySetName") String availabilitySetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.compute.v2017_12_01.AvailabilitySets list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.compute.v2017_12_01.AvailabilitySets listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -86,6 +94,14 @@ interface AvailabilitySetsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes") Observable> listAvailableSizes(@Path("resourceGroupName") String resourceGroupName, @Path("availabilitySetName") String availabilitySetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.compute.v2017_12_01.AvailabilitySets listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.compute.v2017_12_01.AvailabilitySets listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + } /** @@ -449,20 +465,128 @@ private ServiceResponse getByResourceGroupDelegate(Respons .build(response); } + /** + * Lists all availability sets in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AvailabilitySetInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all availability sets in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all availability sets in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all availability sets in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all availability sets in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AvailabilitySetInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Lists all availability sets in a resource group. * * @param resourceGroupName The name of the resource group. - * @return the PagedList object if successful. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AvailabilitySetInner> object if successful. */ - public PagedList listByResourceGroup(String resourceGroupName) { - PageImpl page = new PageImpl<>(); - page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body()); - page.setNextPageLink(null); - return new PagedList(page) { + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { - return null; + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } @@ -472,36 +596,67 @@ public Page nextPage(String nextPageLink) { * * @param resourceGroupName The name of the resource group. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(listByResourceGroupWithServiceResponseAsync(resourceGroupName), serviceCallback); + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** * Lists all availability sets in a resource group. * * @param resourceGroupName The name of the resource group. - * @return the observable to the List<AvailabilitySetInner> object + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object */ - public Observable> listByResourceGroupAsync(String resourceGroupName) { - return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - PageImpl page = new PageImpl<>(); - page.setItems(response.body()); - return page; - } - }); + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** * Lists all availability sets in a resource group. * * @param resourceGroupName The name of the resource group. - * @return the observable to the List<AvailabilitySetInner> object + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object */ - public Observable>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName) { + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all availability sets in a resource group. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AvailabilitySetInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -512,17 +667,12 @@ public Observable>> listByResourceGro throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); - List items = null; - if (result.body() != null) { - items = result.body().items(); - } - ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); - return Observable.just(clientResponse); + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -530,9 +680,9 @@ public Observable>> call(Response> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -628,4 +778,226 @@ private ServiceResponse> listAvailableSizesDel .build(response); } + /** + * Lists all availability sets in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AvailabilitySetInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all availability sets in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all availability sets in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all availability sets in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all availability sets in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AvailabilitySetInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all availability sets in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AvailabilitySetInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all availability sets in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all availability sets in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all availability sets in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AvailabilitySetInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all availability sets in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AvailabilitySetInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + } diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/ComputeOperationValueInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/ComputeOperationValueInner.java index e82311886fd3..c41754b4b0ac 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/ComputeOperationValueInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/ComputeOperationValueInner.java @@ -53,7 +53,7 @@ public class ComputeOperationValueInner { private String provider; /** - * Get the origin value. + * Get the origin of the compute operation. * * @return the origin value */ @@ -62,7 +62,7 @@ public String origin() { } /** - * Get the name value. + * Get the name of the compute operation. * * @return the name value */ @@ -71,7 +71,7 @@ public String name() { } /** - * Get the operation value. + * Get the display name of the compute operation. * * @return the operation value */ @@ -80,7 +80,7 @@ public String operation() { } /** - * Get the resource value. + * Get the display name of the resource the operation applies to. * * @return the resource value */ @@ -89,7 +89,7 @@ public String resource() { } /** - * Get the description value. + * Get the description of the operation. * * @return the description value */ @@ -98,7 +98,7 @@ public String description() { } /** - * Get the provider value. + * Get the resource provider for the operation. * * @return the provider value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/ImageInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/ImageInner.java index 8677533dc069..e1f7806ff729 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/ImageInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/ImageInner.java @@ -40,7 +40,7 @@ public class ImageInner extends Resource { private String provisioningState; /** - * Get the sourceVirtualMachine value. + * Get the source virtual machine from which Image is created. * * @return the sourceVirtualMachine value */ @@ -49,7 +49,7 @@ public SubResource sourceVirtualMachine() { } /** - * Set the sourceVirtualMachine value. + * Set the source virtual machine from which Image is created. * * @param sourceVirtualMachine the sourceVirtualMachine value to set * @return the ImageInner object itself. @@ -60,7 +60,7 @@ public ImageInner withSourceVirtualMachine(SubResource sourceVirtualMachine) { } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -69,7 +69,7 @@ public ImageStorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the ImageInner object itself. @@ -80,7 +80,7 @@ public ImageInner withStorageProfile(ImageStorageProfile storageProfile) { } /** - * Get the provisioningState value. + * Get the provisioning state. * * @return the provisioningState value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/LogAnalyticsOperationResultInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/LogAnalyticsOperationResultInner.java index 86e31eb7330c..afca07fcf051 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/LogAnalyticsOperationResultInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/LogAnalyticsOperationResultInner.java @@ -22,7 +22,7 @@ public class LogAnalyticsOperationResultInner extends OperationStatusResponseInn private LogAnalyticsOutput properties; /** - * Get the properties value. + * Get logAnalyticsOutput. * * @return the properties value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/OperationStatusResponseInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/OperationStatusResponseInner.java index 66f3b7784f70..ef1d5db2a087 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/OperationStatusResponseInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/OperationStatusResponseInner.java @@ -47,7 +47,7 @@ public class OperationStatusResponseInner { private ApiError error; /** - * Get the name value. + * Get operation ID. * * @return the name value */ @@ -56,7 +56,7 @@ public String name() { } /** - * Get the status value. + * Get operation status. * * @return the status value */ @@ -65,7 +65,7 @@ public String status() { } /** - * Get the startTime value. + * Get start time of the operation. * * @return the startTime value */ @@ -74,7 +74,7 @@ public DateTime startTime() { } /** - * Get the endTime value. + * Get end time of the operation. * * @return the endTime value */ @@ -83,7 +83,7 @@ public DateTime endTime() { } /** - * Get the error value. + * Get api error. * * @return the error value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/OperationsImpl.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/OperationsImpl.java index abee543a7818..fc45996cbeec 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/OperationsImpl.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/OperationsImpl.java @@ -37,7 +37,8 @@ public Observable listAsync() { public Observable call(List innerList) { return Observable.from(innerList); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public ComputeOperationValue call(ComputeOperationValueInner inner) { return new ComputeOperationValueImpl(inner, manager()); diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RecoveryWalkResponseInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RecoveryWalkResponseInner.java index c77b8cec2975..c58bd81dfb02 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RecoveryWalkResponseInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RecoveryWalkResponseInner.java @@ -28,7 +28,7 @@ public class RecoveryWalkResponseInner { private Integer nextPlatformUpdateDomain; /** - * Get the walkPerformed value. + * Get whether the recovery walk was performed. * * @return the walkPerformed value */ @@ -37,7 +37,7 @@ public Boolean walkPerformed() { } /** - * Get the nextPlatformUpdateDomain value. + * Get the next update domain that needs to be walked. Null means walk spanning all update domains has been completed. * * @return the nextPlatformUpdateDomain value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RollingUpgradeStatusInfoInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RollingUpgradeStatusInfoInner.java index 0af22fd1bbf4..3e41bafe67f3 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RollingUpgradeStatusInfoInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RollingUpgradeStatusInfoInner.java @@ -47,7 +47,7 @@ public class RollingUpgradeStatusInfoInner extends Resource { private ApiError error; /** - * Get the policy value. + * Get the rolling upgrade policies applied for this upgrade. * * @return the policy value */ @@ -56,7 +56,7 @@ public RollingUpgradePolicy policy() { } /** - * Get the runningStatus value. + * Get information about the current running state of the overall upgrade. * * @return the runningStatus value */ @@ -65,7 +65,7 @@ public RollingUpgradeRunningStatus runningStatus() { } /** - * Get the progress value. + * Get information about the number of virtual machine instances in each upgrade state. * * @return the progress value */ @@ -74,7 +74,7 @@ public RollingUpgradeProgressInfo progress() { } /** - * Get the error value. + * Get error details for this upgrade, if there are any. * * @return the error value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandDocumentBaseInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandDocumentBaseInner.java index 11ee1a247b1e..2123b1fcaade 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandDocumentBaseInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandDocumentBaseInner.java @@ -46,7 +46,7 @@ public class RunCommandDocumentBaseInner { private String description; /** - * Get the schema value. + * Get the VM run command schema. * * @return the schema value */ @@ -55,7 +55,7 @@ public String schema() { } /** - * Set the schema value. + * Set the VM run command schema. * * @param schema the schema value to set * @return the RunCommandDocumentBaseInner object itself. @@ -66,7 +66,7 @@ public RunCommandDocumentBaseInner withSchema(String schema) { } /** - * Get the id value. + * Get the VM run command id. * * @return the id value */ @@ -75,7 +75,7 @@ public String id() { } /** - * Set the id value. + * Set the VM run command id. * * @param id the id value to set * @return the RunCommandDocumentBaseInner object itself. @@ -86,7 +86,7 @@ public RunCommandDocumentBaseInner withId(String id) { } /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -95,7 +95,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the RunCommandDocumentBaseInner object itself. @@ -106,7 +106,7 @@ public RunCommandDocumentBaseInner withOsType(OperatingSystemTypes osType) { } /** - * Get the label value. + * Get the VM run command label. * * @return the label value */ @@ -115,7 +115,7 @@ public String label() { } /** - * Set the label value. + * Set the VM run command label. * * @param label the label value to set * @return the RunCommandDocumentBaseInner object itself. @@ -126,7 +126,7 @@ public RunCommandDocumentBaseInner withLabel(String label) { } /** - * Get the description value. + * Get the VM run command description. * * @return the description value */ @@ -135,7 +135,7 @@ public String description() { } /** - * Set the description value. + * Set the VM run command description. * * @param description the description value to set * @return the RunCommandDocumentBaseInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandDocumentInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandDocumentInner.java index ba8b20178115..e54ad7176894 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandDocumentInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandDocumentInner.java @@ -29,7 +29,7 @@ public class RunCommandDocumentInner extends RunCommandDocumentBaseInner { private List parameters; /** - * Get the script value. + * Get the script to be executed. * * @return the script value */ @@ -38,7 +38,7 @@ public List script() { } /** - * Set the script value. + * Set the script to be executed. * * @param script the script value to set * @return the RunCommandDocumentInner object itself. @@ -49,7 +49,7 @@ public RunCommandDocumentInner withScript(List script) { } /** - * Get the parameters value. + * Get the parameters used by the script. * * @return the parameters value */ @@ -58,7 +58,7 @@ public List parameters() { } /** - * Set the parameters value. + * Set the parameters used by the script. * * @param parameters the parameters value to set * @return the RunCommandDocumentInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandResultInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandResultInner.java index cec1487a8d06..ee7ce16a0929 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandResultInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/RunCommandResultInner.java @@ -23,7 +23,7 @@ public class RunCommandResultInner extends OperationStatusResponseInner { private Object output; /** - * Get the output value. + * Get operation output data (raw JSON). * * @return the output value */ @@ -32,7 +32,7 @@ public Object output() { } /** - * Set the output value. + * Set operation output data (raw JSON). * * @param output the output value to set * @return the RunCommandResultInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/UpgradeOperationHistoricalStatusInfoInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/UpgradeOperationHistoricalStatusInfoInner.java index 4a918adffc9f..07cce45a581b 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/UpgradeOperationHistoricalStatusInfoInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/UpgradeOperationHistoricalStatusInfoInner.java @@ -34,7 +34,7 @@ public class UpgradeOperationHistoricalStatusInfoInner { private String location; /** - * Get the properties value. + * Get information about the properties of the upgrade operation. * * @return the properties value */ @@ -43,7 +43,7 @@ public UpgradeOperationHistoricalStatusInfoProperties properties() { } /** - * Get the type value. + * Get resource type. * * @return the type value */ @@ -52,7 +52,7 @@ public String type() { } /** - * Get the location value. + * Get resource location. * * @return the location value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/UsageInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/UsageInner.java index 842f01bf0fea..294d2ffaef27 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/UsageInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/UsageInner.java @@ -41,13 +41,16 @@ public class UsageInner { /** * Creates an instance of UsageInner class. + * @param currentValue the current usage of the resource. + * @param limit the maximum permitted usage of the resource. + * @param name the name of the type of usage. */ public UsageInner() { unit = "Count"; } /** - * Get the unit value. + * Get an enum describing the unit of usage measurement. * * @return the unit value */ @@ -56,7 +59,7 @@ public String unit() { } /** - * Set the unit value. + * Set an enum describing the unit of usage measurement. * * @param unit the unit value to set * @return the UsageInner object itself. @@ -67,7 +70,7 @@ public UsageInner withUnit(String unit) { } /** - * Get the currentValue value. + * Get the current usage of the resource. * * @return the currentValue value */ @@ -76,7 +79,7 @@ public int currentValue() { } /** - * Set the currentValue value. + * Set the current usage of the resource. * * @param currentValue the currentValue value to set * @return the UsageInner object itself. @@ -87,7 +90,7 @@ public UsageInner withCurrentValue(int currentValue) { } /** - * Get the limit value. + * Get the maximum permitted usage of the resource. * * @return the limit value */ @@ -96,7 +99,7 @@ public long limit() { } /** - * Set the limit value. + * Set the maximum permitted usage of the resource. * * @param limit the limit value to set * @return the UsageInner object itself. @@ -107,7 +110,7 @@ public UsageInner withLimit(long limit) { } /** - * Get the name value. + * Get the name of the type of usage. * * @return the name value */ @@ -116,7 +119,7 @@ public UsageName name() { } /** - * Set the name value. + * Set the name of the type of usage. * * @param name the name value to set * @return the UsageInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineCaptureResultInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineCaptureResultInner.java index 80219944631c..7e63454abbd1 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineCaptureResultInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineCaptureResultInner.java @@ -24,7 +24,7 @@ public class VirtualMachineCaptureResultInner extends SubResource { private Object output; /** - * Get the output value. + * Get operation output data (raw JSON). * * @return the output value */ @@ -33,7 +33,7 @@ public Object output() { } /** - * Set the output value. + * Set operation output data (raw JSON). * * @param output the output value to set * @return the VirtualMachineCaptureResultInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionImageInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionImageInner.java index cf3d684fc058..5a0b62e1348e 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionImageInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionImageInner.java @@ -52,7 +52,7 @@ public class VirtualMachineExtensionImageInner extends Resource { private Boolean supportsMultipleExtensions; /** - * Get the operatingSystem value. + * Get the operating system this extension supports. * * @return the operatingSystem value */ @@ -61,7 +61,7 @@ public String operatingSystem() { } /** - * Set the operatingSystem value. + * Set the operating system this extension supports. * * @param operatingSystem the operatingSystem value to set * @return the VirtualMachineExtensionImageInner object itself. @@ -72,7 +72,7 @@ public VirtualMachineExtensionImageInner withOperatingSystem(String operatingSys } /** - * Get the computeRole value. + * Get the type of role (IaaS or PaaS) this extension supports. * * @return the computeRole value */ @@ -81,7 +81,7 @@ public String computeRole() { } /** - * Set the computeRole value. + * Set the type of role (IaaS or PaaS) this extension supports. * * @param computeRole the computeRole value to set * @return the VirtualMachineExtensionImageInner object itself. @@ -92,7 +92,7 @@ public VirtualMachineExtensionImageInner withComputeRole(String computeRole) { } /** - * Get the handlerSchema value. + * Get the schema defined by publisher, where extension consumers should provide settings in a matching schema. * * @return the handlerSchema value */ @@ -101,7 +101,7 @@ public String handlerSchema() { } /** - * Set the handlerSchema value. + * Set the schema defined by publisher, where extension consumers should provide settings in a matching schema. * * @param handlerSchema the handlerSchema value to set * @return the VirtualMachineExtensionImageInner object itself. @@ -112,7 +112,7 @@ public VirtualMachineExtensionImageInner withHandlerSchema(String handlerSchema) } /** - * Get the vmScaleSetEnabled value. + * Get whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. * * @return the vmScaleSetEnabled value */ @@ -121,7 +121,7 @@ public Boolean vmScaleSetEnabled() { } /** - * Set the vmScaleSetEnabled value. + * Set whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. * * @param vmScaleSetEnabled the vmScaleSetEnabled value to set * @return the VirtualMachineExtensionImageInner object itself. @@ -132,7 +132,7 @@ public VirtualMachineExtensionImageInner withVmScaleSetEnabled(Boolean vmScaleSe } /** - * Get the supportsMultipleExtensions value. + * Get whether the handler can support multiple extensions. * * @return the supportsMultipleExtensions value */ @@ -141,7 +141,7 @@ public Boolean supportsMultipleExtensions() { } /** - * Set the supportsMultipleExtensions value. + * Set whether the handler can support multiple extensions. * * @param supportsMultipleExtensions the supportsMultipleExtensions value to set * @return the VirtualMachineExtensionImageInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionImagesImpl.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionImagesImpl.java index 58df049ee1b8..e7ec388e0792 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionImagesImpl.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionImagesImpl.java @@ -80,7 +80,8 @@ public Observable listTypesAsync(String location, public Observable call(List innerList) { return Observable.from(innerList); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public VirtualMachineExtensionImage call(VirtualMachineExtensionImageInner inner) { return new VirtualMachineExtensionImageImpl(inner, manager()); diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionInner.java index e3a7e7f13e38..fb00b50e8c67 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionInner.java @@ -79,7 +79,7 @@ public class VirtualMachineExtensionInner extends Resource { private VirtualMachineExtensionInstanceView instanceView; /** - * Get the forceUpdateTag value. + * Get how the extension handler should be forced to update even if the extension configuration has not changed. * * @return the forceUpdateTag value */ @@ -88,7 +88,7 @@ public String forceUpdateTag() { } /** - * Set the forceUpdateTag value. + * Set how the extension handler should be forced to update even if the extension configuration has not changed. * * @param forceUpdateTag the forceUpdateTag value to set * @return the VirtualMachineExtensionInner object itself. @@ -99,7 +99,7 @@ public VirtualMachineExtensionInner withForceUpdateTag(String forceUpdateTag) { } /** - * Get the publisher value. + * Get the name of the extension handler publisher. * * @return the publisher value */ @@ -108,7 +108,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the name of the extension handler publisher. * * @param publisher the publisher value to set * @return the VirtualMachineExtensionInner object itself. @@ -119,7 +119,7 @@ public VirtualMachineExtensionInner withPublisher(String publisher) { } /** - * Get the virtualMachineExtensionType value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the virtualMachineExtensionType value */ @@ -128,7 +128,7 @@ public String virtualMachineExtensionType() { } /** - * Set the virtualMachineExtensionType value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param virtualMachineExtensionType the virtualMachineExtensionType value to set * @return the VirtualMachineExtensionInner object itself. @@ -139,7 +139,7 @@ public VirtualMachineExtensionInner withVirtualMachineExtensionType(String virtu } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -148,7 +148,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionInner object itself. @@ -159,7 +159,7 @@ public VirtualMachineExtensionInner withTypeHandlerVersion(String typeHandlerVer } /** - * Get the autoUpgradeMinorVersion value. + * Get indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @return the autoUpgradeMinorVersion value */ @@ -168,7 +168,7 @@ public Boolean autoUpgradeMinorVersion() { } /** - * Set the autoUpgradeMinorVersion value. + * Set indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set * @return the VirtualMachineExtensionInner object itself. @@ -179,7 +179,7 @@ public VirtualMachineExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgr } /** - * Get the settings value. + * Get json formatted public settings for the extension. * * @return the settings value */ @@ -188,7 +188,7 @@ public Object settings() { } /** - * Set the settings value. + * Set json formatted public settings for the extension. * * @param settings the settings value to set * @return the VirtualMachineExtensionInner object itself. @@ -199,7 +199,7 @@ public VirtualMachineExtensionInner withSettings(Object settings) { } /** - * Get the protectedSettings value. + * Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @return the protectedSettings value */ @@ -208,7 +208,7 @@ public Object protectedSettings() { } /** - * Set the protectedSettings value. + * Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @param protectedSettings the protectedSettings value to set * @return the VirtualMachineExtensionInner object itself. @@ -219,7 +219,7 @@ public VirtualMachineExtensionInner withProtectedSettings(Object protectedSettin } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -228,7 +228,7 @@ public String provisioningState() { } /** - * Get the instanceView value. + * Get the virtual machine extension instance view. * * @return the instanceView value */ @@ -237,7 +237,7 @@ public VirtualMachineExtensionInstanceView instanceView() { } /** - * Set the instanceView value. + * Set the virtual machine extension instance view. * * @param instanceView the instanceView value to set * @return the VirtualMachineExtensionInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionsListResultInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionsListResultInner.java index d253ec1fb1bf..6bdfbf7e4e3f 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionsListResultInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineExtensionsListResultInner.java @@ -22,7 +22,7 @@ public class VirtualMachineExtensionsListResultInner { private List value; /** - * Get the value value. + * Get the list of extensions. * * @return the value value */ @@ -31,7 +31,7 @@ public List value() { } /** - * Set the value value. + * Set the list of extensions. * * @param value the value value to set * @return the VirtualMachineExtensionsListResultInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImageResourceInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImageResourceInner.java index f5965ef35a69..f6e31814cf2d 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImageResourceInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImageResourceInner.java @@ -37,7 +37,7 @@ public class VirtualMachineImageResourceInner extends SubResource { private Map tags; /** - * Get the name value. + * Get the name of the resource. * * @return the name value */ @@ -46,7 +46,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource. * * @param name the name value to set * @return the VirtualMachineImageResourceInner object itself. @@ -57,7 +57,7 @@ public VirtualMachineImageResourceInner withName(String name) { } /** - * Get the location value. + * Get the supported Azure location of the resource. * * @return the location value */ @@ -66,7 +66,7 @@ public String location() { } /** - * Set the location value. + * Set the supported Azure location of the resource. * * @param location the location value to set * @return the VirtualMachineImageResourceInner object itself. @@ -77,7 +77,7 @@ public VirtualMachineImageResourceInner withLocation(String location) { } /** - * Get the tags value. + * Get specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). * * @return the tags value */ @@ -86,7 +86,7 @@ public Map tags() { } /** - * Set the tags value. + * Set specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). * * @param tags the tags value to set * @return the VirtualMachineImageResourceInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImagesImpl.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImagesImpl.java index 2ed07babff36..7a43b0b28223 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImagesImpl.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImagesImpl.java @@ -110,7 +110,8 @@ public Observable listOffersAsync(String location, public Observable call(List innerList) { return Observable.from(innerList); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public VirtualMachineImageResource call(VirtualMachineImageResourceInner inner) { return new VirtualMachineImageResourceImpl(inner, manager()); diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImpl.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImpl.java index ed1c149f6270..11530ec228f6 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImpl.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineImpl.java @@ -21,7 +21,7 @@ import com.microsoft.azure.management.compute.v2017_12_01.NetworkProfile; import com.microsoft.azure.management.compute.v2017_12_01.DiagnosticsProfile; import com.microsoft.azure.management.compute.v2017_12_01.VirtualMachineIdentity; -import com.microsoft.azure.management.compute.v2017_12_01.VirtualMachineInstanceView; +import com.microsoft.azure.management.compute.v2017_12_01.VirtualMachineScaleSetVMInstanceView; import java.util.ArrayList; import com.microsoft.azure.management.compute.v2017_12_01.VirtualMachineExtension; import rx.functions.Func1; @@ -97,10 +97,10 @@ public VirtualMachineIdentity identity() { } @Override - public VirtualMachineInstanceView instanceView() { - VirtualMachineInstanceViewInner inner = this.inner().instanceView(); + public VirtualMachineScaleSetVMInstanceView instanceView() { + VirtualMachineScaleSetVMInstanceViewInner inner = this.inner().instanceView(); if (inner != null) { - return new VirtualMachineInstanceViewImpl(inner, manager()); + return new VirtualMachineScaleSetVMInstanceViewImpl(inner, manager()); } else { return null; } diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineInner.java index ab7e4d2768d9..a96ffa47dcf3 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineInner.java @@ -96,7 +96,7 @@ public class VirtualMachineInner extends Resource { * The virtual machine instance view. */ @JsonProperty(value = "properties.instanceView", access = JsonProperty.Access.WRITE_ONLY) - private VirtualMachineInstanceViewInner instanceView; + private VirtualMachineScaleSetVMInstanceViewInner instanceView; /** * Specifies that the image or disk that is being used was licensed @@ -140,7 +140,7 @@ public class VirtualMachineInner extends Resource { private List zones; /** - * Get the plan value. + * Get specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @return the plan value */ @@ -149,7 +149,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @param plan the plan value to set * @return the VirtualMachineInner object itself. @@ -160,7 +160,7 @@ public VirtualMachineInner withPlan(Plan plan) { } /** - * Get the hardwareProfile value. + * Get specifies the hardware settings for the virtual machine. * * @return the hardwareProfile value */ @@ -169,7 +169,7 @@ public HardwareProfile hardwareProfile() { } /** - * Set the hardwareProfile value. + * Set specifies the hardware settings for the virtual machine. * * @param hardwareProfile the hardwareProfile value to set * @return the VirtualMachineInner object itself. @@ -180,7 +180,7 @@ public VirtualMachineInner withHardwareProfile(HardwareProfile hardwareProfile) } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -189,7 +189,7 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineInner object itself. @@ -200,7 +200,7 @@ public VirtualMachineInner withStorageProfile(StorageProfile storageProfile) { } /** - * Get the osProfile value. + * Get specifies the operating system settings for the virtual machine. * * @return the osProfile value */ @@ -209,7 +209,7 @@ public OSProfile osProfile() { } /** - * Set the osProfile value. + * Set specifies the operating system settings for the virtual machine. * * @param osProfile the osProfile value to set * @return the VirtualMachineInner object itself. @@ -220,7 +220,7 @@ public VirtualMachineInner withOsProfile(OSProfile osProfile) { } /** - * Get the networkProfile value. + * Get specifies the network interfaces of the virtual machine. * * @return the networkProfile value */ @@ -229,7 +229,7 @@ public NetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set specifies the network interfaces of the virtual machine. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineInner object itself. @@ -240,7 +240,7 @@ public VirtualMachineInner withNetworkProfile(NetworkProfile networkProfile) { } /** - * Get the diagnosticsProfile value. + * Get specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @return the diagnosticsProfile value */ @@ -249,7 +249,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineInner object itself. @@ -260,7 +260,7 @@ public VirtualMachineInner withDiagnosticsProfile(DiagnosticsProfile diagnostics } /** - * Get the availabilitySet value. + * Get specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @return the availabilitySet value */ @@ -269,7 +269,7 @@ public SubResource availabilitySet() { } /** - * Set the availabilitySet value. + * Set specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @param availabilitySet the availabilitySet value to set * @return the VirtualMachineInner object itself. @@ -280,7 +280,7 @@ public VirtualMachineInner withAvailabilitySet(SubResource availabilitySet) { } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -289,16 +289,16 @@ public String provisioningState() { } /** - * Get the instanceView value. + * Get the virtual machine instance view. * * @return the instanceView value */ - public VirtualMachineInstanceViewInner instanceView() { + public VirtualMachineScaleSetVMInstanceViewInner instanceView() { return this.instanceView; } /** - * Get the licenseType value. + * Get specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @return the licenseType value */ @@ -307,7 +307,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @param licenseType the licenseType value to set * @return the VirtualMachineInner object itself. @@ -318,7 +318,7 @@ public VirtualMachineInner withLicenseType(String licenseType) { } /** - * Get the vmId value. + * Get specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. * * @return the vmId value */ @@ -327,7 +327,7 @@ public String vmId() { } /** - * Get the resources value. + * Get the virtual machine child extension resources. * * @return the resources value */ @@ -336,7 +336,7 @@ public List resources() { } /** - * Get the identity value. + * Get the identity of the virtual machine, if configured. * * @return the identity value */ @@ -345,7 +345,7 @@ public VirtualMachineIdentity identity() { } /** - * Set the identity value. + * Set the identity of the virtual machine, if configured. * * @param identity the identity value to set * @return the VirtualMachineInner object itself. @@ -356,7 +356,7 @@ public VirtualMachineInner withIdentity(VirtualMachineIdentity identity) { } /** - * Get the zones value. + * Get the virtual machine zones. * * @return the zones value */ @@ -365,7 +365,7 @@ public List zones() { } /** - * Set the zones value. + * Set the virtual machine zones. * * @param zones the zones value to set * @return the VirtualMachineInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineInstanceViewInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineInstanceViewInner.java index 491e8b04bbb0..02b18940d335 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineInstanceViewInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineInstanceViewInner.java @@ -99,7 +99,7 @@ public class VirtualMachineInstanceViewInner { private List statuses; /** - * Get the platformUpdateDomain value. + * Get specifies the update domain of the virtual machine. * * @return the platformUpdateDomain value */ @@ -108,7 +108,7 @@ public Integer platformUpdateDomain() { } /** - * Set the platformUpdateDomain value. + * Set specifies the update domain of the virtual machine. * * @param platformUpdateDomain the platformUpdateDomain value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -119,7 +119,7 @@ public VirtualMachineInstanceViewInner withPlatformUpdateDomain(Integer platform } /** - * Get the platformFaultDomain value. + * Get specifies the fault domain of the virtual machine. * * @return the platformFaultDomain value */ @@ -128,7 +128,7 @@ public Integer platformFaultDomain() { } /** - * Set the platformFaultDomain value. + * Set specifies the fault domain of the virtual machine. * * @param platformFaultDomain the platformFaultDomain value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -139,7 +139,7 @@ public VirtualMachineInstanceViewInner withPlatformFaultDomain(Integer platformF } /** - * Get the computerName value. + * Get the computer name assigned to the virtual machine. * * @return the computerName value */ @@ -148,7 +148,7 @@ public String computerName() { } /** - * Set the computerName value. + * Set the computer name assigned to the virtual machine. * * @param computerName the computerName value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -159,7 +159,7 @@ public VirtualMachineInstanceViewInner withComputerName(String computerName) { } /** - * Get the osName value. + * Get the Operating System running on the virtual machine. * * @return the osName value */ @@ -168,7 +168,7 @@ public String osName() { } /** - * Set the osName value. + * Set the Operating System running on the virtual machine. * * @param osName the osName value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -179,7 +179,7 @@ public VirtualMachineInstanceViewInner withOsName(String osName) { } /** - * Get the osVersion value. + * Get the version of Operating System running on the virtual machine. * * @return the osVersion value */ @@ -188,7 +188,7 @@ public String osVersion() { } /** - * Set the osVersion value. + * Set the version of Operating System running on the virtual machine. * * @param osVersion the osVersion value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -199,7 +199,7 @@ public VirtualMachineInstanceViewInner withOsVersion(String osVersion) { } /** - * Get the rdpThumbPrint value. + * Get the Remote desktop certificate thumbprint. * * @return the rdpThumbPrint value */ @@ -208,7 +208,7 @@ public String rdpThumbPrint() { } /** - * Set the rdpThumbPrint value. + * Set the Remote desktop certificate thumbprint. * * @param rdpThumbPrint the rdpThumbPrint value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -219,7 +219,7 @@ public VirtualMachineInstanceViewInner withRdpThumbPrint(String rdpThumbPrint) { } /** - * Get the vmAgent value. + * Get the VM Agent running on the virtual machine. * * @return the vmAgent value */ @@ -228,7 +228,7 @@ public VirtualMachineAgentInstanceView vmAgent() { } /** - * Set the vmAgent value. + * Set the VM Agent running on the virtual machine. * * @param vmAgent the vmAgent value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -239,7 +239,7 @@ public VirtualMachineInstanceViewInner withVmAgent(VirtualMachineAgentInstanceVi } /** - * Get the maintenanceRedeployStatus value. + * Get the Maintenance Operation status on the virtual machine. * * @return the maintenanceRedeployStatus value */ @@ -248,7 +248,7 @@ public MaintenanceRedeployStatus maintenanceRedeployStatus() { } /** - * Set the maintenanceRedeployStatus value. + * Set the Maintenance Operation status on the virtual machine. * * @param maintenanceRedeployStatus the maintenanceRedeployStatus value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -259,7 +259,7 @@ public VirtualMachineInstanceViewInner withMaintenanceRedeployStatus(Maintenance } /** - * Get the disks value. + * Get the virtual machine disk information. * * @return the disks value */ @@ -268,7 +268,7 @@ public List disks() { } /** - * Set the disks value. + * Set the virtual machine disk information. * * @param disks the disks value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -279,7 +279,7 @@ public VirtualMachineInstanceViewInner withDisks(List disks) { } /** - * Get the extensions value. + * Get the extensions information. * * @return the extensions value */ @@ -288,7 +288,7 @@ public List extensions() { } /** - * Set the extensions value. + * Set the extensions information. * * @param extensions the extensions value to set * @return the VirtualMachineInstanceViewInner object itself. @@ -299,7 +299,7 @@ public VirtualMachineInstanceViewInner withExtensions(List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineInstanceViewInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetExtensionInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetExtensionInner.java index c846b8739ea3..fb2d9d32dcdc 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetExtensionInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetExtensionInner.java @@ -79,7 +79,7 @@ public class VirtualMachineScaleSetExtensionInner extends SubResourceReadOnly { private String provisioningState; /** - * Get the name value. + * Get the name of the extension. * * @return the name value */ @@ -88,7 +88,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the extension. * * @param name the name value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -99,7 +99,7 @@ public VirtualMachineScaleSetExtensionInner withName(String name) { } /** - * Get the forceUpdateTag value. + * Get if a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. * * @return the forceUpdateTag value */ @@ -108,7 +108,7 @@ public String forceUpdateTag() { } /** - * Set the forceUpdateTag value. + * Set if a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. * * @param forceUpdateTag the forceUpdateTag value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -119,7 +119,7 @@ public VirtualMachineScaleSetExtensionInner withForceUpdateTag(String forceUpdat } /** - * Get the publisher value. + * Get the name of the extension handler publisher. * * @return the publisher value */ @@ -128,7 +128,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set the name of the extension handler publisher. * * @param publisher the publisher value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -139,7 +139,7 @@ public VirtualMachineScaleSetExtensionInner withPublisher(String publisher) { } /** - * Get the type value. + * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */ @@ -148,7 +148,7 @@ public String type() { } /** - * Set the type value. + * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -159,7 +159,7 @@ public VirtualMachineScaleSetExtensionInner withType(String type) { } /** - * Get the typeHandlerVersion value. + * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */ @@ -168,7 +168,7 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion value. + * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -179,7 +179,7 @@ public VirtualMachineScaleSetExtensionInner withTypeHandlerVersion(String typeHa } /** - * Get the autoUpgradeMinorVersion value. + * Get indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @return the autoUpgradeMinorVersion value */ @@ -188,7 +188,7 @@ public Boolean autoUpgradeMinorVersion() { } /** - * Set the autoUpgradeMinorVersion value. + * Set indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -199,7 +199,7 @@ public VirtualMachineScaleSetExtensionInner withAutoUpgradeMinorVersion(Boolean } /** - * Get the settings value. + * Get json formatted public settings for the extension. * * @return the settings value */ @@ -208,7 +208,7 @@ public Object settings() { } /** - * Set the settings value. + * Set json formatted public settings for the extension. * * @param settings the settings value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -219,7 +219,7 @@ public VirtualMachineScaleSetExtensionInner withSettings(Object settings) { } /** - * Get the protectedSettings value. + * Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @return the protectedSettings value */ @@ -228,7 +228,7 @@ public Object protectedSettings() { } /** - * Set the protectedSettings value. + * Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @param protectedSettings the protectedSettings value to set * @return the VirtualMachineScaleSetExtensionInner object itself. @@ -239,7 +239,7 @@ public VirtualMachineScaleSetExtensionInner withProtectedSettings(Object protect } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetInner.java index ddb95c686660..56053bb66a89 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetInner.java @@ -105,7 +105,7 @@ public class VirtualMachineScaleSetInner extends Resource { private List zones; /** - * Get the sku value. + * Get the virtual machine scale set sku. * * @return the sku value */ @@ -114,7 +114,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the virtual machine scale set sku. * * @param sku the sku value to set * @return the VirtualMachineScaleSetInner object itself. @@ -125,7 +125,7 @@ public VirtualMachineScaleSetInner withSku(Sku sku) { } /** - * Get the plan value. + * Get specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @return the plan value */ @@ -134,7 +134,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @param plan the plan value to set * @return the VirtualMachineScaleSetInner object itself. @@ -145,7 +145,7 @@ public VirtualMachineScaleSetInner withPlan(Plan plan) { } /** - * Get the upgradePolicy value. + * Get the upgrade policy. * * @return the upgradePolicy value */ @@ -154,7 +154,7 @@ public UpgradePolicy upgradePolicy() { } /** - * Set the upgradePolicy value. + * Set the upgrade policy. * * @param upgradePolicy the upgradePolicy value to set * @return the VirtualMachineScaleSetInner object itself. @@ -165,7 +165,7 @@ public VirtualMachineScaleSetInner withUpgradePolicy(UpgradePolicy upgradePolicy } /** - * Get the virtualMachineProfile value. + * Get the virtual machine profile. * * @return the virtualMachineProfile value */ @@ -174,7 +174,7 @@ public VirtualMachineScaleSetVMProfile virtualMachineProfile() { } /** - * Set the virtualMachineProfile value. + * Set the virtual machine profile. * * @param virtualMachineProfile the virtualMachineProfile value to set * @return the VirtualMachineScaleSetInner object itself. @@ -185,7 +185,7 @@ public VirtualMachineScaleSetInner withVirtualMachineProfile(VirtualMachineScale } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -194,7 +194,7 @@ public String provisioningState() { } /** - * Get the overprovision value. + * Get specifies whether the Virtual Machine Scale Set should be overprovisioned. * * @return the overprovision value */ @@ -203,7 +203,7 @@ public Boolean overprovision() { } /** - * Set the overprovision value. + * Set specifies whether the Virtual Machine Scale Set should be overprovisioned. * * @param overprovision the overprovision value to set * @return the VirtualMachineScaleSetInner object itself. @@ -214,7 +214,7 @@ public VirtualMachineScaleSetInner withOverprovision(Boolean overprovision) { } /** - * Get the uniqueId value. + * Get specifies the ID which uniquely identifies a Virtual Machine Scale Set. * * @return the uniqueId value */ @@ -223,7 +223,7 @@ public String uniqueId() { } /** - * Get the singlePlacementGroup value. + * Get when true this limits the scale set to a single placement group, of max size 100 virtual machines. * * @return the singlePlacementGroup value */ @@ -232,7 +232,7 @@ public Boolean singlePlacementGroup() { } /** - * Set the singlePlacementGroup value. + * Set when true this limits the scale set to a single placement group, of max size 100 virtual machines. * * @param singlePlacementGroup the singlePlacementGroup value to set * @return the VirtualMachineScaleSetInner object itself. @@ -243,7 +243,7 @@ public VirtualMachineScaleSetInner withSinglePlacementGroup(Boolean singlePlacem } /** - * Get the zoneBalance value. + * Get whether to force stictly even Virtual Machine distribution cross x-zones in case there is zone outage. * * @return the zoneBalance value */ @@ -252,7 +252,7 @@ public Boolean zoneBalance() { } /** - * Set the zoneBalance value. + * Set whether to force stictly even Virtual Machine distribution cross x-zones in case there is zone outage. * * @param zoneBalance the zoneBalance value to set * @return the VirtualMachineScaleSetInner object itself. @@ -263,7 +263,7 @@ public VirtualMachineScaleSetInner withZoneBalance(Boolean zoneBalance) { } /** - * Get the platformFaultDomainCount value. + * Get fault Domain count for each placement group. * * @return the platformFaultDomainCount value */ @@ -272,7 +272,7 @@ public Integer platformFaultDomainCount() { } /** - * Set the platformFaultDomainCount value. + * Set fault Domain count for each placement group. * * @param platformFaultDomainCount the platformFaultDomainCount value to set * @return the VirtualMachineScaleSetInner object itself. @@ -283,7 +283,7 @@ public VirtualMachineScaleSetInner withPlatformFaultDomainCount(Integer platform } /** - * Get the identity value. + * Get the identity of the virtual machine scale set, if configured. * * @return the identity value */ @@ -292,7 +292,7 @@ public VirtualMachineScaleSetIdentity identity() { } /** - * Set the identity value. + * Set the identity of the virtual machine scale set, if configured. * * @param identity the identity value to set * @return the VirtualMachineScaleSetInner object itself. @@ -303,7 +303,7 @@ public VirtualMachineScaleSetInner withIdentity(VirtualMachineScaleSetIdentity i } /** - * Get the zones value. + * Get the virtual machine scale set zones. * * @return the zones value */ @@ -312,7 +312,7 @@ public List zones() { } /** - * Set the zones value. + * Set the virtual machine scale set zones. * * @param zones the zones value to set * @return the VirtualMachineScaleSetInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetInstanceViewInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetInstanceViewInner.java index 11d9b60747fd..9d6e2526326b 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetInstanceViewInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetInstanceViewInner.java @@ -37,7 +37,7 @@ public class VirtualMachineScaleSetInstanceViewInner { private List statuses; /** - * Get the virtualMachine value. + * Get the instance view status summary for the virtual machine scale set. * * @return the virtualMachine value */ @@ -46,7 +46,7 @@ public VirtualMachineScaleSetInstanceViewStatusesSummary virtualMachine() { } /** - * Get the extensions value. + * Get the extensions information. * * @return the extensions value */ @@ -55,7 +55,7 @@ public List extensions() { } /** - * Get the statuses value. + * Get the resource status information. * * @return the statuses value */ @@ -64,7 +64,7 @@ public List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineScaleSetInstanceViewInner object itself. diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetSkuInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetSkuInner.java index 93da5395a124..306d43b2ee3d 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetSkuInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetSkuInner.java @@ -35,7 +35,7 @@ public class VirtualMachineScaleSetSkuInner { private VirtualMachineScaleSetSkuCapacity capacity; /** - * Get the resourceType value. + * Get the type of resource the sku applies to. * * @return the resourceType value */ @@ -44,7 +44,7 @@ public String resourceType() { } /** - * Get the sku value. + * Get the Sku. * * @return the sku value */ @@ -53,7 +53,7 @@ public Sku sku() { } /** - * Get the capacity value. + * Get specifies the number of virtual machines in the scale set. * * @return the capacity value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetVMInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetVMInner.java index e95dbb7a6845..6eda16cb0111 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetVMInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetVMInner.java @@ -145,7 +145,7 @@ public class VirtualMachineScaleSetVMInner extends Resource { private List resources; /** - * Get the instanceId value. + * Get the virtual machine instance ID. * * @return the instanceId value */ @@ -154,7 +154,7 @@ public String instanceId() { } /** - * Get the sku value. + * Get the virtual machine SKU. * * @return the sku value */ @@ -163,7 +163,7 @@ public Sku sku() { } /** - * Get the latestModelApplied value. + * Get specifies whether the latest model has been applied to the virtual machine. * * @return the latestModelApplied value */ @@ -172,7 +172,7 @@ public Boolean latestModelApplied() { } /** - * Get the vmId value. + * Get azure VM unique ID. * * @return the vmId value */ @@ -181,7 +181,7 @@ public String vmId() { } /** - * Get the instanceView value. + * Get the virtual machine instance view. * * @return the instanceView value */ @@ -190,7 +190,7 @@ public VirtualMachineInstanceViewInner instanceView() { } /** - * Get the hardwareProfile value. + * Get specifies the hardware settings for the virtual machine. * * @return the hardwareProfile value */ @@ -199,7 +199,7 @@ public HardwareProfile hardwareProfile() { } /** - * Set the hardwareProfile value. + * Set specifies the hardware settings for the virtual machine. * * @param hardwareProfile the hardwareProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -210,7 +210,7 @@ public VirtualMachineScaleSetVMInner withHardwareProfile(HardwareProfile hardwar } /** - * Get the storageProfile value. + * Get specifies the storage settings for the virtual machine disks. * * @return the storageProfile value */ @@ -219,7 +219,7 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set specifies the storage settings for the virtual machine disks. * * @param storageProfile the storageProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -230,7 +230,7 @@ public VirtualMachineScaleSetVMInner withStorageProfile(StorageProfile storagePr } /** - * Get the osProfile value. + * Get specifies the operating system settings for the virtual machine. * * @return the osProfile value */ @@ -239,7 +239,7 @@ public OSProfile osProfile() { } /** - * Set the osProfile value. + * Set specifies the operating system settings for the virtual machine. * * @param osProfile the osProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -250,7 +250,7 @@ public VirtualMachineScaleSetVMInner withOsProfile(OSProfile osProfile) { } /** - * Get the networkProfile value. + * Get specifies the network interfaces of the virtual machine. * * @return the networkProfile value */ @@ -259,7 +259,7 @@ public NetworkProfile networkProfile() { } /** - * Set the networkProfile value. + * Set specifies the network interfaces of the virtual machine. * * @param networkProfile the networkProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -270,7 +270,7 @@ public VirtualMachineScaleSetVMInner withNetworkProfile(NetworkProfile networkPr } /** - * Get the diagnosticsProfile value. + * Get specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @return the diagnosticsProfile value */ @@ -279,7 +279,7 @@ public DiagnosticsProfile diagnosticsProfile() { } /** - * Set the diagnosticsProfile value. + * Set specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15. * * @param diagnosticsProfile the diagnosticsProfile value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -290,7 +290,7 @@ public VirtualMachineScaleSetVMInner withDiagnosticsProfile(DiagnosticsProfile d } /** - * Get the availabilitySet value. + * Get specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @return the availabilitySet value */ @@ -299,7 +299,7 @@ public SubResource availabilitySet() { } /** - * Set the availabilitySet value. + * Set specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. * * @param availabilitySet the availabilitySet value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -310,7 +310,7 @@ public VirtualMachineScaleSetVMInner withAvailabilitySet(SubResource availabilit } /** - * Get the provisioningState value. + * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */ @@ -319,7 +319,7 @@ public String provisioningState() { } /** - * Get the licenseType value. + * Get specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @return the licenseType value */ @@ -328,7 +328,7 @@ public String licenseType() { } /** - * Set the licenseType value. + * Set specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15. * * @param licenseType the licenseType value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -339,7 +339,7 @@ public VirtualMachineScaleSetVMInner withLicenseType(String licenseType) { } /** - * Get the plan value. + * Get specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @return the plan value */ @@ -348,7 +348,7 @@ public Plan plan() { } /** - * Set the plan value. + * Set specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. * * @param plan the plan value to set * @return the VirtualMachineScaleSetVMInner object itself. @@ -359,7 +359,7 @@ public VirtualMachineScaleSetVMInner withPlan(Plan plan) { } /** - * Get the resources value. + * Get the virtual machine child extension resources. * * @return the resources value */ diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetVMInstanceViewInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetVMInstanceViewInner.java index fff6826a9404..dd787d10a611 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetVMInstanceViewInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetVMInstanceViewInner.java @@ -95,7 +95,7 @@ public class VirtualMachineScaleSetVMInstanceViewInner { private String placementGroupId; /** - * Get the platformUpdateDomain value. + * Get the Update Domain count. * * @return the platformUpdateDomain value */ @@ -104,7 +104,7 @@ public Integer platformUpdateDomain() { } /** - * Set the platformUpdateDomain value. + * Set the Update Domain count. * * @param platformUpdateDomain the platformUpdateDomain value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -115,7 +115,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withPlatformUpdateDomain(Intege } /** - * Get the platformFaultDomain value. + * Get the Fault Domain count. * * @return the platformFaultDomain value */ @@ -124,7 +124,7 @@ public Integer platformFaultDomain() { } /** - * Set the platformFaultDomain value. + * Set the Fault Domain count. * * @param platformFaultDomain the platformFaultDomain value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -135,7 +135,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withPlatformFaultDomain(Integer } /** - * Get the rdpThumbPrint value. + * Get the Remote desktop certificate thumbprint. * * @return the rdpThumbPrint value */ @@ -144,7 +144,7 @@ public String rdpThumbPrint() { } /** - * Set the rdpThumbPrint value. + * Set the Remote desktop certificate thumbprint. * * @param rdpThumbPrint the rdpThumbPrint value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -155,7 +155,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withRdpThumbPrint(String rdpThu } /** - * Get the vmAgent value. + * Get the VM Agent running on the virtual machine. * * @return the vmAgent value */ @@ -164,7 +164,7 @@ public VirtualMachineAgentInstanceView vmAgent() { } /** - * Set the vmAgent value. + * Set the VM Agent running on the virtual machine. * * @param vmAgent the vmAgent value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -175,7 +175,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withVmAgent(VirtualMachineAgent } /** - * Get the maintenanceRedeployStatus value. + * Get the Maintenance Operation status on the virtual machine. * * @return the maintenanceRedeployStatus value */ @@ -184,7 +184,7 @@ public MaintenanceRedeployStatus maintenanceRedeployStatus() { } /** - * Set the maintenanceRedeployStatus value. + * Set the Maintenance Operation status on the virtual machine. * * @param maintenanceRedeployStatus the maintenanceRedeployStatus value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -195,7 +195,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withMaintenanceRedeployStatus(M } /** - * Get the disks value. + * Get the disks information. * * @return the disks value */ @@ -204,7 +204,7 @@ public List disks() { } /** - * Set the disks value. + * Set the disks information. * * @param disks the disks value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -215,7 +215,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withDisks(List extensions() { } /** - * Set the extensions value. + * Set the extensions information. * * @param extensions the extensions value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -235,7 +235,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withExtensions(List statuses() { } /** - * Set the statuses value. + * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineScaleSetVMInstanceViewInner object itself. @@ -284,7 +284,7 @@ public VirtualMachineScaleSetVMInstanceViewInner withStatuses(List getOSUpgradeHistoryAsync public Iterable call(Page page) { return page.items(); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public UpgradeOperationHistoricalStatusInfo call(UpgradeOperationHistoricalStatusInfoInner inner) { return new UpgradeOperationHistoricalStatusInfoImpl(inner, manager()); diff --git a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetsInner.java b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetsInner.java index ceb67b6a912b..bf129b7a349f 100644 --- a/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetsInner.java +++ b/compute/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/compute/v2017_12_01/implementation/VirtualMachineScaleSetsInner.java @@ -3181,7 +3181,7 @@ private ServiceResponse beginRedeployDelegate(Resp } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3195,7 +3195,7 @@ public OperationStatusResponseInner performMaintenance(String resourceGroupName, } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3208,7 +3208,7 @@ public ServiceFuture performMaintenanceAsync(Strin } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3225,7 +3225,7 @@ public OperationStatusResponseInner call(ServiceResponse> performMaintena return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3267,7 +3267,7 @@ public OperationStatusResponseInner performMaintenance(String resourceGroupName, } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3281,7 +3281,7 @@ public ServiceFuture performMaintenanceAsync(Strin } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3299,7 +3299,7 @@ public OperationStatusResponseInner call(ServiceResponse> performMaintena } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3345,7 +3345,7 @@ public OperationStatusResponseInner beginPerformMaintenance(String resourceGroup } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3358,7 +3358,7 @@ public ServiceFuture beginPerformMaintenanceAsync( } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3375,7 +3375,7 @@ public OperationStatusResponseInner call(ServiceResponse> call(Response beginPerformMaintenanceAsync( } /** - * Perform maintenance on one or more virtual machines in a VM scale set. + * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -3460,7 +3460,7 @@ public OperationStatusResponseInner call(ServiceResponse implements VirtualMachines { + protected VirtualMachinesImpl(ComputeManager manager) { + super(manager.inner().virtualMachines(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + VirtualMachinesInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + VirtualMachinesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + VirtualMachinesInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + VirtualMachinesInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VirtualMachine call(VirtualMachineInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + VirtualMachinesInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + VirtualMachinesInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VirtualMachine call(VirtualMachineInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public VirtualMachineImpl define(String name) { + return wrapModel(name); + } + + @Override + public Observable captureAsync(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters) { + VirtualMachinesInner client = this.inner(); + return client.captureAsync(resourceGroupName, vmName, parameters) + .map(new Func1() { + @Override + public VirtualMachineCaptureResult call(VirtualMachineCaptureResultInner inner) { + return new VirtualMachineCaptureResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable instanceViewAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.instanceViewAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public VirtualMachineInstanceView call(VirtualMachineInstanceViewInner inner) { + return new VirtualMachineInstanceViewImpl(inner, manager()); + } + }); + } + + @Override + public Observable convertToManagedDisksAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.convertToManagedDisksAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable deallocateAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.deallocateAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable generalizeAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.generalizeAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable powerOffAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.powerOffAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable restartAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.restartAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable startAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.startAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable redeployAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.redeployAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable performMaintenanceAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.performMaintenanceAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public OperationStatusResponse call(OperationStatusResponseInner inner) { + return new OperationStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable runCommandAsync(String resourceGroupName, String vmName, RunCommandInput parameters) { + VirtualMachinesInner client = this.inner(); + return client.runCommandAsync(resourceGroupName, vmName, parameters) + .map(new Func1() { + @Override + public RunCommandResult call(RunCommandResultInner inner) { + return new RunCommandResultImpl(inner, manager()); + } + }); + } + + @Override + protected VirtualMachineImpl wrapModel(VirtualMachineInner inner) { + return new VirtualMachineImpl(inner.name(), inner, manager()); + } + + @Override + protected VirtualMachineImpl wrapModel(String name) { + return new VirtualMachineImpl(name, new VirtualMachineInner(), this.manager()); + } + + private VirtualMachineVirtualMachineSizeImpl wrapVirtualMachineVirtualMachineSizeModel(VirtualMachineSizeInner inner) { + return new VirtualMachineVirtualMachineSizeImpl(inner, manager()); + } + + @Override + public Observable getExtensionsAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.getExtensionsAsync(resourceGroupName, vmName) + .map(new Func1() { + @Override + public VirtualMachineExtensionsListResult call(VirtualMachineExtensionsListResultInner inner) { + return new VirtualMachineExtensionsListResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAvailableSizesAsync(String resourceGroupName, String vmName) { + VirtualMachinesInner client = this.inner(); + return client.listAvailableSizesAsync(resourceGroupName, vmName) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public VirtualMachineVirtualMachineSize call(VirtualMachineSizeInner inner) { + return wrapVirtualMachineVirtualMachineSizeModel(inner); + } + }); + } + +} diff --git a/compute/resource-manager/v2018_04_01/pom.xml b/compute/resource-manager/v2018_04_01/pom.xml index 4f12c0657e3e..fd4e92f2c63d 100644 --- a/compute/resource-manager/v2018_04_01/pom.xml +++ b/compute/resource-manager/v2018_04_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.compute.v2018_04_01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-compute - 1.0.0-beta - jar - Microsoft Azure SDK for Compute Management - This package contains Microsoft Compute Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.compute.v2018_04_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-compute + 1.0.0-beta + jar + Microsoft Azure SDK for Compute Management + This package contains Microsoft Compute Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/CreationData.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/CreationData.java index a87d4de13915..fc7b1af28ba8 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/CreationData.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/CreationData.java @@ -51,7 +51,7 @@ public class CreationData { private String sourceResourceId; /** - * Get the createOption value. + * Get this enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore'. * * @return the createOption value */ @@ -60,7 +60,7 @@ public DiskCreateOption createOption() { } /** - * Set the createOption value. + * Set this enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore'. * * @param createOption the createOption value to set * @return the CreationData object itself. @@ -71,7 +71,7 @@ public CreationData withCreateOption(DiskCreateOption createOption) { } /** - * Get the storageAccountId value. + * Get if createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription. * * @return the storageAccountId value */ @@ -80,7 +80,7 @@ public String storageAccountId() { } /** - * Set the storageAccountId value. + * Set if createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription. * * @param storageAccountId the storageAccountId value to set * @return the CreationData object itself. @@ -91,7 +91,7 @@ public CreationData withStorageAccountId(String storageAccountId) { } /** - * Get the imageReference value. + * Get disk source information. * * @return the imageReference value */ @@ -100,7 +100,7 @@ public ImageDiskReference imageReference() { } /** - * Set the imageReference value. + * Set disk source information. * * @param imageReference the imageReference value to set * @return the CreationData object itself. @@ -111,7 +111,7 @@ public CreationData withImageReference(ImageDiskReference imageReference) { } /** - * Get the sourceUri value. + * Get if createOption is Import, this is the URI of a blob to be imported into a managed disk. * * @return the sourceUri value */ @@ -120,7 +120,7 @@ public String sourceUri() { } /** - * Set the sourceUri value. + * Set if createOption is Import, this is the URI of a blob to be imported into a managed disk. * * @param sourceUri the sourceUri value to set * @return the CreationData object itself. @@ -131,7 +131,7 @@ public CreationData withSourceUri(String sourceUri) { } /** - * Get the sourceResourceId value. + * Get if createOption is Copy, this is the ARM id of the source snapshot or disk. * * @return the sourceResourceId value */ @@ -140,7 +140,7 @@ public String sourceResourceId() { } /** - * Set the sourceResourceId value. + * Set if createOption is Copy, this is the ARM id of the source snapshot or disk. * * @param sourceResourceId the sourceResourceId value to set * @return the CreationData object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/Disk.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/Disk.java index 7c48e8958d0f..0fc57d782dd3 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/Disk.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/Disk.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2018_04_01.implementation.ComputeManager; import java.util.List; diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/DiskSku.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/DiskSku.java index 097f3fb3ec28..67754d466609 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/DiskSku.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/DiskSku.java @@ -11,11 +11,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The disks sku name. Can be Standard_LRS or Premium_LRS. + * The disks sku name. Can be Standard_LRS, Premium_LRS, or StandardSSD_LRS. */ public class DiskSku { /** - * The sku name. Possible values include: 'Standard_LRS', 'Premium_LRS'. + * The sku name. Possible values include: 'Standard_LRS', 'Premium_LRS', + * 'StandardSSD_LRS'. */ @JsonProperty(value = "name") private StorageAccountTypes name; @@ -27,7 +28,7 @@ public class DiskSku { private String tier; /** - * Get the name value. + * Get the sku name. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'. * * @return the name value */ @@ -36,7 +37,7 @@ public StorageAccountTypes name() { } /** - * Set the name value. + * Set the sku name. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'. * * @param name the name value to set * @return the DiskSku object itself. @@ -47,7 +48,7 @@ public DiskSku withName(StorageAccountTypes name) { } /** - * Get the tier value. + * Get the sku tier. * * @return the tier value */ diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/DiskUpdate.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/DiskUpdate.java index f5602037c9d5..feb7386edaa1 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/DiskUpdate.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/DiskUpdate.java @@ -52,7 +52,7 @@ public class DiskUpdate { private DiskSku sku; /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -61,7 +61,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the DiskUpdate object itself. @@ -72,7 +72,7 @@ public DiskUpdate withOsType(OperatingSystemTypes osType) { } /** - * Get the diskSizeGB value. + * Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @return the diskSizeGB value */ @@ -81,7 +81,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @param diskSizeGB the diskSizeGB value to set * @return the DiskUpdate object itself. @@ -92,7 +92,7 @@ public DiskUpdate withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the encryptionSettings value. + * Get encryption settings for disk or snapshot. * * @return the encryptionSettings value */ @@ -101,7 +101,7 @@ public EncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set encryption settings for disk or snapshot. * * @param encryptionSettings the encryptionSettings value to set * @return the DiskUpdate object itself. @@ -112,7 +112,7 @@ public DiskUpdate withEncryptionSettings(EncryptionSettings encryptionSettings) } /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -121,7 +121,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the DiskUpdate object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/EncryptionSettings.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/EncryptionSettings.java index a5241ab8fc1c..fc35f8a0efdb 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/EncryptionSettings.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/EncryptionSettings.java @@ -37,7 +37,7 @@ public class EncryptionSettings { private KeyVaultAndKeyReference keyEncryptionKey; /** - * Get the enabled value. + * Get set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged. * * @return the enabled value */ @@ -46,7 +46,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged. * * @param enabled the enabled value to set * @return the EncryptionSettings object itself. @@ -57,7 +57,7 @@ public EncryptionSettings withEnabled(Boolean enabled) { } /** - * Get the diskEncryptionKey value. + * Get key Vault Secret Url and vault id of the disk encryption key. * * @return the diskEncryptionKey value */ @@ -66,7 +66,7 @@ public KeyVaultAndSecretReference diskEncryptionKey() { } /** - * Set the diskEncryptionKey value. + * Set key Vault Secret Url and vault id of the disk encryption key. * * @param diskEncryptionKey the diskEncryptionKey value to set * @return the EncryptionSettings object itself. @@ -77,7 +77,7 @@ public EncryptionSettings withDiskEncryptionKey(KeyVaultAndSecretReference diskE } /** - * Get the keyEncryptionKey value. + * Get key Vault Key Url and vault id of the key encryption key. * * @return the keyEncryptionKey value */ @@ -86,7 +86,7 @@ public KeyVaultAndKeyReference keyEncryptionKey() { } /** - * Set the keyEncryptionKey value. + * Set key Vault Key Url and vault id of the key encryption key. * * @param keyEncryptionKey the keyEncryptionKey value to set * @return the EncryptionSettings object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/GrantAccessData.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/GrantAccessData.java index 2acd3f446e0b..9900d5d6e582 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/GrantAccessData.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/GrantAccessData.java @@ -27,7 +27,7 @@ public class GrantAccessData { private int durationInSeconds; /** - * Get the access value. + * Get possible values include: 'None', 'Read'. * * @return the access value */ @@ -36,7 +36,7 @@ public AccessLevel access() { } /** - * Set the access value. + * Set possible values include: 'None', 'Read'. * * @param access the access value to set * @return the GrantAccessData object itself. @@ -47,7 +47,7 @@ public GrantAccessData withAccess(AccessLevel access) { } /** - * Get the durationInSeconds value. + * Get time duration in seconds until the SAS access expires. * * @return the durationInSeconds value */ @@ -56,7 +56,7 @@ public int durationInSeconds() { } /** - * Set the durationInSeconds value. + * Set time duration in seconds until the SAS access expires. * * @param durationInSeconds the durationInSeconds value to set * @return the GrantAccessData object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/ImageDiskReference.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/ImageDiskReference.java index cc8e4681e2e8..21981e91ad5c 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/ImageDiskReference.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/ImageDiskReference.java @@ -30,7 +30,7 @@ public class ImageDiskReference { private Integer lun; /** - * Get the id value. + * Get a relative uri containing either a Platform Imgage Repository or user image reference. * * @return the id value */ @@ -39,7 +39,7 @@ public String id() { } /** - * Set the id value. + * Set a relative uri containing either a Platform Imgage Repository or user image reference. * * @param id the id value to set * @return the ImageDiskReference object itself. @@ -50,7 +50,7 @@ public ImageDiskReference withId(String id) { } /** - * Get the lun value. + * Get if the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null. * * @return the lun value */ @@ -59,7 +59,7 @@ public Integer lun() { } /** - * Set the lun value. + * Set if the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null. * * @param lun the lun value to set * @return the ImageDiskReference object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/KeyVaultAndKeyReference.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/KeyVaultAndKeyReference.java index 90267cab5b20..1c6f73aa511c 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/KeyVaultAndKeyReference.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/KeyVaultAndKeyReference.java @@ -28,7 +28,7 @@ public class KeyVaultAndKeyReference { private String keyUrl; /** - * Get the sourceVault value. + * Get resource id of the KeyVault containing the key or secret. * * @return the sourceVault value */ @@ -37,7 +37,7 @@ public SourceVault sourceVault() { } /** - * Set the sourceVault value. + * Set resource id of the KeyVault containing the key or secret. * * @param sourceVault the sourceVault value to set * @return the KeyVaultAndKeyReference object itself. @@ -48,7 +48,7 @@ public KeyVaultAndKeyReference withSourceVault(SourceVault sourceVault) { } /** - * Get the keyUrl value. + * Get url pointing to a key or secret in KeyVault. * * @return the keyUrl value */ @@ -57,7 +57,7 @@ public String keyUrl() { } /** - * Set the keyUrl value. + * Set url pointing to a key or secret in KeyVault. * * @param keyUrl the keyUrl value to set * @return the KeyVaultAndKeyReference object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/KeyVaultAndSecretReference.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/KeyVaultAndSecretReference.java index 6c10230ace1e..7401445d48ae 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/KeyVaultAndSecretReference.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/KeyVaultAndSecretReference.java @@ -27,7 +27,7 @@ public class KeyVaultAndSecretReference { private String secretUrl; /** - * Get the sourceVault value. + * Get resource id of the KeyVault containing the key or secret. * * @return the sourceVault value */ @@ -36,7 +36,7 @@ public SourceVault sourceVault() { } /** - * Set the sourceVault value. + * Set resource id of the KeyVault containing the key or secret. * * @param sourceVault the sourceVault value to set * @return the KeyVaultAndSecretReference object itself. @@ -47,7 +47,7 @@ public KeyVaultAndSecretReference withSourceVault(SourceVault sourceVault) { } /** - * Get the secretUrl value. + * Get url pointing to a key or secret in KeyVault. * * @return the secretUrl value */ @@ -56,7 +56,7 @@ public String secretUrl() { } /** - * Set the secretUrl value. + * Set url pointing to a key or secret in KeyVault. * * @param secretUrl the secretUrl value to set * @return the KeyVaultAndSecretReference object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/Snapshot.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/Snapshot.java index 92adc4673818..6677cc56c14e 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/Snapshot.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/Snapshot.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.compute.v2018_04_01.implementation.ComputeManager; import org.joda.time.DateTime; diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SnapshotSku.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SnapshotSku.java index bc818ea5a01d..22d99739aba3 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SnapshotSku.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SnapshotSku.java @@ -28,7 +28,7 @@ public class SnapshotSku { private String tier; /** - * Get the name value. + * Get the sku name. Possible values include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS'. * * @return the name value */ @@ -37,7 +37,7 @@ public SnapshotStorageAccountTypes name() { } /** - * Set the name value. + * Set the sku name. Possible values include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS'. * * @param name the name value to set * @return the SnapshotSku object itself. @@ -48,7 +48,7 @@ public SnapshotSku withName(SnapshotStorageAccountTypes name) { } /** - * Get the tier value. + * Get the sku tier. * * @return the tier value */ diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SnapshotUpdate.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SnapshotUpdate.java index 12720526308c..49b4e929c422 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SnapshotUpdate.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SnapshotUpdate.java @@ -52,7 +52,7 @@ public class SnapshotUpdate { private SnapshotSku sku; /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -61,7 +61,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the SnapshotUpdate object itself. @@ -72,7 +72,7 @@ public SnapshotUpdate withOsType(OperatingSystemTypes osType) { } /** - * Get the diskSizeGB value. + * Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @return the diskSizeGB value */ @@ -81,7 +81,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @param diskSizeGB the diskSizeGB value to set * @return the SnapshotUpdate object itself. @@ -92,7 +92,7 @@ public SnapshotUpdate withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the encryptionSettings value. + * Get encryption settings for disk or snapshot. * * @return the encryptionSettings value */ @@ -101,7 +101,7 @@ public EncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set encryption settings for disk or snapshot. * * @param encryptionSettings the encryptionSettings value to set * @return the SnapshotUpdate object itself. @@ -112,7 +112,7 @@ public SnapshotUpdate withEncryptionSettings(EncryptionSettings encryptionSettin } /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -121,7 +121,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the SnapshotUpdate object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SourceVault.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SourceVault.java index d75a766895de..5c91e3218ec0 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SourceVault.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/SourceVault.java @@ -22,7 +22,7 @@ public class SourceVault { private String id; /** - * Get the id value. + * Get resource Id. * * @return the id value */ @@ -31,7 +31,7 @@ public String id() { } /** - * Set the id value. + * Set resource Id. * * @param id the id value to set * @return the SourceVault object itself. diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/StorageAccountTypes.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/StorageAccountTypes.java index 495a8e5b9ece..08086adbdf0f 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/StorageAccountTypes.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/StorageAccountTypes.java @@ -22,6 +22,9 @@ public final class StorageAccountTypes extends ExpandableStringEnum zones() { } /** - * Set the zones value. + * Set the Logical zone list for Disk. * * @param zones the zones value to set * @return the DiskInner object itself. @@ -132,7 +132,7 @@ public DiskInner withZones(List zones) { } /** - * Get the timeCreated value. + * Get the time when the disk was created. * * @return the timeCreated value */ @@ -141,7 +141,7 @@ public DateTime timeCreated() { } /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -150,7 +150,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the DiskInner object itself. @@ -161,7 +161,7 @@ public DiskInner withOsType(OperatingSystemTypes osType) { } /** - * Get the creationData value. + * Get disk source information. CreationData information cannot be changed after the disk has been created. * * @return the creationData value */ @@ -170,7 +170,7 @@ public CreationData creationData() { } /** - * Set the creationData value. + * Set disk source information. CreationData information cannot be changed after the disk has been created. * * @param creationData the creationData value to set * @return the DiskInner object itself. @@ -181,7 +181,7 @@ public DiskInner withCreationData(CreationData creationData) { } /** - * Get the diskSizeGB value. + * Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @return the diskSizeGB value */ @@ -190,7 +190,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @param diskSizeGB the diskSizeGB value to set * @return the DiskInner object itself. @@ -201,7 +201,7 @@ public DiskInner withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the encryptionSettings value. + * Get encryption settings for disk or snapshot. * * @return the encryptionSettings value */ @@ -210,7 +210,7 @@ public EncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set encryption settings for disk or snapshot. * * @param encryptionSettings the encryptionSettings value to set * @return the DiskInner object itself. @@ -221,7 +221,7 @@ public DiskInner withEncryptionSettings(EncryptionSettings encryptionSettings) { } /** - * Get the provisioningState value. + * Get the disk provisioning state. * * @return the provisioningState value */ diff --git a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/implementation/SnapshotInner.java b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/implementation/SnapshotInner.java index 572638ea16d6..f2c3f31f7b07 100644 --- a/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/implementation/SnapshotInner.java +++ b/compute/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/compute/v2018_04_01/implementation/SnapshotInner.java @@ -76,7 +76,7 @@ public class SnapshotInner extends Resource { private String provisioningState; /** - * Get the managedBy value. + * Get unused. Always Null. * * @return the managedBy value */ @@ -105,7 +105,7 @@ public SnapshotInner withSku(SnapshotSku sku) { } /** - * Get the timeCreated value. + * Get the time when the disk was created. * * @return the timeCreated value */ @@ -114,7 +114,7 @@ public DateTime timeCreated() { } /** - * Get the osType value. + * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */ @@ -123,7 +123,7 @@ public OperatingSystemTypes osType() { } /** - * Set the osType value. + * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the SnapshotInner object itself. @@ -134,7 +134,7 @@ public SnapshotInner withOsType(OperatingSystemTypes osType) { } /** - * Get the creationData value. + * Get disk source information. CreationData information cannot be changed after the disk has been created. * * @return the creationData value */ @@ -143,7 +143,7 @@ public CreationData creationData() { } /** - * Set the creationData value. + * Set disk source information. CreationData information cannot be changed after the disk has been created. * * @param creationData the creationData value to set * @return the SnapshotInner object itself. @@ -154,7 +154,7 @@ public SnapshotInner withCreationData(CreationData creationData) { } /** - * Get the diskSizeGB value. + * Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @return the diskSizeGB value */ @@ -163,7 +163,7 @@ public Integer diskSizeGB() { } /** - * Set the diskSizeGB value. + * Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. * * @param diskSizeGB the diskSizeGB value to set * @return the SnapshotInner object itself. @@ -174,7 +174,7 @@ public SnapshotInner withDiskSizeGB(Integer diskSizeGB) { } /** - * Get the encryptionSettings value. + * Get encryption settings for disk or snapshot. * * @return the encryptionSettings value */ @@ -183,7 +183,7 @@ public EncryptionSettings encryptionSettings() { } /** - * Set the encryptionSettings value. + * Set encryption settings for disk or snapshot. * * @param encryptionSettings the encryptionSettings value to set * @return the SnapshotInner object itself. @@ -194,7 +194,7 @@ public SnapshotInner withEncryptionSettings(EncryptionSettings encryptionSetting } /** - * Get the provisioningState value. + * Get the disk provisioning state. * * @return the provisioningState value */ diff --git a/hdinsight/resource-manager/v2015_03_01_preview/pom.xml b/hdinsight/resource-manager/v2015_03_01_preview/pom.xml new file mode 100644 index 000000000000..d9fe0b16d822 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/pom.xml @@ -0,0 +1,133 @@ + + + 4.0.0 + com.microsoft.azure.hdinsight.v2015_03_01_preview + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-hdinsight + 1.0.0-beta + jar + Microsoft Azure SDK for HDInsight Management + This package contains Microsoft HDInsight Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Application.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Application.java new file mode 100644 index 000000000000..c90403770501 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Application.java @@ -0,0 +1,176 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ApplicationInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.HDInsightManager; +import java.util.Map; + +/** + * Type representing Application. + */ +public interface Application extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + ApplicationProperties properties(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the Application definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCluster, DefinitionStages.WithCreate { + } + + /** + * Grouping of Application definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a Application definition. + */ + interface Blank extends WithCluster { + } + + /** + * The stage of the application definition allowing to specify Cluster. + */ + interface WithCluster { + /** + * Specifies resourceGroupName, clusterName. + * @param resourceGroupName The name of the resource group + * @param clusterName The name of the cluster + * @return the next definition stage + */ + WithCreate withExistingCluster(String resourceGroupName, String clusterName); + } + + /** + * The stage of the application definition allowing to specify Etag. + */ + interface WithEtag { + /** + * Specifies etag. + * @param etag The ETag for the application + * @return the next definition stage + */ + WithCreate withEtag(String etag); + } + + /** + * The stage of the application definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties The properties of the application + * @return the next definition stage + */ + WithCreate withProperties(ApplicationProperties properties); + } + + /** + * The stage of the application definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags The tags for the application + * @return the next definition stage + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithEtag, DefinitionStages.WithProperties, DefinitionStages.WithTags { + } + } + /** + * The template for a Application update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithEtag, UpdateStages.WithProperties, UpdateStages.WithTags { + } + + /** + * Grouping of Application update stages. + */ + interface UpdateStages { + /** + * The stage of the application update allowing to specify Etag. + */ + interface WithEtag { + /** + * Specifies etag. + * @param etag The ETag for the application + * @return the next update stage + */ + Update withEtag(String etag); + } + + /** + * The stage of the application update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties The properties of the application + * @return the next update stage + */ + Update withProperties(ApplicationProperties properties); + } + + /** + * The stage of the application update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags The tags for the application + * @return the next update stage + */ + Update withTags(Map tags); + } + + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationGetEndpoint.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationGetEndpoint.java new file mode 100644 index 000000000000..30aad4561990 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationGetEndpoint.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Gets the application SSH endpoint. + */ +public class ApplicationGetEndpoint { + /** + * The location of the endpoint. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The destination port to connect to. + */ + @JsonProperty(value = "destinationPort") + private Integer destinationPort; + + /** + * The public port to connect to. + */ + @JsonProperty(value = "publicPort") + private Integer publicPort; + + /** + * Get the location of the endpoint. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location of the endpoint. + * + * @param location the location value to set + * @return the ApplicationGetEndpoint object itself. + */ + public ApplicationGetEndpoint withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the destination port to connect to. + * + * @return the destinationPort value + */ + public Integer destinationPort() { + return this.destinationPort; + } + + /** + * Set the destination port to connect to. + * + * @param destinationPort the destinationPort value to set + * @return the ApplicationGetEndpoint object itself. + */ + public ApplicationGetEndpoint withDestinationPort(Integer destinationPort) { + this.destinationPort = destinationPort; + return this; + } + + /** + * Get the public port to connect to. + * + * @return the publicPort value + */ + public Integer publicPort() { + return this.publicPort; + } + + /** + * Set the public port to connect to. + * + * @param publicPort the publicPort value to set + * @return the ApplicationGetEndpoint object itself. + */ + public ApplicationGetEndpoint withPublicPort(Integer publicPort) { + this.publicPort = publicPort; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationGetHttpsEndpoint.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationGetHttpsEndpoint.java new file mode 100644 index 000000000000..c93c78f1460d --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationGetHttpsEndpoint.java @@ -0,0 +1,149 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.Map; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Gets the application HTTP endpoints. + */ +public class ApplicationGetHttpsEndpoint { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The list of access modes for the application. + */ + @JsonProperty(value = "accessModes") + private List accessModes; + + /** + * The location of the endpoint. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The destination port to connect to. + */ + @JsonProperty(value = "destinationPort") + private Integer destinationPort; + + /** + * The public port to connect to. + */ + @JsonProperty(value = "publicPort") + private Integer publicPort; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the list of access modes for the application. + * + * @return the accessModes value + */ + public List accessModes() { + return this.accessModes; + } + + /** + * Set the list of access modes for the application. + * + * @param accessModes the accessModes value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withAccessModes(List accessModes) { + this.accessModes = accessModes; + return this; + } + + /** + * Get the location of the endpoint. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location of the endpoint. + * + * @param location the location value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the destination port to connect to. + * + * @return the destinationPort value + */ + public Integer destinationPort() { + return this.destinationPort; + } + + /** + * Set the destination port to connect to. + * + * @param destinationPort the destinationPort value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withDestinationPort(Integer destinationPort) { + this.destinationPort = destinationPort; + return this; + } + + /** + * Get the public port to connect to. + * + * @return the publicPort value + */ + public Integer publicPort() { + return this.publicPort; + } + + /** + * Set the public port to connect to. + * + * @param publicPort the publicPort value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withPublicPort(Integer publicPort) { + this.publicPort = publicPort; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationProperties.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationProperties.java new file mode 100644 index 000000000000..4766b6dbe0f8 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ApplicationProperties.java @@ -0,0 +1,286 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HDInsight cluster application GET response. + */ +public class ApplicationProperties { + /** + * The list of roles in the cluster. + */ + @JsonProperty(value = "computeProfile") + private ComputeProfile computeProfile; + + /** + * The list of install script actions. + */ + @JsonProperty(value = "installScriptActions") + private List installScriptActions; + + /** + * The list of uninstall script actions. + */ + @JsonProperty(value = "uninstallScriptActions") + private List uninstallScriptActions; + + /** + * The list of application HTTPS endpoints. + */ + @JsonProperty(value = "httpsEndpoints") + private List httpsEndpoints; + + /** + * The list of application SSH endpoints. + */ + @JsonProperty(value = "sshEndpoints") + private List sshEndpoints; + + /** + * The provisioning state of the application. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /** + * The application type. + */ + @JsonProperty(value = "applicationType") + private String applicationType; + + /** + * The application state. + */ + @JsonProperty(value = "applicationState", access = JsonProperty.Access.WRITE_ONLY) + private String applicationState; + + /** + * The list of errors. + */ + @JsonProperty(value = "errors") + private List errors; + + /** + * The application create date time. + */ + @JsonProperty(value = "createdDate", access = JsonProperty.Access.WRITE_ONLY) + private String createdDate; + + /** + * The marketplace identifier. + */ + @JsonProperty(value = "marketplaceIdentifier", access = JsonProperty.Access.WRITE_ONLY) + private String marketplaceIdentifier; + + /** + * The additional properties for application. + */ + @JsonProperty(value = "additionalProperties") + private String additionalProperties; + + /** + * Get the list of roles in the cluster. + * + * @return the computeProfile value + */ + public ComputeProfile computeProfile() { + return this.computeProfile; + } + + /** + * Set the list of roles in the cluster. + * + * @param computeProfile the computeProfile value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withComputeProfile(ComputeProfile computeProfile) { + this.computeProfile = computeProfile; + return this; + } + + /** + * Get the list of install script actions. + * + * @return the installScriptActions value + */ + public List installScriptActions() { + return this.installScriptActions; + } + + /** + * Set the list of install script actions. + * + * @param installScriptActions the installScriptActions value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withInstallScriptActions(List installScriptActions) { + this.installScriptActions = installScriptActions; + return this; + } + + /** + * Get the list of uninstall script actions. + * + * @return the uninstallScriptActions value + */ + public List uninstallScriptActions() { + return this.uninstallScriptActions; + } + + /** + * Set the list of uninstall script actions. + * + * @param uninstallScriptActions the uninstallScriptActions value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withUninstallScriptActions(List uninstallScriptActions) { + this.uninstallScriptActions = uninstallScriptActions; + return this; + } + + /** + * Get the list of application HTTPS endpoints. + * + * @return the httpsEndpoints value + */ + public List httpsEndpoints() { + return this.httpsEndpoints; + } + + /** + * Set the list of application HTTPS endpoints. + * + * @param httpsEndpoints the httpsEndpoints value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withHttpsEndpoints(List httpsEndpoints) { + this.httpsEndpoints = httpsEndpoints; + return this; + } + + /** + * Get the list of application SSH endpoints. + * + * @return the sshEndpoints value + */ + public List sshEndpoints() { + return this.sshEndpoints; + } + + /** + * Set the list of application SSH endpoints. + * + * @param sshEndpoints the sshEndpoints value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withSshEndpoints(List sshEndpoints) { + this.sshEndpoints = sshEndpoints; + return this; + } + + /** + * Get the provisioning state of the application. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the application type. + * + * @return the applicationType value + */ + public String applicationType() { + return this.applicationType; + } + + /** + * Set the application type. + * + * @param applicationType the applicationType value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withApplicationType(String applicationType) { + this.applicationType = applicationType; + return this; + } + + /** + * Get the application state. + * + * @return the applicationState value + */ + public String applicationState() { + return this.applicationState; + } + + /** + * Get the list of errors. + * + * @return the errors value + */ + public List errors() { + return this.errors; + } + + /** + * Set the list of errors. + * + * @param errors the errors value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the application create date time. + * + * @return the createdDate value + */ + public String createdDate() { + return this.createdDate; + } + + /** + * Get the marketplace identifier. + * + * @return the marketplaceIdentifier value + */ + public String marketplaceIdentifier() { + return this.marketplaceIdentifier; + } + + /** + * Get the additional properties for application. + * + * @return the additionalProperties value + */ + public String additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additional properties for application. + * + * @param additionalProperties the additionalProperties value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withAdditionalProperties(String additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Applications.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Applications.java new file mode 100644 index 000000000000..cd4e43545737 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Applications.java @@ -0,0 +1,53 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ApplicationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Applications. + */ +public interface Applications extends SupportsCreating, HasInner { + /** + * Lists properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String clusterName, String applicationName); + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(final String resourceGroupName, final String clusterName); + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String clusterName, String applicationName); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AsyncOperationState.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AsyncOperationState.java new file mode 100644 index 000000000000..b4114684d7be --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AsyncOperationState.java @@ -0,0 +1,56 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AsyncOperationState. + */ +public enum AsyncOperationState { + /** Enum value InProgress. */ + IN_PROGRESS("InProgress"), + + /** Enum value Succeeded. */ + SUCCEEDED("Succeeded"), + + /** Enum value Failed. */ + FAILED("Failed"); + + /** The actual serialized value for a AsyncOperationState instance. */ + private String value; + + AsyncOperationState(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AsyncOperationState instance. + * + * @param value the serialized value to parse. + * @return the parsed AsyncOperationState object, or null if unable to parse. + */ + @JsonCreator + public static AsyncOperationState fromString(String value) { + AsyncOperationState[] items = AsyncOperationState.values(); + for (AsyncOperationState item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/CapabilitiesResult.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/CapabilitiesResult.java new file mode 100644 index 000000000000..30af6b8ba26f --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/CapabilitiesResult.java @@ -0,0 +1,52 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.CapabilitiesResultInner; +import java.util.List; +import java.util.Map; + +/** + * Type representing CapabilitiesResult. + */ +public interface CapabilitiesResult extends HasInner, HasManager { + /** + * @return the features value. + */ + List features(); + + /** + * @return the quota value. + */ + QuotaCapability quota(); + + /** + * @return the regions value. + */ + Map regions(); + + /** + * @return the versions value. + */ + Map versions(); + + /** + * @return the vmSizeFilters value. + */ + List vmSizeFilters(); + + /** + * @return the vmSizes value. + */ + Map vmSizes(); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Cluster.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Cluster.java new file mode 100644 index 000000000000..eb0d21be238e --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Cluster.java @@ -0,0 +1,102 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ClusterInner; + +/** + * Type representing Cluster. + */ +public interface Cluster extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the properties value. + */ + ClusterGetProperties properties(); + + /** + * The entirety of the Cluster definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of Cluster definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a Cluster definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the Cluster definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the cluster definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties The cluster create parameters + * @return the next definition stage + */ + WithCreate withProperties(ClusterCreateProperties properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithProperties { + } + } + /** + * The template for a Cluster update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithProperties { + } + + /** + * Grouping of Cluster update stages. + */ + interface UpdateStages { + /** + * The stage of the cluster update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties The cluster create parameters + * @return the next update stage + */ + Update withProperties(ClusterCreateProperties properties); + } + + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterCreateParametersExtended.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterCreateParametersExtended.java new file mode 100644 index 000000000000..2a0e78442d46 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterCreateParametersExtended.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The CreateCluster request parameters. + */ +public class ClusterCreateParametersExtended { + /** + * The location of the cluster. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The cluster create parameters. + */ + @JsonProperty(value = "properties") + private ClusterCreateProperties properties; + + /** + * Get the location of the cluster. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location of the cluster. + * + * @param location the location value to set + * @return the ClusterCreateParametersExtended object itself. + */ + public ClusterCreateParametersExtended withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the resource tags. + * + * @param tags the tags value to set + * @return the ClusterCreateParametersExtended object itself. + */ + public ClusterCreateParametersExtended withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the cluster create parameters. + * + * @return the properties value + */ + public ClusterCreateProperties properties() { + return this.properties; + } + + /** + * Set the cluster create parameters. + * + * @param properties the properties value to set + * @return the ClusterCreateParametersExtended object itself. + */ + public ClusterCreateParametersExtended withProperties(ClusterCreateProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterCreateProperties.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterCreateProperties.java new file mode 100644 index 000000000000..9ca2b6a9d2af --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterCreateProperties.java @@ -0,0 +1,200 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The cluster create parameters. + */ +public class ClusterCreateProperties { + /** + * The version of the cluster. + */ + @JsonProperty(value = "clusterVersion") + private String clusterVersion; + + /** + * The type of operating system. Possible values include: 'Windows', + * 'Linux'. + */ + @JsonProperty(value = "osType") + private OSType osType; + + /** + * The cluster tier. Possible values include: 'Standard', 'Premium'. + */ + @JsonProperty(value = "tier") + private Tier tier; + + /** + * The cluster definition. + */ + @JsonProperty(value = "clusterDefinition") + private ClusterDefinition clusterDefinition; + + /** + * The security profile. + */ + @JsonProperty(value = "securityProfile") + private SecurityProfile securityProfile; + + /** + * The compute profile. + */ + @JsonProperty(value = "computeProfile") + private ComputeProfile computeProfile; + + /** + * The storage profile. + */ + @JsonProperty(value = "storageProfile") + private StorageProfile storageProfile; + + /** + * Get the version of the cluster. + * + * @return the clusterVersion value + */ + public String clusterVersion() { + return this.clusterVersion; + } + + /** + * Set the version of the cluster. + * + * @param clusterVersion the clusterVersion value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withClusterVersion(String clusterVersion) { + this.clusterVersion = clusterVersion; + return this; + } + + /** + * Get the type of operating system. Possible values include: 'Windows', 'Linux'. + * + * @return the osType value + */ + public OSType osType() { + return this.osType; + } + + /** + * Set the type of operating system. Possible values include: 'Windows', 'Linux'. + * + * @param osType the osType value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withOsType(OSType osType) { + this.osType = osType; + return this; + } + + /** + * Get the cluster tier. Possible values include: 'Standard', 'Premium'. + * + * @return the tier value + */ + public Tier tier() { + return this.tier; + } + + /** + * Set the cluster tier. Possible values include: 'Standard', 'Premium'. + * + * @param tier the tier value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withTier(Tier tier) { + this.tier = tier; + return this; + } + + /** + * Get the cluster definition. + * + * @return the clusterDefinition value + */ + public ClusterDefinition clusterDefinition() { + return this.clusterDefinition; + } + + /** + * Set the cluster definition. + * + * @param clusterDefinition the clusterDefinition value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withClusterDefinition(ClusterDefinition clusterDefinition) { + this.clusterDefinition = clusterDefinition; + return this; + } + + /** + * Get the security profile. + * + * @return the securityProfile value + */ + public SecurityProfile securityProfile() { + return this.securityProfile; + } + + /** + * Set the security profile. + * + * @param securityProfile the securityProfile value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withSecurityProfile(SecurityProfile securityProfile) { + this.securityProfile = securityProfile; + return this; + } + + /** + * Get the compute profile. + * + * @return the computeProfile value + */ + public ComputeProfile computeProfile() { + return this.computeProfile; + } + + /** + * Set the compute profile. + * + * @param computeProfile the computeProfile value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withComputeProfile(ComputeProfile computeProfile) { + this.computeProfile = computeProfile; + return this; + } + + /** + * Get the storage profile. + * + * @return the storageProfile value + */ + public StorageProfile storageProfile() { + return this.storageProfile; + } + + /** + * Set the storage profile. + * + * @param storageProfile the storageProfile value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withStorageProfile(StorageProfile storageProfile) { + this.storageProfile = storageProfile; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterDefinition.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterDefinition.java new file mode 100644 index 000000000000..33fff49e4d75 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterDefinition.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The cluster definition. + */ +public class ClusterDefinition { + /** + * The link to the blueprint. + */ + @JsonProperty(value = "blueprint") + private String blueprint; + + /** + * The type of cluster. + */ + @JsonProperty(value = "kind") + private String kind; + + /** + * The versions of different services in the cluster. + */ + @JsonProperty(value = "componentVersion") + private Map componentVersion; + + /** + * The cluster configurations. + */ + @JsonProperty(value = "configurations") + private Object configurations; + + /** + * Get the link to the blueprint. + * + * @return the blueprint value + */ + public String blueprint() { + return this.blueprint; + } + + /** + * Set the link to the blueprint. + * + * @param blueprint the blueprint value to set + * @return the ClusterDefinition object itself. + */ + public ClusterDefinition withBlueprint(String blueprint) { + this.blueprint = blueprint; + return this; + } + + /** + * Get the type of cluster. + * + * @return the kind value + */ + public String kind() { + return this.kind; + } + + /** + * Set the type of cluster. + * + * @param kind the kind value to set + * @return the ClusterDefinition object itself. + */ + public ClusterDefinition withKind(String kind) { + this.kind = kind; + return this; + } + + /** + * Get the versions of different services in the cluster. + * + * @return the componentVersion value + */ + public Map componentVersion() { + return this.componentVersion; + } + + /** + * Set the versions of different services in the cluster. + * + * @param componentVersion the componentVersion value to set + * @return the ClusterDefinition object itself. + */ + public ClusterDefinition withComponentVersion(Map componentVersion) { + this.componentVersion = componentVersion; + return this; + } + + /** + * Get the cluster configurations. + * + * @return the configurations value + */ + public Object configurations() { + return this.configurations; + } + + /** + * Set the cluster configurations. + * + * @param configurations the configurations value to set + * @return the ClusterDefinition object itself. + */ + public ClusterDefinition withConfigurations(Object configurations) { + this.configurations = configurations; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterGetProperties.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterGetProperties.java new file mode 100644 index 000000000000..0326f67f19d4 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterGetProperties.java @@ -0,0 +1,333 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The properties of cluster. + */ +public class ClusterGetProperties { + /** + * The version of the cluster. + */ + @JsonProperty(value = "clusterVersion") + private String clusterVersion; + + /** + * The type of operating system. Possible values include: 'Windows', + * 'Linux'. + */ + @JsonProperty(value = "osType") + private OSType osType; + + /** + * The cluster tier. Possible values include: 'Standard', 'Premium'. + */ + @JsonProperty(value = "tier") + private Tier tier; + + /** + * The cluster definition. + */ + @JsonProperty(value = "clusterDefinition", required = true) + private ClusterDefinition clusterDefinition; + + /** + * The security profile. + */ + @JsonProperty(value = "securityProfile") + private SecurityProfile securityProfile; + + /** + * The compute profile. + */ + @JsonProperty(value = "computeProfile") + private ComputeProfile computeProfile; + + /** + * The provisioning state, which only appears in the response. Possible + * values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', + * 'Deleting'. + */ + @JsonProperty(value = "provisioningState") + private HDInsightClusterProvisioningState provisioningState; + + /** + * The date on which the cluster was created. + */ + @JsonProperty(value = "createdDate") + private String createdDate; + + /** + * The state of the cluster. + */ + @JsonProperty(value = "clusterState") + private String clusterState; + + /** + * The quota information. + */ + @JsonProperty(value = "quotaInfo") + private QuotaInfo quotaInfo; + + /** + * The list of errors. + */ + @JsonProperty(value = "errors") + private List errors; + + /** + * The list of connectivity endpoints. + */ + @JsonProperty(value = "connectivityEndpoints") + private List connectivityEndpoints; + + /** + * Get the version of the cluster. + * + * @return the clusterVersion value + */ + public String clusterVersion() { + return this.clusterVersion; + } + + /** + * Set the version of the cluster. + * + * @param clusterVersion the clusterVersion value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withClusterVersion(String clusterVersion) { + this.clusterVersion = clusterVersion; + return this; + } + + /** + * Get the type of operating system. Possible values include: 'Windows', 'Linux'. + * + * @return the osType value + */ + public OSType osType() { + return this.osType; + } + + /** + * Set the type of operating system. Possible values include: 'Windows', 'Linux'. + * + * @param osType the osType value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withOsType(OSType osType) { + this.osType = osType; + return this; + } + + /** + * Get the cluster tier. Possible values include: 'Standard', 'Premium'. + * + * @return the tier value + */ + public Tier tier() { + return this.tier; + } + + /** + * Set the cluster tier. Possible values include: 'Standard', 'Premium'. + * + * @param tier the tier value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withTier(Tier tier) { + this.tier = tier; + return this; + } + + /** + * Get the cluster definition. + * + * @return the clusterDefinition value + */ + public ClusterDefinition clusterDefinition() { + return this.clusterDefinition; + } + + /** + * Set the cluster definition. + * + * @param clusterDefinition the clusterDefinition value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withClusterDefinition(ClusterDefinition clusterDefinition) { + this.clusterDefinition = clusterDefinition; + return this; + } + + /** + * Get the security profile. + * + * @return the securityProfile value + */ + public SecurityProfile securityProfile() { + return this.securityProfile; + } + + /** + * Set the security profile. + * + * @param securityProfile the securityProfile value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withSecurityProfile(SecurityProfile securityProfile) { + this.securityProfile = securityProfile; + return this; + } + + /** + * Get the compute profile. + * + * @return the computeProfile value + */ + public ComputeProfile computeProfile() { + return this.computeProfile; + } + + /** + * Set the compute profile. + * + * @param computeProfile the computeProfile value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withComputeProfile(ComputeProfile computeProfile) { + this.computeProfile = computeProfile; + return this; + } + + /** + * Get the provisioning state, which only appears in the response. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting'. + * + * @return the provisioningState value + */ + public HDInsightClusterProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state, which only appears in the response. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting'. + * + * @param provisioningState the provisioningState value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withProvisioningState(HDInsightClusterProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get the date on which the cluster was created. + * + * @return the createdDate value + */ + public String createdDate() { + return this.createdDate; + } + + /** + * Set the date on which the cluster was created. + * + * @param createdDate the createdDate value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withCreatedDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get the state of the cluster. + * + * @return the clusterState value + */ + public String clusterState() { + return this.clusterState; + } + + /** + * Set the state of the cluster. + * + * @param clusterState the clusterState value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withClusterState(String clusterState) { + this.clusterState = clusterState; + return this; + } + + /** + * Get the quota information. + * + * @return the quotaInfo value + */ + public QuotaInfo quotaInfo() { + return this.quotaInfo; + } + + /** + * Set the quota information. + * + * @param quotaInfo the quotaInfo value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withQuotaInfo(QuotaInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + /** + * Get the list of errors. + * + * @return the errors value + */ + public List errors() { + return this.errors; + } + + /** + * Set the list of errors. + * + * @param errors the errors value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the list of connectivity endpoints. + * + * @return the connectivityEndpoints value + */ + public List connectivityEndpoints() { + return this.connectivityEndpoints; + } + + /** + * Set the list of connectivity endpoints. + * + * @param connectivityEndpoints the connectivityEndpoints value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withConnectivityEndpoints(List connectivityEndpoints) { + this.connectivityEndpoints = connectivityEndpoints; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterListPersistedScriptActionsResult.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterListPersistedScriptActionsResult.java new file mode 100644 index 000000000000..4771a38f1a69 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterListPersistedScriptActionsResult.java @@ -0,0 +1,59 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ListPersistedScriptActions operation response. + */ +public class ClusterListPersistedScriptActionsResult { + /** + * The list of Persisted Script Actions. + */ + @JsonProperty(value = "value") + private List value; + + /** + * The link (url) to the next page of results. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the list of Persisted Script Actions. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set the list of Persisted Script Actions. + * + * @param value the value value to set + * @return the ClusterListPersistedScriptActionsResult object itself. + */ + public ClusterListPersistedScriptActionsResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the link (url) to the next page of results. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterListRuntimeScriptActionDetailResult.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterListRuntimeScriptActionDetailResult.java new file mode 100644 index 000000000000..dddb68eb68a8 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterListRuntimeScriptActionDetailResult.java @@ -0,0 +1,49 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.RuntimeScriptActionDetailInner; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The list runtime script action detail response. + */ +public class ClusterListRuntimeScriptActionDetailResult { + /** + * The list of persisted script action details for the cluster. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private List value; + + /** + * The link (url) to the next page of results. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the list of persisted script action details for the cluster. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Get the link (url) to the next page of results. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterMonitoringRequest.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterMonitoringRequest.java new file mode 100644 index 000000000000..ff83e029de9e --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterMonitoringRequest.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Operations Management Suite (OMS) parameters. + */ +public class ClusterMonitoringRequest { + /** + * The Operations Management Suite (OMS) workspace ID. + */ + @JsonProperty(value = "workspaceId") + private String workspaceId; + + /** + * The Operations Management Suite (OMS) workspace key. + */ + @JsonProperty(value = "primaryKey") + private String primaryKey; + + /** + * Get the Operations Management Suite (OMS) workspace ID. + * + * @return the workspaceId value + */ + public String workspaceId() { + return this.workspaceId; + } + + /** + * Set the Operations Management Suite (OMS) workspace ID. + * + * @param workspaceId the workspaceId value to set + * @return the ClusterMonitoringRequest object itself. + */ + public ClusterMonitoringRequest withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + /** + * Get the Operations Management Suite (OMS) workspace key. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Set the Operations Management Suite (OMS) workspace key. + * + * @param primaryKey the primaryKey value to set + * @return the ClusterMonitoringRequest object itself. + */ + public ClusterMonitoringRequest withPrimaryKey(String primaryKey) { + this.primaryKey = primaryKey; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterMonitoringResponse.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterMonitoringResponse.java new file mode 100644 index 000000000000..2c32a0b24c6f --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterMonitoringResponse.java @@ -0,0 +1,30 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ClusterMonitoringResponseInner; + +/** + * Type representing ClusterMonitoringResponse. + */ +public interface ClusterMonitoringResponse extends HasInner, HasManager { + /** + * @return the clusterMonitoringEnabled value. + */ + Boolean clusterMonitoringEnabled(); + + /** + * @return the workspaceId value. + */ + String workspaceId(); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterPatchParameters.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterPatchParameters.java new file mode 100644 index 000000000000..0a0e38b05177 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterPatchParameters.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The PatchCluster request parameters. + */ +public class ClusterPatchParameters { + /** + * The resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Get the resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the resource tags. + * + * @param tags the tags value to set + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters withTags(Map tags) { + this.tags = tags; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterResizeParameters.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterResizeParameters.java new file mode 100644 index 000000000000..19d32fc0983b --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ClusterResizeParameters.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Resize Cluster request parameters. + */ +public class ClusterResizeParameters { + /** + * The target instance count for the operation. + */ + @JsonProperty(value = "targetInstanceCount") + private Integer targetInstanceCount; + + /** + * Get the target instance count for the operation. + * + * @return the targetInstanceCount value + */ + public Integer targetInstanceCount() { + return this.targetInstanceCount; + } + + /** + * Set the target instance count for the operation. + * + * @param targetInstanceCount the targetInstanceCount value to set + * @return the ClusterResizeParameters object itself. + */ + public ClusterResizeParameters withTargetInstanceCount(Integer targetInstanceCount) { + this.targetInstanceCount = targetInstanceCount; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Clusters.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Clusters.java new file mode 100644 index 000000000000..b7bf37ff2259 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Clusters.java @@ -0,0 +1,47 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import rx.Completable; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ClustersInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Clusters. + */ +public interface Clusters extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable executeScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters); + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable resizeAsync(String resourceGroupName, String clusterName); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ComputeProfile.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ComputeProfile.java new file mode 100644 index 000000000000..3b49a2fa7da1 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ComputeProfile.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes the compute profile. + */ +public class ComputeProfile { + /** + * The list of roles in the cluster. + */ + @JsonProperty(value = "roles") + private List roles; + + /** + * Get the list of roles in the cluster. + * + * @return the roles value + */ + public List roles() { + return this.roles; + } + + /** + * Set the list of roles in the cluster. + * + * @param roles the roles value to set + * @return the ComputeProfile object itself. + */ + public ComputeProfile withRoles(List roles) { + this.roles = roles; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Configurations.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Configurations.java new file mode 100644 index 000000000000..73311cdf5fdf --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Configurations.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import rx.Completable; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ConfigurationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Configurations. + */ +public interface Configurations extends HasInner { + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable updateHTTPSettingsAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters); + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable> getAsync(String resourceGroupName, String clusterName, String configurationName); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ConnectivityEndpoint.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ConnectivityEndpoint.java new file mode 100644 index 000000000000..027cef539a5f --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ConnectivityEndpoint.java @@ -0,0 +1,121 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The connectivity properties. + */ +public class ConnectivityEndpoint { + /** + * The name of the endpoint. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The protocol of the endpoint. + */ + @JsonProperty(value = "protocol") + private String protocol; + + /** + * The location of the endpoint. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The port to connect to. + */ + @JsonProperty(value = "port") + private Integer port; + + /** + * Get the name of the endpoint. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the endpoint. + * + * @param name the name value to set + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withName(String name) { + this.name = name; + return this; + } + + /** + * Get the protocol of the endpoint. + * + * @return the protocol value + */ + public String protocol() { + return this.protocol; + } + + /** + * Set the protocol of the endpoint. + * + * @param protocol the protocol value to set + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withProtocol(String protocol) { + this.protocol = protocol; + return this; + } + + /** + * Get the location of the endpoint. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location of the endpoint. + * + * @param location the location value to set + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the port to connect to. + * + * @return the port value + */ + public Integer port() { + return this.port; + } + + /** + * Set the port to connect to. + * + * @param port the port value to set + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withPort(Integer port) { + this.port = port; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DataDisksGroups.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DataDisksGroups.java new file mode 100644 index 000000000000..31b64622a8a5 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DataDisksGroups.java @@ -0,0 +1,73 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The data disks groups for the role. + */ +public class DataDisksGroups { + /** + * The number of disks per node. + */ + @JsonProperty(value = "disksPerNode") + private Integer disksPerNode; + + /** + * ReadOnly. The storage account type. Do not set this value. + */ + @JsonProperty(value = "storageAccountType", access = JsonProperty.Access.WRITE_ONLY) + private String storageAccountType; + + /** + * ReadOnly. The DiskSize in GB. Do not set this value. + */ + @JsonProperty(value = "diskSizeGB", access = JsonProperty.Access.WRITE_ONLY) + private Integer diskSizeGB; + + /** + * Get the number of disks per node. + * + * @return the disksPerNode value + */ + public Integer disksPerNode() { + return this.disksPerNode; + } + + /** + * Set the number of disks per node. + * + * @param disksPerNode the disksPerNode value to set + * @return the DataDisksGroups object itself. + */ + public DataDisksGroups withDisksPerNode(Integer disksPerNode) { + this.disksPerNode = disksPerNode; + return this; + } + + /** + * Get readOnly. The storage account type. Do not set this value. + * + * @return the storageAccountType value + */ + public String storageAccountType() { + return this.storageAccountType; + } + + /** + * Get readOnly. The DiskSize in GB. Do not set this value. + * + * @return the diskSizeGB value + */ + public Integer diskSizeGB() { + return this.diskSizeGB; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DirectoryType.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DirectoryType.java new file mode 100644 index 000000000000..4fe9085467f5 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DirectoryType.java @@ -0,0 +1,50 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for DirectoryType. + */ +public enum DirectoryType { + /** Enum value ActiveDirectory. */ + ACTIVE_DIRECTORY("ActiveDirectory"); + + /** The actual serialized value for a DirectoryType instance. */ + private String value; + + DirectoryType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a DirectoryType instance. + * + * @param value the serialized value to parse. + * @return the parsed DirectoryType object, or null if unable to parse. + */ + @JsonCreator + public static DirectoryType fromString(String value) { + DirectoryType[] items = DirectoryType.values(); + for (DirectoryType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ErrorResponse.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ErrorResponse.java new file mode 100644 index 000000000000..74b4ce7963de --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ErrorResponse.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes the format of Error response. + */ +public class ErrorResponse { + /** + * Error code. + */ + @JsonProperty(value = "code") + private String code; + + /** + * Error message indicating why the operation failed. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set error code. + * + * @param code the code value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * Get error message indicating why the operation failed. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set error message indicating why the operation failed. + * + * @param message the message value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ErrorResponseException.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ErrorResponseException.java new file mode 100644 index 000000000000..6df5999302d6 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ErrorResponseException.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ +public class ErrorResponseException extends RestException { + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorResponseException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorResponseException(final String message, final Response response, final ErrorResponse body) { + super(message, response, body); + } + + @Override + public ErrorResponse body() { + return (ErrorResponse) super.body(); + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Errors.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Errors.java new file mode 100644 index 000000000000..b24aeb115300 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Errors.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The error message associated with the cluster creation. + */ +public class Errors { + /** + * The error code. + */ + @JsonProperty(value = "code") + private String code; + + /** + * The error message. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get the error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set the error code. + * + * @param code the code value to set + * @return the Errors object itself. + */ + public Errors withCode(String code) { + this.code = code; + return this; + } + + /** + * Get the error message. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the error message. + * + * @param message the message value to set + * @return the Errors object itself. + */ + public Errors withMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ExecuteScriptActionParameters.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ExecuteScriptActionParameters.java new file mode 100644 index 000000000000..394d93dd00d6 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ExecuteScriptActionParameters.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The parameters for the script actions to execute on a running cluster. + */ +public class ExecuteScriptActionParameters { + /** + * The list of run time script actions. + */ + @JsonProperty(value = "scriptActions") + private List scriptActions; + + /** + * Gets or sets if the scripts needs to be persisted. + */ + @JsonProperty(value = "persistOnSuccess", required = true) + private boolean persistOnSuccess; + + /** + * Get the list of run time script actions. + * + * @return the scriptActions value + */ + public List scriptActions() { + return this.scriptActions; + } + + /** + * Set the list of run time script actions. + * + * @param scriptActions the scriptActions value to set + * @return the ExecuteScriptActionParameters object itself. + */ + public ExecuteScriptActionParameters withScriptActions(List scriptActions) { + this.scriptActions = scriptActions; + return this; + } + + /** + * Get gets or sets if the scripts needs to be persisted. + * + * @return the persistOnSuccess value + */ + public boolean persistOnSuccess() { + return this.persistOnSuccess; + } + + /** + * Set gets or sets if the scripts needs to be persisted. + * + * @param persistOnSuccess the persistOnSuccess value to set + * @return the ExecuteScriptActionParameters object itself. + */ + public ExecuteScriptActionParameters withPersistOnSuccess(boolean persistOnSuccess) { + this.persistOnSuccess = persistOnSuccess; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Extension.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Extension.java new file mode 100644 index 000000000000..a8bb1a04bc98 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Extension.java @@ -0,0 +1,30 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ExtensionInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.HDInsightManager; + +/** + * Type representing Extension. + */ +public interface Extension extends HasInner, HasManager { + /** + * @return the primaryKey value. + */ + String primaryKey(); + + /** + * @return the workspaceId value. + */ + String workspaceId(); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Extensions.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Extensions.java new file mode 100644 index 000000000000..0c9a5754e779 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Extensions.java @@ -0,0 +1,86 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ExtensionsInner; +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ExtensionInner; + +/** + * Type representing Extensions. + */ +public interface Extensions extends HasInner { + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getMonitoringStatusAsync(String resourceGroupName, String clusterName); + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable disableMonitoringAsync(String resourceGroupName, String clusterName); + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String clusterName, String extensionName); + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String clusterName, String extensionName); + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters); + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable createAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/HDInsightClusterProvisioningState.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/HDInsightClusterProvisioningState.java new file mode 100644 index 000000000000..9477f8027ca0 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/HDInsightClusterProvisioningState.java @@ -0,0 +1,62 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for HDInsightClusterProvisioningState. + */ +public enum HDInsightClusterProvisioningState { + /** Enum value InProgress. */ + IN_PROGRESS("InProgress"), + + /** Enum value Failed. */ + FAILED("Failed"), + + /** Enum value Succeeded. */ + SUCCEEDED("Succeeded"), + + /** Enum value Canceled. */ + CANCELED("Canceled"), + + /** Enum value Deleting. */ + DELETING("Deleting"); + + /** The actual serialized value for a HDInsightClusterProvisioningState instance. */ + private String value; + + HDInsightClusterProvisioningState(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a HDInsightClusterProvisioningState instance. + * + * @param value the serialized value to parse. + * @return the parsed HDInsightClusterProvisioningState object, or null if unable to parse. + */ + @JsonCreator + public static HDInsightClusterProvisioningState fromString(String value) { + HDInsightClusterProvisioningState[] items = HDInsightClusterProvisioningState.values(); + for (HDInsightClusterProvisioningState item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/HardwareProfile.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/HardwareProfile.java new file mode 100644 index 000000000000..b62f0ff9c61d --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/HardwareProfile.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The hardware profile. + */ +public class HardwareProfile { + /** + * The size of the VM. + */ + @JsonProperty(value = "vmSize") + private String vmSize; + + /** + * Get the size of the VM. + * + * @return the vmSize value + */ + public String vmSize() { + return this.vmSize; + } + + /** + * Set the size of the VM. + * + * @param vmSize the vmSize value to set + * @return the HardwareProfile object itself. + */ + public HardwareProfile withVmSize(String vmSize) { + this.vmSize = vmSize; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/LinuxOperatingSystemProfile.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/LinuxOperatingSystemProfile.java new file mode 100644 index 000000000000..6b56e20a709b --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/LinuxOperatingSystemProfile.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ssh username, password, and ssh public key. + */ +public class LinuxOperatingSystemProfile { + /** + * The username. + */ + @JsonProperty(value = "username") + private String username; + + /** + * The password. + */ + @JsonProperty(value = "password") + private String password; + + /** + * The SSH profile. + */ + @JsonProperty(value = "sshProfile") + private SshProfile sshProfile; + + /** + * Get the username. + * + * @return the username value + */ + public String username() { + return this.username; + } + + /** + * Set the username. + * + * @param username the username value to set + * @return the LinuxOperatingSystemProfile object itself. + */ + public LinuxOperatingSystemProfile withUsername(String username) { + this.username = username; + return this; + } + + /** + * Get the password. + * + * @return the password value + */ + public String password() { + return this.password; + } + + /** + * Set the password. + * + * @param password the password value to set + * @return the LinuxOperatingSystemProfile object itself. + */ + public LinuxOperatingSystemProfile withPassword(String password) { + this.password = password; + return this; + } + + /** + * Get the SSH profile. + * + * @return the sshProfile value + */ + public SshProfile sshProfile() { + return this.sshProfile; + } + + /** + * Set the SSH profile. + * + * @param sshProfile the sshProfile value to set + * @return the LinuxOperatingSystemProfile object itself. + */ + public LinuxOperatingSystemProfile withSshProfile(SshProfile sshProfile) { + this.sshProfile = sshProfile; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/LocalizedName.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/LocalizedName.java new file mode 100644 index 000000000000..e0eb4a3a2238 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/LocalizedName.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The details about the localizable name of a type of usage. + */ +public class LocalizedName { + /** + * The name of the used resource. + */ + @JsonProperty(value = "value") + private String value; + + /** + * The localized name of the used resource. + */ + @JsonProperty(value = "localizedValue") + private String localizedValue; + + /** + * Get the name of the used resource. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set the name of the used resource. + * + * @param value the value value to set + * @return the LocalizedName object itself. + */ + public LocalizedName withValue(String value) { + this.value = value; + return this; + } + + /** + * Get the localized name of the used resource. + * + * @return the localizedValue value + */ + public String localizedValue() { + return this.localizedValue; + } + + /** + * Set the localized name of the used resource. + * + * @param localizedValue the localizedValue value to set + * @return the LocalizedName object itself. + */ + public LocalizedName withLocalizedValue(String localizedValue) { + this.localizedValue = localizedValue; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Locations.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Locations.java new file mode 100644 index 000000000000..6fe5d8500dfc --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Locations.java @@ -0,0 +1,35 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import rx.Observable; + +/** + * Type representing Locations. + */ +public interface Locations { + /** + * Gets the capabilities for the specified location. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getCapabilitiesAsync(String location); + + /** + * Lists the usages for the specified location. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listUsagesAsync(String location); + +} diff --git a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/Language1.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OSType.java similarity index 55% rename from cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/Language1.java rename to hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OSType.java index 0497ff77b7d1..7f5c5621820c 100644 --- a/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/Language1.java +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OSType.java @@ -6,38 +6,38 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.cognitiveservices.vision.computervision.models; +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; /** - * Defines values for Language1. + * Defines values for OSType. */ -public enum Language1 { - /** Enum value en. */ - EN("en"), +public enum OSType { + /** Enum value Windows. */ + WINDOWS("Windows"), - /** Enum value zh. */ - ZH("zh"); + /** Enum value Linux. */ + LINUX("Linux"); - /** The actual serialized value for a Language1 instance. */ + /** The actual serialized value for a OSType instance. */ private String value; - Language1(String value) { + OSType(String value) { this.value = value; } /** - * Parses a serialized value to a Language1 instance. + * Parses a serialized value to a OSType instance. * * @param value the serialized value to parse. - * @return the parsed Language1 object, or null if unable to parse. + * @return the parsed OSType object, or null if unable to parse. */ @JsonCreator - public static Language1 fromString(String value) { - Language1[] items = Language1.values(); - for (Language1 item : items) { + public static OSType fromString(String value) { + OSType[] items = OSType.values(); + for (OSType item : items) { if (item.toString().equalsIgnoreCase(value)) { return item; } diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Operation.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Operation.java new file mode 100644 index 000000000000..a3aab4ee0290 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Operation.java @@ -0,0 +1,30 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.OperationInner; + +/** + * Type representing Operation. + */ +public interface Operation extends HasInner, HasManager { + /** + * @return the display value. + */ + OperationDisplay display(); + + /** + * @return the name value. + */ + String name(); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OperationDisplay.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OperationDisplay.java new file mode 100644 index 000000000000..02795284f566 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OperationDisplay.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The object that represents the operation. + */ +public class OperationDisplay { + /** + * The service provider: Microsoft.HDInsight. + */ + @JsonProperty(value = "provider") + private String provider; + + /** + * The resource on which the operation is performed: Cluster, Applications, + * etc. + */ + @JsonProperty(value = "resource") + private String resource; + + /** + * The operation type: read, write, delete, etc. + */ + @JsonProperty(value = "operation") + private String operation; + + /** + * Get the service provider: Microsoft.HDInsight. + * + * @return the provider value + */ + public String provider() { + return this.provider; + } + + /** + * Set the service provider: Microsoft.HDInsight. + * + * @param provider the provider value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withProvider(String provider) { + this.provider = provider; + return this; + } + + /** + * Get the resource on which the operation is performed: Cluster, Applications, etc. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Set the resource on which the operation is performed: Cluster, Applications, etc. + * + * @param resource the resource value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withResource(String resource) { + this.resource = resource; + return this; + } + + /** + * Get the operation type: read, write, delete, etc. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + + /** + * Set the operation type: read, write, delete, etc. + * + * @param operation the operation value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withOperation(String operation) { + this.operation = operation; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OperationResource.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OperationResource.java new file mode 100644 index 000000000000..873d830bdaa3 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OperationResource.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The azure async operation response. + */ +public class OperationResource { + /** + * The async operation state. Possible values include: 'InProgress', + * 'Succeeded', 'Failed'. + */ + @JsonProperty(value = "status") + private AsyncOperationState status; + + /** + * The operation error information. + */ + @JsonProperty(value = "error") + private Errors error; + + /** + * Get the async operation state. Possible values include: 'InProgress', 'Succeeded', 'Failed'. + * + * @return the status value + */ + public AsyncOperationState status() { + return this.status; + } + + /** + * Set the async operation state. Possible values include: 'InProgress', 'Succeeded', 'Failed'. + * + * @param status the status value to set + * @return the OperationResource object itself. + */ + public OperationResource withStatus(AsyncOperationState status) { + this.status = status; + return this; + } + + /** + * Get the operation error information. + * + * @return the error value + */ + public Errors error() { + return this.error; + } + + /** + * Set the operation error information. + * + * @param error the error value to set + * @return the OperationResource object itself. + */ + public OperationResource withError(Errors error) { + this.error = error; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Operations.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Operations.java new file mode 100644 index 000000000000..e22be5b83ad6 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Operations.java @@ -0,0 +1,27 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.OperationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Operations. + */ +public interface Operations extends HasInner { + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OsProfile.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OsProfile.java new file mode 100644 index 000000000000..b5f4f2b78c06 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/OsProfile.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Linux operation systems profile. + */ +public class OsProfile { + /** + * The Linux OS profile. + */ + @JsonProperty(value = "linuxOperatingSystemProfile") + private LinuxOperatingSystemProfile linuxOperatingSystemProfile; + + /** + * Get the Linux OS profile. + * + * @return the linuxOperatingSystemProfile value + */ + public LinuxOperatingSystemProfile linuxOperatingSystemProfile() { + return this.linuxOperatingSystemProfile; + } + + /** + * Set the Linux OS profile. + * + * @param linuxOperatingSystemProfile the linuxOperatingSystemProfile value to set + * @return the OsProfile object itself. + */ + public OsProfile withLinuxOperatingSystemProfile(LinuxOperatingSystemProfile linuxOperatingSystemProfile) { + this.linuxOperatingSystemProfile = linuxOperatingSystemProfile; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/QuotaCapability.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/QuotaCapability.java new file mode 100644 index 000000000000..617b9f05f32f --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/QuotaCapability.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The regional quota capability. + */ +public class QuotaCapability { + /** + * The list of region quota capabilities. + */ + @JsonProperty(value = "regionalQuotas") + private List regionalQuotas; + + /** + * Get the list of region quota capabilities. + * + * @return the regionalQuotas value + */ + public List regionalQuotas() { + return this.regionalQuotas; + } + + /** + * Set the list of region quota capabilities. + * + * @param regionalQuotas the regionalQuotas value to set + * @return the QuotaCapability object itself. + */ + public QuotaCapability withRegionalQuotas(List regionalQuotas) { + this.regionalQuotas = regionalQuotas; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/QuotaInfo.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/QuotaInfo.java new file mode 100644 index 000000000000..6a8c9f055808 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/QuotaInfo.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The quota properties for the cluster. + */ +public class QuotaInfo { + /** + * The cores used by the cluster. + */ + @JsonProperty(value = "coresUsed") + private Integer coresUsed; + + /** + * Get the cores used by the cluster. + * + * @return the coresUsed value + */ + public Integer coresUsed() { + return this.coresUsed; + } + + /** + * Set the cores used by the cluster. + * + * @param coresUsed the coresUsed value to set + * @return the QuotaInfo object itself. + */ + public QuotaInfo withCoresUsed(Integer coresUsed) { + this.coresUsed = coresUsed; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RegionalQuotaCapability.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RegionalQuotaCapability.java new file mode 100644 index 000000000000..24ce926a8128 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RegionalQuotaCapability.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The regional quota capacity. + */ +public class RegionalQuotaCapability { + /** + * The region name. + */ + @JsonProperty(value = "region_name") + private String regionName; + + /** + * The number of cores used in the region. + */ + @JsonProperty(value = "cores_used") + private Long coresUsed; + + /** + * The number of courses available in the region. + */ + @JsonProperty(value = "cores_available") + private Long coresAvailable; + + /** + * Get the region name. + * + * @return the regionName value + */ + public String regionName() { + return this.regionName; + } + + /** + * Set the region name. + * + * @param regionName the regionName value to set + * @return the RegionalQuotaCapability object itself. + */ + public RegionalQuotaCapability withRegionName(String regionName) { + this.regionName = regionName; + return this; + } + + /** + * Get the number of cores used in the region. + * + * @return the coresUsed value + */ + public Long coresUsed() { + return this.coresUsed; + } + + /** + * Set the number of cores used in the region. + * + * @param coresUsed the coresUsed value to set + * @return the RegionalQuotaCapability object itself. + */ + public RegionalQuotaCapability withCoresUsed(Long coresUsed) { + this.coresUsed = coresUsed; + return this; + } + + /** + * Get the number of courses available in the region. + * + * @return the coresAvailable value + */ + public Long coresAvailable() { + return this.coresAvailable; + } + + /** + * Set the number of courses available in the region. + * + * @param coresAvailable the coresAvailable value to set + * @return the RegionalQuotaCapability object itself. + */ + public RegionalQuotaCapability withCoresAvailable(Long coresAvailable) { + this.coresAvailable = coresAvailable; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RegionsCapability.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RegionsCapability.java new file mode 100644 index 000000000000..88d0126b8b36 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RegionsCapability.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The regions capability. + */ +public class RegionsCapability { + /** + * The list of region capabilities. + */ + @JsonProperty(value = "available") + private List available; + + /** + * Get the list of region capabilities. + * + * @return the available value + */ + public List available() { + return this.available; + } + + /** + * Set the list of region capabilities. + * + * @param available the available value to set + * @return the RegionsCapability object itself. + */ + public RegionsCapability withAvailable(List available) { + this.available = available; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Role.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Role.java new file mode 100644 index 000000000000..28f0d6ebb5fc --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Role.java @@ -0,0 +1,227 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ScriptActionInner; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes a role on the cluster. + */ +public class Role { + /** + * The name of the role. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The minimum instance count of the cluster. + */ + @JsonProperty(value = "minInstanceCount") + private Integer minInstanceCount; + + /** + * The instance count of the cluster. + */ + @JsonProperty(value = "targetInstanceCount") + private Integer targetInstanceCount; + + /** + * The hardware profile. + */ + @JsonProperty(value = "hardwareProfile") + private HardwareProfile hardwareProfile; + + /** + * The operating system profile. + */ + @JsonProperty(value = "osProfile") + private OsProfile osProfile; + + /** + * The virtual network profile. + */ + @JsonProperty(value = "virtualNetworkProfile") + private VirtualNetworkProfile virtualNetworkProfile; + + /** + * The data disks groups for the role. + */ + @JsonProperty(value = "dataDisksGroups") + private List dataDisksGroups; + + /** + * The list of script actions on the role. + */ + @JsonProperty(value = "scriptActions") + private List scriptActions; + + /** + * Get the name of the role. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the role. + * + * @param name the name value to set + * @return the Role object itself. + */ + public Role withName(String name) { + this.name = name; + return this; + } + + /** + * Get the minimum instance count of the cluster. + * + * @return the minInstanceCount value + */ + public Integer minInstanceCount() { + return this.minInstanceCount; + } + + /** + * Set the minimum instance count of the cluster. + * + * @param minInstanceCount the minInstanceCount value to set + * @return the Role object itself. + */ + public Role withMinInstanceCount(Integer minInstanceCount) { + this.minInstanceCount = minInstanceCount; + return this; + } + + /** + * Get the instance count of the cluster. + * + * @return the targetInstanceCount value + */ + public Integer targetInstanceCount() { + return this.targetInstanceCount; + } + + /** + * Set the instance count of the cluster. + * + * @param targetInstanceCount the targetInstanceCount value to set + * @return the Role object itself. + */ + public Role withTargetInstanceCount(Integer targetInstanceCount) { + this.targetInstanceCount = targetInstanceCount; + return this; + } + + /** + * Get the hardware profile. + * + * @return the hardwareProfile value + */ + public HardwareProfile hardwareProfile() { + return this.hardwareProfile; + } + + /** + * Set the hardware profile. + * + * @param hardwareProfile the hardwareProfile value to set + * @return the Role object itself. + */ + public Role withHardwareProfile(HardwareProfile hardwareProfile) { + this.hardwareProfile = hardwareProfile; + return this; + } + + /** + * Get the operating system profile. + * + * @return the osProfile value + */ + public OsProfile osProfile() { + return this.osProfile; + } + + /** + * Set the operating system profile. + * + * @param osProfile the osProfile value to set + * @return the Role object itself. + */ + public Role withOsProfile(OsProfile osProfile) { + this.osProfile = osProfile; + return this; + } + + /** + * Get the virtual network profile. + * + * @return the virtualNetworkProfile value + */ + public VirtualNetworkProfile virtualNetworkProfile() { + return this.virtualNetworkProfile; + } + + /** + * Set the virtual network profile. + * + * @param virtualNetworkProfile the virtualNetworkProfile value to set + * @return the Role object itself. + */ + public Role withVirtualNetworkProfile(VirtualNetworkProfile virtualNetworkProfile) { + this.virtualNetworkProfile = virtualNetworkProfile; + return this; + } + + /** + * Get the data disks groups for the role. + * + * @return the dataDisksGroups value + */ + public List dataDisksGroups() { + return this.dataDisksGroups; + } + + /** + * Set the data disks groups for the role. + * + * @param dataDisksGroups the dataDisksGroups value to set + * @return the Role object itself. + */ + public Role withDataDisksGroups(List dataDisksGroups) { + this.dataDisksGroups = dataDisksGroups; + return this; + } + + /** + * Get the list of script actions on the role. + * + * @return the scriptActions value + */ + public List scriptActions() { + return this.scriptActions; + } + + /** + * Set the list of script actions on the role. + * + * @param scriptActions the scriptActions value to set + * @return the Role object itself. + */ + public Role withScriptActions(List scriptActions) { + this.scriptActions = scriptActions; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RuntimeScriptAction.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RuntimeScriptAction.java new file mode 100644 index 000000000000..7f48cba55d6f --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RuntimeScriptAction.java @@ -0,0 +1,137 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes a script action on a running cluster. + */ +public class RuntimeScriptAction { + /** + * The name of the script action. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The URI to the script. + */ + @JsonProperty(value = "uri", required = true) + private String uri; + + /** + * The parameters for the script. + */ + @JsonProperty(value = "parameters") + private String parameters; + + /** + * The list of roles where script will be executed. + */ + @JsonProperty(value = "roles", required = true) + private List roles; + + /** + * The application name of the script action, if any. + */ + @JsonProperty(value = "applicationName", access = JsonProperty.Access.WRITE_ONLY) + private String applicationName; + + /** + * Get the name of the script action. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the script action. + * + * @param name the name value to set + * @return the RuntimeScriptAction object itself. + */ + public RuntimeScriptAction withName(String name) { + this.name = name; + return this; + } + + /** + * Get the URI to the script. + * + * @return the uri value + */ + public String uri() { + return this.uri; + } + + /** + * Set the URI to the script. + * + * @param uri the uri value to set + * @return the RuntimeScriptAction object itself. + */ + public RuntimeScriptAction withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the parameters for the script. + * + * @return the parameters value + */ + public String parameters() { + return this.parameters; + } + + /** + * Set the parameters for the script. + * + * @param parameters the parameters value to set + * @return the RuntimeScriptAction object itself. + */ + public RuntimeScriptAction withParameters(String parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the list of roles where script will be executed. + * + * @return the roles value + */ + public List roles() { + return this.roles; + } + + /** + * Set the list of roles where script will be executed. + * + * @param roles the roles value to set + * @return the RuntimeScriptAction object itself. + */ + public RuntimeScriptAction withRoles(List roles) { + this.roles = roles; + return this; + } + + /** + * Get the application name of the script action, if any. + * + * @return the applicationName value + */ + public String applicationName() { + return this.applicationName; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RuntimeScriptActionDetail.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RuntimeScriptActionDetail.java new file mode 100644 index 000000000000..1ebb47d93dff --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/RuntimeScriptActionDetail.java @@ -0,0 +1,81 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.RuntimeScriptActionDetailInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.HDInsightManager; +import java.util.List; + +/** + * Type representing RuntimeScriptActionDetail. + */ +public interface RuntimeScriptActionDetail extends HasInner, HasManager { + /** + * @return the applicationName value. + */ + String applicationName(); + + /** + * @return the debugInformation value. + */ + String debugInformation(); + + /** + * @return the endTime value. + */ + String endTime(); + + /** + * @return the executionSummary value. + */ + List executionSummary(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the operation value. + */ + String operation(); + + /** + * @return the parameters value. + */ + String parameters(); + + /** + * @return the roles value. + */ + List roles(); + + /** + * @return the scriptExecutionId value. + */ + Long scriptExecutionId(); + + /** + * @return the startTime value. + */ + String startTime(); + + /** + * @return the status value. + */ + String status(); + + /** + * @return the uri value. + */ + String uri(); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActionExecutionSummary.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActionExecutionSummary.java new file mode 100644 index 000000000000..47500214d1b6 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActionExecutionSummary.java @@ -0,0 +1,47 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The execution summary of a script action. + */ +public class ScriptActionExecutionSummary { + /** + * The status of script action execution. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private String status; + + /** + * The instance count for a given script action execution status. + */ + @JsonProperty(value = "instanceCount", access = JsonProperty.Access.WRITE_ONLY) + private Integer instanceCount; + + /** + * Get the status of script action execution. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the instance count for a given script action execution status. + * + * @return the instanceCount value + */ + public Integer instanceCount() { + return this.instanceCount; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActionPersistedGetResponseSpec.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActionPersistedGetResponseSpec.java new file mode 100644 index 000000000000..61c41edfe608 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActionPersistedGetResponseSpec.java @@ -0,0 +1,148 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The persisted script action for cluster. + */ +public class ScriptActionPersistedGetResponseSpec { + /** + * The name of script action. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The URI to the script. + */ + @JsonProperty(value = "uri") + private String uri; + + /** + * The parameters for the script provided. + */ + @JsonProperty(value = "parameters") + private String parameters; + + /** + * The list of roles where script will be executed. + */ + @JsonProperty(value = "roles") + private List roles; + + /** + * The application name for the script action. + */ + @JsonProperty(value = "applicationName") + private String applicationName; + + /** + * Get the name of script action. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of script action. + * + * @param name the name value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withName(String name) { + this.name = name; + return this; + } + + /** + * Get the URI to the script. + * + * @return the uri value + */ + public String uri() { + return this.uri; + } + + /** + * Set the URI to the script. + * + * @param uri the uri value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the parameters for the script provided. + * + * @return the parameters value + */ + public String parameters() { + return this.parameters; + } + + /** + * Set the parameters for the script provided. + * + * @param parameters the parameters value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withParameters(String parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the list of roles where script will be executed. + * + * @return the roles value + */ + public List roles() { + return this.roles; + } + + /** + * Set the list of roles where script will be executed. + * + * @param roles the roles value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withRoles(List roles) { + this.roles = roles; + return this; + } + + /** + * Get the application name for the script action. + * + * @return the applicationName value + */ + public String applicationName() { + return this.applicationName; + } + + /** + * Set the application name for the script action. + * + * @param applicationName the applicationName value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withApplicationName(String applicationName) { + this.applicationName = applicationName; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActions.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActions.java new file mode 100644 index 000000000000..1c17347a6add --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptActions.java @@ -0,0 +1,52 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ScriptActionsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing ScriptActions. + */ +public interface ScriptActions extends HasInner { + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listPersistedScriptsAsync(final String resourceGroupName, final String clusterName); + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String clusterName, String scriptName); + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getExecutionDetailAsync(String resourceGroupName, String clusterName, String scriptExecutionId); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptExecutionHistorys.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptExecutionHistorys.java new file mode 100644 index 000000000000..43e9d4c92a13 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/ScriptExecutionHistorys.java @@ -0,0 +1,41 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.ScriptExecutionHistorysInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing ScriptExecutionHistorys. + */ +public interface ScriptExecutionHistorys extends HasInner { + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(final String resourceGroupName, final String clusterName); + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable promoteAsync(String resourceGroupName, String clusterName, String scriptExecutionId); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SecurityProfile.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SecurityProfile.java new file mode 100644 index 000000000000..529417dc103d --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SecurityProfile.java @@ -0,0 +1,202 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The security profile which contains Ssh public key for the HDInsight + * cluster. + */ +public class SecurityProfile { + /** + * The directory type. Possible values include: 'ActiveDirectory'. + */ + @JsonProperty(value = "directoryType") + private DirectoryType directoryType; + + /** + * The organization's active directory domain. + */ + @JsonProperty(value = "domain") + private String domain; + + /** + * The organizational unit within the Active Directory to place the cluster + * and service accounts. + */ + @JsonProperty(value = "organizationalUnitDN") + private String organizationalUnitDN; + + /** + * The LDAPS protocol URLs to communicate with the Active Directory. + */ + @JsonProperty(value = "ldapsUrls") + private List ldapsUrls; + + /** + * The domain user account that will have admin privileges on the cluster. + */ + @JsonProperty(value = "domainUsername") + private String domainUsername; + + /** + * The domain admin password. + */ + @JsonProperty(value = "domainUserPassword") + private String domainUserPassword; + + /** + * Optional. The Distinguished Names for cluster user groups. + */ + @JsonProperty(value = "clusterUsersGroupDNs") + private List clusterUsersGroupDNs; + + /** + * Get the directory type. Possible values include: 'ActiveDirectory'. + * + * @return the directoryType value + */ + public DirectoryType directoryType() { + return this.directoryType; + } + + /** + * Set the directory type. Possible values include: 'ActiveDirectory'. + * + * @param directoryType the directoryType value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withDirectoryType(DirectoryType directoryType) { + this.directoryType = directoryType; + return this; + } + + /** + * Get the organization's active directory domain. + * + * @return the domain value + */ + public String domain() { + return this.domain; + } + + /** + * Set the organization's active directory domain. + * + * @param domain the domain value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withDomain(String domain) { + this.domain = domain; + return this; + } + + /** + * Get the organizational unit within the Active Directory to place the cluster and service accounts. + * + * @return the organizationalUnitDN value + */ + public String organizationalUnitDN() { + return this.organizationalUnitDN; + } + + /** + * Set the organizational unit within the Active Directory to place the cluster and service accounts. + * + * @param organizationalUnitDN the organizationalUnitDN value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withOrganizationalUnitDN(String organizationalUnitDN) { + this.organizationalUnitDN = organizationalUnitDN; + return this; + } + + /** + * Get the LDAPS protocol URLs to communicate with the Active Directory. + * + * @return the ldapsUrls value + */ + public List ldapsUrls() { + return this.ldapsUrls; + } + + /** + * Set the LDAPS protocol URLs to communicate with the Active Directory. + * + * @param ldapsUrls the ldapsUrls value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withLdapsUrls(List ldapsUrls) { + this.ldapsUrls = ldapsUrls; + return this; + } + + /** + * Get the domain user account that will have admin privileges on the cluster. + * + * @return the domainUsername value + */ + public String domainUsername() { + return this.domainUsername; + } + + /** + * Set the domain user account that will have admin privileges on the cluster. + * + * @param domainUsername the domainUsername value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withDomainUsername(String domainUsername) { + this.domainUsername = domainUsername; + return this; + } + + /** + * Get the domain admin password. + * + * @return the domainUserPassword value + */ + public String domainUserPassword() { + return this.domainUserPassword; + } + + /** + * Set the domain admin password. + * + * @param domainUserPassword the domainUserPassword value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withDomainUserPassword(String domainUserPassword) { + this.domainUserPassword = domainUserPassword; + return this; + } + + /** + * Get optional. The Distinguished Names for cluster user groups. + * + * @return the clusterUsersGroupDNs value + */ + public List clusterUsersGroupDNs() { + return this.clusterUsersGroupDNs; + } + + /** + * Set optional. The Distinguished Names for cluster user groups. + * + * @param clusterUsersGroupDNs the clusterUsersGroupDNs value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withClusterUsersGroupDNs(List clusterUsersGroupDNs) { + this.clusterUsersGroupDNs = clusterUsersGroupDNs; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SshProfile.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SshProfile.java new file mode 100644 index 000000000000..630e034ccdc8 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SshProfile.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The list of SSH public keys. + */ +public class SshProfile { + /** + * The list of SSH public keys. + */ + @JsonProperty(value = "publicKeys") + private List publicKeys; + + /** + * Get the list of SSH public keys. + * + * @return the publicKeys value + */ + public List publicKeys() { + return this.publicKeys; + } + + /** + * Set the list of SSH public keys. + * + * @param publicKeys the publicKeys value to set + * @return the SshProfile object itself. + */ + public SshProfile withPublicKeys(List publicKeys) { + this.publicKeys = publicKeys; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SshPublicKey.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SshPublicKey.java new file mode 100644 index 000000000000..4cd02c94237f --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/SshPublicKey.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The SSH public key for the cluster nodes. + */ +public class SshPublicKey { + /** + * The certificate for SSH. + */ + @JsonProperty(value = "certificateData") + private String certificateData; + + /** + * Get the certificate for SSH. + * + * @return the certificateData value + */ + public String certificateData() { + return this.certificateData; + } + + /** + * Set the certificate for SSH. + * + * @param certificateData the certificateData value to set + * @return the SshPublicKey object itself. + */ + public SshPublicKey withCertificateData(String certificateData) { + this.certificateData = certificateData; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/StorageAccount.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/StorageAccount.java new file mode 100644 index 000000000000..cbe69089ef5c --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/StorageAccount.java @@ -0,0 +1,148 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The storage Account. + */ +public class StorageAccount { + /** + * The name of the storage account. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Whether or not the storage account is the default storage account. + */ + @JsonProperty(value = "isDefault") + private Boolean isDefault; + + /** + * The container in the storage account, only to be specified for WASB + * storage accounts. + */ + @JsonProperty(value = "container") + private String container; + + /** + * The filesystem, only to be specified for Azure Data Lake Storage Gen 2. + */ + @JsonProperty(value = "fileSystem") + private String fileSystem; + + /** + * The storage account access key. + */ + @JsonProperty(value = "key") + private String key; + + /** + * Get the name of the storage account. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the storage account. + * + * @param name the name value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withName(String name) { + this.name = name; + return this; + } + + /** + * Get whether or not the storage account is the default storage account. + * + * @return the isDefault value + */ + public Boolean isDefault() { + return this.isDefault; + } + + /** + * Set whether or not the storage account is the default storage account. + * + * @param isDefault the isDefault value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get the container in the storage account, only to be specified for WASB storage accounts. + * + * @return the container value + */ + public String container() { + return this.container; + } + + /** + * Set the container in the storage account, only to be specified for WASB storage accounts. + * + * @param container the container value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withContainer(String container) { + this.container = container; + return this; + } + + /** + * Get the filesystem, only to be specified for Azure Data Lake Storage Gen 2. + * + * @return the fileSystem value + */ + public String fileSystem() { + return this.fileSystem; + } + + /** + * Set the filesystem, only to be specified for Azure Data Lake Storage Gen 2. + * + * @param fileSystem the fileSystem value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withFileSystem(String fileSystem) { + this.fileSystem = fileSystem; + return this; + } + + /** + * Get the storage account access key. + * + * @return the key value + */ + public String key() { + return this.key; + } + + /** + * Set the storage account access key. + * + * @param key the key value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withKey(String key) { + this.key = key; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/StorageProfile.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/StorageProfile.java new file mode 100644 index 000000000000..2bbb3039bcc0 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/StorageProfile.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The storage profile. + */ +public class StorageProfile { + /** + * The list of storage accounts in the cluster. + */ + @JsonProperty(value = "storageaccounts") + private List storageaccounts; + + /** + * Get the list of storage accounts in the cluster. + * + * @return the storageaccounts value + */ + public List storageaccounts() { + return this.storageaccounts; + } + + /** + * Set the list of storage accounts in the cluster. + * + * @param storageaccounts the storageaccounts value to set + * @return the StorageProfile object itself. + */ + public StorageProfile withStorageaccounts(List storageaccounts) { + this.storageaccounts = storageaccounts; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Tier.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Tier.java new file mode 100644 index 000000000000..7dc759818fca --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Tier.java @@ -0,0 +1,53 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for Tier. + */ +public enum Tier { + /** Enum value Standard. */ + STANDARD("Standard"), + + /** Enum value Premium. */ + PREMIUM("Premium"); + + /** The actual serialized value for a Tier instance. */ + private String value; + + Tier(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a Tier instance. + * + * @param value the serialized value to parse. + * @return the parsed Tier object, or null if unable to parse. + */ + @JsonCreator + public static Tier fromString(String value) { + Tier[] items = Tier.values(); + for (Tier item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Usage.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Usage.java new file mode 100644 index 000000000000..dc0f242a2493 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Usage.java @@ -0,0 +1,121 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The details about the usage of a particular limited resource. + */ +public class Usage { + /** + * The type of measurement for usage. + */ + @JsonProperty(value = "unit") + private String unit; + + /** + * The current usage. + */ + @JsonProperty(value = "currentValue") + private Integer currentValue; + + /** + * The maximum allowed usage. + */ + @JsonProperty(value = "limit") + private Integer limit; + + /** + * The details about the localizable name of the used resource. + */ + @JsonProperty(value = "name") + private LocalizedName name; + + /** + * Get the type of measurement for usage. + * + * @return the unit value + */ + public String unit() { + return this.unit; + } + + /** + * Set the type of measurement for usage. + * + * @param unit the unit value to set + * @return the Usage object itself. + */ + public Usage withUnit(String unit) { + this.unit = unit; + return this; + } + + /** + * Get the current usage. + * + * @return the currentValue value + */ + public Integer currentValue() { + return this.currentValue; + } + + /** + * Set the current usage. + * + * @param currentValue the currentValue value to set + * @return the Usage object itself. + */ + public Usage withCurrentValue(Integer currentValue) { + this.currentValue = currentValue; + return this; + } + + /** + * Get the maximum allowed usage. + * + * @return the limit value + */ + public Integer limit() { + return this.limit; + } + + /** + * Set the maximum allowed usage. + * + * @param limit the limit value to set + * @return the Usage object itself. + */ + public Usage withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Get the details about the localizable name of the used resource. + * + * @return the name value + */ + public LocalizedName name() { + return this.name; + } + + /** + * Set the details about the localizable name of the used resource. + * + * @param name the name value to set + * @return the Usage object itself. + */ + public Usage withName(LocalizedName name) { + this.name = name; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/UsagesListResult.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/UsagesListResult.java new file mode 100644 index 000000000000..41df247f7011 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/UsagesListResult.java @@ -0,0 +1,26 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation.UsagesListResultInner; +import java.util.List; + +/** + * Type representing UsagesListResult. + */ +public interface UsagesListResult extends HasInner, HasManager { + /** + * @return the value value. + */ + List value(); + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VersionSpec.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VersionSpec.java new file mode 100644 index 000000000000..69ca14ae0810 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VersionSpec.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The version properties. + */ +public class VersionSpec { + /** + * The friendly name. + */ + @JsonProperty(value = "friendlyName") + private String friendlyName; + + /** + * The display name. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * Whether or not the version is the default version. + */ + @JsonProperty(value = "isDefault") + private String isDefault; + + /** + * The component version property. + */ + @JsonProperty(value = "componentVersions") + private Map componentVersions; + + /** + * Get the friendly name. + * + * @return the friendlyName value + */ + public String friendlyName() { + return this.friendlyName; + } + + /** + * Set the friendly name. + * + * @param friendlyName the friendlyName value to set + * @return the VersionSpec object itself. + */ + public VersionSpec withFriendlyName(String friendlyName) { + this.friendlyName = friendlyName; + return this; + } + + /** + * Get the display name. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the display name. + * + * @param displayName the displayName value to set + * @return the VersionSpec object itself. + */ + public VersionSpec withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get whether or not the version is the default version. + * + * @return the isDefault value + */ + public String isDefault() { + return this.isDefault; + } + + /** + * Set whether or not the version is the default version. + * + * @param isDefault the isDefault value to set + * @return the VersionSpec object itself. + */ + public VersionSpec withIsDefault(String isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get the component version property. + * + * @return the componentVersions value + */ + public Map componentVersions() { + return this.componentVersions; + } + + /** + * Set the component version property. + * + * @param componentVersions the componentVersions value to set + * @return the VersionSpec object itself. + */ + public VersionSpec withComponentVersions(Map componentVersions) { + this.componentVersions = componentVersions; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VersionsCapability.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VersionsCapability.java new file mode 100644 index 000000000000..7c2cdb4dcba0 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VersionsCapability.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The version capability. + */ +public class VersionsCapability { + /** + * The list of version capabilities. + */ + @JsonProperty(value = "available") + private List available; + + /** + * Get the list of version capabilities. + * + * @return the available value + */ + public List available() { + return this.available; + } + + /** + * Set the list of version capabilities. + * + * @param available the available value to set + * @return the VersionsCapability object itself. + */ + public VersionsCapability withAvailable(List available) { + this.available = available; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VirtualNetworkProfile.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VirtualNetworkProfile.java new file mode 100644 index 000000000000..a0a63a604d88 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VirtualNetworkProfile.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The virtual network properties. + */ +public class VirtualNetworkProfile { + /** + * The ID of the virtual network. + */ + @JsonProperty(value = "id") + private String id; + + /** + * The name of the subnet. + */ + @JsonProperty(value = "subnet") + private String subnet; + + /** + * Get the ID of the virtual network. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set the ID of the virtual network. + * + * @param id the id value to set + * @return the VirtualNetworkProfile object itself. + */ + public VirtualNetworkProfile withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name of the subnet. + * + * @return the subnet value + */ + public String subnet() { + return this.subnet; + } + + /** + * Set the name of the subnet. + * + * @param subnet the subnet value to set + * @return the VirtualNetworkProfile object itself. + */ + public VirtualNetworkProfile withSubnet(String subnet) { + this.subnet = subnet; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VmSizeCompatibilityFilter.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VmSizeCompatibilityFilter.java new file mode 100644 index 000000000000..b861aad8dab8 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VmSizeCompatibilityFilter.java @@ -0,0 +1,174 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The virtual machine type compatibility filter. + */ +public class VmSizeCompatibilityFilter { + /** + * The mode for the filter. + */ + @JsonProperty(value = "FilterMode") + private String filterMode; + + /** + * The list of regions. + */ + @JsonProperty(value = "Regions") + private List regions; + + /** + * The list of cluster types available. + */ + @JsonProperty(value = "ClusterFlavors") + private List clusterFlavors; + + /** + * The list of node types. + */ + @JsonProperty(value = "NodeTypes") + private List nodeTypes; + + /** + * The list of cluster versions. + */ + @JsonProperty(value = "ClusterVersions") + private List clusterVersions; + + /** + * The list of virtual machine sizes. + */ + @JsonProperty(value = "vmsizes") + private List vmsizes; + + /** + * Get the mode for the filter. + * + * @return the filterMode value + */ + public String filterMode() { + return this.filterMode; + } + + /** + * Set the mode for the filter. + * + * @param filterMode the filterMode value to set + * @return the VmSizeCompatibilityFilter object itself. + */ + public VmSizeCompatibilityFilter withFilterMode(String filterMode) { + this.filterMode = filterMode; + return this; + } + + /** + * Get the list of regions. + * + * @return the regions value + */ + public List regions() { + return this.regions; + } + + /** + * Set the list of regions. + * + * @param regions the regions value to set + * @return the VmSizeCompatibilityFilter object itself. + */ + public VmSizeCompatibilityFilter withRegions(List regions) { + this.regions = regions; + return this; + } + + /** + * Get the list of cluster types available. + * + * @return the clusterFlavors value + */ + public List clusterFlavors() { + return this.clusterFlavors; + } + + /** + * Set the list of cluster types available. + * + * @param clusterFlavors the clusterFlavors value to set + * @return the VmSizeCompatibilityFilter object itself. + */ + public VmSizeCompatibilityFilter withClusterFlavors(List clusterFlavors) { + this.clusterFlavors = clusterFlavors; + return this; + } + + /** + * Get the list of node types. + * + * @return the nodeTypes value + */ + public List nodeTypes() { + return this.nodeTypes; + } + + /** + * Set the list of node types. + * + * @param nodeTypes the nodeTypes value to set + * @return the VmSizeCompatibilityFilter object itself. + */ + public VmSizeCompatibilityFilter withNodeTypes(List nodeTypes) { + this.nodeTypes = nodeTypes; + return this; + } + + /** + * Get the list of cluster versions. + * + * @return the clusterVersions value + */ + public List clusterVersions() { + return this.clusterVersions; + } + + /** + * Set the list of cluster versions. + * + * @param clusterVersions the clusterVersions value to set + * @return the VmSizeCompatibilityFilter object itself. + */ + public VmSizeCompatibilityFilter withClusterVersions(List clusterVersions) { + this.clusterVersions = clusterVersions; + return this; + } + + /** + * Get the list of virtual machine sizes. + * + * @return the vmsizes value + */ + public List vmsizes() { + return this.vmsizes; + } + + /** + * Set the list of virtual machine sizes. + * + * @param vmsizes the vmsizes value to set + * @return the VmSizeCompatibilityFilter object itself. + */ + public VmSizeCompatibilityFilter withVmsizes(List vmsizes) { + this.vmsizes = vmsizes; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VmSizesCapability.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VmSizesCapability.java new file mode 100644 index 000000000000..59cd9f7bd761 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/VmSizesCapability.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The virtual machine sizes capability. + */ +public class VmSizesCapability { + /** + * The list of virtual machine size capabilities. + */ + @JsonProperty(value = "available") + private List available; + + /** + * Get the list of virtual machine size capabilities. + * + * @return the available value + */ + public List available() { + return this.available; + } + + /** + * Set the list of virtual machine size capabilities. + * + * @param available the available value to set + * @return the VmSizesCapability object itself. + */ + public VmSizesCapability withAvailable(List available) { + this.available = available; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationImpl.java new file mode 100644 index 000000000000..86c674e3a677 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationImpl.java @@ -0,0 +1,129 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Application; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ApplicationProperties; + +class ApplicationImpl extends CreatableUpdatableImpl implements Application, Application.Definition, Application.Update { + private final HDInsightManager manager; + private String resourceGroupName; + private String clusterName; + private String applicationName; + + ApplicationImpl(String name, HDInsightManager manager) { + super(name, new ApplicationInner()); + this.manager = manager; + // Set resource name + this.applicationName = name; + // + } + + ApplicationImpl(ApplicationInner inner, HDInsightManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.applicationName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.clusterName = IdParsingUtils.getValueFromIdByName(inner.id(), "clusters"); + this.applicationName = IdParsingUtils.getValueFromIdByName(inner.id(), "applications"); + // + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + ApplicationsInner client = this.manager().inner().applications(); + return client.createAsync(this.resourceGroupName, this.clusterName, this.applicationName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + ApplicationsInner client = this.manager().inner().applications(); + return client.createAsync(this.resourceGroupName, this.clusterName, this.applicationName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + ApplicationsInner client = this.manager().inner().applications(); + return client.getAsync(this.resourceGroupName, this.clusterName, this.applicationName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public ApplicationProperties properties() { + return this.inner().properties(); + } + + @Override + public Map tags() { + return this.inner().tags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public ApplicationImpl withExistingCluster(String resourceGroupName, String clusterName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + return this; + } + + @Override + public ApplicationImpl withEtag(String etag) { + this.inner().withEtag(etag); + return this; + } + + @Override + public ApplicationImpl withProperties(ApplicationProperties properties) { + this.inner().withProperties(properties); + return this; + } + + @Override + public ApplicationImpl withTags(Map tags) { + this.inner().withTags(tags); + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationInner.java new file mode 100644 index 000000000000..585317163657 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationInner.java @@ -0,0 +1,98 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import java.util.Map; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ApplicationProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.ProxyResource; + +/** + * The HDInsight cluster application. + */ +public class ApplicationInner extends ProxyResource { + /** + * The ETag for the application. + */ + @JsonProperty(value = "etag") + private String etag; + + /** + * The tags for the application. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The properties of the application. + */ + @JsonProperty(value = "properties") + private ApplicationProperties properties; + + /** + * Get the ETag for the application. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Set the ETag for the application. + * + * @param etag the etag value to set + * @return the ApplicationInner object itself. + */ + public ApplicationInner withEtag(String etag) { + this.etag = etag; + return this; + } + + /** + * Get the tags for the application. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags for the application. + * + * @param tags the tags value to set + * @return the ApplicationInner object itself. + */ + public ApplicationInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties of the application. + * + * @return the properties value + */ + public ApplicationProperties properties() { + return this.properties; + } + + /** + * Set the properties of the application. + * + * @param properties the properties value to set + * @return the ApplicationInner object itself. + */ + public ApplicationInner withProperties(ApplicationProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationsImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationsImpl.java new file mode 100644 index 000000000000..62f0b65973e0 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationsImpl.java @@ -0,0 +1,81 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Applications; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Application; + +class ApplicationsImpl extends WrapperImpl implements Applications { + private final HDInsightManager manager; + + ApplicationsImpl(HDInsightManager manager) { + super(manager.inner().applications()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public ApplicationImpl define(String name) { + return wrapModel(name); + } + + private ApplicationImpl wrapModel(ApplicationInner inner) { + return new ApplicationImpl(inner, manager()); + } + + private ApplicationImpl wrapModel(String name) { + return new ApplicationImpl(name, this.manager()); + } + + @Override + public Observable listAsync(final String resourceGroupName, final String clusterName) { + ApplicationsInner client = this.inner(); + return client.listAsync(resourceGroupName, clusterName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Application call(ApplicationInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String clusterName, String applicationName) { + ApplicationsInner client = this.inner(); + return client.getAsync(resourceGroupName, clusterName, applicationName) + .map(new Func1() { + @Override + public Application call(ApplicationInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String clusterName, String applicationName) { + ApplicationsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, clusterName, applicationName).toCompletable(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationsInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationsInner.java new file mode 100644 index 000000000000..75518b9e1e1a --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ApplicationsInner.java @@ -0,0 +1,774 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Applications. + */ +public class ApplicationsInner { + /** The Retrofit service to perform REST calls. */ + private ApplicationsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ApplicationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ApplicationsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ApplicationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Applications to be + * used by Retrofit to perform actually REST calls. + */ + interface ApplicationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Applications list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications") + Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Applications get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Applications create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}") + Observable> create(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @Body ApplicationInner parameters, @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.management.hdinsight.v2015_03_01_preview.Applications beginCreate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}") + Observable> beginCreate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @Body ApplicationInner parameters, @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.management.hdinsight.v2015_03_01_preview.Applications delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Applications beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Applications listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ApplicationInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String clusterName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, clusterName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String clusterName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, clusterName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ApplicationInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String clusterName) { + return listWithServiceResponseAsync(resourceGroupName, clusterName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ApplicationInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String clusterName) { + return listSinglePageAsync(resourceGroupName, clusterName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ApplicationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ApplicationInner object if successful. + */ + public ApplicationInner get(String resourceGroupName, String clusterName, String applicationName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).toBlocking().single().body(); + } + + /** + * Lists properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String clusterName, String applicationName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, clusterName, applicationName), serviceCallback); + } + + /** + * Lists properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ApplicationInner object + */ + public Observable getAsync(String resourceGroupName, String clusterName, String applicationName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).map(new Func1, ApplicationInner>() { + @Override + public ApplicationInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ApplicationInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ApplicationInner object if successful. + */ + public ApplicationInner create(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters).toBlocking().last().body(); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters), serviceCallback); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters).map(new Func1, ApplicationInner>() { + @Override + public ApplicationInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.create(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ApplicationInner object if successful. + */ + public ApplicationInner beginCreate(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters).toBlocking().single().body(); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters), serviceCallback); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ApplicationInner object + */ + public Observable beginCreateAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters).map(new Func1, ApplicationInner>() { + @Override + public ApplicationInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ApplicationInner object + */ + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginCreate(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String clusterName, String applicationName) { + deleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).toBlocking().last().body(); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, String applicationName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName), serviceCallback); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String clusterName, String applicationName) { + return deleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String clusterName, String applicationName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).toBlocking().single().body(); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String clusterName, String applicationName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName), serviceCallback); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String clusterName, String applicationName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ApplicationInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ApplicationInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ApplicationInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ApplicationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/CapabilitiesResultImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/CapabilitiesResultImpl.java new file mode 100644 index 000000000000..b2b6e28bc5a4 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/CapabilitiesResultImpl.java @@ -0,0 +1,63 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.CapabilitiesResult; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.QuotaCapability; +import java.util.Map; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.RegionsCapability; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.VersionsCapability; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.VmSizeCompatibilityFilter; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.VmSizesCapability; + +class CapabilitiesResultImpl extends WrapperImpl implements CapabilitiesResult { + private final HDInsightManager manager; + CapabilitiesResultImpl(CapabilitiesResultInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public List features() { + return this.inner().features(); + } + + @Override + public QuotaCapability quota() { + return this.inner().quota(); + } + + @Override + public Map regions() { + return this.inner().regions(); + } + + @Override + public Map versions() { + return this.inner().versions(); + } + + @Override + public List vmSizeFilters() { + return this.inner().vmSizeFilters(); + } + + @Override + public Map vmSizes() { + return this.inner().vmSizes(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/CapabilitiesResultInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/CapabilitiesResultInner.java new file mode 100644 index 000000000000..231c4c5fb7a8 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/CapabilitiesResultInner.java @@ -0,0 +1,180 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import java.util.Map; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.VersionsCapability; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.RegionsCapability; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.VmSizesCapability; +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.VmSizeCompatibilityFilter; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.QuotaCapability; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Get Capabilities operation response. + */ +public class CapabilitiesResultInner { + /** + * The version capability. + */ + @JsonProperty(value = "versions") + private Map versions; + + /** + * The virtual machine size compatibilty features. + */ + @JsonProperty(value = "regions") + private Map regions; + + /** + * The virtual machine sizes. + */ + @JsonProperty(value = "vmSizes") + private Map vmSizes; + + /** + * The virtual machine size compatibilty filters. + */ + @JsonProperty(value = "vmSize_filters") + private List vmSizeFilters; + + /** + * The capabilty features. + */ + @JsonProperty(value = "features") + private List features; + + /** + * The quota capability. + */ + @JsonProperty(value = "quota") + private QuotaCapability quota; + + /** + * Get the version capability. + * + * @return the versions value + */ + public Map versions() { + return this.versions; + } + + /** + * Set the version capability. + * + * @param versions the versions value to set + * @return the CapabilitiesResultInner object itself. + */ + public CapabilitiesResultInner withVersions(Map versions) { + this.versions = versions; + return this; + } + + /** + * Get the virtual machine size compatibilty features. + * + * @return the regions value + */ + public Map regions() { + return this.regions; + } + + /** + * Set the virtual machine size compatibilty features. + * + * @param regions the regions value to set + * @return the CapabilitiesResultInner object itself. + */ + public CapabilitiesResultInner withRegions(Map regions) { + this.regions = regions; + return this; + } + + /** + * Get the virtual machine sizes. + * + * @return the vmSizes value + */ + public Map vmSizes() { + return this.vmSizes; + } + + /** + * Set the virtual machine sizes. + * + * @param vmSizes the vmSizes value to set + * @return the CapabilitiesResultInner object itself. + */ + public CapabilitiesResultInner withVmSizes(Map vmSizes) { + this.vmSizes = vmSizes; + return this; + } + + /** + * Get the virtual machine size compatibilty filters. + * + * @return the vmSizeFilters value + */ + public List vmSizeFilters() { + return this.vmSizeFilters; + } + + /** + * Set the virtual machine size compatibilty filters. + * + * @param vmSizeFilters the vmSizeFilters value to set + * @return the CapabilitiesResultInner object itself. + */ + public CapabilitiesResultInner withVmSizeFilters(List vmSizeFilters) { + this.vmSizeFilters = vmSizeFilters; + return this; + } + + /** + * Get the capabilty features. + * + * @return the features value + */ + public List features() { + return this.features; + } + + /** + * Set the capabilty features. + * + * @param features the features value to set + * @return the CapabilitiesResultInner object itself. + */ + public CapabilitiesResultInner withFeatures(List features) { + this.features = features; + return this; + } + + /** + * Get the quota capability. + * + * @return the quota value + */ + public QuotaCapability quota() { + return this.quota; + } + + /** + * Set the quota capability. + * + * @param quota the quota value to set + * @return the CapabilitiesResultInner object itself. + */ + public CapabilitiesResultInner withQuota(QuotaCapability quota) { + this.quota = quota; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterImpl.java new file mode 100644 index 000000000000..511925987a58 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterImpl.java @@ -0,0 +1,87 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Cluster; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterCreateParametersExtended; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterGetProperties; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterCreateProperties; +import rx.functions.Func1; + +class ClusterImpl extends GroupableResourceCoreImpl implements Cluster, Cluster.Definition, Cluster.Update { + private ClusterCreateParametersExtended createOrUpdateParameter; + ClusterImpl(String name, ClusterInner inner, HDInsightManager manager) { + super(name, inner, manager); + this.createOrUpdateParameter = new ClusterCreateParametersExtended(); + } + + @Override + public Observable createResourceAsync() { + ClustersInner client = this.manager().inner().clusters(); + this.createOrUpdateParameter.withLocation(inner().location()); + this.createOrUpdateParameter.withTags(inner().getTags()); + return client.createAsync(this.resourceGroupName(), this.name(), this.createOrUpdateParameter) + .map(new Func1() { + @Override + public ClusterInner call(ClusterInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + ClustersInner client = this.manager().inner().clusters(); + return client.createAsync(this.resourceGroupName(), this.name(), this.createOrUpdateParameter) + .map(new Func1() { + @Override + public ClusterInner call(ClusterInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + ClustersInner client = this.manager().inner().clusters(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new ClusterCreateParametersExtended(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public ClusterGetProperties properties() { + return this.inner().properties(); + } + + @Override + public ClusterImpl withProperties(ClusterCreateProperties properties) { + this.createOrUpdateParameter.withProperties(properties); + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterInner.java new file mode 100644 index 000000000000..373c9c981326 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterInner.java @@ -0,0 +1,73 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterGetProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * The HDInsight cluster. + */ +@SkipParentValidation +public class ClusterInner extends Resource { + /** + * The ETag for the resource. + */ + @JsonProperty(value = "etag") + private String etag; + + /** + * The properties of the cluster. + */ + @JsonProperty(value = "properties") + private ClusterGetProperties properties; + + /** + * Get the ETag for the resource. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Set the ETag for the resource. + * + * @param etag the etag value to set + * @return the ClusterInner object itself. + */ + public ClusterInner withEtag(String etag) { + this.etag = etag; + return this; + } + + /** + * Get the properties of the cluster. + * + * @return the properties value + */ + public ClusterGetProperties properties() { + return this.properties; + } + + /** + * Set the properties of the cluster. + * + * @param properties the properties value to set + * @return the ClusterInner object itself. + */ + public ClusterInner withProperties(ClusterGetProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterMonitoringResponseImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterMonitoringResponseImpl.java new file mode 100644 index 000000000000..ef98a3fa9404 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterMonitoringResponseImpl.java @@ -0,0 +1,36 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterMonitoringResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ClusterMonitoringResponseImpl extends WrapperImpl implements ClusterMonitoringResponse { + private final HDInsightManager manager; + ClusterMonitoringResponseImpl(ClusterMonitoringResponseInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Boolean clusterMonitoringEnabled() { + return this.inner().clusterMonitoringEnabled(); + } + + @Override + public String workspaceId() { + return this.inner().workspaceId(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterMonitoringResponseInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterMonitoringResponseInner.java new file mode 100644 index 000000000000..ee8f37c4ec43 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClusterMonitoringResponseInner.java @@ -0,0 +1,71 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Operations Management Suite (OMS) status response. + */ +public class ClusterMonitoringResponseInner { + /** + * The status of the Operations Management Suite (OMS) on the HDInsight + * cluster. + */ + @JsonProperty(value = "clusterMonitoringEnabled") + private Boolean clusterMonitoringEnabled; + + /** + * The workspace ID of the Operations Management Suite (OMS) on the + * HDInsight cluster. + */ + @JsonProperty(value = "workspaceId") + private String workspaceId; + + /** + * Get the status of the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @return the clusterMonitoringEnabled value + */ + public Boolean clusterMonitoringEnabled() { + return this.clusterMonitoringEnabled; + } + + /** + * Set the status of the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param clusterMonitoringEnabled the clusterMonitoringEnabled value to set + * @return the ClusterMonitoringResponseInner object itself. + */ + public ClusterMonitoringResponseInner withClusterMonitoringEnabled(Boolean clusterMonitoringEnabled) { + this.clusterMonitoringEnabled = clusterMonitoringEnabled; + return this; + } + + /** + * Get the workspace ID of the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @return the workspaceId value + */ + public String workspaceId() { + return this.workspaceId; + } + + /** + * Set the workspace ID of the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param workspaceId the workspaceId value to set + * @return the ClusterMonitoringResponseInner object itself. + */ + public ClusterMonitoringResponseInner withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClustersImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClustersImpl.java new file mode 100644 index 000000000000..e3684e84d790 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClustersImpl.java @@ -0,0 +1,151 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Clusters; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Cluster; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ExecuteScriptActionParameters; + +class ClustersImpl extends GroupableResourcesCoreImpl implements Clusters { + protected ClustersImpl(HDInsightManager manager) { + super(manager.inner().clusters(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + ClustersInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + ClustersInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + ClustersInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + ClustersInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Cluster call(ClusterInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + ClustersInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + ClustersInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Cluster call(ClusterInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public ClusterImpl define(String name) { + return wrapModel(name); + } + + @Override + public Completable executeScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + ClustersInner client = this.inner(); + return client.executeScriptActionsAsync(resourceGroupName, clusterName, parameters).toCompletable(); + } + + @Override + protected ClusterImpl wrapModel(ClusterInner inner) { + return new ClusterImpl(inner.name(), inner, manager()); + } + + @Override + protected ClusterImpl wrapModel(String name) { + return new ClusterImpl(name, new ClusterInner(), this.manager()); + } + + @Override + public Completable resizeAsync(String resourceGroupName, String clusterName) { + ClustersInner client = this.inner(); + return client.resizeAsync(resourceGroupName, clusterName).toCompletable(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClustersInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClustersInner.java new file mode 100644 index 000000000000..e75b8f8cb623 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ClustersInner.java @@ -0,0 +1,1653 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterCreateParametersExtended; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterPatchParameters; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterResizeParameters; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ErrorResponseException; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ExecuteScriptActionParameters; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Clusters. + */ +public class ClustersInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private ClustersService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ClustersInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ClustersInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ClustersService.class); + this.client = client; + } + + /** + * The interface defining all the services for Clusters to be + * used by Retrofit to perform actually REST calls. + */ + interface ClustersService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Clusters create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}") + Observable> create(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterCreateParametersExtended parameters, @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.management.hdinsight.v2015_03_01_preview.Clusters beginCreate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}") + Observable> beginCreate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterCreateParametersExtended parameters, @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.management.hdinsight.v2015_03_01_preview.Clusters update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}") + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ClusterPatchParameters parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Clusters delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Clusters beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Clusters getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Clusters listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Clusters resize" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize") + Observable> resize(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("roleName") String roleName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ClusterResizeParameters parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Clusters beginResize" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize") + Observable> beginResize(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("roleName") String roleName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ClusterResizeParameters parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Clusters list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Clusters executeScriptActions" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions") + Observable> executeScriptActions(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ExecuteScriptActionParameters parameters, @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.management.hdinsight.v2015_03_01_preview.Clusters beginExecuteScriptActions" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions") + Observable> beginExecuteScriptActions(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ExecuteScriptActionParameters parameters, @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.management.hdinsight.v2015_03_01_preview.Clusters listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.hdinsight.v2015_03_01_preview.Clusters listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner create(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().last().body(); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.create(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner beginCreate(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body(); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable beginCreateAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginCreate(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner update(String resourceGroupName, String clusterName) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable updateAsync(String resourceGroupName, String clusterName) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Map tags = null; + ClusterPatchParameters parameters = new ClusterPatchParameters(); + parameters.withTags(null); + return service.update(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param tags The resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner update(String resourceGroupName, String clusterName, Map tags) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName, tags).toBlocking().single().body(); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param tags The resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String clusterName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, clusterName, tags), serviceCallback); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param tags The resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable updateAsync(String resourceGroupName, String clusterName, Map tags) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName, tags).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param tags The resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String clusterName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(tags); + ClusterPatchParameters parameters = new ClusterPatchParameters(); + parameters.withTags(tags); + return service.update(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String clusterName) { + deleteWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body(); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String clusterName) { + return deleteWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String clusterName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String clusterName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Gets the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Gets the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String clusterName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ClusterInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void resize(String resourceGroupName, String clusterName) { + resizeWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body(); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture resizeAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(resizeWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable resizeAsync(String resourceGroupName, String clusterName) { + return resizeWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> resizeWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String roleName = "workernode"; + final Integer targetInstanceCount = null; + ClusterResizeParameters parameters = new ClusterResizeParameters(); + parameters.withTargetInstanceCount(null); + Observable> observable = service.resize(this.client.subscriptionId(), resourceGroupName, clusterName, roleName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void resize(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + resizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).toBlocking().last().body(); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture resizeAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(resizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount), serviceCallback); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable resizeAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + return resizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> resizeWithServiceResponseAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String roleName = "workernode"; + ClusterResizeParameters parameters = new ClusterResizeParameters(); + parameters.withTargetInstanceCount(targetInstanceCount); + Observable> observable = service.resize(this.client.subscriptionId(), resourceGroupName, clusterName, roleName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginResize(String resourceGroupName, String clusterName) { + beginResizeWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginResizeAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginResizeWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginResizeAsync(String resourceGroupName, String clusterName) { + return beginResizeWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginResizeWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String roleName = "workernode"; + final Integer targetInstanceCount = null; + ClusterResizeParameters parameters = new ClusterResizeParameters(); + parameters.withTargetInstanceCount(null); + return service.beginResize(this.client.subscriptionId(), resourceGroupName, clusterName, roleName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginResizeDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginResize(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + beginResizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).toBlocking().single().body(); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginResizeAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginResizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount), serviceCallback); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginResizeAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + return beginResizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginResizeWithServiceResponseAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String roleName = "workernode"; + ClusterResizeParameters parameters = new ClusterResizeParameters(); + parameters.withTargetInstanceCount(targetInstanceCount); + return service.beginResize(this.client.subscriptionId(), resourceGroupName, clusterName, roleName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginResizeDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginResizeDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ClusterInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void executeScriptActions(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + executeScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().last().body(); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture executeScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(executeScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable executeScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + return executeScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> executeScriptActionsWithServiceResponseAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.executeScriptActions(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginExecuteScriptActions(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + beginExecuteScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body(); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginExecuteScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginExecuteScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginExecuteScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + return beginExecuteScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginExecuteScriptActionsWithServiceResponseAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginExecuteScriptActions(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginExecuteScriptActionsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginExecuteScriptActionsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ClusterInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ClusterInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ConfigurationsImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ConfigurationsImpl.java new file mode 100644 index 000000000000..5a518832da80 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ConfigurationsImpl.java @@ -0,0 +1,43 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Configurations; +import rx.Completable; +import rx.functions.Func1; +import rx.Observable; +import java.util.Map; + +class ConfigurationsImpl extends WrapperImpl implements Configurations { + private final HDInsightManager manager; + + ConfigurationsImpl(HDInsightManager manager) { + super(manager.inner().configurations()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Completable updateHTTPSettingsAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + ConfigurationsInner client = this.inner(); + return client.updateHTTPSettingsAsync(resourceGroupName, clusterName, configurationName, parameters).toCompletable(); + } + + @Override + public Observable> getAsync(String resourceGroupName, String clusterName, String configurationName) { + ConfigurationsInner client = this.inner(); + return client.getAsync(resourceGroupName, clusterName, configurationName) + ;} + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ConfigurationsInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ConfigurationsInner.java new file mode 100644 index 000000000000..d6cf943c9d95 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ConfigurationsInner.java @@ -0,0 +1,350 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Configurations. + */ +public class ConfigurationsInner { + /** The Retrofit service to perform REST calls. */ + private ConfigurationsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ConfigurationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ConfigurationsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ConfigurationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Configurations to be + * used by Retrofit to perform actually REST calls. + */ + interface ConfigurationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Configurations updateHTTPSettings" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}") + Observable> updateHTTPSettings(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("configurationName") String configurationName, @Query("api-version") String apiVersion, @Body Map parameters, @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.management.hdinsight.v2015_03_01_preview.Configurations beginUpdateHTTPSettings" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}") + Observable> beginUpdateHTTPSettings(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("configurationName") String configurationName, @Query("api-version") String apiVersion, @Body Map parameters, @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.management.hdinsight.v2015_03_01_preview.Configurations get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("configurationName") String configurationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void updateHTTPSettings(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + updateHTTPSettingsWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters).toBlocking().last().body(); + } + + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateHTTPSettingsAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateHTTPSettingsWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters), serviceCallback); + } + + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateHTTPSettingsAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + return updateHTTPSettingsWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateHTTPSettingsWithServiceResponseAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (configurationName == null) { + throw new IllegalArgumentException("Parameter configurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.updateHTTPSettings(this.client.subscriptionId(), resourceGroupName, clusterName, configurationName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginUpdateHTTPSettings(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + beginUpdateHTTPSettingsWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters).toBlocking().single().body(); + } + + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateHTTPSettingsAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateHTTPSettingsWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters), serviceCallback); + } + + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginUpdateHTTPSettingsAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + return beginUpdateHTTPSettingsWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Configures the HTTP settings on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginUpdateHTTPSettingsWithServiceResponseAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (configurationName == null) { + throw new IllegalArgumentException("Parameter configurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginUpdateHTTPSettings(this.client.subscriptionId(), resourceGroupName, clusterName, configurationName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateHTTPSettingsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateHTTPSettingsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Map<String, String> object if successful. + */ + public Map get(String resourceGroupName, String clusterName, String configurationName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, configurationName).toBlocking().single().body(); + } + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getAsync(String resourceGroupName, String clusterName, String configurationName, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, clusterName, configurationName), serviceCallback); + } + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Map<String, String> object + */ + public Observable> getAsync(String resourceGroupName, String clusterName, String configurationName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, configurationName).map(new Func1>, Map>() { + @Override + public Map call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Map<String, String> object + */ + public Observable>> getWithServiceResponseAsync(String resourceGroupName, String clusterName, String configurationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (configurationName == null) { + throw new IllegalArgumentException("Parameter configurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, clusterName, configurationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionImpl.java new file mode 100644 index 000000000000..32c4922c4897 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionImpl.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Extension; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; + +class ExtensionImpl extends WrapperImpl implements Extension { + private final HDInsightManager manager; + private String resourceGroupName; + private String clusterName; + private String extensionName; + + ExtensionImpl(ExtensionInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + + + @Override + public String primaryKey() { + return this.inner().primaryKey(); + } + + @Override + public String workspaceId() { + return this.inner().workspaceId(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionInner.java new file mode 100644 index 000000000000..a65fbca54f90 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionInner.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Cluster monitoring extensions. + */ +public class ExtensionInner { + /** + * The workspace ID for the cluster monitoring extension. + */ + @JsonProperty(value = "workspaceId") + private String workspaceId; + + /** + * The certificate for the cluster monitoring extensions. + */ + @JsonProperty(value = "primaryKey") + private String primaryKey; + + /** + * Get the workspace ID for the cluster monitoring extension. + * + * @return the workspaceId value + */ + public String workspaceId() { + return this.workspaceId; + } + + /** + * Set the workspace ID for the cluster monitoring extension. + * + * @param workspaceId the workspaceId value to set + * @return the ExtensionInner object itself. + */ + public ExtensionInner withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + /** + * Get the certificate for the cluster monitoring extensions. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Set the certificate for the cluster monitoring extensions. + * + * @param primaryKey the primaryKey value to set + * @return the ExtensionInner object itself. + */ + public ExtensionInner withPrimaryKey(String primaryKey) { + this.primaryKey = primaryKey; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionsImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionsImpl.java new file mode 100644 index 000000000000..01cf8996226d --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionsImpl.java @@ -0,0 +1,85 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Extensions; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterMonitoringResponse; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Extension; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterMonitoringRequest; + +class ExtensionsImpl extends WrapperImpl implements Extensions { + private final HDInsightManager manager; + + ExtensionsImpl(HDInsightManager manager) { + super(manager.inner().extensions()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + private ExtensionImpl wrapModel(ExtensionInner inner) { + return new ExtensionImpl(inner, manager()); + } + + @Override + public Observable getMonitoringStatusAsync(String resourceGroupName, String clusterName) { + ExtensionsInner client = this.inner(); + return client.getMonitoringStatusAsync(resourceGroupName, clusterName) + .map(new Func1() { + @Override + public ClusterMonitoringResponse call(ClusterMonitoringResponseInner inner) { + return new ClusterMonitoringResponseImpl(inner, manager()); + } + }); + } + + @Override + public Completable disableMonitoringAsync(String resourceGroupName, String clusterName) { + ExtensionsInner client = this.inner(); + return client.disableMonitoringAsync(resourceGroupName, clusterName).toCompletable(); + } + + @Override + public Observable getAsync(String resourceGroupName, String clusterName, String extensionName) { + ExtensionsInner client = this.inner(); + return client.getAsync(resourceGroupName, clusterName, extensionName) + .map(new Func1() { + @Override + public Extension call(ExtensionInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String clusterName, String extensionName) { + ExtensionsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, clusterName, extensionName).toCompletable(); + } + + @Override + public Completable enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + ExtensionsInner client = this.inner(); + return client.enableMonitoringAsync(resourceGroupName, clusterName, parameters).toCompletable(); + } + + @Override + public Completable createAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + ExtensionsInner client = this.inner(); + return client.createAsync(resourceGroupName, clusterName, extensionName, parameters).toCompletable(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionsInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionsInner.java new file mode 100644 index 000000000000..311e8bc8ffbe --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ExtensionsInner.java @@ -0,0 +1,790 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ClusterMonitoringRequest; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Extensions. + */ +public class ExtensionsInner { + /** The Retrofit service to perform REST calls. */ + private ExtensionsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ExtensionsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ExtensionsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ExtensionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Extensions to be + * used by Retrofit to perform actually REST calls. + */ + interface ExtensionsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Extensions enableMonitoring" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring") + Observable> enableMonitoring(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterMonitoringRequest parameters, @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.management.hdinsight.v2015_03_01_preview.Extensions beginEnableMonitoring" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring") + Observable> beginEnableMonitoring(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterMonitoringRequest parameters, @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.management.hdinsight.v2015_03_01_preview.Extensions getMonitoringStatus" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring") + Observable> getMonitoringStatus(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Extensions disableMonitoring" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", method = "DELETE", hasBody = true) + Observable> disableMonitoring(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Extensions beginDisableMonitoring" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", method = "DELETE", hasBody = true) + Observable> beginDisableMonitoring(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Extensions create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}") + Observable> create(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("extensionName") String extensionName, @Query("api-version") String apiVersion, @Body ExtensionInner parameters, @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.management.hdinsight.v2015_03_01_preview.Extensions get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("extensionName") String extensionName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Extensions delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("extensionName") String extensionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void enableMonitoring(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + enableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().last().body(); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(enableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + return enableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> enableMonitoringWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.enableMonitoring(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginEnableMonitoring(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + beginEnableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body(); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginEnableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginEnableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginEnableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + return beginEnableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginEnableMonitoringWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginEnableMonitoring(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginEnableMonitoringDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginEnableMonitoringDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterMonitoringResponseInner object if successful. + */ + public ClusterMonitoringResponseInner getMonitoringStatus(String resourceGroupName, String clusterName) { + return getMonitoringStatusWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getMonitoringStatusAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getMonitoringStatusWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterMonitoringResponseInner object + */ + public Observable getMonitoringStatusAsync(String resourceGroupName, String clusterName) { + return getMonitoringStatusWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterMonitoringResponseInner>() { + @Override + public ClusterMonitoringResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterMonitoringResponseInner object + */ + public Observable> getMonitoringStatusWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getMonitoringStatus(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getMonitoringStatusDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getMonitoringStatusDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void disableMonitoring(String resourceGroupName, String clusterName) { + disableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body(); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture disableMonitoringAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(disableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable disableMonitoringAsync(String resourceGroupName, String clusterName) { + return disableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> disableMonitoringWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.disableMonitoring(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDisableMonitoring(String resourceGroupName, String clusterName) { + beginDisableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDisableMonitoringAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDisableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDisableMonitoringAsync(String resourceGroupName, String clusterName) { + return beginDisableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDisableMonitoringWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDisableMonitoring(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDisableMonitoringDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDisableMonitoringDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void create(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + createWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters).toBlocking().single().body(); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters), serviceCallback); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable createAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (extensionName == null) { + throw new IllegalArgumentException("Parameter extensionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.create(this.client.subscriptionId(), resourceGroupName, clusterName, extensionName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ExtensionInner object if successful. + */ + public ExtensionInner get(String resourceGroupName, String clusterName, String extensionName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).toBlocking().single().body(); + } + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String clusterName, String extensionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, clusterName, extensionName), serviceCallback); + } + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ExtensionInner object + */ + public Observable getAsync(String resourceGroupName, String clusterName, String extensionName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).map(new Func1, ExtensionInner>() { + @Override + public ExtensionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ExtensionInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String clusterName, String extensionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (extensionName == null) { + throw new IllegalArgumentException("Parameter extensionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, clusterName, extensionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String clusterName, String extensionName) { + deleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).toBlocking().single().body(); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, String extensionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName), serviceCallback); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String clusterName, String extensionName) { + return deleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String extensionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (extensionName == null) { + throw new IllegalArgumentException("Parameter extensionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, clusterName, extensionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/HDInsightManagementClientImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/HDInsightManagementClientImpl.java new file mode 100644 index 000000000000..5c53e58065c2 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/HDInsightManagementClientImpl.java @@ -0,0 +1,294 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the HDInsightManagementClientImpl class. + */ +public class HDInsightManagementClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */ + private String subscriptionId; + + /** + * Gets The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public HDInsightManagementClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** The HDInsight client API Version. */ + private String apiVersion; + + /** + * Gets The HDInsight client API Version. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** The preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets The preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets The preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public HDInsightManagementClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public HDInsightManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public HDInsightManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The ClustersInner object to access its operations. + */ + private ClustersInner clusters; + + /** + * Gets the ClustersInner object to access its operations. + * @return the ClustersInner object. + */ + public ClustersInner clusters() { + return this.clusters; + } + + /** + * The ApplicationsInner object to access its operations. + */ + private ApplicationsInner applications; + + /** + * Gets the ApplicationsInner object to access its operations. + * @return the ApplicationsInner object. + */ + public ApplicationsInner applications() { + return this.applications; + } + + /** + * The LocationsInner object to access its operations. + */ + private LocationsInner locations; + + /** + * Gets the LocationsInner object to access its operations. + * @return the LocationsInner object. + */ + public LocationsInner locations() { + return this.locations; + } + + /** + * The ConfigurationsInner object to access its operations. + */ + private ConfigurationsInner configurations; + + /** + * Gets the ConfigurationsInner object to access its operations. + * @return the ConfigurationsInner object. + */ + public ConfigurationsInner configurations() { + return this.configurations; + } + + /** + * The ExtensionsInner object to access its operations. + */ + private ExtensionsInner extensions; + + /** + * Gets the ExtensionsInner object to access its operations. + * @return the ExtensionsInner object. + */ + public ExtensionsInner extensions() { + return this.extensions; + } + + /** + * The ScriptActionsInner object to access its operations. + */ + private ScriptActionsInner scriptActions; + + /** + * Gets the ScriptActionsInner object to access its operations. + * @return the ScriptActionsInner object. + */ + public ScriptActionsInner scriptActions() { + return this.scriptActions; + } + + /** + * The ScriptExecutionHistorysInner object to access its operations. + */ + private ScriptExecutionHistorysInner scriptExecutionHistorys; + + /** + * Gets the ScriptExecutionHistorysInner object to access its operations. + * @return the ScriptExecutionHistorysInner object. + */ + public ScriptExecutionHistorysInner scriptExecutionHistorys() { + return this.scriptExecutionHistorys; + } + + /** + * The OperationsInner object to access its operations. + */ + private OperationsInner operations; + + /** + * Gets the OperationsInner object to access its operations. + * @return the OperationsInner object. + */ + public OperationsInner operations() { + return this.operations; + } + + /** + * Initializes an instance of HDInsightManagementClient client. + * + * @param credentials the management credentials for Azure + */ + public HDInsightManagementClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of HDInsightManagementClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public HDInsightManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of HDInsightManagementClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public HDInsightManagementClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2015-03-01-preview"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.clusters = new ClustersInner(restClient().retrofit(), this); + this.applications = new ApplicationsInner(restClient().retrofit(), this); + this.locations = new LocationsInner(restClient().retrofit(), this); + this.configurations = new ConfigurationsInner(restClient().retrofit(), this); + this.extensions = new ExtensionsInner(restClient().retrofit(), this); + this.scriptActions = new ScriptActionsInner(restClient().retrofit(), this); + this.scriptExecutionHistorys = new ScriptExecutionHistorysInner(restClient().retrofit(), this); + this.operations = new OperationsInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "HDInsightManagementClient", "2015-03-01-preview"); + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/HDInsightManager.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/HDInsightManager.java new file mode 100644 index 000000000000..6f7342f04a44 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/HDInsightManager.java @@ -0,0 +1,183 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Clusters; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Applications; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Locations; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Configurations; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Extensions; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ScriptActions; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ScriptExecutionHistorys; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Operations; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure HDInsight resource management. + */ +public final class HDInsightManager extends ManagerCore { + private Clusters clusters; + private Applications applications; + private Locations locations; + private Configurations configurations; + private Extensions extensions; + private ScriptActions scriptActions; + private ScriptExecutionHistorys scriptExecutionHistorys; + private Operations operations; + /** + * Get a Configurable instance that can be used to create HDInsightManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new HDInsightManager.ConfigurableImpl(); + } + /** + * Creates an instance of HDInsightManager that exposes HDInsight resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the HDInsightManager + */ + public static HDInsightManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new HDInsightManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of HDInsightManager that exposes HDInsight resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the HDInsightManager + */ + public static HDInsightManager authenticate(RestClient restClient, String subscriptionId) { + return new HDInsightManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of HDInsightManager that exposes HDInsight management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing HDInsight management API entry points that work across subscriptions + */ + HDInsightManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Clusters. + */ + public Clusters clusters() { + if (this.clusters == null) { + this.clusters = new ClustersImpl(this); + } + return this.clusters; + } + + /** + * @return Entry point to manage Applications. + */ + public Applications applications() { + if (this.applications == null) { + this.applications = new ApplicationsImpl(this); + } + return this.applications; + } + + /** + * @return Entry point to manage Locations. + */ + public Locations locations() { + if (this.locations == null) { + this.locations = new LocationsImpl(this); + } + return this.locations; + } + + /** + * @return Entry point to manage Configurations. + */ + public Configurations configurations() { + if (this.configurations == null) { + this.configurations = new ConfigurationsImpl(this); + } + return this.configurations; + } + + /** + * @return Entry point to manage Extensions. + */ + public Extensions extensions() { + if (this.extensions == null) { + this.extensions = new ExtensionsImpl(this); + } + return this.extensions; + } + + /** + * @return Entry point to manage ScriptActions. + */ + public ScriptActions scriptActions() { + if (this.scriptActions == null) { + this.scriptActions = new ScriptActionsImpl(this); + } + return this.scriptActions; + } + + /** + * @return Entry point to manage ScriptExecutionHistorys. + */ + public ScriptExecutionHistorys scriptExecutionHistorys() { + if (this.scriptExecutionHistorys == null) { + this.scriptExecutionHistorys = new ScriptExecutionHistorysImpl(this); + } + return this.scriptExecutionHistorys; + } + + /** + * @return Entry point to manage Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(this); + } + return this.operations; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public HDInsightManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return HDInsightManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private HDInsightManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new HDInsightManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/IdParsingUtils.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/IdParsingUtils.java new file mode 100644 index 000000000000..2856ccff2ea3 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/IdParsingUtils.java @@ -0,0 +1,57 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; +import java.util.Arrays; +import java.util.Iterator; + +class IdParsingUtils { + public static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + public static String getValueFromIdByPosition(String id, int pos) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + int index = 0; + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (index == pos) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + index++; + } + return null; + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/LocationsImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/LocationsImpl.java new file mode 100644 index 000000000000..5b4f1e0e8365 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/LocationsImpl.java @@ -0,0 +1,55 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Locations; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.CapabilitiesResult; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.UsagesListResult; + +class LocationsImpl extends WrapperImpl implements Locations { + private final HDInsightManager manager; + + LocationsImpl(HDInsightManager manager) { + super(manager.inner().locations()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Observable getCapabilitiesAsync(String location) { + LocationsInner client = this.inner(); + return client.getCapabilitiesAsync(location) + .map(new Func1() { + @Override + public CapabilitiesResult call(CapabilitiesResultInner inner) { + return new CapabilitiesResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable listUsagesAsync(String location) { + LocationsInner client = this.inner(); + return client.listUsagesAsync(location) + .map(new Func1() { + @Override + public UsagesListResult call(UsagesListResultInner inner) { + return new UsagesListResultImpl(inner, manager()); + } + }); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/LocationsInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/LocationsInner.java new file mode 100644 index 000000000000..e63af6880216 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/LocationsInner.java @@ -0,0 +1,222 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Locations. + */ +public class LocationsInner { + /** The Retrofit service to perform REST calls. */ + private LocationsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of LocationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public LocationsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(LocationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Locations to be + * used by Retrofit to perform actually REST calls. + */ + interface LocationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Locations getCapabilities" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities") + Observable> getCapabilities(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Locations listUsages" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/usages") + Observable> listUsages(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Gets the capabilities for the specified location. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CapabilitiesResultInner object if successful. + */ + public CapabilitiesResultInner getCapabilities(String location) { + return getCapabilitiesWithServiceResponseAsync(location).toBlocking().single().body(); + } + + /** + * Gets the capabilities for the specified location. + * + * @param location The location. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getCapabilitiesAsync(String location, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getCapabilitiesWithServiceResponseAsync(location), serviceCallback); + } + + /** + * Gets the capabilities for the specified location. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CapabilitiesResultInner object + */ + public Observable getCapabilitiesAsync(String location) { + return getCapabilitiesWithServiceResponseAsync(location).map(new Func1, CapabilitiesResultInner>() { + @Override + public CapabilitiesResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the capabilities for the specified location. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CapabilitiesResultInner object + */ + public Observable> getCapabilitiesWithServiceResponseAsync(String location) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (location == null) { + throw new IllegalArgumentException("Parameter location is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getCapabilities(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getCapabilitiesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getCapabilitiesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists the usages for the specified location. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the UsagesListResultInner object if successful. + */ + public UsagesListResultInner listUsages(String location) { + return listUsagesWithServiceResponseAsync(location).toBlocking().single().body(); + } + + /** + * Lists the usages for the specified location. + * + * @param location The location. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listUsagesAsync(String location, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listUsagesWithServiceResponseAsync(location), serviceCallback); + } + + /** + * Lists the usages for the specified location. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the UsagesListResultInner object + */ + public Observable listUsagesAsync(String location) { + return listUsagesWithServiceResponseAsync(location).map(new Func1, UsagesListResultInner>() { + @Override + public UsagesListResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the usages for the specified location. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the UsagesListResultInner object + */ + public Observable> listUsagesWithServiceResponseAsync(String location) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (location == null) { + throw new IllegalArgumentException("Parameter location is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listUsages(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listUsagesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listUsagesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationImpl.java new file mode 100644 index 000000000000..947b18f4bea8 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationImpl.java @@ -0,0 +1,37 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Operation; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.OperationDisplay; + +class OperationImpl extends WrapperImpl implements Operation { + private final HDInsightManager manager; + OperationImpl(OperationInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public OperationDisplay display() { + return this.inner().display(); + } + + @Override + public String name() { + return this.inner().name(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationInner.java new file mode 100644 index 000000000000..51a4daa9c93a --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationInner.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.OperationDisplay; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HDInsight REST API operation. + */ +public class OperationInner { + /** + * The operation name: {provider}/{resource}/{operation}. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The object that represents the operation. + */ + @JsonProperty(value = "display") + private OperationDisplay display; + + /** + * Get the operation name: {provider}/{resource}/{operation}. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the operation name: {provider}/{resource}/{operation}. + * + * @param name the name value to set + * @return the OperationInner object itself. + */ + public OperationInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the object that represents the operation. + * + * @return the display value + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Set the object that represents the operation. + * + * @param display the display value to set + * @return the OperationInner object itself. + */ + public OperationInner withDisplay(OperationDisplay display) { + this.display = display; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationsImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationsImpl.java new file mode 100644 index 000000000000..f5b37e168ec3 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationsImpl.java @@ -0,0 +1,49 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Operations; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Operation; + +class OperationsImpl extends WrapperImpl implements Operations { + private final HDInsightManager manager; + + OperationsImpl(HDInsightManager manager) { + super(manager.inner().operations()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Observable listAsync() { + OperationsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Operation call(OperationInner inner) { + return new OperationImpl(inner, manager()); + } + }); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationsInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationsInner.java new file mode 100644 index 000000000000..49444335200d --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/OperationsInner.java @@ -0,0 +1,283 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Operations. + */ +public class OperationsInner { + /** The Retrofit service to perform REST calls. */ + private OperationsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of OperationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public OperationsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(OperationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Operations to be + * used by Retrofit to perform actually REST calls. + */ + interface OperationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Operations list" }) + @GET("providers/Microsoft.HDInsight/operations") + Observable> list(@Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.Operations listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<OperationInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<OperationInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/PageImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/PageImpl.java new file mode 100644 index 000000000000..e66c3d88145c --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/PageImpl.java @@ -0,0 +1,75 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("nextLink") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/RuntimeScriptActionDetailImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/RuntimeScriptActionDetailImpl.java new file mode 100644 index 000000000000..e641b030b44e --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/RuntimeScriptActionDetailImpl.java @@ -0,0 +1,92 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.RuntimeScriptActionDetail; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ScriptActionExecutionSummary; + +class RuntimeScriptActionDetailImpl extends WrapperImpl implements RuntimeScriptActionDetail { + private final HDInsightManager manager; + + RuntimeScriptActionDetailImpl(RuntimeScriptActionDetailInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + + + @Override + public String applicationName() { + return this.inner().applicationName(); + } + + @Override + public String debugInformation() { + return this.inner().debugInformation(); + } + + @Override + public String endTime() { + return this.inner().endTime(); + } + + @Override + public List executionSummary() { + return this.inner().executionSummary(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String operation() { + return this.inner().operation(); + } + + @Override + public String parameters() { + return this.inner().parameters(); + } + + @Override + public List roles() { + return this.inner().roles(); + } + + @Override + public Long scriptExecutionId() { + return this.inner().scriptExecutionId(); + } + + @Override + public String startTime() { + return this.inner().startTime(); + } + + @Override + public String status() { + return this.inner().status(); + } + + @Override + public String uri() { + return this.inner().uri(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/RuntimeScriptActionDetailInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/RuntimeScriptActionDetailInner.java new file mode 100644 index 000000000000..6a3fe64a029a --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/RuntimeScriptActionDetailInner.java @@ -0,0 +1,125 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ScriptActionExecutionSummary; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.RuntimeScriptAction; + +/** + * The execution details of a script action. + */ +public class RuntimeScriptActionDetailInner extends RuntimeScriptAction { + /** + * The execution id of the script action. + */ + @JsonProperty(value = "scriptExecutionId", access = JsonProperty.Access.WRITE_ONLY) + private Long scriptExecutionId; + + /** + * The start time of script action execution. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private String startTime; + + /** + * The end time of script action execution. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private String endTime; + + /** + * The current execution status of the script action. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private String status; + + /** + * The reason why the script action was executed. + */ + @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) + private String operation; + + /** + * The summary of script action execution result. + */ + @JsonProperty(value = "executionSummary", access = JsonProperty.Access.WRITE_ONLY) + private List executionSummary; + + /** + * The script action execution debug information. + */ + @JsonProperty(value = "debugInformation", access = JsonProperty.Access.WRITE_ONLY) + private String debugInformation; + + /** + * Get the execution id of the script action. + * + * @return the scriptExecutionId value + */ + public Long scriptExecutionId() { + return this.scriptExecutionId; + } + + /** + * Get the start time of script action execution. + * + * @return the startTime value + */ + public String startTime() { + return this.startTime; + } + + /** + * Get the end time of script action execution. + * + * @return the endTime value + */ + public String endTime() { + return this.endTime; + } + + /** + * Get the current execution status of the script action. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the reason why the script action was executed. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + + /** + * Get the summary of script action execution result. + * + * @return the executionSummary value + */ + public List executionSummary() { + return this.executionSummary; + } + + /** + * Get the script action execution debug information. + * + * @return the debugInformation value + */ + public String debugInformation() { + return this.debugInformation; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionInner.java new file mode 100644 index 000000000000..cd45286692fa --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionInner.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes a script action on role on the cluster. + */ +public class ScriptActionInner { + /** + * The name of the script action. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The URI to the script. + */ + @JsonProperty(value = "uri", required = true) + private String uri; + + /** + * The parameters for the script provided. + */ + @JsonProperty(value = "parameters", required = true) + private String parameters; + + /** + * Get the name of the script action. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the script action. + * + * @param name the name value to set + * @return the ScriptActionInner object itself. + */ + public ScriptActionInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the URI to the script. + * + * @return the uri value + */ + public String uri() { + return this.uri; + } + + /** + * Set the URI to the script. + * + * @param uri the uri value to set + * @return the ScriptActionInner object itself. + */ + public ScriptActionInner withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the parameters for the script provided. + * + * @return the parameters value + */ + public String parameters() { + return this.parameters; + } + + /** + * Set the parameters for the script provided. + * + * @param parameters the parameters value to set + * @return the ScriptActionInner object itself. + */ + public ScriptActionInner withParameters(String parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionsImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionsImpl.java new file mode 100644 index 000000000000..19b74979ea12 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionsImpl.java @@ -0,0 +1,72 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ScriptActions; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.RuntimeScriptActionDetail; + +class ScriptActionsImpl extends WrapperImpl implements ScriptActions { + private final HDInsightManager manager; + + ScriptActionsImpl(HDInsightManager manager) { + super(manager.inner().scriptActions()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + private RuntimeScriptActionDetailImpl wrapModel(RuntimeScriptActionDetailInner inner) { + return new RuntimeScriptActionDetailImpl(inner, manager()); + } + + @Override + public Observable listPersistedScriptsAsync(final String resourceGroupName, final String clusterName) { + ScriptActionsInner client = this.inner(); + return client.listPersistedScriptsAsync(resourceGroupName, clusterName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public RuntimeScriptActionDetail call(RuntimeScriptActionDetailInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String clusterName, String scriptName) { + ScriptActionsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, clusterName, scriptName).toCompletable(); + } + + @Override + public Observable getExecutionDetailAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + ScriptActionsInner client = this.inner(); + return client.getExecutionDetailAsync(resourceGroupName, clusterName, scriptExecutionId) + .map(new Func1() { + @Override + public RuntimeScriptActionDetail call(RuntimeScriptActionDetailInner inner) { + return new RuntimeScriptActionDetailImpl(inner, manager()); + } + }); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionsInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionsInner.java new file mode 100644 index 000000000000..6e0f85951cab --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptActionsInner.java @@ -0,0 +1,498 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in ScriptActions. + */ +public class ScriptActionsInner { + /** The Retrofit service to perform REST calls. */ + private ScriptActionsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ScriptActionsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ScriptActionsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ScriptActionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for ScriptActions to be + * used by Retrofit to perform actually REST calls. + */ + interface ScriptActionsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ScriptActions delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("scriptName") String scriptName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.ScriptActions listPersistedScripts" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions") + Observable> listPersistedScripts(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.ScriptActions getExecutionDetail" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}") + Observable> getExecutionDetail(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("scriptExecutionId") String scriptExecutionId, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.ScriptActions listPersistedScriptsNext" }) + @GET + Observable> listPersistedScriptsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String clusterName, String scriptName) { + deleteWithServiceResponseAsync(resourceGroupName, clusterName, scriptName).toBlocking().single().body(); + } + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, String scriptName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName, scriptName), serviceCallback); + } + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String clusterName, String scriptName) { + return deleteWithServiceResponseAsync(resourceGroupName, clusterName, scriptName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String scriptName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (scriptName == null) { + throw new IllegalArgumentException("Parameter scriptName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, clusterName, scriptName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RuntimeScriptActionDetailInner> object if successful. + */ + public PagedList listPersistedScripts(final String resourceGroupName, final String clusterName) { + ServiceResponse> response = listPersistedScriptsSinglePageAsync(resourceGroupName, clusterName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listPersistedScriptsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listPersistedScriptsAsync(final String resourceGroupName, final String clusterName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listPersistedScriptsSinglePageAsync(resourceGroupName, clusterName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listPersistedScriptsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable> listPersistedScriptsAsync(final String resourceGroupName, final String clusterName) { + return listPersistedScriptsWithServiceResponseAsync(resourceGroupName, clusterName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable>> listPersistedScriptsWithServiceResponseAsync(final String resourceGroupName, final String clusterName) { + return listPersistedScriptsSinglePageAsync(resourceGroupName, clusterName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listPersistedScriptsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RuntimeScriptActionDetailInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listPersistedScriptsSinglePageAsync(final String resourceGroupName, final String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listPersistedScripts(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listPersistedScriptsDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listPersistedScriptsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RuntimeScriptActionDetailInner object if successful. + */ + public RuntimeScriptActionDetailInner getExecutionDetail(String resourceGroupName, String clusterName, String scriptExecutionId) { + return getExecutionDetailWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).toBlocking().single().body(); + } + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getExecutionDetailAsync(String resourceGroupName, String clusterName, String scriptExecutionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getExecutionDetailWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId), serviceCallback); + } + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RuntimeScriptActionDetailInner object + */ + public Observable getExecutionDetailAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + return getExecutionDetailWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).map(new Func1, RuntimeScriptActionDetailInner>() { + @Override + public RuntimeScriptActionDetailInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RuntimeScriptActionDetailInner object + */ + public Observable> getExecutionDetailWithServiceResponseAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (scriptExecutionId == null) { + throw new IllegalArgumentException("Parameter scriptExecutionId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getExecutionDetail(this.client.subscriptionId(), resourceGroupName, clusterName, scriptExecutionId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getExecutionDetailDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getExecutionDetailDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RuntimeScriptActionDetailInner> object if successful. + */ + public PagedList listPersistedScriptsNext(final String nextPageLink) { + ServiceResponse> response = listPersistedScriptsNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listPersistedScriptsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listPersistedScriptsNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listPersistedScriptsNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listPersistedScriptsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable> listPersistedScriptsNextAsync(final String nextPageLink) { + return listPersistedScriptsNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable>> listPersistedScriptsNextWithServiceResponseAsync(final String nextPageLink) { + return listPersistedScriptsNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listPersistedScriptsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RuntimeScriptActionDetailInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listPersistedScriptsNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listPersistedScriptsNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listPersistedScriptsNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listPersistedScriptsNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptExecutionHistorysImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptExecutionHistorysImpl.java new file mode 100644 index 000000000000..b8850abe9e7c --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptExecutionHistorysImpl.java @@ -0,0 +1,56 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ScriptExecutionHistorys; +import rx.Completable; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.RuntimeScriptActionDetail; + +class ScriptExecutionHistorysImpl extends WrapperImpl implements ScriptExecutionHistorys { + private final HDInsightManager manager; + + ScriptExecutionHistorysImpl(HDInsightManager manager) { + super(manager.inner().scriptExecutionHistorys()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Observable listAsync(final String resourceGroupName, final String clusterName) { + ScriptExecutionHistorysInner client = this.inner(); + return client.listAsync(resourceGroupName, clusterName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public RuntimeScriptActionDetail call(RuntimeScriptActionDetailInner inner) { + return new RuntimeScriptActionDetailImpl(inner, manager()); + } + }); + } + + @Override + public Completable promoteAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + ScriptExecutionHistorysInner client = this.inner(); + return client.promoteAsync(resourceGroupName, clusterName, scriptExecutionId).toCompletable(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptExecutionHistorysInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptExecutionHistorysInner.java new file mode 100644 index 000000000000..2c9a861eb927 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/ScriptExecutionHistorysInner.java @@ -0,0 +1,401 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in ScriptExecutionHistorys. + */ +public class ScriptExecutionHistorysInner { + /** The Retrofit service to perform REST calls. */ + private ScriptExecutionHistorysService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ScriptExecutionHistorysInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ScriptExecutionHistorysInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ScriptExecutionHistorysService.class); + this.client = client; + } + + /** + * The interface defining all the services for ScriptExecutionHistorys to be + * used by Retrofit to perform actually REST calls. + */ + interface ScriptExecutionHistorysService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2015_03_01_preview.ScriptExecutionHistorys list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory") + Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.ScriptExecutionHistorys promote" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}/promote") + Observable> promote(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("scriptExecutionId") String scriptExecutionId, @Query("api-version") String apiVersion, @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.management.hdinsight.v2015_03_01_preview.ScriptExecutionHistorys listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RuntimeScriptActionDetailInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String clusterName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, clusterName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String clusterName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, clusterName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String clusterName) { + return listWithServiceResponseAsync(resourceGroupName, clusterName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String clusterName) { + return listSinglePageAsync(resourceGroupName, clusterName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RuntimeScriptActionDetailInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void promote(String resourceGroupName, String clusterName, String scriptExecutionId) { + promoteWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).toBlocking().single().body(); + } + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture promoteAsync(String resourceGroupName, String clusterName, String scriptExecutionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(promoteWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId), serviceCallback); + } + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable promoteAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + return promoteWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> promoteWithServiceResponseAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (scriptExecutionId == null) { + throw new IllegalArgumentException("Parameter scriptExecutionId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.promote(this.client.subscriptionId(), resourceGroupName, clusterName, scriptExecutionId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = promoteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse promoteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RuntimeScriptActionDetailInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RuntimeScriptActionDetailInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/UsagesListResultImpl.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/UsagesListResultImpl.java new file mode 100644 index 000000000000..71aba83915c4 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/UsagesListResultImpl.java @@ -0,0 +1,33 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.UsagesListResult; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Usage; + +class UsagesListResultImpl extends WrapperImpl implements UsagesListResult { + private final HDInsightManager manager; + UsagesListResultImpl(UsagesListResultInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public List value() { + return this.inner().value(); + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/UsagesListResultInner.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/UsagesListResultInner.java new file mode 100644 index 000000000000..e602bd55ae96 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/UsagesListResultInner.java @@ -0,0 +1,45 @@ +/** + * 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.management.hdinsight.v2015_03_01_preview.implementation; + +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2015_03_01_preview.Usage; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The response for the operation to get regional usages for a subscription. + */ +public class UsagesListResultInner { + /** + * The list of usages. + */ + @JsonProperty(value = "value") + private List value; + + /** + * Get the list of usages. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set the list of usages. + * + * @param value the value value to set + * @return the UsagesListResultInner object itself. + */ + public UsagesListResultInner withValue(List value) { + this.value = value; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/package-info.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/package-info.java new file mode 100644 index 000000000000..60182e7fdfea --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for HDInsightManagementClient. + * HDInsight Management Client. + */ +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview.implementation; diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/package-info.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/package-info.java new file mode 100644 index 000000000000..d1cb0bfee0bc --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for HDInsightManagementClient. + * HDInsight Management Client. + */ +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; diff --git a/hdinsight/resource-manager/v2018_06_01_preview/pom.xml b/hdinsight/resource-manager/v2018_06_01_preview/pom.xml new file mode 100644 index 000000000000..d2ac1eb29394 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/pom.xml @@ -0,0 +1,133 @@ + + + 4.0.0 + com.microsoft.azure.hdinsight.v2018_06_01_preview + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-hdinsight + 1.0.0-beta + jar + Microsoft Azure SDK for HDInsight Management + This package contains Microsoft HDInsight Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Application.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Application.java new file mode 100644 index 000000000000..7fc610fc6eb3 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Application.java @@ -0,0 +1,176 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ApplicationInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HDInsightManager; +import java.util.Map; + +/** + * Type representing Application. + */ +public interface Application extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + ApplicationProperties properties(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the Application definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCluster, DefinitionStages.WithCreate { + } + + /** + * Grouping of Application definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a Application definition. + */ + interface Blank extends WithCluster { + } + + /** + * The stage of the application definition allowing to specify Cluster. + */ + interface WithCluster { + /** + * Specifies resourceGroupName, clusterName. + * @param resourceGroupName The name of the resource group + * @param clusterName The name of the cluster + * @return the next definition stage + */ + WithCreate withExistingCluster(String resourceGroupName, String clusterName); + } + + /** + * The stage of the application definition allowing to specify Etag. + */ + interface WithEtag { + /** + * Specifies etag. + * @param etag The ETag for the application + * @return the next definition stage + */ + WithCreate withEtag(String etag); + } + + /** + * The stage of the application definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties The properties of the application + * @return the next definition stage + */ + WithCreate withProperties(ApplicationProperties properties); + } + + /** + * The stage of the application definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags The tags for the application + * @return the next definition stage + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithEtag, DefinitionStages.WithProperties, DefinitionStages.WithTags { + } + } + /** + * The template for a Application update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithEtag, UpdateStages.WithProperties, UpdateStages.WithTags { + } + + /** + * Grouping of Application update stages. + */ + interface UpdateStages { + /** + * The stage of the application update allowing to specify Etag. + */ + interface WithEtag { + /** + * Specifies etag. + * @param etag The ETag for the application + * @return the next update stage + */ + Update withEtag(String etag); + } + + /** + * The stage of the application update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties The properties of the application + * @return the next update stage + */ + Update withProperties(ApplicationProperties properties); + } + + /** + * The stage of the application update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags The tags for the application + * @return the next update stage + */ + Update withTags(Map tags); + } + + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationGetEndpoint.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationGetEndpoint.java new file mode 100644 index 000000000000..a3771c88b931 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationGetEndpoint.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Gets the application SSH endpoint. + */ +public class ApplicationGetEndpoint { + /** + * The location of the endpoint. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The destination port to connect to. + */ + @JsonProperty(value = "destinationPort") + private Integer destinationPort; + + /** + * The public port to connect to. + */ + @JsonProperty(value = "publicPort") + private Integer publicPort; + + /** + * Get the location of the endpoint. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location of the endpoint. + * + * @param location the location value to set + * @return the ApplicationGetEndpoint object itself. + */ + public ApplicationGetEndpoint withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the destination port to connect to. + * + * @return the destinationPort value + */ + public Integer destinationPort() { + return this.destinationPort; + } + + /** + * Set the destination port to connect to. + * + * @param destinationPort the destinationPort value to set + * @return the ApplicationGetEndpoint object itself. + */ + public ApplicationGetEndpoint withDestinationPort(Integer destinationPort) { + this.destinationPort = destinationPort; + return this; + } + + /** + * Get the public port to connect to. + * + * @return the publicPort value + */ + public Integer publicPort() { + return this.publicPort; + } + + /** + * Set the public port to connect to. + * + * @param publicPort the publicPort value to set + * @return the ApplicationGetEndpoint object itself. + */ + public ApplicationGetEndpoint withPublicPort(Integer publicPort) { + this.publicPort = publicPort; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationGetHttpsEndpoint.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationGetHttpsEndpoint.java new file mode 100644 index 000000000000..e1b695a18cfa --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationGetHttpsEndpoint.java @@ -0,0 +1,149 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.Map; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Gets the application HTTP endpoints. + */ +public class ApplicationGetHttpsEndpoint { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The list of access modes for the application. + */ + @JsonProperty(value = "accessModes") + private List accessModes; + + /** + * The location of the endpoint. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The destination port to connect to. + */ + @JsonProperty(value = "destinationPort") + private Integer destinationPort; + + /** + * The public port to connect to. + */ + @JsonProperty(value = "publicPort") + private Integer publicPort; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the list of access modes for the application. + * + * @return the accessModes value + */ + public List accessModes() { + return this.accessModes; + } + + /** + * Set the list of access modes for the application. + * + * @param accessModes the accessModes value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withAccessModes(List accessModes) { + this.accessModes = accessModes; + return this; + } + + /** + * Get the location of the endpoint. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location of the endpoint. + * + * @param location the location value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the destination port to connect to. + * + * @return the destinationPort value + */ + public Integer destinationPort() { + return this.destinationPort; + } + + /** + * Set the destination port to connect to. + * + * @param destinationPort the destinationPort value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withDestinationPort(Integer destinationPort) { + this.destinationPort = destinationPort; + return this; + } + + /** + * Get the public port to connect to. + * + * @return the publicPort value + */ + public Integer publicPort() { + return this.publicPort; + } + + /** + * Set the public port to connect to. + * + * @param publicPort the publicPort value to set + * @return the ApplicationGetHttpsEndpoint object itself. + */ + public ApplicationGetHttpsEndpoint withPublicPort(Integer publicPort) { + this.publicPort = publicPort; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationProperties.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationProperties.java new file mode 100644 index 000000000000..d972ff281bc8 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ApplicationProperties.java @@ -0,0 +1,286 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HDInsight cluster application GET response. + */ +public class ApplicationProperties { + /** + * The list of roles in the cluster. + */ + @JsonProperty(value = "computeProfile") + private ComputeProfile computeProfile; + + /** + * The list of install script actions. + */ + @JsonProperty(value = "installScriptActions") + private List installScriptActions; + + /** + * The list of uninstall script actions. + */ + @JsonProperty(value = "uninstallScriptActions") + private List uninstallScriptActions; + + /** + * The list of application HTTPS endpoints. + */ + @JsonProperty(value = "httpsEndpoints") + private List httpsEndpoints; + + /** + * The list of application SSH endpoints. + */ + @JsonProperty(value = "sshEndpoints") + private List sshEndpoints; + + /** + * The provisioning state of the application. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /** + * The application type. + */ + @JsonProperty(value = "applicationType") + private String applicationType; + + /** + * The application state. + */ + @JsonProperty(value = "applicationState", access = JsonProperty.Access.WRITE_ONLY) + private String applicationState; + + /** + * The list of errors. + */ + @JsonProperty(value = "errors") + private List errors; + + /** + * The application create date time. + */ + @JsonProperty(value = "createdDate", access = JsonProperty.Access.WRITE_ONLY) + private String createdDate; + + /** + * The marketplace identifier. + */ + @JsonProperty(value = "marketplaceIdentifier", access = JsonProperty.Access.WRITE_ONLY) + private String marketplaceIdentifier; + + /** + * The additional properties for application. + */ + @JsonProperty(value = "additionalProperties") + private String additionalProperties; + + /** + * Get the list of roles in the cluster. + * + * @return the computeProfile value + */ + public ComputeProfile computeProfile() { + return this.computeProfile; + } + + /** + * Set the list of roles in the cluster. + * + * @param computeProfile the computeProfile value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withComputeProfile(ComputeProfile computeProfile) { + this.computeProfile = computeProfile; + return this; + } + + /** + * Get the list of install script actions. + * + * @return the installScriptActions value + */ + public List installScriptActions() { + return this.installScriptActions; + } + + /** + * Set the list of install script actions. + * + * @param installScriptActions the installScriptActions value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withInstallScriptActions(List installScriptActions) { + this.installScriptActions = installScriptActions; + return this; + } + + /** + * Get the list of uninstall script actions. + * + * @return the uninstallScriptActions value + */ + public List uninstallScriptActions() { + return this.uninstallScriptActions; + } + + /** + * Set the list of uninstall script actions. + * + * @param uninstallScriptActions the uninstallScriptActions value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withUninstallScriptActions(List uninstallScriptActions) { + this.uninstallScriptActions = uninstallScriptActions; + return this; + } + + /** + * Get the list of application HTTPS endpoints. + * + * @return the httpsEndpoints value + */ + public List httpsEndpoints() { + return this.httpsEndpoints; + } + + /** + * Set the list of application HTTPS endpoints. + * + * @param httpsEndpoints the httpsEndpoints value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withHttpsEndpoints(List httpsEndpoints) { + this.httpsEndpoints = httpsEndpoints; + return this; + } + + /** + * Get the list of application SSH endpoints. + * + * @return the sshEndpoints value + */ + public List sshEndpoints() { + return this.sshEndpoints; + } + + /** + * Set the list of application SSH endpoints. + * + * @param sshEndpoints the sshEndpoints value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withSshEndpoints(List sshEndpoints) { + this.sshEndpoints = sshEndpoints; + return this; + } + + /** + * Get the provisioning state of the application. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the application type. + * + * @return the applicationType value + */ + public String applicationType() { + return this.applicationType; + } + + /** + * Set the application type. + * + * @param applicationType the applicationType value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withApplicationType(String applicationType) { + this.applicationType = applicationType; + return this; + } + + /** + * Get the application state. + * + * @return the applicationState value + */ + public String applicationState() { + return this.applicationState; + } + + /** + * Get the list of errors. + * + * @return the errors value + */ + public List errors() { + return this.errors; + } + + /** + * Set the list of errors. + * + * @param errors the errors value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the application create date time. + * + * @return the createdDate value + */ + public String createdDate() { + return this.createdDate; + } + + /** + * Get the marketplace identifier. + * + * @return the marketplaceIdentifier value + */ + public String marketplaceIdentifier() { + return this.marketplaceIdentifier; + } + + /** + * Get the additional properties for application. + * + * @return the additionalProperties value + */ + public String additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additional properties for application. + * + * @param additionalProperties the additionalProperties value to set + * @return the ApplicationProperties object itself. + */ + public ApplicationProperties withAdditionalProperties(String additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Applications.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Applications.java new file mode 100644 index 000000000000..27fd20f30e8e --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Applications.java @@ -0,0 +1,53 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ApplicationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Applications. + */ +public interface Applications extends SupportsCreating, HasInner { + /** + * Gets properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String clusterName, String applicationName); + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByClusterAsync(final String resourceGroupName, final String clusterName); + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String clusterName, String applicationName); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AsyncOperationState.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AsyncOperationState.java new file mode 100644 index 000000000000..d15444b92d76 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AsyncOperationState.java @@ -0,0 +1,56 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AsyncOperationState. + */ +public enum AsyncOperationState { + /** Enum value InProgress. */ + IN_PROGRESS("InProgress"), + + /** Enum value Succeeded. */ + SUCCEEDED("Succeeded"), + + /** Enum value Failed. */ + FAILED("Failed"); + + /** The actual serialized value for a AsyncOperationState instance. */ + private String value; + + AsyncOperationState(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AsyncOperationState instance. + * + * @param value the serialized value to parse. + * @return the parsed AsyncOperationState object, or null if unable to parse. + */ + @JsonCreator + public static AsyncOperationState fromString(String value) { + AsyncOperationState[] items = AsyncOperationState.values(); + for (AsyncOperationState item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Cluster.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Cluster.java new file mode 100644 index 000000000000..5e864a4aa458 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Cluster.java @@ -0,0 +1,102 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ClusterInner; + +/** + * Type representing Cluster. + */ +public interface Cluster extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the properties value. + */ + ClusterGetProperties properties(); + + /** + * The entirety of the Cluster definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of Cluster definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a Cluster definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the Cluster definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the cluster definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties The cluster create parameters + * @return the next definition stage + */ + WithCreate withProperties(ClusterCreateProperties properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithProperties { + } + } + /** + * The template for a Cluster update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithProperties { + } + + /** + * Grouping of Cluster update stages. + */ + interface UpdateStages { + /** + * The stage of the cluster update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties The cluster create parameters + * @return the next update stage + */ + Update withProperties(ClusterCreateProperties properties); + } + + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterCreateParametersExtended.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterCreateParametersExtended.java new file mode 100644 index 000000000000..6306676a11c3 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterCreateParametersExtended.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The CreateCluster request parameters. + */ +public class ClusterCreateParametersExtended { + /** + * The location of the cluster. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The cluster create parameters. + */ + @JsonProperty(value = "properties") + private ClusterCreateProperties properties; + + /** + * Get the location of the cluster. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location of the cluster. + * + * @param location the location value to set + * @return the ClusterCreateParametersExtended object itself. + */ + public ClusterCreateParametersExtended withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the resource tags. + * + * @param tags the tags value to set + * @return the ClusterCreateParametersExtended object itself. + */ + public ClusterCreateParametersExtended withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the cluster create parameters. + * + * @return the properties value + */ + public ClusterCreateProperties properties() { + return this.properties; + } + + /** + * Set the cluster create parameters. + * + * @param properties the properties value to set + * @return the ClusterCreateParametersExtended object itself. + */ + public ClusterCreateParametersExtended withProperties(ClusterCreateProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterCreateProperties.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterCreateProperties.java new file mode 100644 index 000000000000..f967ee308913 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterCreateProperties.java @@ -0,0 +1,200 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The cluster create parameters. + */ +public class ClusterCreateProperties { + /** + * The version of the cluster. + */ + @JsonProperty(value = "clusterVersion") + private String clusterVersion; + + /** + * The type of operating system. Possible values include: 'Windows', + * 'Linux'. + */ + @JsonProperty(value = "osType") + private OSType osType; + + /** + * The cluster tier. Possible values include: 'Standard', 'Premium'. + */ + @JsonProperty(value = "tier") + private Tier tier; + + /** + * The cluster definition. + */ + @JsonProperty(value = "clusterDefinition") + private ClusterDefinition clusterDefinition; + + /** + * The security profile. + */ + @JsonProperty(value = "securityProfile") + private SecurityProfile securityProfile; + + /** + * The compute profile. + */ + @JsonProperty(value = "computeProfile") + private ComputeProfile computeProfile; + + /** + * The storage profile. + */ + @JsonProperty(value = "storageProfile") + private StorageProfile storageProfile; + + /** + * Get the version of the cluster. + * + * @return the clusterVersion value + */ + public String clusterVersion() { + return this.clusterVersion; + } + + /** + * Set the version of the cluster. + * + * @param clusterVersion the clusterVersion value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withClusterVersion(String clusterVersion) { + this.clusterVersion = clusterVersion; + return this; + } + + /** + * Get the type of operating system. Possible values include: 'Windows', 'Linux'. + * + * @return the osType value + */ + public OSType osType() { + return this.osType; + } + + /** + * Set the type of operating system. Possible values include: 'Windows', 'Linux'. + * + * @param osType the osType value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withOsType(OSType osType) { + this.osType = osType; + return this; + } + + /** + * Get the cluster tier. Possible values include: 'Standard', 'Premium'. + * + * @return the tier value + */ + public Tier tier() { + return this.tier; + } + + /** + * Set the cluster tier. Possible values include: 'Standard', 'Premium'. + * + * @param tier the tier value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withTier(Tier tier) { + this.tier = tier; + return this; + } + + /** + * Get the cluster definition. + * + * @return the clusterDefinition value + */ + public ClusterDefinition clusterDefinition() { + return this.clusterDefinition; + } + + /** + * Set the cluster definition. + * + * @param clusterDefinition the clusterDefinition value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withClusterDefinition(ClusterDefinition clusterDefinition) { + this.clusterDefinition = clusterDefinition; + return this; + } + + /** + * Get the security profile. + * + * @return the securityProfile value + */ + public SecurityProfile securityProfile() { + return this.securityProfile; + } + + /** + * Set the security profile. + * + * @param securityProfile the securityProfile value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withSecurityProfile(SecurityProfile securityProfile) { + this.securityProfile = securityProfile; + return this; + } + + /** + * Get the compute profile. + * + * @return the computeProfile value + */ + public ComputeProfile computeProfile() { + return this.computeProfile; + } + + /** + * Set the compute profile. + * + * @param computeProfile the computeProfile value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withComputeProfile(ComputeProfile computeProfile) { + this.computeProfile = computeProfile; + return this; + } + + /** + * Get the storage profile. + * + * @return the storageProfile value + */ + public StorageProfile storageProfile() { + return this.storageProfile; + } + + /** + * Set the storage profile. + * + * @param storageProfile the storageProfile value to set + * @return the ClusterCreateProperties object itself. + */ + public ClusterCreateProperties withStorageProfile(StorageProfile storageProfile) { + this.storageProfile = storageProfile; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterDefinition.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterDefinition.java new file mode 100644 index 000000000000..48f6fae40d26 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterDefinition.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The cluster definition. + */ +public class ClusterDefinition { + /** + * The link to the blueprint. + */ + @JsonProperty(value = "blueprint") + private String blueprint; + + /** + * The type of cluster. + */ + @JsonProperty(value = "kind") + private String kind; + + /** + * The versions of different services in the cluster. + */ + @JsonProperty(value = "componentVersion") + private Map componentVersion; + + /** + * The cluster configurations. + */ + @JsonProperty(value = "configurations") + private Object configurations; + + /** + * Get the link to the blueprint. + * + * @return the blueprint value + */ + public String blueprint() { + return this.blueprint; + } + + /** + * Set the link to the blueprint. + * + * @param blueprint the blueprint value to set + * @return the ClusterDefinition object itself. + */ + public ClusterDefinition withBlueprint(String blueprint) { + this.blueprint = blueprint; + return this; + } + + /** + * Get the type of cluster. + * + * @return the kind value + */ + public String kind() { + return this.kind; + } + + /** + * Set the type of cluster. + * + * @param kind the kind value to set + * @return the ClusterDefinition object itself. + */ + public ClusterDefinition withKind(String kind) { + this.kind = kind; + return this; + } + + /** + * Get the versions of different services in the cluster. + * + * @return the componentVersion value + */ + public Map componentVersion() { + return this.componentVersion; + } + + /** + * Set the versions of different services in the cluster. + * + * @param componentVersion the componentVersion value to set + * @return the ClusterDefinition object itself. + */ + public ClusterDefinition withComponentVersion(Map componentVersion) { + this.componentVersion = componentVersion; + return this; + } + + /** + * Get the cluster configurations. + * + * @return the configurations value + */ + public Object configurations() { + return this.configurations; + } + + /** + * Set the cluster configurations. + * + * @param configurations the configurations value to set + * @return the ClusterDefinition object itself. + */ + public ClusterDefinition withConfigurations(Object configurations) { + this.configurations = configurations; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterGetProperties.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterGetProperties.java new file mode 100644 index 000000000000..b525caac9090 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterGetProperties.java @@ -0,0 +1,333 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The properties of cluster. + */ +public class ClusterGetProperties { + /** + * The version of the cluster. + */ + @JsonProperty(value = "clusterVersion") + private String clusterVersion; + + /** + * The type of operating system. Possible values include: 'Windows', + * 'Linux'. + */ + @JsonProperty(value = "osType") + private OSType osType; + + /** + * The cluster tier. Possible values include: 'Standard', 'Premium'. + */ + @JsonProperty(value = "tier") + private Tier tier; + + /** + * The cluster definition. + */ + @JsonProperty(value = "clusterDefinition", required = true) + private ClusterDefinition clusterDefinition; + + /** + * The security profile. + */ + @JsonProperty(value = "securityProfile") + private SecurityProfile securityProfile; + + /** + * The compute profile. + */ + @JsonProperty(value = "computeProfile") + private ComputeProfile computeProfile; + + /** + * The provisioning state, which only appears in the response. Possible + * values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', + * 'Deleting'. + */ + @JsonProperty(value = "provisioningState") + private HDInsightClusterProvisioningState provisioningState; + + /** + * The date on which the cluster was created. + */ + @JsonProperty(value = "createdDate") + private String createdDate; + + /** + * The state of the cluster. + */ + @JsonProperty(value = "clusterState") + private String clusterState; + + /** + * The quota information. + */ + @JsonProperty(value = "quotaInfo") + private QuotaInfo quotaInfo; + + /** + * The list of errors. + */ + @JsonProperty(value = "errors") + private List errors; + + /** + * The list of connectivity endpoints. + */ + @JsonProperty(value = "connectivityEndpoints") + private List connectivityEndpoints; + + /** + * Get the version of the cluster. + * + * @return the clusterVersion value + */ + public String clusterVersion() { + return this.clusterVersion; + } + + /** + * Set the version of the cluster. + * + * @param clusterVersion the clusterVersion value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withClusterVersion(String clusterVersion) { + this.clusterVersion = clusterVersion; + return this; + } + + /** + * Get the type of operating system. Possible values include: 'Windows', 'Linux'. + * + * @return the osType value + */ + public OSType osType() { + return this.osType; + } + + /** + * Set the type of operating system. Possible values include: 'Windows', 'Linux'. + * + * @param osType the osType value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withOsType(OSType osType) { + this.osType = osType; + return this; + } + + /** + * Get the cluster tier. Possible values include: 'Standard', 'Premium'. + * + * @return the tier value + */ + public Tier tier() { + return this.tier; + } + + /** + * Set the cluster tier. Possible values include: 'Standard', 'Premium'. + * + * @param tier the tier value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withTier(Tier tier) { + this.tier = tier; + return this; + } + + /** + * Get the cluster definition. + * + * @return the clusterDefinition value + */ + public ClusterDefinition clusterDefinition() { + return this.clusterDefinition; + } + + /** + * Set the cluster definition. + * + * @param clusterDefinition the clusterDefinition value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withClusterDefinition(ClusterDefinition clusterDefinition) { + this.clusterDefinition = clusterDefinition; + return this; + } + + /** + * Get the security profile. + * + * @return the securityProfile value + */ + public SecurityProfile securityProfile() { + return this.securityProfile; + } + + /** + * Set the security profile. + * + * @param securityProfile the securityProfile value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withSecurityProfile(SecurityProfile securityProfile) { + this.securityProfile = securityProfile; + return this; + } + + /** + * Get the compute profile. + * + * @return the computeProfile value + */ + public ComputeProfile computeProfile() { + return this.computeProfile; + } + + /** + * Set the compute profile. + * + * @param computeProfile the computeProfile value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withComputeProfile(ComputeProfile computeProfile) { + this.computeProfile = computeProfile; + return this; + } + + /** + * Get the provisioning state, which only appears in the response. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting'. + * + * @return the provisioningState value + */ + public HDInsightClusterProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state, which only appears in the response. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting'. + * + * @param provisioningState the provisioningState value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withProvisioningState(HDInsightClusterProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get the date on which the cluster was created. + * + * @return the createdDate value + */ + public String createdDate() { + return this.createdDate; + } + + /** + * Set the date on which the cluster was created. + * + * @param createdDate the createdDate value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withCreatedDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get the state of the cluster. + * + * @return the clusterState value + */ + public String clusterState() { + return this.clusterState; + } + + /** + * Set the state of the cluster. + * + * @param clusterState the clusterState value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withClusterState(String clusterState) { + this.clusterState = clusterState; + return this; + } + + /** + * Get the quota information. + * + * @return the quotaInfo value + */ + public QuotaInfo quotaInfo() { + return this.quotaInfo; + } + + /** + * Set the quota information. + * + * @param quotaInfo the quotaInfo value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withQuotaInfo(QuotaInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + /** + * Get the list of errors. + * + * @return the errors value + */ + public List errors() { + return this.errors; + } + + /** + * Set the list of errors. + * + * @param errors the errors value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the list of connectivity endpoints. + * + * @return the connectivityEndpoints value + */ + public List connectivityEndpoints() { + return this.connectivityEndpoints; + } + + /** + * Set the list of connectivity endpoints. + * + * @param connectivityEndpoints the connectivityEndpoints value to set + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withConnectivityEndpoints(List connectivityEndpoints) { + this.connectivityEndpoints = connectivityEndpoints; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterListPersistedScriptActionsResult.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterListPersistedScriptActionsResult.java new file mode 100644 index 000000000000..87ab2bcbb8fb --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterListPersistedScriptActionsResult.java @@ -0,0 +1,59 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ListPersistedScriptActions operation response. + */ +public class ClusterListPersistedScriptActionsResult { + /** + * The list of Persisted Script Actions. + */ + @JsonProperty(value = "value") + private List value; + + /** + * The link (url) to the next page of results. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the list of Persisted Script Actions. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set the list of Persisted Script Actions. + * + * @param value the value value to set + * @return the ClusterListPersistedScriptActionsResult object itself. + */ + public ClusterListPersistedScriptActionsResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the link (url) to the next page of results. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterListRuntimeScriptActionDetailResult.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterListRuntimeScriptActionDetailResult.java new file mode 100644 index 000000000000..cc0c1a0b7b32 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterListRuntimeScriptActionDetailResult.java @@ -0,0 +1,49 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.RuntimeScriptActionDetailInner; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The list runtime script action detail response. + */ +public class ClusterListRuntimeScriptActionDetailResult { + /** + * The list of persisted script action details for the cluster. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private List value; + + /** + * The link (url) to the next page of results. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the list of persisted script action details for the cluster. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Get the link (url) to the next page of results. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterMonitoringRequest.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterMonitoringRequest.java new file mode 100644 index 000000000000..77e27b00f9be --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterMonitoringRequest.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Operations Management Suite (OMS) parameters. + */ +public class ClusterMonitoringRequest { + /** + * The Operations Management Suite (OMS) workspace ID. + */ + @JsonProperty(value = "workspaceId") + private String workspaceId; + + /** + * The Operations Management Suite (OMS) workspace key. + */ + @JsonProperty(value = "primaryKey") + private String primaryKey; + + /** + * Get the Operations Management Suite (OMS) workspace ID. + * + * @return the workspaceId value + */ + public String workspaceId() { + return this.workspaceId; + } + + /** + * Set the Operations Management Suite (OMS) workspace ID. + * + * @param workspaceId the workspaceId value to set + * @return the ClusterMonitoringRequest object itself. + */ + public ClusterMonitoringRequest withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + /** + * Get the Operations Management Suite (OMS) workspace key. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Set the Operations Management Suite (OMS) workspace key. + * + * @param primaryKey the primaryKey value to set + * @return the ClusterMonitoringRequest object itself. + */ + public ClusterMonitoringRequest withPrimaryKey(String primaryKey) { + this.primaryKey = primaryKey; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterMonitoringResponse.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterMonitoringResponse.java new file mode 100644 index 000000000000..c6b15526e837 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterMonitoringResponse.java @@ -0,0 +1,30 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ClusterMonitoringResponseInner; + +/** + * Type representing ClusterMonitoringResponse. + */ +public interface ClusterMonitoringResponse extends HasInner, HasManager { + /** + * @return the clusterMonitoringEnabled value. + */ + Boolean clusterMonitoringEnabled(); + + /** + * @return the workspaceId value. + */ + String workspaceId(); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterPatchParameters.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterPatchParameters.java new file mode 100644 index 000000000000..30a8276ae0ba --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterPatchParameters.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The PatchCluster request parameters. + */ +public class ClusterPatchParameters { + /** + * The resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Get the resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the resource tags. + * + * @param tags the tags value to set + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters withTags(Map tags) { + this.tags = tags; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterResizeParameters.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterResizeParameters.java new file mode 100644 index 000000000000..5efc84f3dac7 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ClusterResizeParameters.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Resize Cluster request parameters. + */ +public class ClusterResizeParameters { + /** + * The target instance count for the operation. + */ + @JsonProperty(value = "targetInstanceCount") + private Integer targetInstanceCount; + + /** + * Get the target instance count for the operation. + * + * @return the targetInstanceCount value + */ + public Integer targetInstanceCount() { + return this.targetInstanceCount; + } + + /** + * Set the target instance count for the operation. + * + * @param targetInstanceCount the targetInstanceCount value to set + * @return the ClusterResizeParameters object itself. + */ + public ClusterResizeParameters withTargetInstanceCount(Integer targetInstanceCount) { + this.targetInstanceCount = targetInstanceCount; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Clusters.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Clusters.java new file mode 100644 index 000000000000..0fad80b77e2e --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Clusters.java @@ -0,0 +1,47 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import rx.Completable; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ClustersInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Clusters. + */ +public interface Clusters extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable executeScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters); + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable resizeAsync(String resourceGroupName, String clusterName); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ComputeProfile.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ComputeProfile.java new file mode 100644 index 000000000000..ce0cf6674e13 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ComputeProfile.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes the compute profile. + */ +public class ComputeProfile { + /** + * The list of roles in the cluster. + */ + @JsonProperty(value = "roles") + private List roles; + + /** + * Get the list of roles in the cluster. + * + * @return the roles value + */ + public List roles() { + return this.roles; + } + + /** + * Set the list of roles in the cluster. + * + * @param roles the roles value to set + * @return the ComputeProfile object itself. + */ + public ComputeProfile withRoles(List roles) { + this.roles = roles; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Configurations.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Configurations.java new file mode 100644 index 000000000000..f27abe392cf7 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Configurations.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import rx.Completable; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ConfigurationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Configurations. + */ +public interface Configurations extends HasInner { + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable updateAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters); + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable> getAsync(String resourceGroupName, String clusterName, String configurationName); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ConnectivityEndpoint.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ConnectivityEndpoint.java new file mode 100644 index 000000000000..7cb964559116 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ConnectivityEndpoint.java @@ -0,0 +1,121 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The connectivity properties. + */ +public class ConnectivityEndpoint { + /** + * The name of the endpoint. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The protocol of the endpoint. + */ + @JsonProperty(value = "protocol") + private String protocol; + + /** + * The location of the endpoint. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The port to connect to. + */ + @JsonProperty(value = "port") + private Integer port; + + /** + * Get the name of the endpoint. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the endpoint. + * + * @param name the name value to set + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withName(String name) { + this.name = name; + return this; + } + + /** + * Get the protocol of the endpoint. + * + * @return the protocol value + */ + public String protocol() { + return this.protocol; + } + + /** + * Set the protocol of the endpoint. + * + * @param protocol the protocol value to set + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withProtocol(String protocol) { + this.protocol = protocol; + return this; + } + + /** + * Get the location of the endpoint. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location of the endpoint. + * + * @param location the location value to set + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the port to connect to. + * + * @return the port value + */ + public Integer port() { + return this.port; + } + + /** + * Set the port to connect to. + * + * @param port the port value to set + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withPort(Integer port) { + this.port = port; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DataDisksGroups.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DataDisksGroups.java new file mode 100644 index 000000000000..f975761fdd8c --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DataDisksGroups.java @@ -0,0 +1,73 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The data disks groups for the role. + */ +public class DataDisksGroups { + /** + * The number of disks per node. + */ + @JsonProperty(value = "disksPerNode") + private Integer disksPerNode; + + /** + * ReadOnly. The storage account type. Do not set this value. + */ + @JsonProperty(value = "storageAccountType", access = JsonProperty.Access.WRITE_ONLY) + private String storageAccountType; + + /** + * ReadOnly. The DiskSize in GB. Do not set this value. + */ + @JsonProperty(value = "diskSizeGB", access = JsonProperty.Access.WRITE_ONLY) + private Integer diskSizeGB; + + /** + * Get the number of disks per node. + * + * @return the disksPerNode value + */ + public Integer disksPerNode() { + return this.disksPerNode; + } + + /** + * Set the number of disks per node. + * + * @param disksPerNode the disksPerNode value to set + * @return the DataDisksGroups object itself. + */ + public DataDisksGroups withDisksPerNode(Integer disksPerNode) { + this.disksPerNode = disksPerNode; + return this; + } + + /** + * Get readOnly. The storage account type. Do not set this value. + * + * @return the storageAccountType value + */ + public String storageAccountType() { + return this.storageAccountType; + } + + /** + * Get readOnly. The DiskSize in GB. Do not set this value. + * + * @return the diskSizeGB value + */ + public Integer diskSizeGB() { + return this.diskSizeGB; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DirectoryType.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DirectoryType.java new file mode 100644 index 000000000000..0597245dec98 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DirectoryType.java @@ -0,0 +1,50 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for DirectoryType. + */ +public enum DirectoryType { + /** Enum value ActiveDirectory. */ + ACTIVE_DIRECTORY("ActiveDirectory"); + + /** The actual serialized value for a DirectoryType instance. */ + private String value; + + DirectoryType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a DirectoryType instance. + * + * @param value the serialized value to parse. + * @return the parsed DirectoryType object, or null if unable to parse. + */ + @JsonCreator + public static DirectoryType fromString(String value) { + DirectoryType[] items = DirectoryType.values(); + for (DirectoryType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ErrorResponse.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ErrorResponse.java new file mode 100644 index 000000000000..2b6507868aa0 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ErrorResponse.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes the format of Error response. + */ +public class ErrorResponse { + /** + * Error code. + */ + @JsonProperty(value = "code") + private String code; + + /** + * Error message indicating why the operation failed. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set error code. + * + * @param code the code value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * Get error message indicating why the operation failed. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set error message indicating why the operation failed. + * + * @param message the message value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ErrorResponseException.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ErrorResponseException.java new file mode 100644 index 000000000000..6772ecfd0e0c --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ErrorResponseException.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ +public class ErrorResponseException extends RestException { + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorResponseException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorResponseException(final String message, final Response response, final ErrorResponse body) { + super(message, response, body); + } + + @Override + public ErrorResponse body() { + return (ErrorResponse) super.body(); + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Errors.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Errors.java new file mode 100644 index 000000000000..522a027ccc3d --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Errors.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The error message associated with the cluster creation. + */ +public class Errors { + /** + * The error code. + */ + @JsonProperty(value = "code") + private String code; + + /** + * The error message. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get the error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set the error code. + * + * @param code the code value to set + * @return the Errors object itself. + */ + public Errors withCode(String code) { + this.code = code; + return this; + } + + /** + * Get the error message. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the error message. + * + * @param message the message value to set + * @return the Errors object itself. + */ + public Errors withMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ExecuteScriptActionParameters.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ExecuteScriptActionParameters.java new file mode 100644 index 000000000000..26bd5a20fbe2 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ExecuteScriptActionParameters.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The parameters for the script actions to execute on a running cluster. + */ +public class ExecuteScriptActionParameters { + /** + * The list of run time script actions. + */ + @JsonProperty(value = "scriptActions") + private List scriptActions; + + /** + * Gets or sets if the scripts needs to be persisted. + */ + @JsonProperty(value = "persistOnSuccess", required = true) + private boolean persistOnSuccess; + + /** + * Get the list of run time script actions. + * + * @return the scriptActions value + */ + public List scriptActions() { + return this.scriptActions; + } + + /** + * Set the list of run time script actions. + * + * @param scriptActions the scriptActions value to set + * @return the ExecuteScriptActionParameters object itself. + */ + public ExecuteScriptActionParameters withScriptActions(List scriptActions) { + this.scriptActions = scriptActions; + return this; + } + + /** + * Get gets or sets if the scripts needs to be persisted. + * + * @return the persistOnSuccess value + */ + public boolean persistOnSuccess() { + return this.persistOnSuccess; + } + + /** + * Set gets or sets if the scripts needs to be persisted. + * + * @param persistOnSuccess the persistOnSuccess value to set + * @return the ExecuteScriptActionParameters object itself. + */ + public ExecuteScriptActionParameters withPersistOnSuccess(boolean persistOnSuccess) { + this.persistOnSuccess = persistOnSuccess; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Extension.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Extension.java new file mode 100644 index 000000000000..90af69d8daaa --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Extension.java @@ -0,0 +1,30 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ExtensionInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HDInsightManager; + +/** + * Type representing Extension. + */ +public interface Extension extends HasInner, HasManager { + /** + * @return the primaryKey value. + */ + String primaryKey(); + + /** + * @return the workspaceId value. + */ + String workspaceId(); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Extensions.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Extensions.java new file mode 100644 index 000000000000..ec2c5d25793e --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Extensions.java @@ -0,0 +1,86 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ExtensionsInner; +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ExtensionInner; + +/** + * Type representing Extensions. + */ +public interface Extensions extends HasInner { + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getMonitoringStatusAsync(String resourceGroupName, String clusterName); + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable disableMonitoringAsync(String resourceGroupName, String clusterName); + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String clusterName, String extensionName); + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String clusterName, String extensionName); + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters); + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable createAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/HDInsightClusterProvisioningState.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/HDInsightClusterProvisioningState.java new file mode 100644 index 000000000000..0f507416b60d --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/HDInsightClusterProvisioningState.java @@ -0,0 +1,62 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for HDInsightClusterProvisioningState. + */ +public enum HDInsightClusterProvisioningState { + /** Enum value InProgress. */ + IN_PROGRESS("InProgress"), + + /** Enum value Failed. */ + FAILED("Failed"), + + /** Enum value Succeeded. */ + SUCCEEDED("Succeeded"), + + /** Enum value Canceled. */ + CANCELED("Canceled"), + + /** Enum value Deleting. */ + DELETING("Deleting"); + + /** The actual serialized value for a HDInsightClusterProvisioningState instance. */ + private String value; + + HDInsightClusterProvisioningState(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a HDInsightClusterProvisioningState instance. + * + * @param value the serialized value to parse. + * @return the parsed HDInsightClusterProvisioningState object, or null if unable to parse. + */ + @JsonCreator + public static HDInsightClusterProvisioningState fromString(String value) { + HDInsightClusterProvisioningState[] items = HDInsightClusterProvisioningState.values(); + for (HDInsightClusterProvisioningState item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/HardwareProfile.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/HardwareProfile.java new file mode 100644 index 000000000000..ceb871e9b137 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/HardwareProfile.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The hardware profile. + */ +public class HardwareProfile { + /** + * The size of the VM. + */ + @JsonProperty(value = "vmSize") + private String vmSize; + + /** + * Get the size of the VM. + * + * @return the vmSize value + */ + public String vmSize() { + return this.vmSize; + } + + /** + * Set the size of the VM. + * + * @param vmSize the vmSize value to set + * @return the HardwareProfile object itself. + */ + public HardwareProfile withVmSize(String vmSize) { + this.vmSize = vmSize; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/LinuxOperatingSystemProfile.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/LinuxOperatingSystemProfile.java new file mode 100644 index 000000000000..85b16147dc44 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/LinuxOperatingSystemProfile.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ssh username, password, and ssh public key. + */ +public class LinuxOperatingSystemProfile { + /** + * The username. + */ + @JsonProperty(value = "username") + private String username; + + /** + * The password. + */ + @JsonProperty(value = "password") + private String password; + + /** + * The SSH profile. + */ + @JsonProperty(value = "sshProfile") + private SshProfile sshProfile; + + /** + * Get the username. + * + * @return the username value + */ + public String username() { + return this.username; + } + + /** + * Set the username. + * + * @param username the username value to set + * @return the LinuxOperatingSystemProfile object itself. + */ + public LinuxOperatingSystemProfile withUsername(String username) { + this.username = username; + return this; + } + + /** + * Get the password. + * + * @return the password value + */ + public String password() { + return this.password; + } + + /** + * Set the password. + * + * @param password the password value to set + * @return the LinuxOperatingSystemProfile object itself. + */ + public LinuxOperatingSystemProfile withPassword(String password) { + this.password = password; + return this; + } + + /** + * Get the SSH profile. + * + * @return the sshProfile value + */ + public SshProfile sshProfile() { + return this.sshProfile; + } + + /** + * Set the SSH profile. + * + * @param sshProfile the sshProfile value to set + * @return the LinuxOperatingSystemProfile object itself. + */ + public LinuxOperatingSystemProfile withSshProfile(SshProfile sshProfile) { + this.sshProfile = sshProfile; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/LocalizedName.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/LocalizedName.java new file mode 100644 index 000000000000..1d9b8802e35f --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/LocalizedName.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The details about the localizable name of a type of usage. + */ +public class LocalizedName { + /** + * The name of the used resource. + */ + @JsonProperty(value = "value") + private String value; + + /** + * The localized name of the used resource. + */ + @JsonProperty(value = "localizedValue") + private String localizedValue; + + /** + * Get the name of the used resource. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set the name of the used resource. + * + * @param value the value value to set + * @return the LocalizedName object itself. + */ + public LocalizedName withValue(String value) { + this.value = value; + return this; + } + + /** + * Get the localized name of the used resource. + * + * @return the localizedValue value + */ + public String localizedValue() { + return this.localizedValue; + } + + /** + * Set the localized name of the used resource. + * + * @param localizedValue the localizedValue value to set + * @return the LocalizedName object itself. + */ + public LocalizedName withLocalizedValue(String localizedValue) { + this.localizedValue = localizedValue; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Locations.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Locations.java new file mode 100644 index 000000000000..9bd76b3ec75c --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Locations.java @@ -0,0 +1,26 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import rx.Observable; + +/** + * Type representing Locations. + */ +public interface Locations { + /** + * Lists the usages for the specified location. + * + * @param location The location to get capabilities for. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listUsagesAsync(String location); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OSType.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OSType.java new file mode 100644 index 000000000000..f2659f272e9a --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OSType.java @@ -0,0 +1,53 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for OSType. + */ +public enum OSType { + /** Enum value Windows. */ + WINDOWS("Windows"), + + /** Enum value Linux. */ + LINUX("Linux"); + + /** The actual serialized value for a OSType instance. */ + private String value; + + OSType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a OSType instance. + * + * @param value the serialized value to parse. + * @return the parsed OSType object, or null if unable to parse. + */ + @JsonCreator + public static OSType fromString(String value) { + OSType[] items = OSType.values(); + for (OSType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Operation.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Operation.java new file mode 100644 index 000000000000..9ac10da1efcb --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Operation.java @@ -0,0 +1,30 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.OperationInner; + +/** + * Type representing Operation. + */ +public interface Operation extends HasInner, HasManager { + /** + * @return the display value. + */ + OperationDisplay display(); + + /** + * @return the name value. + */ + String name(); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OperationDisplay.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OperationDisplay.java new file mode 100644 index 000000000000..d6495bbda005 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OperationDisplay.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The object that represents the operation. + */ +public class OperationDisplay { + /** + * The service provider: Microsoft.HDInsight. + */ + @JsonProperty(value = "provider") + private String provider; + + /** + * The resource on which the operation is performed: Cluster, Applications, + * etc. + */ + @JsonProperty(value = "resource") + private String resource; + + /** + * The operation type: read, write, delete, etc. + */ + @JsonProperty(value = "operation") + private String operation; + + /** + * Get the service provider: Microsoft.HDInsight. + * + * @return the provider value + */ + public String provider() { + return this.provider; + } + + /** + * Set the service provider: Microsoft.HDInsight. + * + * @param provider the provider value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withProvider(String provider) { + this.provider = provider; + return this; + } + + /** + * Get the resource on which the operation is performed: Cluster, Applications, etc. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Set the resource on which the operation is performed: Cluster, Applications, etc. + * + * @param resource the resource value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withResource(String resource) { + this.resource = resource; + return this; + } + + /** + * Get the operation type: read, write, delete, etc. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + + /** + * Set the operation type: read, write, delete, etc. + * + * @param operation the operation value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withOperation(String operation) { + this.operation = operation; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OperationResource.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OperationResource.java new file mode 100644 index 000000000000..2dcce02c9385 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OperationResource.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The azure async operation response. + */ +public class OperationResource { + /** + * The async operation state. Possible values include: 'InProgress', + * 'Succeeded', 'Failed'. + */ + @JsonProperty(value = "status") + private AsyncOperationState status; + + /** + * The operation error information. + */ + @JsonProperty(value = "error") + private Errors error; + + /** + * Get the async operation state. Possible values include: 'InProgress', 'Succeeded', 'Failed'. + * + * @return the status value + */ + public AsyncOperationState status() { + return this.status; + } + + /** + * Set the async operation state. Possible values include: 'InProgress', 'Succeeded', 'Failed'. + * + * @param status the status value to set + * @return the OperationResource object itself. + */ + public OperationResource withStatus(AsyncOperationState status) { + this.status = status; + return this; + } + + /** + * Get the operation error information. + * + * @return the error value + */ + public Errors error() { + return this.error; + } + + /** + * Set the operation error information. + * + * @param error the error value to set + * @return the OperationResource object itself. + */ + public OperationResource withError(Errors error) { + this.error = error; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Operations.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Operations.java new file mode 100644 index 000000000000..ed0e1b039e0a --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Operations.java @@ -0,0 +1,27 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.OperationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Operations. + */ +public interface Operations extends HasInner { + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OsProfile.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OsProfile.java new file mode 100644 index 000000000000..350bb586520f --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/OsProfile.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Linux operation systems profile. + */ +public class OsProfile { + /** + * The Linux OS profile. + */ + @JsonProperty(value = "linuxOperatingSystemProfile") + private LinuxOperatingSystemProfile linuxOperatingSystemProfile; + + /** + * Get the Linux OS profile. + * + * @return the linuxOperatingSystemProfile value + */ + public LinuxOperatingSystemProfile linuxOperatingSystemProfile() { + return this.linuxOperatingSystemProfile; + } + + /** + * Set the Linux OS profile. + * + * @param linuxOperatingSystemProfile the linuxOperatingSystemProfile value to set + * @return the OsProfile object itself. + */ + public OsProfile withLinuxOperatingSystemProfile(LinuxOperatingSystemProfile linuxOperatingSystemProfile) { + this.linuxOperatingSystemProfile = linuxOperatingSystemProfile; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/QuotaInfo.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/QuotaInfo.java new file mode 100644 index 000000000000..ad4c2597ce3b --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/QuotaInfo.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The quota properties for the cluster. + */ +public class QuotaInfo { + /** + * The cores used by the cluster. + */ + @JsonProperty(value = "coresUsed") + private Integer coresUsed; + + /** + * Get the cores used by the cluster. + * + * @return the coresUsed value + */ + public Integer coresUsed() { + return this.coresUsed; + } + + /** + * Set the cores used by the cluster. + * + * @param coresUsed the coresUsed value to set + * @return the QuotaInfo object itself. + */ + public QuotaInfo withCoresUsed(Integer coresUsed) { + this.coresUsed = coresUsed; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Role.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Role.java new file mode 100644 index 000000000000..069ad311501d --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Role.java @@ -0,0 +1,227 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ScriptActionInner; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes a role on the cluster. + */ +public class Role { + /** + * The name of the role. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The minimum instance count of the cluster. + */ + @JsonProperty(value = "minInstanceCount") + private Integer minInstanceCount; + + /** + * The instance count of the cluster. + */ + @JsonProperty(value = "targetInstanceCount") + private Integer targetInstanceCount; + + /** + * The hardware profile. + */ + @JsonProperty(value = "hardwareProfile") + private HardwareProfile hardwareProfile; + + /** + * The operating system profile. + */ + @JsonProperty(value = "osProfile") + private OsProfile osProfile; + + /** + * The virtual network profile. + */ + @JsonProperty(value = "virtualNetworkProfile") + private VirtualNetworkProfile virtualNetworkProfile; + + /** + * The data disks groups for the role. + */ + @JsonProperty(value = "dataDisksGroups") + private List dataDisksGroups; + + /** + * The list of script actions on the role. + */ + @JsonProperty(value = "scriptActions") + private List scriptActions; + + /** + * Get the name of the role. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the role. + * + * @param name the name value to set + * @return the Role object itself. + */ + public Role withName(String name) { + this.name = name; + return this; + } + + /** + * Get the minimum instance count of the cluster. + * + * @return the minInstanceCount value + */ + public Integer minInstanceCount() { + return this.minInstanceCount; + } + + /** + * Set the minimum instance count of the cluster. + * + * @param minInstanceCount the minInstanceCount value to set + * @return the Role object itself. + */ + public Role withMinInstanceCount(Integer minInstanceCount) { + this.minInstanceCount = minInstanceCount; + return this; + } + + /** + * Get the instance count of the cluster. + * + * @return the targetInstanceCount value + */ + public Integer targetInstanceCount() { + return this.targetInstanceCount; + } + + /** + * Set the instance count of the cluster. + * + * @param targetInstanceCount the targetInstanceCount value to set + * @return the Role object itself. + */ + public Role withTargetInstanceCount(Integer targetInstanceCount) { + this.targetInstanceCount = targetInstanceCount; + return this; + } + + /** + * Get the hardware profile. + * + * @return the hardwareProfile value + */ + public HardwareProfile hardwareProfile() { + return this.hardwareProfile; + } + + /** + * Set the hardware profile. + * + * @param hardwareProfile the hardwareProfile value to set + * @return the Role object itself. + */ + public Role withHardwareProfile(HardwareProfile hardwareProfile) { + this.hardwareProfile = hardwareProfile; + return this; + } + + /** + * Get the operating system profile. + * + * @return the osProfile value + */ + public OsProfile osProfile() { + return this.osProfile; + } + + /** + * Set the operating system profile. + * + * @param osProfile the osProfile value to set + * @return the Role object itself. + */ + public Role withOsProfile(OsProfile osProfile) { + this.osProfile = osProfile; + return this; + } + + /** + * Get the virtual network profile. + * + * @return the virtualNetworkProfile value + */ + public VirtualNetworkProfile virtualNetworkProfile() { + return this.virtualNetworkProfile; + } + + /** + * Set the virtual network profile. + * + * @param virtualNetworkProfile the virtualNetworkProfile value to set + * @return the Role object itself. + */ + public Role withVirtualNetworkProfile(VirtualNetworkProfile virtualNetworkProfile) { + this.virtualNetworkProfile = virtualNetworkProfile; + return this; + } + + /** + * Get the data disks groups for the role. + * + * @return the dataDisksGroups value + */ + public List dataDisksGroups() { + return this.dataDisksGroups; + } + + /** + * Set the data disks groups for the role. + * + * @param dataDisksGroups the dataDisksGroups value to set + * @return the Role object itself. + */ + public Role withDataDisksGroups(List dataDisksGroups) { + this.dataDisksGroups = dataDisksGroups; + return this; + } + + /** + * Get the list of script actions on the role. + * + * @return the scriptActions value + */ + public List scriptActions() { + return this.scriptActions; + } + + /** + * Set the list of script actions on the role. + * + * @param scriptActions the scriptActions value to set + * @return the Role object itself. + */ + public Role withScriptActions(List scriptActions) { + this.scriptActions = scriptActions; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/RuntimeScriptAction.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/RuntimeScriptAction.java new file mode 100644 index 000000000000..5261fd0ee0db --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/RuntimeScriptAction.java @@ -0,0 +1,137 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes a script action on a running cluster. + */ +public class RuntimeScriptAction { + /** + * The name of the script action. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The URI to the script. + */ + @JsonProperty(value = "uri", required = true) + private String uri; + + /** + * The parameters for the script. + */ + @JsonProperty(value = "parameters") + private String parameters; + + /** + * The list of roles where script will be executed. + */ + @JsonProperty(value = "roles", required = true) + private List roles; + + /** + * The application name of the script action, if any. + */ + @JsonProperty(value = "applicationName", access = JsonProperty.Access.WRITE_ONLY) + private String applicationName; + + /** + * Get the name of the script action. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the script action. + * + * @param name the name value to set + * @return the RuntimeScriptAction object itself. + */ + public RuntimeScriptAction withName(String name) { + this.name = name; + return this; + } + + /** + * Get the URI to the script. + * + * @return the uri value + */ + public String uri() { + return this.uri; + } + + /** + * Set the URI to the script. + * + * @param uri the uri value to set + * @return the RuntimeScriptAction object itself. + */ + public RuntimeScriptAction withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the parameters for the script. + * + * @return the parameters value + */ + public String parameters() { + return this.parameters; + } + + /** + * Set the parameters for the script. + * + * @param parameters the parameters value to set + * @return the RuntimeScriptAction object itself. + */ + public RuntimeScriptAction withParameters(String parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the list of roles where script will be executed. + * + * @return the roles value + */ + public List roles() { + return this.roles; + } + + /** + * Set the list of roles where script will be executed. + * + * @param roles the roles value to set + * @return the RuntimeScriptAction object itself. + */ + public RuntimeScriptAction withRoles(List roles) { + this.roles = roles; + return this; + } + + /** + * Get the application name of the script action, if any. + * + * @return the applicationName value + */ + public String applicationName() { + return this.applicationName; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/RuntimeScriptActionDetail.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/RuntimeScriptActionDetail.java new file mode 100644 index 000000000000..65b7112448a0 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/RuntimeScriptActionDetail.java @@ -0,0 +1,81 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.RuntimeScriptActionDetailInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HDInsightManager; +import java.util.List; + +/** + * Type representing RuntimeScriptActionDetail. + */ +public interface RuntimeScriptActionDetail extends HasInner, HasManager { + /** + * @return the applicationName value. + */ + String applicationName(); + + /** + * @return the debugInformation value. + */ + String debugInformation(); + + /** + * @return the endTime value. + */ + String endTime(); + + /** + * @return the executionSummary value. + */ + List executionSummary(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the operation value. + */ + String operation(); + + /** + * @return the parameters value. + */ + String parameters(); + + /** + * @return the roles value. + */ + List roles(); + + /** + * @return the scriptExecutionId value. + */ + Long scriptExecutionId(); + + /** + * @return the startTime value. + */ + String startTime(); + + /** + * @return the status value. + */ + String status(); + + /** + * @return the uri value. + */ + String uri(); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActionExecutionSummary.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActionExecutionSummary.java new file mode 100644 index 000000000000..086e42212c57 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActionExecutionSummary.java @@ -0,0 +1,47 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The execution summary of a script action. + */ +public class ScriptActionExecutionSummary { + /** + * The status of script action execution. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private String status; + + /** + * The instance count for a given script action execution status. + */ + @JsonProperty(value = "instanceCount", access = JsonProperty.Access.WRITE_ONLY) + private Integer instanceCount; + + /** + * Get the status of script action execution. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the instance count for a given script action execution status. + * + * @return the instanceCount value + */ + public Integer instanceCount() { + return this.instanceCount; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActionPersistedGetResponseSpec.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActionPersistedGetResponseSpec.java new file mode 100644 index 000000000000..6daaf7d88afa --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActionPersistedGetResponseSpec.java @@ -0,0 +1,148 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The persisted script action for cluster. + */ +public class ScriptActionPersistedGetResponseSpec { + /** + * The name of script action. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The URI to the script. + */ + @JsonProperty(value = "uri") + private String uri; + + /** + * The parameters for the script provided. + */ + @JsonProperty(value = "parameters") + private String parameters; + + /** + * The list of roles where script will be executed. + */ + @JsonProperty(value = "roles") + private List roles; + + /** + * The application name for the script action. + */ + @JsonProperty(value = "applicationName") + private String applicationName; + + /** + * Get the name of script action. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of script action. + * + * @param name the name value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withName(String name) { + this.name = name; + return this; + } + + /** + * Get the URI to the script. + * + * @return the uri value + */ + public String uri() { + return this.uri; + } + + /** + * Set the URI to the script. + * + * @param uri the uri value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the parameters for the script provided. + * + * @return the parameters value + */ + public String parameters() { + return this.parameters; + } + + /** + * Set the parameters for the script provided. + * + * @param parameters the parameters value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withParameters(String parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the list of roles where script will be executed. + * + * @return the roles value + */ + public List roles() { + return this.roles; + } + + /** + * Set the list of roles where script will be executed. + * + * @param roles the roles value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withRoles(List roles) { + this.roles = roles; + return this; + } + + /** + * Get the application name for the script action. + * + * @return the applicationName value + */ + public String applicationName() { + return this.applicationName; + } + + /** + * Set the application name for the script action. + * + * @param applicationName the applicationName value to set + * @return the ScriptActionPersistedGetResponseSpec object itself. + */ + public ScriptActionPersistedGetResponseSpec withApplicationName(String applicationName) { + this.applicationName = applicationName; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActions.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActions.java new file mode 100644 index 000000000000..d66041489187 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptActions.java @@ -0,0 +1,52 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ScriptActionsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing ScriptActions. + */ +public interface ScriptActions extends HasInner { + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByClusterAsync(final String resourceGroupName, final String clusterName); + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String clusterName, String scriptName); + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getExecutionDetailAsync(String resourceGroupName, String clusterName, String scriptExecutionId); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptExecutionHistorys.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptExecutionHistorys.java new file mode 100644 index 000000000000..019ef2004928 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/ScriptExecutionHistorys.java @@ -0,0 +1,41 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.ScriptExecutionHistorysInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing ScriptExecutionHistorys. + */ +public interface ScriptExecutionHistorys extends HasInner { + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByClusterAsync(final String resourceGroupName, final String clusterName); + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable promoteAsync(String resourceGroupName, String clusterName, String scriptExecutionId); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SecurityProfile.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SecurityProfile.java new file mode 100644 index 000000000000..c993b8c7357c --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SecurityProfile.java @@ -0,0 +1,202 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The security profile which contains Ssh public key for the HDInsight + * cluster. + */ +public class SecurityProfile { + /** + * The directory type. Possible values include: 'ActiveDirectory'. + */ + @JsonProperty(value = "directoryType") + private DirectoryType directoryType; + + /** + * The organization's active directory domain. + */ + @JsonProperty(value = "domain") + private String domain; + + /** + * The organizational unit within the Active Directory to place the cluster + * and service accounts. + */ + @JsonProperty(value = "organizationalUnitDN") + private String organizationalUnitDN; + + /** + * The LDAPS protocol URLs to communicate with the Active Directory. + */ + @JsonProperty(value = "ldapsUrls") + private List ldapsUrls; + + /** + * The domain user account that will have admin privileges on the cluster. + */ + @JsonProperty(value = "domainUsername") + private String domainUsername; + + /** + * The domain admin password. + */ + @JsonProperty(value = "domainUserPassword") + private String domainUserPassword; + + /** + * Optional. The Distinguished Names for cluster user groups. + */ + @JsonProperty(value = "clusterUsersGroupDNs") + private List clusterUsersGroupDNs; + + /** + * Get the directory type. Possible values include: 'ActiveDirectory'. + * + * @return the directoryType value + */ + public DirectoryType directoryType() { + return this.directoryType; + } + + /** + * Set the directory type. Possible values include: 'ActiveDirectory'. + * + * @param directoryType the directoryType value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withDirectoryType(DirectoryType directoryType) { + this.directoryType = directoryType; + return this; + } + + /** + * Get the organization's active directory domain. + * + * @return the domain value + */ + public String domain() { + return this.domain; + } + + /** + * Set the organization's active directory domain. + * + * @param domain the domain value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withDomain(String domain) { + this.domain = domain; + return this; + } + + /** + * Get the organizational unit within the Active Directory to place the cluster and service accounts. + * + * @return the organizationalUnitDN value + */ + public String organizationalUnitDN() { + return this.organizationalUnitDN; + } + + /** + * Set the organizational unit within the Active Directory to place the cluster and service accounts. + * + * @param organizationalUnitDN the organizationalUnitDN value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withOrganizationalUnitDN(String organizationalUnitDN) { + this.organizationalUnitDN = organizationalUnitDN; + return this; + } + + /** + * Get the LDAPS protocol URLs to communicate with the Active Directory. + * + * @return the ldapsUrls value + */ + public List ldapsUrls() { + return this.ldapsUrls; + } + + /** + * Set the LDAPS protocol URLs to communicate with the Active Directory. + * + * @param ldapsUrls the ldapsUrls value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withLdapsUrls(List ldapsUrls) { + this.ldapsUrls = ldapsUrls; + return this; + } + + /** + * Get the domain user account that will have admin privileges on the cluster. + * + * @return the domainUsername value + */ + public String domainUsername() { + return this.domainUsername; + } + + /** + * Set the domain user account that will have admin privileges on the cluster. + * + * @param domainUsername the domainUsername value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withDomainUsername(String domainUsername) { + this.domainUsername = domainUsername; + return this; + } + + /** + * Get the domain admin password. + * + * @return the domainUserPassword value + */ + public String domainUserPassword() { + return this.domainUserPassword; + } + + /** + * Set the domain admin password. + * + * @param domainUserPassword the domainUserPassword value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withDomainUserPassword(String domainUserPassword) { + this.domainUserPassword = domainUserPassword; + return this; + } + + /** + * Get optional. The Distinguished Names for cluster user groups. + * + * @return the clusterUsersGroupDNs value + */ + public List clusterUsersGroupDNs() { + return this.clusterUsersGroupDNs; + } + + /** + * Set optional. The Distinguished Names for cluster user groups. + * + * @param clusterUsersGroupDNs the clusterUsersGroupDNs value to set + * @return the SecurityProfile object itself. + */ + public SecurityProfile withClusterUsersGroupDNs(List clusterUsersGroupDNs) { + this.clusterUsersGroupDNs = clusterUsersGroupDNs; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SshProfile.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SshProfile.java new file mode 100644 index 000000000000..2f4542e900ad --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SshProfile.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The list of SSH public keys. + */ +public class SshProfile { + /** + * The list of SSH public keys. + */ + @JsonProperty(value = "publicKeys") + private List publicKeys; + + /** + * Get the list of SSH public keys. + * + * @return the publicKeys value + */ + public List publicKeys() { + return this.publicKeys; + } + + /** + * Set the list of SSH public keys. + * + * @param publicKeys the publicKeys value to set + * @return the SshProfile object itself. + */ + public SshProfile withPublicKeys(List publicKeys) { + this.publicKeys = publicKeys; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SshPublicKey.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SshPublicKey.java new file mode 100644 index 000000000000..d2b63a87cd18 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/SshPublicKey.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The SSH public key for the cluster nodes. + */ +public class SshPublicKey { + /** + * The certificate for SSH. + */ + @JsonProperty(value = "certificateData") + private String certificateData; + + /** + * Get the certificate for SSH. + * + * @return the certificateData value + */ + public String certificateData() { + return this.certificateData; + } + + /** + * Set the certificate for SSH. + * + * @param certificateData the certificateData value to set + * @return the SshPublicKey object itself. + */ + public SshPublicKey withCertificateData(String certificateData) { + this.certificateData = certificateData; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/StorageAccount.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/StorageAccount.java new file mode 100644 index 000000000000..99ca4fa2ba19 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/StorageAccount.java @@ -0,0 +1,149 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The storage Account. + */ +public class StorageAccount { + /** + * The name of the storage account. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Whether or not the storage account is the default storage account. + */ + @JsonProperty(value = "isDefault") + private Boolean isDefault; + + /** + * The container in the storage account, only to be specified for WASB + * storage accounts. + */ + @JsonProperty(value = "container") + private String container; + + /** + * The filesystem, only to be specified for Azure Data Lake Storage type + * Gen 2. + */ + @JsonProperty(value = "fileSystem") + private String fileSystem; + + /** + * The storage account access key. + */ + @JsonProperty(value = "key") + private String key; + + /** + * Get the name of the storage account. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the storage account. + * + * @param name the name value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withName(String name) { + this.name = name; + return this; + } + + /** + * Get whether or not the storage account is the default storage account. + * + * @return the isDefault value + */ + public Boolean isDefault() { + return this.isDefault; + } + + /** + * Set whether or not the storage account is the default storage account. + * + * @param isDefault the isDefault value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get the container in the storage account, only to be specified for WASB storage accounts. + * + * @return the container value + */ + public String container() { + return this.container; + } + + /** + * Set the container in the storage account, only to be specified for WASB storage accounts. + * + * @param container the container value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withContainer(String container) { + this.container = container; + return this; + } + + /** + * Get the filesystem, only to be specified for Azure Data Lake Storage type Gen 2. + * + * @return the fileSystem value + */ + public String fileSystem() { + return this.fileSystem; + } + + /** + * Set the filesystem, only to be specified for Azure Data Lake Storage type Gen 2. + * + * @param fileSystem the fileSystem value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withFileSystem(String fileSystem) { + this.fileSystem = fileSystem; + return this; + } + + /** + * Get the storage account access key. + * + * @return the key value + */ + public String key() { + return this.key; + } + + /** + * Set the storage account access key. + * + * @param key the key value to set + * @return the StorageAccount object itself. + */ + public StorageAccount withKey(String key) { + this.key = key; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/StorageProfile.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/StorageProfile.java new file mode 100644 index 000000000000..ffca8a6461d8 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/StorageProfile.java @@ -0,0 +1,44 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The storage profile. + */ +public class StorageProfile { + /** + * The list of storage accounts in the cluster. + */ + @JsonProperty(value = "storageaccounts") + private List storageaccounts; + + /** + * Get the list of storage accounts in the cluster. + * + * @return the storageaccounts value + */ + public List storageaccounts() { + return this.storageaccounts; + } + + /** + * Set the list of storage accounts in the cluster. + * + * @param storageaccounts the storageaccounts value to set + * @return the StorageProfile object itself. + */ + public StorageProfile withStorageaccounts(List storageaccounts) { + this.storageaccounts = storageaccounts; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Tier.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Tier.java new file mode 100644 index 000000000000..64667c2b97f3 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Tier.java @@ -0,0 +1,53 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for Tier. + */ +public enum Tier { + /** Enum value Standard. */ + STANDARD("Standard"), + + /** Enum value Premium. */ + PREMIUM("Premium"); + + /** The actual serialized value for a Tier instance. */ + private String value; + + Tier(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a Tier instance. + * + * @param value the serialized value to parse. + * @return the parsed Tier object, or null if unable to parse. + */ + @JsonCreator + public static Tier fromString(String value) { + Tier[] items = Tier.values(); + for (Tier item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Usage.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Usage.java new file mode 100644 index 000000000000..40bb0dbec7ff --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Usage.java @@ -0,0 +1,121 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The details about the usage of a particular limited resource. + */ +public class Usage { + /** + * The type of measurement for usage. + */ + @JsonProperty(value = "unit") + private String unit; + + /** + * The current usage. + */ + @JsonProperty(value = "currentValue") + private Integer currentValue; + + /** + * The maximum allowed usage. + */ + @JsonProperty(value = "limit") + private Integer limit; + + /** + * The details about the localizable name of the used resource. + */ + @JsonProperty(value = "name") + private LocalizedName name; + + /** + * Get the type of measurement for usage. + * + * @return the unit value + */ + public String unit() { + return this.unit; + } + + /** + * Set the type of measurement for usage. + * + * @param unit the unit value to set + * @return the Usage object itself. + */ + public Usage withUnit(String unit) { + this.unit = unit; + return this; + } + + /** + * Get the current usage. + * + * @return the currentValue value + */ + public Integer currentValue() { + return this.currentValue; + } + + /** + * Set the current usage. + * + * @param currentValue the currentValue value to set + * @return the Usage object itself. + */ + public Usage withCurrentValue(Integer currentValue) { + this.currentValue = currentValue; + return this; + } + + /** + * Get the maximum allowed usage. + * + * @return the limit value + */ + public Integer limit() { + return this.limit; + } + + /** + * Set the maximum allowed usage. + * + * @param limit the limit value to set + * @return the Usage object itself. + */ + public Usage withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Get the details about the localizable name of the used resource. + * + * @return the name value + */ + public LocalizedName name() { + return this.name; + } + + /** + * Set the details about the localizable name of the used resource. + * + * @param name the name value to set + * @return the Usage object itself. + */ + public Usage withName(LocalizedName name) { + this.name = name; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/UsagesListResult.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/UsagesListResult.java new file mode 100644 index 000000000000..e6535a67c6e0 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/UsagesListResult.java @@ -0,0 +1,26 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HDInsightManager; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.UsagesListResultInner; +import java.util.List; + +/** + * Type representing UsagesListResult. + */ +public interface UsagesListResult extends HasInner, HasManager { + /** + * @return the value value. + */ + List value(); + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/VirtualNetworkProfile.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/VirtualNetworkProfile.java new file mode 100644 index 000000000000..02f928a4eff3 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/VirtualNetworkProfile.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The virtual network properties. + */ +public class VirtualNetworkProfile { + /** + * The ID of the virtual network. + */ + @JsonProperty(value = "id") + private String id; + + /** + * The name of the subnet. + */ + @JsonProperty(value = "subnet") + private String subnet; + + /** + * Get the ID of the virtual network. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set the ID of the virtual network. + * + * @param id the id value to set + * @return the VirtualNetworkProfile object itself. + */ + public VirtualNetworkProfile withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name of the subnet. + * + * @return the subnet value + */ + public String subnet() { + return this.subnet; + } + + /** + * Set the name of the subnet. + * + * @param subnet the subnet value to set + * @return the VirtualNetworkProfile object itself. + */ + public VirtualNetworkProfile withSubnet(String subnet) { + this.subnet = subnet; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationImpl.java new file mode 100644 index 000000000000..b02a8e669738 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationImpl.java @@ -0,0 +1,129 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Application; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ApplicationProperties; + +class ApplicationImpl extends CreatableUpdatableImpl implements Application, Application.Definition, Application.Update { + private final HDInsightManager manager; + private String resourceGroupName; + private String clusterName; + private String applicationName; + + ApplicationImpl(String name, HDInsightManager manager) { + super(name, new ApplicationInner()); + this.manager = manager; + // Set resource name + this.applicationName = name; + // + } + + ApplicationImpl(ApplicationInner inner, HDInsightManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.applicationName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.clusterName = IdParsingUtils.getValueFromIdByName(inner.id(), "clusters"); + this.applicationName = IdParsingUtils.getValueFromIdByName(inner.id(), "applications"); + // + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + ApplicationsInner client = this.manager().inner().applications(); + return client.createAsync(this.resourceGroupName, this.clusterName, this.applicationName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + ApplicationsInner client = this.manager().inner().applications(); + return client.createAsync(this.resourceGroupName, this.clusterName, this.applicationName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + ApplicationsInner client = this.manager().inner().applications(); + return client.getAsync(this.resourceGroupName, this.clusterName, this.applicationName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public ApplicationProperties properties() { + return this.inner().properties(); + } + + @Override + public Map tags() { + return this.inner().tags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public ApplicationImpl withExistingCluster(String resourceGroupName, String clusterName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + return this; + } + + @Override + public ApplicationImpl withEtag(String etag) { + this.inner().withEtag(etag); + return this; + } + + @Override + public ApplicationImpl withProperties(ApplicationProperties properties) { + this.inner().withProperties(properties); + return this; + } + + @Override + public ApplicationImpl withTags(Map tags) { + this.inner().withTags(tags); + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationInner.java new file mode 100644 index 000000000000..e492ddd3b308 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationInner.java @@ -0,0 +1,98 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import java.util.Map; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ApplicationProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.ProxyResource; + +/** + * The HDInsight cluster application. + */ +public class ApplicationInner extends ProxyResource { + /** + * The ETag for the application. + */ + @JsonProperty(value = "etag") + private String etag; + + /** + * The tags for the application. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The properties of the application. + */ + @JsonProperty(value = "properties") + private ApplicationProperties properties; + + /** + * Get the ETag for the application. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Set the ETag for the application. + * + * @param etag the etag value to set + * @return the ApplicationInner object itself. + */ + public ApplicationInner withEtag(String etag) { + this.etag = etag; + return this; + } + + /** + * Get the tags for the application. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags for the application. + * + * @param tags the tags value to set + * @return the ApplicationInner object itself. + */ + public ApplicationInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties of the application. + * + * @return the properties value + */ + public ApplicationProperties properties() { + return this.properties; + } + + /** + * Set the properties of the application. + * + * @param properties the properties value to set + * @return the ApplicationInner object itself. + */ + public ApplicationInner withProperties(ApplicationProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationsImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationsImpl.java new file mode 100644 index 000000000000..6a1aadd83275 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationsImpl.java @@ -0,0 +1,81 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Applications; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Application; + +class ApplicationsImpl extends WrapperImpl implements Applications { + private final HDInsightManager manager; + + ApplicationsImpl(HDInsightManager manager) { + super(manager.inner().applications()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public ApplicationImpl define(String name) { + return wrapModel(name); + } + + private ApplicationImpl wrapModel(ApplicationInner inner) { + return new ApplicationImpl(inner, manager()); + } + + private ApplicationImpl wrapModel(String name) { + return new ApplicationImpl(name, this.manager()); + } + + @Override + public Observable listByClusterAsync(final String resourceGroupName, final String clusterName) { + ApplicationsInner client = this.inner(); + return client.listByClusterAsync(resourceGroupName, clusterName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Application call(ApplicationInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String clusterName, String applicationName) { + ApplicationsInner client = this.inner(); + return client.getAsync(resourceGroupName, clusterName, applicationName) + .map(new Func1() { + @Override + public Application call(ApplicationInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String clusterName, String applicationName) { + ApplicationsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, clusterName, applicationName).toCompletable(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationsInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationsInner.java new file mode 100644 index 000000000000..5bf8f1ba335c --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ApplicationsInner.java @@ -0,0 +1,774 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Applications. + */ +public class ApplicationsInner { + /** The Retrofit service to perform REST calls. */ + private ApplicationsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ApplicationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ApplicationsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ApplicationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Applications to be + * used by Retrofit to perform actually REST calls. + */ + interface ApplicationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Applications listByCluster" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications") + Observable> listByCluster(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Applications get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Applications create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}") + Observable> create(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @Body ApplicationInner parameters, @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.management.hdinsight.v2018_06_01_preview.Applications beginCreate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}") + Observable> beginCreate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @Body ApplicationInner parameters, @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.management.hdinsight.v2018_06_01_preview.Applications delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Applications beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("applicationName") String applicationName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Applications listByClusterNext" }) + @GET + Observable> listByClusterNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ApplicationInner> object if successful. + */ + public PagedList listByCluster(final String resourceGroupName, final String clusterName) { + ServiceResponse> response = listByClusterSinglePageAsync(resourceGroupName, clusterName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByClusterAsync(final String resourceGroupName, final String clusterName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByClusterSinglePageAsync(resourceGroupName, clusterName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ApplicationInner> object + */ + public Observable> listByClusterAsync(final String resourceGroupName, final String clusterName) { + return listByClusterWithServiceResponseAsync(resourceGroupName, clusterName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ApplicationInner> object + */ + public Observable>> listByClusterWithServiceResponseAsync(final String resourceGroupName, final String clusterName) { + return listByClusterSinglePageAsync(resourceGroupName, clusterName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByClusterNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ApplicationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByClusterSinglePageAsync(final String resourceGroupName, final String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByCluster(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByClusterDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByClusterDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ApplicationInner object if successful. + */ + public ApplicationInner get(String resourceGroupName, String clusterName, String applicationName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).toBlocking().single().body(); + } + + /** + * Gets properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String clusterName, String applicationName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, clusterName, applicationName), serviceCallback); + } + + /** + * Gets properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ApplicationInner object + */ + public Observable getAsync(String resourceGroupName, String clusterName, String applicationName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).map(new Func1, ApplicationInner>() { + @Override + public ApplicationInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets properties of the specified application. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ApplicationInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ApplicationInner object if successful. + */ + public ApplicationInner create(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters).toBlocking().last().body(); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters), serviceCallback); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters).map(new Func1, ApplicationInner>() { + @Override + public ApplicationInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.create(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ApplicationInner object if successful. + */ + public ApplicationInner beginCreate(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters).toBlocking().single().body(); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters), serviceCallback); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ApplicationInner object + */ + public Observable beginCreateAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, applicationName, parameters).map(new Func1, ApplicationInner>() { + @Override + public ApplicationInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates applications for the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param parameters The application create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ApplicationInner object + */ + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName, ApplicationInner parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginCreate(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String clusterName, String applicationName) { + deleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).toBlocking().last().body(); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, String applicationName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName), serviceCallback); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String clusterName, String applicationName) { + return deleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String clusterName, String applicationName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).toBlocking().single().body(); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String clusterName, String applicationName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName), serviceCallback); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String clusterName, String applicationName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, applicationName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified application on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param applicationName The constant value for the application name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String applicationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (applicationName == null) { + throw new IllegalArgumentException("Parameter applicationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, clusterName, applicationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ApplicationInner> object if successful. + */ + public PagedList listByClusterNext(final String nextPageLink) { + ServiceResponse> response = listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByClusterNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByClusterNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ApplicationInner> object + */ + public Observable> listByClusterNextAsync(final String nextPageLink) { + return listByClusterNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ApplicationInner> object + */ + public Observable>> listByClusterNextWithServiceResponseAsync(final String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByClusterNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the applications for the HDInsight cluster. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ApplicationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByClusterNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByClusterNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByClusterNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByClusterNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterImpl.java new file mode 100644 index 000000000000..5e53684da1a0 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterImpl.java @@ -0,0 +1,87 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Cluster; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterCreateParametersExtended; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterGetProperties; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterCreateProperties; +import rx.functions.Func1; + +class ClusterImpl extends GroupableResourceCoreImpl implements Cluster, Cluster.Definition, Cluster.Update { + private ClusterCreateParametersExtended createOrUpdateParameter; + ClusterImpl(String name, ClusterInner inner, HDInsightManager manager) { + super(name, inner, manager); + this.createOrUpdateParameter = new ClusterCreateParametersExtended(); + } + + @Override + public Observable createResourceAsync() { + ClustersInner client = this.manager().inner().clusters(); + this.createOrUpdateParameter.withLocation(inner().location()); + this.createOrUpdateParameter.withTags(inner().getTags()); + return client.createAsync(this.resourceGroupName(), this.name(), this.createOrUpdateParameter) + .map(new Func1() { + @Override + public ClusterInner call(ClusterInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + ClustersInner client = this.manager().inner().clusters(); + return client.createAsync(this.resourceGroupName(), this.name(), this.createOrUpdateParameter) + .map(new Func1() { + @Override + public ClusterInner call(ClusterInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + ClustersInner client = this.manager().inner().clusters(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new ClusterCreateParametersExtended(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public ClusterGetProperties properties() { + return this.inner().properties(); + } + + @Override + public ClusterImpl withProperties(ClusterCreateProperties properties) { + this.createOrUpdateParameter.withProperties(properties); + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterInner.java new file mode 100644 index 000000000000..0f7ac44c8356 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterInner.java @@ -0,0 +1,73 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterGetProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * The HDInsight cluster. + */ +@SkipParentValidation +public class ClusterInner extends Resource { + /** + * The ETag for the resource. + */ + @JsonProperty(value = "etag") + private String etag; + + /** + * The properties of the cluster. + */ + @JsonProperty(value = "properties") + private ClusterGetProperties properties; + + /** + * Get the ETag for the resource. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Set the ETag for the resource. + * + * @param etag the etag value to set + * @return the ClusterInner object itself. + */ + public ClusterInner withEtag(String etag) { + this.etag = etag; + return this; + } + + /** + * Get the properties of the cluster. + * + * @return the properties value + */ + public ClusterGetProperties properties() { + return this.properties; + } + + /** + * Set the properties of the cluster. + * + * @param properties the properties value to set + * @return the ClusterInner object itself. + */ + public ClusterInner withProperties(ClusterGetProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterMonitoringResponseImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterMonitoringResponseImpl.java new file mode 100644 index 000000000000..b10558098c4f --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterMonitoringResponseImpl.java @@ -0,0 +1,36 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterMonitoringResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ClusterMonitoringResponseImpl extends WrapperImpl implements ClusterMonitoringResponse { + private final HDInsightManager manager; + ClusterMonitoringResponseImpl(ClusterMonitoringResponseInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Boolean clusterMonitoringEnabled() { + return this.inner().clusterMonitoringEnabled(); + } + + @Override + public String workspaceId() { + return this.inner().workspaceId(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterMonitoringResponseInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterMonitoringResponseInner.java new file mode 100644 index 000000000000..8245ecb9e250 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterMonitoringResponseInner.java @@ -0,0 +1,71 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Operations Management Suite (OMS) status response. + */ +public class ClusterMonitoringResponseInner { + /** + * The status of the Operations Management Suite (OMS) on the HDInsight + * cluster. + */ + @JsonProperty(value = "clusterMonitoringEnabled") + private Boolean clusterMonitoringEnabled; + + /** + * The workspace ID of the Operations Management Suite (OMS) on the + * HDInsight cluster. + */ + @JsonProperty(value = "workspaceId") + private String workspaceId; + + /** + * Get the status of the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @return the clusterMonitoringEnabled value + */ + public Boolean clusterMonitoringEnabled() { + return this.clusterMonitoringEnabled; + } + + /** + * Set the status of the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param clusterMonitoringEnabled the clusterMonitoringEnabled value to set + * @return the ClusterMonitoringResponseInner object itself. + */ + public ClusterMonitoringResponseInner withClusterMonitoringEnabled(Boolean clusterMonitoringEnabled) { + this.clusterMonitoringEnabled = clusterMonitoringEnabled; + return this; + } + + /** + * Get the workspace ID of the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @return the workspaceId value + */ + public String workspaceId() { + return this.workspaceId; + } + + /** + * Set the workspace ID of the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param workspaceId the workspaceId value to set + * @return the ClusterMonitoringResponseInner object itself. + */ + public ClusterMonitoringResponseInner withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClustersImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClustersImpl.java new file mode 100644 index 000000000000..22cb91adc291 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClustersImpl.java @@ -0,0 +1,151 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Clusters; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Cluster; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ExecuteScriptActionParameters; + +class ClustersImpl extends GroupableResourcesCoreImpl implements Clusters { + protected ClustersImpl(HDInsightManager manager) { + super(manager.inner().clusters(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + ClustersInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + ClustersInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + ClustersInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + ClustersInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Cluster call(ClusterInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + ClustersInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + ClustersInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Cluster call(ClusterInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public ClusterImpl define(String name) { + return wrapModel(name); + } + + @Override + public Completable executeScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + ClustersInner client = this.inner(); + return client.executeScriptActionsAsync(resourceGroupName, clusterName, parameters).toCompletable(); + } + + @Override + protected ClusterImpl wrapModel(ClusterInner inner) { + return new ClusterImpl(inner.name(), inner, manager()); + } + + @Override + protected ClusterImpl wrapModel(String name) { + return new ClusterImpl(name, new ClusterInner(), this.manager()); + } + + @Override + public Completable resizeAsync(String resourceGroupName, String clusterName) { + ClustersInner client = this.inner(); + return client.resizeAsync(resourceGroupName, clusterName).toCompletable(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClustersInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClustersInner.java new file mode 100644 index 000000000000..250355e95795 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClustersInner.java @@ -0,0 +1,1653 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterCreateParametersExtended; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterPatchParameters; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterResizeParameters; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ErrorResponseException; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ExecuteScriptActionParameters; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Clusters. + */ +public class ClustersInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private ClustersService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ClustersInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ClustersInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ClustersService.class); + this.client = client; + } + + /** + * The interface defining all the services for Clusters to be + * used by Retrofit to perform actually REST calls. + */ + interface ClustersService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Clusters create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}") + Observable> create(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterCreateParametersExtended parameters, @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.management.hdinsight.v2018_06_01_preview.Clusters beginCreate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}") + Observable> beginCreate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterCreateParametersExtended parameters, @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.management.hdinsight.v2018_06_01_preview.Clusters update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}") + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ClusterPatchParameters parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Clusters delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Clusters beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Clusters getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Clusters listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Clusters resize" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize") + Observable> resize(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("roleName") String roleName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ClusterResizeParameters parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Clusters beginResize" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize") + Observable> beginResize(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("roleName") String roleName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ClusterResizeParameters parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Clusters list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Clusters executeScriptActions" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions") + Observable> executeScriptActions(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ExecuteScriptActionParameters parameters, @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.management.hdinsight.v2018_06_01_preview.Clusters beginExecuteScriptActions" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions") + Observable> beginExecuteScriptActions(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ExecuteScriptActionParameters parameters, @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.management.hdinsight.v2018_06_01_preview.Clusters listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.hdinsight.v2018_06_01_preview.Clusters listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner create(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().last().body(); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.create(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner beginCreate(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body(); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable beginCreateAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginCreate(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner update(String resourceGroupName, String clusterName) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable updateAsync(String resourceGroupName, String clusterName) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Map tags = null; + ClusterPatchParameters parameters = new ClusterPatchParameters(); + parameters.withTags(null); + return service.update(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param tags The resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner update(String resourceGroupName, String clusterName, Map tags) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName, tags).toBlocking().single().body(); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param tags The resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String clusterName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, clusterName, tags), serviceCallback); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param tags The resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable updateAsync(String resourceGroupName, String clusterName, Map tags) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName, tags).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patch HDInsight cluster with the specified parameters. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param tags The resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String clusterName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(tags); + ClusterPatchParameters parameters = new ClusterPatchParameters(); + parameters.withTags(tags); + return service.update(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String clusterName) { + deleteWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body(); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String clusterName) { + return deleteWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String clusterName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String clusterName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterInner object if successful. + */ + public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Gets the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Gets the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String clusterName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterInner>() { + @Override + public ClusterInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ClusterInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void resize(String resourceGroupName, String clusterName) { + resizeWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body(); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture resizeAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(resizeWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable resizeAsync(String resourceGroupName, String clusterName) { + return resizeWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> resizeWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String roleName = "workernode"; + final Integer targetInstanceCount = null; + ClusterResizeParameters parameters = new ClusterResizeParameters(); + parameters.withTargetInstanceCount(null); + Observable> observable = service.resize(this.client.subscriptionId(), resourceGroupName, clusterName, roleName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void resize(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + resizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).toBlocking().last().body(); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture resizeAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(resizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount), serviceCallback); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable resizeAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + return resizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> resizeWithServiceResponseAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String roleName = "workernode"; + ClusterResizeParameters parameters = new ClusterResizeParameters(); + parameters.withTargetInstanceCount(targetInstanceCount); + Observable> observable = service.resize(this.client.subscriptionId(), resourceGroupName, clusterName, roleName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginResize(String resourceGroupName, String clusterName) { + beginResizeWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginResizeAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginResizeWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginResizeAsync(String resourceGroupName, String clusterName) { + return beginResizeWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginResizeWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String roleName = "workernode"; + final Integer targetInstanceCount = null; + ClusterResizeParameters parameters = new ClusterResizeParameters(); + parameters.withTargetInstanceCount(null); + return service.beginResize(this.client.subscriptionId(), resourceGroupName, clusterName, roleName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginResizeDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginResize(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + beginResizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).toBlocking().single().body(); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginResizeAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginResizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount), serviceCallback); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginResizeAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + return beginResizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Resizes the specified HDInsight cluster to the specified size. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param targetInstanceCount The target instance count for the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginResizeWithServiceResponseAsync(String resourceGroupName, String clusterName, Integer targetInstanceCount) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String roleName = "workernode"; + ClusterResizeParameters parameters = new ClusterResizeParameters(); + parameters.withTargetInstanceCount(targetInstanceCount); + return service.beginResize(this.client.subscriptionId(), resourceGroupName, clusterName, roleName, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginResizeDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginResizeDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ClusterInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void executeScriptActions(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + executeScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().last().body(); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture executeScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(executeScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable executeScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + return executeScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> executeScriptActionsWithServiceResponseAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.executeScriptActions(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginExecuteScriptActions(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + beginExecuteScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body(); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginExecuteScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginExecuteScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginExecuteScriptActionsAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + return beginExecuteScriptActionsWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginExecuteScriptActionsWithServiceResponseAsync(String resourceGroupName, String clusterName, ExecuteScriptActionParameters parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginExecuteScriptActions(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginExecuteScriptActionsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginExecuteScriptActionsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ClusterInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the HDInsight clusters in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ClusterInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ClusterInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the HDInsight clusters under the subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ConfigurationsImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ConfigurationsImpl.java new file mode 100644 index 000000000000..971b89020a94 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ConfigurationsImpl.java @@ -0,0 +1,43 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Configurations; +import rx.Completable; +import rx.functions.Func1; +import rx.Observable; +import java.util.Map; + +class ConfigurationsImpl extends WrapperImpl implements Configurations { + private final HDInsightManager manager; + + ConfigurationsImpl(HDInsightManager manager) { + super(manager.inner().configurations()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Completable updateAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + ConfigurationsInner client = this.inner(); + return client.updateAsync(resourceGroupName, clusterName, configurationName, parameters).toCompletable(); + } + + @Override + public Observable> getAsync(String resourceGroupName, String clusterName, String configurationName) { + ConfigurationsInner client = this.inner(); + return client.getAsync(resourceGroupName, clusterName, configurationName) + ;} + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ConfigurationsInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ConfigurationsInner.java new file mode 100644 index 000000000000..3a640c76aa9e --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ConfigurationsInner.java @@ -0,0 +1,350 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Configurations. + */ +public class ConfigurationsInner { + /** The Retrofit service to perform REST calls. */ + private ConfigurationsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ConfigurationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ConfigurationsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ConfigurationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Configurations to be + * used by Retrofit to perform actually REST calls. + */ + interface ConfigurationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Configurations update" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}") + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("configurationName") String configurationName, @Query("api-version") String apiVersion, @Body Map parameters, @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.management.hdinsight.v2018_06_01_preview.Configurations beginUpdate" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}") + Observable> beginUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("configurationName") String configurationName, @Query("api-version") String apiVersion, @Body Map parameters, @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.management.hdinsight.v2018_06_01_preview.Configurations get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("configurationName") String configurationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void update(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + updateWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters).toBlocking().last().body(); + } + + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters), serviceCallback); + } + + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + return updateWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (configurationName == null) { + throw new IllegalArgumentException("Parameter configurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.update(this.client.subscriptionId(), resourceGroupName, clusterName, configurationName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginUpdate(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + beginUpdateWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters).toBlocking().single().body(); + } + + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters), serviceCallback); + } + + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginUpdateAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + return beginUpdateWithServiceResponseAsync(resourceGroupName, clusterName, configurationName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Configures the configuration on the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginUpdateWithServiceResponseAsync(String resourceGroupName, String clusterName, String configurationName, Map parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (configurationName == null) { + throw new IllegalArgumentException("Parameter configurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginUpdate(this.client.subscriptionId(), resourceGroupName, clusterName, configurationName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the Map<String, String> object if successful. + */ + public Map get(String resourceGroupName, String clusterName, String configurationName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, configurationName).toBlocking().single().body(); + } + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getAsync(String resourceGroupName, String clusterName, String configurationName, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, clusterName, configurationName), serviceCallback); + } + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Map<String, String> object + */ + public Observable> getAsync(String resourceGroupName, String clusterName, String configurationName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, configurationName).map(new Func1>, Map>() { + @Override + public Map call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * The configuration object for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param configurationName The name of the cluster configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Map<String, String> object + */ + public Observable>> getWithServiceResponseAsync(String resourceGroupName, String clusterName, String configurationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (configurationName == null) { + throw new IllegalArgumentException("Parameter configurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, clusterName, configurationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionImpl.java new file mode 100644 index 000000000000..481b76829068 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionImpl.java @@ -0,0 +1,43 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Extension; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; + +class ExtensionImpl extends WrapperImpl implements Extension { + private final HDInsightManager manager; + private String resourceGroupName; + private String clusterName; + private String extensionName; + + ExtensionImpl(ExtensionInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + + + @Override + public String primaryKey() { + return this.inner().primaryKey(); + } + + @Override + public String workspaceId() { + return this.inner().workspaceId(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionInner.java new file mode 100644 index 000000000000..d8dd27791b89 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionInner.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Cluster monitoring extensions. + */ +public class ExtensionInner { + /** + * The workspace ID for the cluster monitoring extension. + */ + @JsonProperty(value = "workspaceId") + private String workspaceId; + + /** + * The certificate for the cluster monitoring extensions. + */ + @JsonProperty(value = "primaryKey") + private String primaryKey; + + /** + * Get the workspace ID for the cluster monitoring extension. + * + * @return the workspaceId value + */ + public String workspaceId() { + return this.workspaceId; + } + + /** + * Set the workspace ID for the cluster monitoring extension. + * + * @param workspaceId the workspaceId value to set + * @return the ExtensionInner object itself. + */ + public ExtensionInner withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + /** + * Get the certificate for the cluster monitoring extensions. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Set the certificate for the cluster monitoring extensions. + * + * @param primaryKey the primaryKey value to set + * @return the ExtensionInner object itself. + */ + public ExtensionInner withPrimaryKey(String primaryKey) { + this.primaryKey = primaryKey; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionsImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionsImpl.java new file mode 100644 index 000000000000..e4a1db3fe5ae --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionsImpl.java @@ -0,0 +1,85 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Extensions; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterMonitoringResponse; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Extension; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterMonitoringRequest; + +class ExtensionsImpl extends WrapperImpl implements Extensions { + private final HDInsightManager manager; + + ExtensionsImpl(HDInsightManager manager) { + super(manager.inner().extensions()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + private ExtensionImpl wrapModel(ExtensionInner inner) { + return new ExtensionImpl(inner, manager()); + } + + @Override + public Observable getMonitoringStatusAsync(String resourceGroupName, String clusterName) { + ExtensionsInner client = this.inner(); + return client.getMonitoringStatusAsync(resourceGroupName, clusterName) + .map(new Func1() { + @Override + public ClusterMonitoringResponse call(ClusterMonitoringResponseInner inner) { + return new ClusterMonitoringResponseImpl(inner, manager()); + } + }); + } + + @Override + public Completable disableMonitoringAsync(String resourceGroupName, String clusterName) { + ExtensionsInner client = this.inner(); + return client.disableMonitoringAsync(resourceGroupName, clusterName).toCompletable(); + } + + @Override + public Observable getAsync(String resourceGroupName, String clusterName, String extensionName) { + ExtensionsInner client = this.inner(); + return client.getAsync(resourceGroupName, clusterName, extensionName) + .map(new Func1() { + @Override + public Extension call(ExtensionInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String clusterName, String extensionName) { + ExtensionsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, clusterName, extensionName).toCompletable(); + } + + @Override + public Completable enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + ExtensionsInner client = this.inner(); + return client.enableMonitoringAsync(resourceGroupName, clusterName, parameters).toCompletable(); + } + + @Override + public Completable createAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + ExtensionsInner client = this.inner(); + return client.createAsync(resourceGroupName, clusterName, extensionName, parameters).toCompletable(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionsInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionsInner.java new file mode 100644 index 000000000000..c9f8ed736064 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ExtensionsInner.java @@ -0,0 +1,956 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ClusterMonitoringRequest; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Extensions. + */ +public class ExtensionsInner { + /** The Retrofit service to perform REST calls. */ + private ExtensionsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ExtensionsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ExtensionsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ExtensionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Extensions to be + * used by Retrofit to perform actually REST calls. + */ + interface ExtensionsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Extensions enableMonitoring" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring") + Observable> enableMonitoring(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterMonitoringRequest parameters, @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.management.hdinsight.v2018_06_01_preview.Extensions beginEnableMonitoring" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring") + Observable> beginEnableMonitoring(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterMonitoringRequest parameters, @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.management.hdinsight.v2018_06_01_preview.Extensions getMonitoringStatus" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring") + Observable> getMonitoringStatus(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Extensions disableMonitoring" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", method = "DELETE", hasBody = true) + Observable> disableMonitoring(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Extensions beginDisableMonitoring" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", method = "DELETE", hasBody = true) + Observable> beginDisableMonitoring(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Extensions create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}") + Observable> create(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("extensionName") String extensionName, @Query("api-version") String apiVersion, @Body ExtensionInner parameters, @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.management.hdinsight.v2018_06_01_preview.Extensions beginCreate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}") + Observable> beginCreate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("extensionName") String extensionName, @Query("api-version") String apiVersion, @Body ExtensionInner parameters, @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.management.hdinsight.v2018_06_01_preview.Extensions get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("extensionName") String extensionName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Extensions delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("extensionName") String extensionName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Extensions beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("extensionName") String extensionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void enableMonitoring(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + enableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().last().body(); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(enableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + return enableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> enableMonitoringWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.enableMonitoring(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginEnableMonitoring(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + beginEnableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body(); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginEnableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginEnableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginEnableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + return beginEnableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Enables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The Operations Management Suite (OMS) workspace parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginEnableMonitoringWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginEnableMonitoring(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginEnableMonitoringDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginEnableMonitoringDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ClusterMonitoringResponseInner object if successful. + */ + public ClusterMonitoringResponseInner getMonitoringStatus(String resourceGroupName, String clusterName) { + return getMonitoringStatusWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getMonitoringStatusAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getMonitoringStatusWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterMonitoringResponseInner object + */ + public Observable getMonitoringStatusAsync(String resourceGroupName, String clusterName) { + return getMonitoringStatusWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterMonitoringResponseInner>() { + @Override + public ClusterMonitoringResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ClusterMonitoringResponseInner object + */ + public Observable> getMonitoringStatusWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getMonitoringStatus(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getMonitoringStatusDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getMonitoringStatusDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void disableMonitoring(String resourceGroupName, String clusterName) { + disableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body(); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture disableMonitoringAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(disableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable disableMonitoringAsync(String resourceGroupName, String clusterName) { + return disableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> disableMonitoringWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.disableMonitoring(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDisableMonitoring(String resourceGroupName, String clusterName) { + beginDisableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDisableMonitoringAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDisableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDisableMonitoringAsync(String resourceGroupName, String clusterName) { + return beginDisableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Disables the Operations Management Suite (OMS) on the HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDisableMonitoringWithServiceResponseAsync(String resourceGroupName, String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDisableMonitoring(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDisableMonitoringDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDisableMonitoringDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void create(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + createWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters).toBlocking().last().body(); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters), serviceCallback); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + return createWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (extensionName == null) { + throw new IllegalArgumentException("Parameter extensionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.create(this.client.subscriptionId(), resourceGroupName, clusterName, extensionName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginCreate(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters).toBlocking().single().body(); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters), serviceCallback); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginCreateAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, clusterName, extensionName, parameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates an HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param parameters The cluster extensions create request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String clusterName, String extensionName, ExtensionInner parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (extensionName == null) { + throw new IllegalArgumentException("Parameter extensionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginCreate(this.client.subscriptionId(), resourceGroupName, clusterName, extensionName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ExtensionInner object if successful. + */ + public ExtensionInner get(String resourceGroupName, String clusterName, String extensionName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).toBlocking().single().body(); + } + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String clusterName, String extensionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, clusterName, extensionName), serviceCallback); + } + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ExtensionInner object + */ + public Observable getAsync(String resourceGroupName, String clusterName, String extensionName) { + return getWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).map(new Func1, ExtensionInner>() { + @Override + public ExtensionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the extension properties for the specified HDInsight cluster extension. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ExtensionInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String clusterName, String extensionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (extensionName == null) { + throw new IllegalArgumentException("Parameter extensionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, clusterName, extensionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String clusterName, String extensionName) { + deleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).toBlocking().last().body(); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, String extensionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName), serviceCallback); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String clusterName, String extensionName) { + return deleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String extensionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (extensionName == null) { + throw new IllegalArgumentException("Parameter extensionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, clusterName, extensionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String clusterName, String extensionName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).toBlocking().single().body(); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String clusterName, String extensionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName), serviceCallback); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String clusterName, String extensionName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName, extensionName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified extension for HDInsight cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param extensionName The name of the cluster extension. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String extensionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (extensionName == null) { + throw new IllegalArgumentException("Parameter extensionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, clusterName, extensionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/HDInsightManagementClientImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/HDInsightManagementClientImpl.java new file mode 100644 index 000000000000..969d8f76cf06 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/HDInsightManagementClientImpl.java @@ -0,0 +1,294 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the HDInsightManagementClientImpl class. + */ +public class HDInsightManagementClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */ + private String subscriptionId; + + /** + * Gets The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public HDInsightManagementClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** The HDInsight client API Version. */ + private String apiVersion; + + /** + * Gets The HDInsight client API Version. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** The preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets The preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets The preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public HDInsightManagementClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public HDInsightManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public HDInsightManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The ClustersInner object to access its operations. + */ + private ClustersInner clusters; + + /** + * Gets the ClustersInner object to access its operations. + * @return the ClustersInner object. + */ + public ClustersInner clusters() { + return this.clusters; + } + + /** + * The ApplicationsInner object to access its operations. + */ + private ApplicationsInner applications; + + /** + * Gets the ApplicationsInner object to access its operations. + * @return the ApplicationsInner object. + */ + public ApplicationsInner applications() { + return this.applications; + } + + /** + * The LocationsInner object to access its operations. + */ + private LocationsInner locations; + + /** + * Gets the LocationsInner object to access its operations. + * @return the LocationsInner object. + */ + public LocationsInner locations() { + return this.locations; + } + + /** + * The ConfigurationsInner object to access its operations. + */ + private ConfigurationsInner configurations; + + /** + * Gets the ConfigurationsInner object to access its operations. + * @return the ConfigurationsInner object. + */ + public ConfigurationsInner configurations() { + return this.configurations; + } + + /** + * The ExtensionsInner object to access its operations. + */ + private ExtensionsInner extensions; + + /** + * Gets the ExtensionsInner object to access its operations. + * @return the ExtensionsInner object. + */ + public ExtensionsInner extensions() { + return this.extensions; + } + + /** + * The ScriptActionsInner object to access its operations. + */ + private ScriptActionsInner scriptActions; + + /** + * Gets the ScriptActionsInner object to access its operations. + * @return the ScriptActionsInner object. + */ + public ScriptActionsInner scriptActions() { + return this.scriptActions; + } + + /** + * The ScriptExecutionHistorysInner object to access its operations. + */ + private ScriptExecutionHistorysInner scriptExecutionHistorys; + + /** + * Gets the ScriptExecutionHistorysInner object to access its operations. + * @return the ScriptExecutionHistorysInner object. + */ + public ScriptExecutionHistorysInner scriptExecutionHistorys() { + return this.scriptExecutionHistorys; + } + + /** + * The OperationsInner object to access its operations. + */ + private OperationsInner operations; + + /** + * Gets the OperationsInner object to access its operations. + * @return the OperationsInner object. + */ + public OperationsInner operations() { + return this.operations; + } + + /** + * Initializes an instance of HDInsightManagementClient client. + * + * @param credentials the management credentials for Azure + */ + public HDInsightManagementClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of HDInsightManagementClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public HDInsightManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of HDInsightManagementClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public HDInsightManagementClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2018-06-01-preview"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.clusters = new ClustersInner(restClient().retrofit(), this); + this.applications = new ApplicationsInner(restClient().retrofit(), this); + this.locations = new LocationsInner(restClient().retrofit(), this); + this.configurations = new ConfigurationsInner(restClient().retrofit(), this); + this.extensions = new ExtensionsInner(restClient().retrofit(), this); + this.scriptActions = new ScriptActionsInner(restClient().retrofit(), this); + this.scriptExecutionHistorys = new ScriptExecutionHistorysInner(restClient().retrofit(), this); + this.operations = new OperationsInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "HDInsightManagementClient", "2018-06-01-preview"); + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/HDInsightManager.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/HDInsightManager.java new file mode 100644 index 000000000000..ce22fb29a768 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/HDInsightManager.java @@ -0,0 +1,183 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Clusters; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Applications; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Locations; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Configurations; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Extensions; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ScriptActions; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ScriptExecutionHistorys; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Operations; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure HDInsight resource management. + */ +public final class HDInsightManager extends ManagerCore { + private Clusters clusters; + private Applications applications; + private Locations locations; + private Configurations configurations; + private Extensions extensions; + private ScriptActions scriptActions; + private ScriptExecutionHistorys scriptExecutionHistorys; + private Operations operations; + /** + * Get a Configurable instance that can be used to create HDInsightManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new HDInsightManager.ConfigurableImpl(); + } + /** + * Creates an instance of HDInsightManager that exposes HDInsight resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the HDInsightManager + */ + public static HDInsightManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new HDInsightManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of HDInsightManager that exposes HDInsight resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the HDInsightManager + */ + public static HDInsightManager authenticate(RestClient restClient, String subscriptionId) { + return new HDInsightManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of HDInsightManager that exposes HDInsight management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing HDInsight management API entry points that work across subscriptions + */ + HDInsightManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Clusters. + */ + public Clusters clusters() { + if (this.clusters == null) { + this.clusters = new ClustersImpl(this); + } + return this.clusters; + } + + /** + * @return Entry point to manage Applications. + */ + public Applications applications() { + if (this.applications == null) { + this.applications = new ApplicationsImpl(this); + } + return this.applications; + } + + /** + * @return Entry point to manage Locations. + */ + public Locations locations() { + if (this.locations == null) { + this.locations = new LocationsImpl(this); + } + return this.locations; + } + + /** + * @return Entry point to manage Configurations. + */ + public Configurations configurations() { + if (this.configurations == null) { + this.configurations = new ConfigurationsImpl(this); + } + return this.configurations; + } + + /** + * @return Entry point to manage Extensions. + */ + public Extensions extensions() { + if (this.extensions == null) { + this.extensions = new ExtensionsImpl(this); + } + return this.extensions; + } + + /** + * @return Entry point to manage ScriptActions. + */ + public ScriptActions scriptActions() { + if (this.scriptActions == null) { + this.scriptActions = new ScriptActionsImpl(this); + } + return this.scriptActions; + } + + /** + * @return Entry point to manage ScriptExecutionHistorys. + */ + public ScriptExecutionHistorys scriptExecutionHistorys() { + if (this.scriptExecutionHistorys == null) { + this.scriptExecutionHistorys = new ScriptExecutionHistorysImpl(this); + } + return this.scriptExecutionHistorys; + } + + /** + * @return Entry point to manage Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(this); + } + return this.operations; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public HDInsightManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return HDInsightManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private HDInsightManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new HDInsightManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/IdParsingUtils.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/IdParsingUtils.java new file mode 100644 index 000000000000..d50eda2932c1 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/IdParsingUtils.java @@ -0,0 +1,57 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; +import java.util.Arrays; +import java.util.Iterator; + +class IdParsingUtils { + public static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + public static String getValueFromIdByPosition(String id, int pos) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + int index = 0; + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (index == pos) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + index++; + } + return null; + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/LocationsImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/LocationsImpl.java new file mode 100644 index 000000000000..7dfe32719674 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/LocationsImpl.java @@ -0,0 +1,42 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Locations; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.UsagesListResult; + +class LocationsImpl extends WrapperImpl implements Locations { + private final HDInsightManager manager; + + LocationsImpl(HDInsightManager manager) { + super(manager.inner().locations()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Observable listUsagesAsync(String location) { + LocationsInner client = this.inner(); + return client.listUsagesAsync(location) + .map(new Func1() { + @Override + public UsagesListResult call(UsagesListResultInner inner) { + return new UsagesListResultImpl(inner, manager()); + } + }); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/LocationsInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/LocationsInner.java new file mode 100644 index 000000000000..f3ccae61412e --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/LocationsInner.java @@ -0,0 +1,139 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Locations. + */ +public class LocationsInner { + /** The Retrofit service to perform REST calls. */ + private LocationsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of LocationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public LocationsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(LocationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Locations to be + * used by Retrofit to perform actually REST calls. + */ + interface LocationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Locations listUsages" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/usages") + Observable> listUsages(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists the usages for the specified location. + * + * @param location The location to get capabilities for. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the UsagesListResultInner object if successful. + */ + public UsagesListResultInner listUsages(String location) { + return listUsagesWithServiceResponseAsync(location).toBlocking().single().body(); + } + + /** + * Lists the usages for the specified location. + * + * @param location The location to get capabilities for. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listUsagesAsync(String location, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listUsagesWithServiceResponseAsync(location), serviceCallback); + } + + /** + * Lists the usages for the specified location. + * + * @param location The location to get capabilities for. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the UsagesListResultInner object + */ + public Observable listUsagesAsync(String location) { + return listUsagesWithServiceResponseAsync(location).map(new Func1, UsagesListResultInner>() { + @Override + public UsagesListResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the usages for the specified location. + * + * @param location The location to get capabilities for. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the UsagesListResultInner object + */ + public Observable> listUsagesWithServiceResponseAsync(String location) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (location == null) { + throw new IllegalArgumentException("Parameter location is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listUsages(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listUsagesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listUsagesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationImpl.java new file mode 100644 index 000000000000..1a26cab65fea --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationImpl.java @@ -0,0 +1,37 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Operation; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.OperationDisplay; + +class OperationImpl extends WrapperImpl implements Operation { + private final HDInsightManager manager; + OperationImpl(OperationInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public OperationDisplay display() { + return this.inner().display(); + } + + @Override + public String name() { + return this.inner().name(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationInner.java new file mode 100644 index 000000000000..1baadaf05877 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationInner.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.OperationDisplay; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HDInsight REST API operation. + */ +public class OperationInner { + /** + * The operation name: {provider}/{resource}/{operation}. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The object that represents the operation. + */ + @JsonProperty(value = "display") + private OperationDisplay display; + + /** + * Get the operation name: {provider}/{resource}/{operation}. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the operation name: {provider}/{resource}/{operation}. + * + * @param name the name value to set + * @return the OperationInner object itself. + */ + public OperationInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the object that represents the operation. + * + * @return the display value + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Set the object that represents the operation. + * + * @param display the display value to set + * @return the OperationInner object itself. + */ + public OperationInner withDisplay(OperationDisplay display) { + this.display = display; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationsImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationsImpl.java new file mode 100644 index 000000000000..721dcb81d25f --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationsImpl.java @@ -0,0 +1,49 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Operations; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Operation; + +class OperationsImpl extends WrapperImpl implements Operations { + private final HDInsightManager manager; + + OperationsImpl(HDInsightManager manager) { + super(manager.inner().operations()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Observable listAsync() { + OperationsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Operation call(OperationInner inner) { + return new OperationImpl(inner, manager()); + } + }); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationsInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationsInner.java new file mode 100644 index 000000000000..35baf46abc0f --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/OperationsInner.java @@ -0,0 +1,283 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Operations. + */ +public class OperationsInner { + /** The Retrofit service to perform REST calls. */ + private OperationsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of OperationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public OperationsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(OperationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Operations to be + * used by Retrofit to perform actually REST calls. + */ + interface OperationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Operations list" }) + @GET("providers/Microsoft.HDInsight/operations") + Observable> list(@Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.Operations listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<OperationInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<OperationInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the available HDInsight REST API operations. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/PageImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/PageImpl.java new file mode 100644 index 000000000000..7e193ceda3eb --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/PageImpl.java @@ -0,0 +1,75 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("nextLink") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/RuntimeScriptActionDetailImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/RuntimeScriptActionDetailImpl.java new file mode 100644 index 000000000000..8b1a15732022 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/RuntimeScriptActionDetailImpl.java @@ -0,0 +1,92 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.RuntimeScriptActionDetail; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ScriptActionExecutionSummary; + +class RuntimeScriptActionDetailImpl extends WrapperImpl implements RuntimeScriptActionDetail { + private final HDInsightManager manager; + + RuntimeScriptActionDetailImpl(RuntimeScriptActionDetailInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + + + @Override + public String applicationName() { + return this.inner().applicationName(); + } + + @Override + public String debugInformation() { + return this.inner().debugInformation(); + } + + @Override + public String endTime() { + return this.inner().endTime(); + } + + @Override + public List executionSummary() { + return this.inner().executionSummary(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String operation() { + return this.inner().operation(); + } + + @Override + public String parameters() { + return this.inner().parameters(); + } + + @Override + public List roles() { + return this.inner().roles(); + } + + @Override + public Long scriptExecutionId() { + return this.inner().scriptExecutionId(); + } + + @Override + public String startTime() { + return this.inner().startTime(); + } + + @Override + public String status() { + return this.inner().status(); + } + + @Override + public String uri() { + return this.inner().uri(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/RuntimeScriptActionDetailInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/RuntimeScriptActionDetailInner.java new file mode 100644 index 000000000000..c66040876e6a --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/RuntimeScriptActionDetailInner.java @@ -0,0 +1,125 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ScriptActionExecutionSummary; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.RuntimeScriptAction; + +/** + * The execution details of a script action. + */ +public class RuntimeScriptActionDetailInner extends RuntimeScriptAction { + /** + * The execution id of the script action. + */ + @JsonProperty(value = "scriptExecutionId", access = JsonProperty.Access.WRITE_ONLY) + private Long scriptExecutionId; + + /** + * The start time of script action execution. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private String startTime; + + /** + * The end time of script action execution. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private String endTime; + + /** + * The current execution status of the script action. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private String status; + + /** + * The reason why the script action was executed. + */ + @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) + private String operation; + + /** + * The summary of script action execution result. + */ + @JsonProperty(value = "executionSummary", access = JsonProperty.Access.WRITE_ONLY) + private List executionSummary; + + /** + * The script action execution debug information. + */ + @JsonProperty(value = "debugInformation", access = JsonProperty.Access.WRITE_ONLY) + private String debugInformation; + + /** + * Get the execution id of the script action. + * + * @return the scriptExecutionId value + */ + public Long scriptExecutionId() { + return this.scriptExecutionId; + } + + /** + * Get the start time of script action execution. + * + * @return the startTime value + */ + public String startTime() { + return this.startTime; + } + + /** + * Get the end time of script action execution. + * + * @return the endTime value + */ + public String endTime() { + return this.endTime; + } + + /** + * Get the current execution status of the script action. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the reason why the script action was executed. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + + /** + * Get the summary of script action execution result. + * + * @return the executionSummary value + */ + public List executionSummary() { + return this.executionSummary; + } + + /** + * Get the script action execution debug information. + * + * @return the debugInformation value + */ + public String debugInformation() { + return this.debugInformation; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionInner.java new file mode 100644 index 000000000000..6ea155237e2e --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionInner.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes a script action on role on the cluster. + */ +public class ScriptActionInner { + /** + * The name of the script action. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The URI to the script. + */ + @JsonProperty(value = "uri", required = true) + private String uri; + + /** + * The parameters for the script provided. + */ + @JsonProperty(value = "parameters", required = true) + private String parameters; + + /** + * Get the name of the script action. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the script action. + * + * @param name the name value to set + * @return the ScriptActionInner object itself. + */ + public ScriptActionInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the URI to the script. + * + * @return the uri value + */ + public String uri() { + return this.uri; + } + + /** + * Set the URI to the script. + * + * @param uri the uri value to set + * @return the ScriptActionInner object itself. + */ + public ScriptActionInner withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the parameters for the script provided. + * + * @return the parameters value + */ + public String parameters() { + return this.parameters; + } + + /** + * Set the parameters for the script provided. + * + * @param parameters the parameters value to set + * @return the ScriptActionInner object itself. + */ + public ScriptActionInner withParameters(String parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionsImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionsImpl.java new file mode 100644 index 000000000000..f5225ef78a4c --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionsImpl.java @@ -0,0 +1,72 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ScriptActions; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.RuntimeScriptActionDetail; + +class ScriptActionsImpl extends WrapperImpl implements ScriptActions { + private final HDInsightManager manager; + + ScriptActionsImpl(HDInsightManager manager) { + super(manager.inner().scriptActions()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + private RuntimeScriptActionDetailImpl wrapModel(RuntimeScriptActionDetailInner inner) { + return new RuntimeScriptActionDetailImpl(inner, manager()); + } + + @Override + public Observable listByClusterAsync(final String resourceGroupName, final String clusterName) { + ScriptActionsInner client = this.inner(); + return client.listByClusterAsync(resourceGroupName, clusterName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public RuntimeScriptActionDetail call(RuntimeScriptActionDetailInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String clusterName, String scriptName) { + ScriptActionsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, clusterName, scriptName).toCompletable(); + } + + @Override + public Observable getExecutionDetailAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + ScriptActionsInner client = this.inner(); + return client.getExecutionDetailAsync(resourceGroupName, clusterName, scriptExecutionId) + .map(new Func1() { + @Override + public RuntimeScriptActionDetail call(RuntimeScriptActionDetailInner inner) { + return new RuntimeScriptActionDetailImpl(inner, manager()); + } + }); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionsInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionsInner.java new file mode 100644 index 000000000000..aa21d81533dc --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionsInner.java @@ -0,0 +1,498 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in ScriptActions. + */ +public class ScriptActionsInner { + /** The Retrofit service to perform REST calls. */ + private ScriptActionsService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ScriptActionsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ScriptActionsInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ScriptActionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for ScriptActions to be + * used by Retrofit to perform actually REST calls. + */ + interface ScriptActionsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ScriptActions delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("scriptName") String scriptName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.ScriptActions listByCluster" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions") + Observable> listByCluster(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.ScriptActions getExecutionDetail" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}") + Observable> getExecutionDetail(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("scriptExecutionId") String scriptExecutionId, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.ScriptActions listByClusterNext" }) + @GET + Observable> listByClusterNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String clusterName, String scriptName) { + deleteWithServiceResponseAsync(resourceGroupName, clusterName, scriptName).toBlocking().single().body(); + } + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, String scriptName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName, scriptName), serviceCallback); + } + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String clusterName, String scriptName) { + return deleteWithServiceResponseAsync(resourceGroupName, clusterName, scriptName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a specified persisted script action of the cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptName The name of the script. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName, String scriptName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (scriptName == null) { + throw new IllegalArgumentException("Parameter scriptName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, clusterName, scriptName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RuntimeScriptActionDetailInner> object if successful. + */ + public PagedList listByCluster(final String resourceGroupName, final String clusterName) { + ServiceResponse> response = listByClusterSinglePageAsync(resourceGroupName, clusterName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByClusterAsync(final String resourceGroupName, final String clusterName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByClusterSinglePageAsync(resourceGroupName, clusterName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable> listByClusterAsync(final String resourceGroupName, final String clusterName) { + return listByClusterWithServiceResponseAsync(resourceGroupName, clusterName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable>> listByClusterWithServiceResponseAsync(final String resourceGroupName, final String clusterName) { + return listByClusterSinglePageAsync(resourceGroupName, clusterName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByClusterNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RuntimeScriptActionDetailInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByClusterSinglePageAsync(final String resourceGroupName, final String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByCluster(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByClusterDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByClusterDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RuntimeScriptActionDetailInner object if successful. + */ + public RuntimeScriptActionDetailInner getExecutionDetail(String resourceGroupName, String clusterName, String scriptExecutionId) { + return getExecutionDetailWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).toBlocking().single().body(); + } + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getExecutionDetailAsync(String resourceGroupName, String clusterName, String scriptExecutionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getExecutionDetailWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId), serviceCallback); + } + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RuntimeScriptActionDetailInner object + */ + public Observable getExecutionDetailAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + return getExecutionDetailWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).map(new Func1, RuntimeScriptActionDetailInner>() { + @Override + public RuntimeScriptActionDetailInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the script execution detail for the given script execution ID. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RuntimeScriptActionDetailInner object + */ + public Observable> getExecutionDetailWithServiceResponseAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (scriptExecutionId == null) { + throw new IllegalArgumentException("Parameter scriptExecutionId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getExecutionDetail(this.client.subscriptionId(), resourceGroupName, clusterName, scriptExecutionId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getExecutionDetailDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getExecutionDetailDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RuntimeScriptActionDetailInner> object if successful. + */ + public PagedList listByClusterNext(final String nextPageLink) { + ServiceResponse> response = listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByClusterNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByClusterNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable> listByClusterNextAsync(final String nextPageLink) { + return listByClusterNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable>> listByClusterNextWithServiceResponseAsync(final String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByClusterNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the persisted script actions for the specified cluster. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RuntimeScriptActionDetailInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByClusterNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByClusterNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByClusterNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByClusterNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptExecutionHistorysImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptExecutionHistorysImpl.java new file mode 100644 index 000000000000..083e2614c281 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptExecutionHistorysImpl.java @@ -0,0 +1,56 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ScriptExecutionHistorys; +import rx.Completable; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.RuntimeScriptActionDetail; + +class ScriptExecutionHistorysImpl extends WrapperImpl implements ScriptExecutionHistorys { + private final HDInsightManager manager; + + ScriptExecutionHistorysImpl(HDInsightManager manager) { + super(manager.inner().scriptExecutionHistorys()); + this.manager = manager; + } + + public HDInsightManager manager() { + return this.manager; + } + + @Override + public Observable listByClusterAsync(final String resourceGroupName, final String clusterName) { + ScriptExecutionHistorysInner client = this.inner(); + return client.listByClusterAsync(resourceGroupName, clusterName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public RuntimeScriptActionDetail call(RuntimeScriptActionDetailInner inner) { + return new RuntimeScriptActionDetailImpl(inner, manager()); + } + }); + } + + @Override + public Completable promoteAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + ScriptExecutionHistorysInner client = this.inner(); + return client.promoteAsync(resourceGroupName, clusterName, scriptExecutionId).toCompletable(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptExecutionHistorysInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptExecutionHistorysInner.java new file mode 100644 index 000000000000..3f1f93b7e3d7 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptExecutionHistorysInner.java @@ -0,0 +1,401 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in ScriptExecutionHistorys. + */ +public class ScriptExecutionHistorysInner { + /** The Retrofit service to perform REST calls. */ + private ScriptExecutionHistorysService service; + /** The service client containing this operation class. */ + private HDInsightManagementClientImpl client; + + /** + * Initializes an instance of ScriptExecutionHistorysInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ScriptExecutionHistorysInner(Retrofit retrofit, HDInsightManagementClientImpl client) { + this.service = retrofit.create(ScriptExecutionHistorysService.class); + this.client = client; + } + + /** + * The interface defining all the services for ScriptExecutionHistorys to be + * used by Retrofit to perform actually REST calls. + */ + interface ScriptExecutionHistorysService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.hdinsight.v2018_06_01_preview.ScriptExecutionHistorys listByCluster" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory") + Observable> listByCluster(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.ScriptExecutionHistorys promote" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}/promote") + Observable> promote(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("scriptExecutionId") String scriptExecutionId, @Query("api-version") String apiVersion, @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.management.hdinsight.v2018_06_01_preview.ScriptExecutionHistorys listByClusterNext" }) + @GET + Observable> listByClusterNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RuntimeScriptActionDetailInner> object if successful. + */ + public PagedList listByCluster(final String resourceGroupName, final String clusterName) { + ServiceResponse> response = listByClusterSinglePageAsync(resourceGroupName, clusterName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByClusterAsync(final String resourceGroupName, final String clusterName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByClusterSinglePageAsync(resourceGroupName, clusterName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable> listByClusterAsync(final String resourceGroupName, final String clusterName) { + return listByClusterWithServiceResponseAsync(resourceGroupName, clusterName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable>> listByClusterWithServiceResponseAsync(final String resourceGroupName, final String clusterName) { + return listByClusterSinglePageAsync(resourceGroupName, clusterName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByClusterNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RuntimeScriptActionDetailInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByClusterSinglePageAsync(final String resourceGroupName, final String clusterName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByCluster(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByClusterDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByClusterDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void promote(String resourceGroupName, String clusterName, String scriptExecutionId) { + promoteWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).toBlocking().single().body(); + } + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture promoteAsync(String resourceGroupName, String clusterName, String scriptExecutionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(promoteWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId), serviceCallback); + } + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable promoteAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + return promoteWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Promotes the specified ad-hoc script execution to a persisted script. + * + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param scriptExecutionId The script execution Id + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> promoteWithServiceResponseAsync(String resourceGroupName, String clusterName, String scriptExecutionId) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } + if (scriptExecutionId == null) { + throw new IllegalArgumentException("Parameter scriptExecutionId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.promote(this.client.subscriptionId(), resourceGroupName, clusterName, scriptExecutionId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = promoteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse promoteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RuntimeScriptActionDetailInner> object if successful. + */ + public PagedList listByClusterNext(final String nextPageLink) { + ServiceResponse> response = listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByClusterNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByClusterNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable> listByClusterNextAsync(final String nextPageLink) { + return listByClusterNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RuntimeScriptActionDetailInner> object + */ + public Observable>> listByClusterNextWithServiceResponseAsync(final String nextPageLink) { + return listByClusterNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByClusterNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all scripts' execution history for the specified cluster. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RuntimeScriptActionDetailInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByClusterNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByClusterNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByClusterNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByClusterNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/UsagesListResultImpl.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/UsagesListResultImpl.java new file mode 100644 index 000000000000..e00aab78fef8 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/UsagesListResultImpl.java @@ -0,0 +1,33 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.UsagesListResult; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Usage; + +class UsagesListResultImpl extends WrapperImpl implements UsagesListResult { + private final HDInsightManager manager; + UsagesListResultImpl(UsagesListResultInner inner, HDInsightManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public HDInsightManager manager() { + return this.manager; + } + + @Override + public List value() { + return this.inner().value(); + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/UsagesListResultInner.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/UsagesListResultInner.java new file mode 100644 index 000000000000..19ec943ff35b --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/UsagesListResultInner.java @@ -0,0 +1,45 @@ +/** + * 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.management.hdinsight.v2018_06_01_preview.implementation; + +import java.util.List; +import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.Usage; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The response for the operation to get regional usages for a subscription. + */ +public class UsagesListResultInner { + /** + * The list of usages. + */ + @JsonProperty(value = "value") + private List value; + + /** + * Get the list of usages. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set the list of usages. + * + * @param value the value value to set + * @return the UsagesListResultInner object itself. + */ + public UsagesListResultInner withValue(List value) { + this.value = value; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/package-info.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/package-info.java new file mode 100644 index 000000000000..4cf8620203eb --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for HDInsightManagementClient. + * HDInsight Management Client. + */ +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/package-info.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/package-info.java new file mode 100644 index 000000000000..47078ef3fd98 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for HDInsightManagementClient. + * HDInsight Management Client. + */ +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/pom.xml b/iotcentral/resource-manager/v2017_07_01_privatepreview/pom.xml index 6854016061bb..43420fda2817 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/pom.xml +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.iotcentral.v2017_07_01_privatepreview - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-iotcentral - 1.0.0-beta - jar - Microsoft Azure SDK for IoTCentral Management - This package contains Microsoft IoTCentral Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.iotcentral.v2017_07_01_privatepreview + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-iotcentral + 1.0.0-beta + jar + Microsoft Azure SDK for IoTCentral Management + This package contains Microsoft IoTCentral Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/App.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/App.java index 65071067ea59..f14a7be9ced6 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/App.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/App.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.implementation.IoTCentralManager; import com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.implementation.AppInner; diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppPatch.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppPatch.java index 32d38f787949..1cbb6017addf 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppPatch.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppPatch.java @@ -51,7 +51,7 @@ public class AppPatch { private String template; /** - * Get the tags value. + * Get instance tags. * * @return the tags value */ @@ -60,7 +60,7 @@ public Map tags() { } /** - * Set the tags value. + * Set instance tags. * * @param tags the tags value to set * @return the AppPatch object itself. @@ -71,7 +71,7 @@ public AppPatch withTags(Map tags) { } /** - * Get the applicationId value. + * Get the ID of the application. * * @return the applicationId value */ @@ -80,7 +80,7 @@ public String applicationId() { } /** - * Get the displayName value. + * Get the display name of the application. * * @return the displayName value */ @@ -89,7 +89,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set the display name of the application. * * @param displayName the displayName value to set * @return the AppPatch object itself. @@ -100,7 +100,7 @@ public AppPatch withDisplayName(String displayName) { } /** - * Get the subdomain value. + * Get the subdomain of the application. * * @return the subdomain value */ @@ -109,7 +109,7 @@ public String subdomain() { } /** - * Set the subdomain value. + * Set the subdomain of the application. * * @param subdomain the subdomain value to set * @return the AppPatch object itself. @@ -120,7 +120,7 @@ public AppPatch withSubdomain(String subdomain) { } /** - * Get the template value. + * Get the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch. * * @return the template value */ @@ -129,7 +129,7 @@ public String template() { } /** - * Set the template value. + * Set the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch. * * @param template the template value to set * @return the AppPatch object itself. diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppSkuInfo.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppSkuInfo.java index b679a099905d..cd642442d499 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppSkuInfo.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppSkuInfo.java @@ -21,7 +21,7 @@ public class AppSkuInfo { private AppSku name; /** - * Get the name value. + * Get the name of the SKU. Possible values include: 'F1', 'S1'. * * @return the name value */ @@ -30,7 +30,7 @@ public AppSku name() { } /** - * Set the name value. + * Set the name of the SKU. Possible values include: 'F1', 'S1'. * * @param name the name value to set * @return the AppSkuInfo object itself. diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/ErrorDetails.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/ErrorDetails.java index 158a69f0ef77..586ea88344d3 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/ErrorDetails.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/ErrorDetails.java @@ -33,7 +33,7 @@ public class ErrorDetails { private String target; /** - * Get the code value. + * Get the error code. * * @return the code value */ @@ -42,7 +42,7 @@ public String code() { } /** - * Get the message value. + * Get the error message. * * @return the message value */ @@ -51,7 +51,7 @@ public String message() { } /** - * Get the target value. + * Get the target of the particular error. * * @return the target value */ diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationDisplay.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationDisplay.java index 96fd6f299bcd..a4e6dde3fa3d 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationDisplay.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationDisplay.java @@ -39,7 +39,7 @@ public class OperationDisplay { private String description; /** - * Get the provider value. + * Get service provider: Microsoft IoT Central. * * @return the provider value */ @@ -48,7 +48,7 @@ public String provider() { } /** - * Get the resource value. + * Get resource Type: IoT Central. * * @return the resource value */ @@ -57,7 +57,7 @@ public String resource() { } /** - * Get the operation value. + * Get name of the operation. * * @return the operation value */ @@ -66,7 +66,7 @@ public String operation() { } /** - * Get the description value. + * Get friendly description for the operation,. * * @return the description value */ diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationInputs.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationInputs.java index fec9e89c642b..7f92e34667b3 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationInputs.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationInputs.java @@ -21,7 +21,7 @@ public class OperationInputs { private String name; /** - * Get the name value. + * Get the name of the IoT Central application instance to check. * * @return the name value */ @@ -30,7 +30,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the IoT Central application instance to check. * * @param name the name value to set * @return the OperationInputs object itself. diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppInner.java index 535766989b11..056a8d662962 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppInner.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppInner.java @@ -52,7 +52,7 @@ public class AppInner extends Resource { private AppSkuInfo sku; /** - * Get the applicationId value. + * Get the ID of the application. * * @return the applicationId value */ @@ -61,7 +61,7 @@ public String applicationId() { } /** - * Get the displayName value. + * Get the display name of the application. * * @return the displayName value */ @@ -70,7 +70,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set the display name of the application. * * @param displayName the displayName value to set * @return the AppInner object itself. @@ -81,7 +81,7 @@ public AppInner withDisplayName(String displayName) { } /** - * Get the subdomain value. + * Get the subdomain of the application. * * @return the subdomain value */ @@ -90,7 +90,7 @@ public String subdomain() { } /** - * Set the subdomain value. + * Set the subdomain of the application. * * @param subdomain the subdomain value to set * @return the AppInner object itself. @@ -101,7 +101,7 @@ public AppInner withSubdomain(String subdomain) { } /** - * Get the template value. + * Get the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch. * * @return the template value */ @@ -110,7 +110,7 @@ public String template() { } /** - * Set the template value. + * Set the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch. * * @param template the template value to set * @return the AppInner object itself. @@ -121,7 +121,7 @@ public AppInner withTemplate(String template) { } /** - * Get the sku value. + * Get a valid instance SKU. * * @return the sku value */ @@ -130,7 +130,7 @@ public AppSkuInfo sku() { } /** - * Set the sku value. + * Set a valid instance SKU. * * @param sku the sku value to set * @return the AppInner object itself. diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppNameAvailabilityInfoInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppNameAvailabilityInfoInner.java index 37072b7f3003..5631971f918b 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppNameAvailabilityInfoInner.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppNameAvailabilityInfoInner.java @@ -36,7 +36,7 @@ public class AppNameAvailabilityInfoInner { private String message; /** - * Get the nameAvailable value. + * Get the value which indicates whether the provided name is available. * * @return the nameAvailable value */ @@ -45,7 +45,7 @@ public Boolean nameAvailable() { } /** - * Get the reason value. + * Get the reason for unavailability. Possible values include: 'Invalid', 'AlreadyExists'. * * @return the reason value */ @@ -54,7 +54,7 @@ public AppNameUnavailabilityReason reason() { } /** - * Get the message value. + * Get the detailed reason message. * * @return the message value */ @@ -63,7 +63,7 @@ public String message() { } /** - * Set the message value. + * Set the detailed reason message. * * @param message the message value to set * @return the AppNameAvailabilityInfoInner object itself. diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsImpl.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsImpl.java index 3a9d1be9e392..b50c952c2eb2 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsImpl.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsImpl.java @@ -79,29 +79,10 @@ public PagedList listByResourceGroup(String resourceGroupName) { return this.wrapList(client.listByResourceGroup(resourceGroupName)); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - AppsInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { AppsInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { @@ -122,29 +103,10 @@ public PagedList list() { return this.wrapList(client.list()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - AppsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { AppsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java index d207c38c3ccd..2971d20d99fe 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java @@ -26,7 +26,6 @@ import com.microsoft.rest.Validator; import java.io.IOException; import java.util.List; -import java.util.UUID; import okhttp3.ResponseBody; import retrofit2.http.Body; import retrofit2.http.GET; @@ -71,43 +70,43 @@ public AppsInner(Retrofit retrofit, IotCentralClientImpl client) { interface AppsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") - Observable> getByResourceGroup(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @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.management.iotcentral.v2017_07_01_privatepreview.Apps createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") - Observable> createOrUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @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.management.iotcentral.v2017_07_01_privatepreview.Apps beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") - Observable> beginCreateOrUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @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.management.iotcentral.v2017_07_01_privatepreview.Apps update" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") - Observable> update(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @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.management.iotcentral.v2017_07_01_privatepreview.Apps beginUpdate" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") - Observable> beginUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @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.management.iotcentral.v2017_07_01_privatepreview.Apps delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}", method = "DELETE", hasBody = true) - Observable> delete(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @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.management.iotcentral.v2017_07_01_privatepreview.Apps beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}", method = "DELETE", hasBody = true) - Observable> beginDelete(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @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.management.iotcentral.v2017_07_01_privatepreview.Apps list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps") - Observable> list(@Path("subscriptionId") UUID subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.iotcentral.v2017_07_01_privatepreview.Apps listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps") - Observable> listByResourceGroup(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @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.management.iotcentral.v2017_07_01_privatepreview.Apps checkNameAvailability" }) @POST("subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/checkNameAvailability") - Observable> checkNameAvailability(@Path("subscriptionId") UUID subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body OperationInputs operationInputs, @Header("User-Agent") String userAgent); + Observable> checkNameAvailability(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body OperationInputs operationInputs, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps listNext" }) @GET @@ -181,6 +180,9 @@ public Observable> getByResourceGroupWithServiceRespon if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -268,6 +270,9 @@ public Observable> createOrUpdateWithServiceResponseAs if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } if (app == null) { throw new IllegalArgumentException("Parameter app is required and cannot be null."); } @@ -342,6 +347,9 @@ public Observable> beginCreateOrUpdateWithServiceRespo if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } if (app == null) { throw new IllegalArgumentException("Parameter app is required and cannot be null."); } @@ -435,6 +443,9 @@ public Observable> updateWithServiceResponseAsync(Stri if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } if (appPatch == null) { throw new IllegalArgumentException("Parameter appPatch is required and cannot be null."); } @@ -509,6 +520,9 @@ public Observable> beginUpdateWithServiceResponseAsync if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } if (appPatch == null) { throw new IllegalArgumentException("Parameter appPatch is required and cannot be null."); } @@ -596,6 +610,9 @@ public Observable> deleteWithServiceResponseAsync(String r if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -661,6 +678,9 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } return service.beginDelete(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -767,6 +787,9 @@ public Observable>> listSinglePageAsync() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -879,6 +902,9 @@ public Observable>> listByResourceGroupSinglePage if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -952,6 +978,9 @@ public Observable> checkNameAvaila if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IoTCentralManager.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IoTCentralManager.java index 4ea8f5607597..dda6245b0f5c 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IoTCentralManager.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IoTCentralManager.java @@ -21,8 +21,6 @@ import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; import com.microsoft.azure.arm.resources.implementation.ManagerCore; -import java.util.UUID; - /** * Entry point to Azure IoTCentral resource management. */ @@ -108,6 +106,6 @@ private IoTCentralManager(RestClient restClient, String subscriptionId) { super( restClient, subscriptionId, - new IotCentralClientImpl(restClient).withSubscriptionId(UUID.fromString(subscriptionId))); + new IotCentralClientImpl(restClient).withSubscriptionId(subscriptionId)); } } diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IotCentralClientImpl.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IotCentralClientImpl.java index 59dc4c957454..1abd0722bf63 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IotCentralClientImpl.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IotCentralClientImpl.java @@ -13,8 +13,6 @@ import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; -import java.util.UUID; - /** * Initializes a new instance of the IotCentralClientImpl class. */ @@ -31,14 +29,14 @@ public AzureClient getAzureClient() { } /** The subscription identifier. */ - private UUID subscriptionId; + private String subscriptionId; /** * Gets The subscription identifier. * * @return the subscriptionId value. */ - public UUID subscriptionId() { + public String subscriptionId() { return this.subscriptionId; } @@ -48,7 +46,7 @@ public UUID subscriptionId() { * @param subscriptionId the subscriptionId value. * @return the service client itself */ - public IotCentralClientImpl withSubscriptionId(UUID subscriptionId) { + public IotCentralClientImpl withSubscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; return this; } diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationInner.java index 92efc873a067..65faca8889ea 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationInner.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationInner.java @@ -28,7 +28,7 @@ public class OperationInner { private OperationDisplay display; /** - * Get the name value. + * Get operation name: {provider}/{resource}/{read | write | action | delete}. * * @return the name value */ @@ -37,7 +37,7 @@ public String name() { } /** - * Get the display value. + * Get the object that represents the operation. * * @return the display value */ @@ -46,7 +46,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set the object that represents the operation. * * @param display the display value to set * @return the OperationInner object itself. diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsImpl.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsImpl.java index 726aee0a5a29..ffad600a9aa1 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsImpl.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsImpl.java @@ -28,41 +28,22 @@ public IoTCentralManager manager() { return this.manager; } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - OperationsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { OperationsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); } - }); + }); } } diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsInner.java index 7fb4bc3e6baf..307ff280aae2 100644 --- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsInner.java +++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsInner.java @@ -145,6 +145,9 @@ public Observable>> call(ServiceResponse>> listSinglePageAsync() { + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -159,7 +162,7 @@ public Observable>> call(Response> listDelegate(Response response) throws ErrorDetailsException, IOException { + private ServiceResponse> listDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorDetailsException.class) diff --git a/iotcentral/resource-manager/v2018_09_01/pom.xml b/iotcentral/resource-manager/v2018_09_01/pom.xml new file mode 100644 index 000000000000..eeaf3750613a --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/pom.xml @@ -0,0 +1,133 @@ + + + 4.0.0 + com.microsoft.azure.iotcentral.v2018_09_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-iotcentral + 1.0.0-beta + jar + Microsoft Azure SDK for IoTCentral Management + This package contains Microsoft IoTCentral Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/App.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/App.java new file mode 100644 index 000000000000..f51ff4e27af1 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/App.java @@ -0,0 +1,163 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.IoTCentralManager; +import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.AppInner; + +/** + * Type representing App. + */ +public interface App extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the applicationId value. + */ + String applicationId(); + + /** + * @return the displayName value. + */ + String displayName(); + + /** + * @return the sku value. + */ + AppSkuInfo sku(); + + /** + * @return the subdomain value. + */ + String subdomain(); + + /** + * @return the template value. + */ + String template(); + + /** + * The entirety of the App definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithSku, DefinitionStages.WithCreate { + } + + /** + * Grouping of App definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a App definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the App definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the app definition allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + */ + WithCreate withSku(AppSkuInfo sku); + } + + /** + * The stage of the app update allowing to specify DisplayName. + */ + interface WithDisplayName { + /** + * Specifies displayName. + */ + WithCreate withDisplayName(String displayName); + } + + /** + * The stage of the app update allowing to specify Subdomain. + */ + interface WithSubdomain { + /** + * Specifies subdomain. + */ + WithCreate withSubdomain(String subdomain); + } + + /** + * The stage of the app update allowing to specify Template. + */ + interface WithTemplate { + /** + * Specifies template. + */ + WithCreate withTemplate(String template); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithDisplayName, DefinitionStages.WithSubdomain, DefinitionStages.WithTemplate { + } + } + /** + * The template for a App update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithDisplayName, UpdateStages.WithSubdomain, UpdateStages.WithTemplate { + } + + /** + * Grouping of App update stages. + */ + interface UpdateStages { + /** + * The stage of the app {0} allowing to specify DisplayName. + */ + interface WithDisplayName { + /** + * Specifies displayName. + */ + Update withDisplayName(String displayName); + } + + /** + * The stage of the app {0} allowing to specify Subdomain. + */ + interface WithSubdomain { + /** + * Specifies subdomain. + */ + Update withSubdomain(String subdomain); + } + + /** + * The stage of the app {0} allowing to specify Template. + */ + interface WithTemplate { + /** + * Specifies template. + */ + Update withTemplate(String template); + } + + } +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameAvailabilityInfo.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameAvailabilityInfo.java new file mode 100644 index 000000000000..d6cf9fec610a --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameAvailabilityInfo.java @@ -0,0 +1,35 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.IoTCentralManager; +import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.AppNameAvailabilityInfoInner; + +/** + * Type representing AppNameAvailabilityInfo. + */ +public interface AppNameAvailabilityInfo extends HasInner, HasManager { + /** + * @return the message value. + */ + String message(); + + /** + * @return the nameAvailable value. + */ + Boolean nameAvailable(); + + /** + * @return the reason value. + */ + AppNameUnavailabilityReason reason(); + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameUnavailabilityReason.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameUnavailabilityReason.java new file mode 100644 index 000000000000..01ab6c857a61 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameUnavailabilityReason.java @@ -0,0 +1,53 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AppNameUnavailabilityReason. + */ +public enum AppNameUnavailabilityReason { + /** Enum value Invalid. */ + INVALID("Invalid"), + + /** Enum value AlreadyExists. */ + ALREADY_EXISTS("AlreadyExists"); + + /** The actual serialized value for a AppNameUnavailabilityReason instance. */ + private String value; + + AppNameUnavailabilityReason(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AppNameUnavailabilityReason instance. + * + * @param value the serialized value to parse. + * @return the parsed AppNameUnavailabilityReason object, or null if unable to parse. + */ + @JsonCreator + public static AppNameUnavailabilityReason fromString(String value) { + AppNameUnavailabilityReason[] items = AppNameUnavailabilityReason.values(); + for (AppNameUnavailabilityReason item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppPatch.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppPatch.java new file mode 100644 index 000000000000..87cbc43fd52d --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppPatch.java @@ -0,0 +1,142 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * The description of the IoT Central application. + */ +@JsonFlatten +public class AppPatch { + /** + * Instance tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The ID of the application. + */ + @JsonProperty(value = "properties.applicationId", access = JsonProperty.Access.WRITE_ONLY) + private String applicationId; + + /** + * The display name of the application. + */ + @JsonProperty(value = "properties.displayName") + private String displayName; + + /** + * The subdomain of the application. + */ + @JsonProperty(value = "properties.subdomain") + private String subdomain; + + /** + * The ID of the application template, which is a blueprint that defines + * the characteristics and behaviors of an application. Optional; if not + * specified, defaults to a blank blueprint and allows the application to + * be defined from scratch. + */ + @JsonProperty(value = "properties.template") + private String template; + + /** + * Get instance tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set instance tags. + * + * @param tags the tags value to set + * @return the AppPatch object itself. + */ + public AppPatch withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the ID of the application. + * + * @return the applicationId value + */ + public String applicationId() { + return this.applicationId; + } + + /** + * Get the display name of the application. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the display name of the application. + * + * @param displayName the displayName value to set + * @return the AppPatch object itself. + */ + public AppPatch withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the subdomain of the application. + * + * @return the subdomain value + */ + public String subdomain() { + return this.subdomain; + } + + /** + * Set the subdomain of the application. + * + * @param subdomain the subdomain value to set + * @return the AppPatch object itself. + */ + public AppPatch withSubdomain(String subdomain) { + this.subdomain = subdomain; + return this; + } + + /** + * Get the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch. + * + * @return the template value + */ + public String template() { + return this.template; + } + + /** + * Set the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch. + * + * @param template the template value to set + * @return the AppPatch object itself. + */ + public AppPatch withTemplate(String template) { + this.template = template; + return this; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSku.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSku.java new file mode 100644 index 000000000000..7f2f66345bfb --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSku.java @@ -0,0 +1,41 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for AppSku. + */ +public final class AppSku extends ExpandableStringEnum { + /** Static value F1 for AppSku. */ + public static final AppSku F1 = fromString("F1"); + + /** Static value S1 for AppSku. */ + public static final AppSku S1 = fromString("S1"); + + /** + * Creates or finds a AppSku from its string representation. + * @param name a name to look for + * @return the corresponding AppSku + */ + @JsonCreator + public static AppSku fromString(String name) { + return fromString(name, AppSku.class); + } + + /** + * @return known AppSku values + */ + public static Collection values() { + return values(AppSku.class); + } +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSkuInfo.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSkuInfo.java new file mode 100644 index 000000000000..44c1c9815f70 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSkuInfo.java @@ -0,0 +1,43 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Information about the SKU of the IoT Central application. + */ +public class AppSkuInfo { + /** + * The name of the SKU. Possible values include: 'F1', 'S1'. + */ + @JsonProperty(value = "name", required = true) + private AppSku name; + + /** + * Get the name of the SKU. Possible values include: 'F1', 'S1'. + * + * @return the name value + */ + public AppSku name() { + return this.name; + } + + /** + * Set the name of the SKU. Possible values include: 'F1', 'S1'. + * + * @param name the name value to set + * @return the AppSkuInfo object itself. + */ + public AppSkuInfo withName(AppSku name) { + this.name = name; + return this; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Apps.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Apps.java new file mode 100644 index 000000000000..4b97c49f5b0f --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Apps.java @@ -0,0 +1,34 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.AppsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Apps. + */ +public interface Apps extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Check if an IoT Central application name is available. + * + * @param name The name of the IoT Central application instance to check. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkNameAvailabilityAsync(String name); + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetails.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetails.java new file mode 100644 index 000000000000..1b0cc3bc4650 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetails.java @@ -0,0 +1,62 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error details. + */ +public class ErrorDetails { + /** + * The error code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /** + * The error message. + */ + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) + private String message; + + /** + * The target of the particular error. + */ + @JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY) + private String target; + + /** + * Get the error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Get the error message. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Get the target of the particular error. + * + * @return the target value + */ + public String target() { + return this.target; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetailsException.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetailsException.java new file mode 100644 index 000000000000..d6d9c28f291a --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetailsException.java @@ -0,0 +1,44 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ErrorDetails information. + */ +public class ErrorDetailsException extends RestException { + /** + * Initializes a new instance of the ErrorDetailsException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorDetailsException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorDetailsException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorDetailsException(final String message, final Response response, final ErrorDetails body) { + super(message, response, body); + } + + @Override + public ErrorDetails body() { + return (ErrorDetails) super.body(); + } +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operation.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operation.java new file mode 100644 index 000000000000..e21f06c57f6b --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operation.java @@ -0,0 +1,30 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.IoTCentralManager; +import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.OperationInner; + +/** + * Type representing Operation. + */ +public interface Operation extends HasInner, HasManager { + /** + * @return the display value. + */ + OperationDisplay display(); + + /** + * @return the name value. + */ + String name(); + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationDisplay.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationDisplay.java new file mode 100644 index 000000000000..a6dea68ca685 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationDisplay.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. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.iotcentral.v2018_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The object that represents the operation. + */ +public class OperationDisplay { + /** + * Service provider: Microsoft IoT Central. + */ + @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) + private String provider; + + /** + * Resource Type: IoT Central. + */ + @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) + private String resource; + + /** + * Name of the operation. + */ + @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) + private String operation; + + /** + * Friendly description for the operation,. + */ + @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) + private String description; + + /** + * Get service provider: Microsoft IoT Central. + * + * @return the provider value + */ + public String provider() { + return this.provider; + } + + /** + * Get resource Type: IoT Central. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Get name of the operation. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + + /** + * Get friendly description for the operation,. + * + * @return the description value + */ + public String description() { + return this.description; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationInputs.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationInputs.java new file mode 100644 index 000000000000..19aeb03c1131 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationInputs.java @@ -0,0 +1,43 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Input values. + */ +public class OperationInputs { + /** + * The name of the IoT Central application instance to check. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * Get the name of the IoT Central application instance to check. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the IoT Central application instance to check. + * + * @param name the name value to set + * @return the OperationInputs object itself. + */ + public OperationInputs withName(String name) { + this.name = name; + return this; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operations.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operations.java new file mode 100644 index 000000000000..1553da6ed864 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operations.java @@ -0,0 +1,27 @@ +/** + * 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.management.iotcentral.v2018_09_01; + +import rx.Observable; +import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.OperationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Operations. + */ +public interface Operations extends HasInner { + /** + * Lists all of the available IoT Central application REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(); + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppImpl.java new file mode 100644 index 000000000000..7e5706ebecca --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppImpl.java @@ -0,0 +1,129 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.iotcentral.v2018_09_01.App; +import rx.Observable; +import com.microsoft.azure.management.iotcentral.v2018_09_01.AppPatch; +import com.microsoft.azure.management.iotcentral.v2018_09_01.AppSkuInfo; +import rx.functions.Func1; + +class AppImpl extends GroupableResourceCoreImpl implements App, App.Definition, App.Update { + private AppPatch updateParameter; + AppImpl(String name, AppInner inner, IoTCentralManager manager) { + super(name, inner, manager); + this.updateParameter = new AppPatch(); + } + + @Override + public Observable createResourceAsync() { + AppsInner client = this.manager().inner().apps(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(new Func1() { + @Override + public AppInner call(AppInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + AppsInner client = this.manager().inner().apps(); + return client.updateAsync(this.resourceGroupName(), this.name(), this.updateParameter) + .map(new Func1() { + @Override + public AppInner call(AppInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + AppsInner client = this.manager().inner().apps(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.updateParameter = new AppPatch(); + } + + @Override + public String applicationId() { + return this.inner().applicationId(); + } + + @Override + public String displayName() { + return this.inner().displayName(); + } + + @Override + public AppSkuInfo sku() { + return this.inner().sku(); + } + + @Override + public String subdomain() { + return this.inner().subdomain(); + } + + @Override + public String template() { + return this.inner().template(); + } + + @Override + public AppImpl withSku(AppSkuInfo sku) { + this.inner().withSku(sku); + return this; + } + + @Override + public AppImpl withDisplayName(String displayName) { + if (isInCreateMode()) { + this.inner().withDisplayName(displayName); + } else { + this.updateParameter.withDisplayName(displayName); + } + return this; + } + + @Override + public AppImpl withSubdomain(String subdomain) { + if (isInCreateMode()) { + this.inner().withSubdomain(subdomain); + } else { + this.updateParameter.withSubdomain(subdomain); + } + return this; + } + + @Override + public AppImpl withTemplate(String template) { + if (isInCreateMode()) { + this.inner().withTemplate(template); + } else { + this.updateParameter.withTemplate(template); + } + return this; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppInner.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppInner.java new file mode 100644 index 000000000000..ec7c274b353c --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppInner.java @@ -0,0 +1,143 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.management.iotcentral.v2018_09_01.AppSkuInfo; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * The IoT Central application. + */ +@JsonFlatten +public class AppInner extends Resource { + /** + * The ID of the application. + */ + @JsonProperty(value = "properties.applicationId", access = JsonProperty.Access.WRITE_ONLY) + private String applicationId; + + /** + * The display name of the application. + */ + @JsonProperty(value = "properties.displayName") + private String displayName; + + /** + * The subdomain of the application. + */ + @JsonProperty(value = "properties.subdomain") + private String subdomain; + + /** + * The ID of the application template, which is a blueprint that defines + * the characteristics and behaviors of an application. Optional; if not + * specified, defaults to a blank blueprint and allows the application to + * be defined from scratch. + */ + @JsonProperty(value = "properties.template") + private String template; + + /** + * A valid instance SKU. + */ + @JsonProperty(value = "sku", required = true) + private AppSkuInfo sku; + + /** + * Get the ID of the application. + * + * @return the applicationId value + */ + public String applicationId() { + return this.applicationId; + } + + /** + * Get the display name of the application. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the display name of the application. + * + * @param displayName the displayName value to set + * @return the AppInner object itself. + */ + public AppInner withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the subdomain of the application. + * + * @return the subdomain value + */ + public String subdomain() { + return this.subdomain; + } + + /** + * Set the subdomain of the application. + * + * @param subdomain the subdomain value to set + * @return the AppInner object itself. + */ + public AppInner withSubdomain(String subdomain) { + this.subdomain = subdomain; + return this; + } + + /** + * Get the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch. + * + * @return the template value + */ + public String template() { + return this.template; + } + + /** + * Set the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch. + * + * @param template the template value to set + * @return the AppInner object itself. + */ + public AppInner withTemplate(String template) { + this.template = template; + return this; + } + + /** + * Get a valid instance SKU. + * + * @return the sku value + */ + public AppSkuInfo sku() { + return this.sku; + } + + /** + * Set a valid instance SKU. + * + * @param sku the sku value to set + * @return the AppInner object itself. + */ + public AppInner withSku(AppSkuInfo sku) { + this.sku = sku; + return this; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoImpl.java new file mode 100644 index 000000000000..d68656e3d487 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoImpl.java @@ -0,0 +1,42 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.management.iotcentral.v2018_09_01.AppNameAvailabilityInfo; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.iotcentral.v2018_09_01.AppNameUnavailabilityReason; + +class AppNameAvailabilityInfoImpl extends WrapperImpl implements AppNameAvailabilityInfo { + private final IoTCentralManager manager; + AppNameAvailabilityInfoImpl(AppNameAvailabilityInfoInner inner, IoTCentralManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public IoTCentralManager manager() { + return this.manager; + } + + @Override + public String message() { + return this.inner().message(); + } + + @Override + public Boolean nameAvailable() { + return this.inner().nameAvailable(); + } + + @Override + public AppNameUnavailabilityReason reason() { + return this.inner().reason(); + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoInner.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoInner.java new file mode 100644 index 000000000000..cac83d5ca21f --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoInner.java @@ -0,0 +1,76 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.management.iotcentral.v2018_09_01.AppNameUnavailabilityReason; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The properties indicating whether a given IoT Central application name is + * available. + */ +public class AppNameAvailabilityInfoInner { + /** + * The value which indicates whether the provided name is available. + */ + @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY) + private Boolean nameAvailable; + + /** + * The reason for unavailability. Possible values include: 'Invalid', + * 'AlreadyExists'. + */ + @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY) + private AppNameUnavailabilityReason reason; + + /** + * The detailed reason message. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get the value which indicates whether the provided name is available. + * + * @return the nameAvailable value + */ + public Boolean nameAvailable() { + return this.nameAvailable; + } + + /** + * Get the reason for unavailability. Possible values include: 'Invalid', 'AlreadyExists'. + * + * @return the reason value + */ + public AppNameUnavailabilityReason reason() { + return this.reason; + } + + /** + * Get the detailed reason message. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the detailed reason message. + * + * @param message the message value to set + * @return the AppNameAvailabilityInfoInner object itself. + */ + public AppNameAvailabilityInfoInner withMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsImpl.java new file mode 100644 index 000000000000..f231df1b0456 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsImpl.java @@ -0,0 +1,151 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.iotcentral.v2018_09_01.Apps; +import com.microsoft.azure.management.iotcentral.v2018_09_01.App; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.iotcentral.v2018_09_01.AppNameAvailabilityInfo; + +class AppsImpl extends GroupableResourcesCoreImpl implements Apps { + protected AppsImpl(IoTCentralManager manager) { + super(manager.inner().apps(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + AppsInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + AppsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + AppsInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + AppsInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public App call(AppInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + AppsInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + AppsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public App call(AppInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public AppImpl define(String name) { + return wrapModel(name); + } + + @Override + public Observable checkNameAvailabilityAsync(String name) { + AppsInner client = this.inner(); + return client.checkNameAvailabilityAsync(name) + .map(new Func1() { + @Override + public AppNameAvailabilityInfo call(AppNameAvailabilityInfoInner inner) { + return new AppNameAvailabilityInfoImpl(inner, manager()); + } + }); + } + + @Override + protected AppImpl wrapModel(AppInner inner) { + return new AppImpl(inner.name(), inner, manager()); + } + + @Override + protected AppImpl wrapModel(String name) { + return new AppImpl(name, new AppInner(), this.manager()); + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsInner.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsInner.java new file mode 100644 index 000000000000..b0572a838565 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsInner.java @@ -0,0 +1,1232 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.iotcentral.v2018_09_01.AppPatch; +import com.microsoft.azure.management.iotcentral.v2018_09_01.ErrorDetailsException; +import com.microsoft.azure.management.iotcentral.v2018_09_01.OperationInputs; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Apps. + */ +public class AppsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private AppsService service; + /** The service client containing this operation class. */ + private IotCentralClientImpl client; + + /** + * Initializes an instance of AppsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public AppsInner(Retrofit retrofit, IotCentralClientImpl client) { + this.service = retrofit.create(AppsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Apps to be + * used by Retrofit to perform actually REST calls. + */ + interface AppsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @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.management.iotcentral.v2018_09_01.Apps createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @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.management.iotcentral.v2018_09_01.Apps beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @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.management.iotcentral.v2018_09_01.Apps update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @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.management.iotcentral.v2018_09_01.Apps beginUpdate" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}") + Observable> beginUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @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.management.iotcentral.v2018_09_01.Apps delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @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.management.iotcentral.v2018_09_01.Apps beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @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.management.iotcentral.v2018_09_01.Apps list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.iotcentral.v2018_09_01.Apps listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @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.management.iotcentral.v2018_09_01.Apps checkNameAvailability" }) + @POST("subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/checkNameAvailability") + Observable> checkNameAvailability(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body OperationInputs operationInputs, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.iotcentral.v2018_09_01.Apps listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Get the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AppInner object if successful. + */ + public AppInner getByResourceGroup(String resourceGroupName, String resourceName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().single().body(); + } + + /** + * Get the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String resourceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback); + } + + /** + * Get the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AppInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String resourceName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1, AppInner>() { + @Override + public AppInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AppInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String resourceName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (resourceName == null) { + throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param app The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AppInner object if successful. + */ + public AppInner createOrUpdate(String resourceGroupName, String resourceName, AppInner app) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app).toBlocking().last().body(); + } + + /** + * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param app The IoT Central application metadata and security metadata. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app), serviceCallback); + } + + /** + * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param app The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app).map(new Func1, AppInner>() { + @Override + public AppInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param app The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String resourceName, AppInner app) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (resourceName == null) { + throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (app == null) { + throw new IllegalArgumentException("Parameter app is required and cannot be null."); + } + Validator.validate(app); + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), app, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param app The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AppInner object if successful. + */ + public AppInner beginCreateOrUpdate(String resourceGroupName, String resourceName, AppInner app) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app).toBlocking().single().body(); + } + + /** + * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param app The IoT Central application metadata and security metadata. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app), serviceCallback); + } + + /** + * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param app The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AppInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app).map(new Func1, AppInner>() { + @Override + public AppInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param app The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AppInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String resourceName, AppInner app) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (resourceName == null) { + throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (app == null) { + throw new IllegalArgumentException("Parameter app is required and cannot be null."); + } + Validator.validate(app); + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), app, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Update the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param appPatch The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AppInner object if successful. + */ + public AppInner update(String resourceGroupName, String resourceName, AppPatch appPatch) { + return updateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).toBlocking().last().body(); + } + + /** + * Update the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param appPatch The IoT Central application metadata and security metadata. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String resourceName, AppPatch appPatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch), serviceCallback); + } + + /** + * Update the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param appPatch The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateAsync(String resourceGroupName, String resourceName, AppPatch appPatch) { + return updateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).map(new Func1, AppInner>() { + @Override + public AppInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Update the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param appPatch The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String resourceName, AppPatch appPatch) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (resourceName == null) { + throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (appPatch == null) { + throw new IllegalArgumentException("Parameter appPatch is required and cannot be null."); + } + Validator.validate(appPatch); + Observable> observable = service.update(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), appPatch, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Update the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param appPatch The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AppInner object if successful. + */ + public AppInner beginUpdate(String resourceGroupName, String resourceName, AppPatch appPatch) { + return beginUpdateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).toBlocking().single().body(); + } + + /** + * Update the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param appPatch The IoT Central application metadata and security metadata. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateAsync(String resourceGroupName, String resourceName, AppPatch appPatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch), serviceCallback); + } + + /** + * Update the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param appPatch The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AppInner object + */ + public Observable beginUpdateAsync(String resourceGroupName, String resourceName, AppPatch appPatch) { + return beginUpdateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).map(new Func1, AppInner>() { + @Override + public AppInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Update the metadata of an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param appPatch The IoT Central application metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AppInner object + */ + public Observable> beginUpdateWithServiceResponseAsync(String resourceGroupName, String resourceName, AppPatch appPatch) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (resourceName == null) { + throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (appPatch == null) { + throw new IllegalArgumentException("Parameter appPatch is required and cannot be null."); + } + Validator.validate(appPatch); + return service.beginUpdate(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), appPatch, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Delete an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String resourceName) { + deleteWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().last().body(); + } + + /** + * Delete an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String resourceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback); + } + + /** + * Delete an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String resourceName) { + return deleteWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String resourceName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (resourceName == null) { + throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Delete an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String resourceName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().single().body(); + } + + /** + * Delete an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String resourceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback); + } + + /** + * Delete an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String resourceName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete an IoT Central application. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param resourceName The ARM resource name of the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String resourceName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (resourceName == null) { + throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AppInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AppInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AppInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AppInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Get all the IoT Central Applications in a resource group. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AppInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get all the IoT Central Applications in a resource group. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get all the IoT Central Applications in a resource group. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AppInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get all the IoT Central Applications in a resource group. + * + * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AppInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get all the IoT Central Applications in a resource group. + * + ServiceResponse> * @param resourceGroupName The name of the resource group that contains the IoT Central application. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AppInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Check if an IoT Central application name is available. + * + * @param name The name of the IoT Central application instance to check. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AppNameAvailabilityInfoInner object if successful. + */ + public AppNameAvailabilityInfoInner checkNameAvailability(String name) { + return checkNameAvailabilityWithServiceResponseAsync(name).toBlocking().single().body(); + } + + /** + * Check if an IoT Central application name is available. + * + * @param name The name of the IoT Central application instance to check. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkNameAvailabilityAsync(String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkNameAvailabilityWithServiceResponseAsync(name), serviceCallback); + } + + /** + * Check if an IoT Central application name is available. + * + * @param name The name of the IoT Central application instance to check. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AppNameAvailabilityInfoInner object + */ + public Observable checkNameAvailabilityAsync(String name) { + return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1, AppNameAvailabilityInfoInner>() { + @Override + public AppNameAvailabilityInfoInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Check if an IoT Central application name is available. + * + * @param name The name of the IoT Central application instance to check. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AppNameAvailabilityInfoInner object + */ + public Observable> checkNameAvailabilityWithServiceResponseAsync(String name) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + OperationInputs operationInputs = new OperationInputs(); + operationInputs.withName(name); + return service.checkNameAvailability(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), operationInputs, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = checkNameAvailabilityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse checkNameAvailabilityDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AppInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AppInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get all IoT Central Applications in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AppInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get all IoT Central Applications in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AppInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Get all the IoT Central Applications in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AppInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get all the IoT Central Applications in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get all the IoT Central Applications in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AppInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get all the IoT Central Applications in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AppInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get all the IoT Central Applications in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AppInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IdParsingUtils.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IdParsingUtils.java new file mode 100644 index 000000000000..f5d40ca004d7 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IdParsingUtils.java @@ -0,0 +1,57 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; +import java.util.Arrays; +import java.util.Iterator; + +class IdParsingUtils { + public static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + public static String getValueFromIdByPosition(String id, int pos) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + int index = 0; + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (index == pos) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + index++; + } + return null; + } +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IoTCentralManager.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IoTCentralManager.java new file mode 100644 index 000000000000..5bcff18622a4 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IoTCentralManager.java @@ -0,0 +1,111 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.iotcentral.v2018_09_01.Apps; +import com.microsoft.azure.management.iotcentral.v2018_09_01.Operations; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure IoTCentral resource management. + */ +public final class IoTCentralManager extends ManagerCore { + private Apps apps; + private Operations operations; + /** + * Get a Configurable instance that can be used to create IoTCentralManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new IoTCentralManager.ConfigurableImpl(); + } + /** + * Creates an instance of IoTCentralManager that exposes IoTCentral resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the IoTCentralManager + */ + public static IoTCentralManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new IoTCentralManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of IoTCentralManager that exposes IoTCentral resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the IoTCentralManager + */ + public static IoTCentralManager authenticate(RestClient restClient, String subscriptionId) { + return new IoTCentralManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of IoTCentralManager that exposes IoTCentral management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing IoTCentral management API entry points that work across subscriptions + */ + IoTCentralManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Apps. + */ + public Apps apps() { + if (this.apps == null) { + this.apps = new AppsImpl(this); + } + return this.apps; + } + + /** + * @return Entry point to manage Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(this); + } + return this.operations; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public IoTCentralManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return IoTCentralManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private IoTCentralManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new IotCentralClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IotCentralClientImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IotCentralClientImpl.java new file mode 100644 index 000000000000..39bad0a45afa --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/IotCentralClientImpl.java @@ -0,0 +1,210 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the IotCentralClientImpl class. + */ +public class IotCentralClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** The subscription identifier. */ + private String subscriptionId; + + /** + * Gets The subscription identifier. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets The subscription identifier. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public IotCentralClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** The version of the API. */ + private String apiVersion; + + /** + * Gets The version of the API. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** Gets or sets the preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets Gets or sets the preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets Gets or sets the preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public IotCentralClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public IotCentralClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public IotCentralClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The AppsInner object to access its operations. + */ + private AppsInner apps; + + /** + * Gets the AppsInner object to access its operations. + * @return the AppsInner object. + */ + public AppsInner apps() { + return this.apps; + } + + /** + * The OperationsInner object to access its operations. + */ + private OperationsInner operations; + + /** + * Gets the OperationsInner object to access its operations. + * @return the OperationsInner object. + */ + public OperationsInner operations() { + return this.operations; + } + + /** + * Initializes an instance of IotCentralClient client. + * + * @param credentials the management credentials for Azure + */ + public IotCentralClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of IotCentralClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public IotCentralClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of IotCentralClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public IotCentralClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2018-09-01"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.apps = new AppsInner(restClient().retrofit(), this); + this.operations = new OperationsInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s)", super.userAgent(), "IotCentralClient", "2018-09-01"); + } +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationImpl.java new file mode 100644 index 000000000000..7b10b69bb85d --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationImpl.java @@ -0,0 +1,37 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.management.iotcentral.v2018_09_01.Operation; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.iotcentral.v2018_09_01.OperationDisplay; + +class OperationImpl extends WrapperImpl implements Operation { + private final IoTCentralManager manager; + OperationImpl(OperationInner inner, IoTCentralManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public IoTCentralManager manager() { + return this.manager; + } + + @Override + public OperationDisplay display() { + return this.inner().display(); + } + + @Override + public String name() { + return this.inner().name(); + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationInner.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationInner.java new file mode 100644 index 000000000000..3bbbedc7d9d9 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationInner.java @@ -0,0 +1,59 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.management.iotcentral.v2018_09_01.OperationDisplay; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * IoT Central REST API operation. + */ +public class OperationInner { + /** + * Operation name: {provider}/{resource}/{read | write | action | delete}. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The object that represents the operation. + */ + @JsonProperty(value = "display") + private OperationDisplay display; + + /** + * Get operation name: {provider}/{resource}/{read | write | action | delete}. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the object that represents the operation. + * + * @return the display value + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Set the object that represents the operation. + * + * @param display the display value to set + * @return the OperationInner object itself. + */ + public OperationInner withDisplay(OperationDisplay display) { + this.display = display; + return this; + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationsImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationsImpl.java new file mode 100644 index 000000000000..2e48a99f7e51 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationsImpl.java @@ -0,0 +1,49 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.iotcentral.v2018_09_01.Operations; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.iotcentral.v2018_09_01.Operation; + +class OperationsImpl extends WrapperImpl implements Operations { + private final IoTCentralManager manager; + + OperationsImpl(IoTCentralManager manager) { + super(manager.inner().operations()); + this.manager = manager; + } + + public IoTCentralManager manager() { + return this.manager; + } + + @Override + public Observable listAsync() { + OperationsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Operation call(OperationInner inner) { + return new OperationImpl(inner, manager()); + } + }); + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationsInner.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationsInner.java new file mode 100644 index 000000000000..73314fa7689d --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/OperationsInner.java @@ -0,0 +1,283 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.iotcentral.v2018_09_01.ErrorDetailsException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Operations. + */ +public class OperationsInner { + /** The Retrofit service to perform REST calls. */ + private OperationsService service; + /** The service client containing this operation class. */ + private IotCentralClientImpl client; + + /** + * Initializes an instance of OperationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public OperationsInner(Retrofit retrofit, IotCentralClientImpl client) { + this.service = retrofit.create(OperationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Operations to be + * used by Retrofit to perform actually REST calls. + */ + interface OperationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Operations list" }) + @GET("providers/Microsoft.IoTCentral/operations") + Observable> list(@Query("api-version") String apiVersion, @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.management.iotcentral.v2018_09_01.Operations listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<OperationInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<OperationInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the available IoT Central application REST API operations. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorDetailsException.class) + .build(response); + } + +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/PageImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/PageImpl.java new file mode 100644 index 000000000000..7f90e4b8cab3 --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/PageImpl.java @@ -0,0 +1,75 @@ +/** + * 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.management.iotcentral.v2018_09_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("nextLink") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/package-info.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/package-info.java new file mode 100644 index 000000000000..31223ddacd5f --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for IotCentralClient. + * Use this API to manage IoT Central Applications in your Azure subscription. + */ +package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation; diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/package-info.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/package-info.java new file mode 100644 index 000000000000..7fa09189195c --- /dev/null +++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for IotCentralClient. + * Use this API to manage IoT Central Applications in your Azure subscription. + */ +package com.microsoft.azure.management.iotcentral.v2018_09_01; diff --git a/loganalytics/data-plane/pom.xml b/loganalytics/data-plane/pom.xml new file mode 100644 index 000000000000..ee3869964c3d --- /dev/null +++ b/loganalytics/data-plane/pom.xml @@ -0,0 +1,151 @@ + + + 4.0.0 + com.microsoft.azure + azure-loganalytics + 1.0.0-Preview-1 + jar + Microsoft Azure SDK for Log Analytics + This package contains Microsoft Log Analytics SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + 1.6.1 + record + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + 1.6.1 + + + junit + junit + 4.12 + test + + + com.microsoft.azure + azure-client-authentication + ${runtime.version} + test + + + com.microsoft.azure + azure-arm-client-runtime + ${runtime.version} + test-jar + test + + + com.microsoft.azure + azure-arm-client-runtime + ${runtime.version} + + + com.microsoft.azure + azure-client-runtime + ${runtime.version} + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+ + org.apache.maven.plugins + maven-surefire-plugin + 2.20 + + false + + **/Test*.java + **/*Test.java + **/*Tests.java + **/*TestCase.java + + + ${testMode} + + + +
+
+
diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/LogAnalyticsDataClient.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/LogAnalyticsDataClient.java new file mode 100644 index 000000000000..d3408c258d51 --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/LogAnalyticsDataClient.java @@ -0,0 +1,138 @@ +/** + * 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.loganalytics; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.loganalytics.models.ErrorResponseException; +import com.microsoft.azure.loganalytics.models.QueryBody; +import com.microsoft.azure.loganalytics.models.QueryResults; +import com.microsoft.rest.RestClient; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import rx.Observable; + +/** + * The interface for LogAnalyticsDataClient class. + */ +public interface LogAnalyticsDataClient { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets The preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets The preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + LogAnalyticsDataClient withAcceptLanguage(String acceptLanguage); + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + LogAnalyticsDataClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); + + /** + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + LogAnalyticsDataClient withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Execute an Analytics query. + * Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. + * + * @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. + * @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the QueryResults object if successful. + */ + QueryResults query(String workspaceId, QueryBody body); + + /** + * Execute an Analytics query. + * Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. + * + * @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. + * @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + ServiceFuture queryAsync(String workspaceId, QueryBody body, final ServiceCallback serviceCallback); + + /** + * Execute an Analytics query. + * Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. + * + * @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. + * @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the QueryResults object + */ + Observable queryAsync(String workspaceId, QueryBody body); + + /** + * Execute an Analytics query. + * Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. + * + * @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. + * @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the QueryResults object + */ + Observable> queryWithServiceResponseAsync(String workspaceId, QueryBody body); + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/implementation/LogAnalyticsDataClientImpl.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/implementation/LogAnalyticsDataClientImpl.java new file mode 100644 index 000000000000..e27ac9b6f98d --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/implementation/LogAnalyticsDataClientImpl.java @@ -0,0 +1,269 @@ +/** + * 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.loganalytics.implementation; + +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.loganalytics.LogAnalyticsDataClient; +import com.microsoft.azure.loganalytics.models.ErrorResponseException; +import com.microsoft.azure.loganalytics.models.QueryBody; +import com.microsoft.azure.loganalytics.models.QueryResults; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * Initializes a new instance of the LogAnalyticsDataClientImpl class. + */ +public class LogAnalyticsDataClientImpl extends AzureServiceClient implements LogAnalyticsDataClient { + /** The Retrofit service to perform REST calls. */ + private LogAnalyticsDataClientService service; + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** The preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets The preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets The preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public LogAnalyticsDataClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public LogAnalyticsDataClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public LogAnalyticsDataClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * Initializes an instance of LogAnalyticsDataClient client. + * + * @param credentials the management credentials for Azure + */ + public LogAnalyticsDataClientImpl(ServiceClientCredentials credentials) { + this("https://api.loganalytics.io/v1", credentials); + } + + /** + * Initializes an instance of LogAnalyticsDataClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public LogAnalyticsDataClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of LogAnalyticsDataClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public LogAnalyticsDataClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.azureClient = new AzureClient(this); + initializeService(); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s)", super.userAgent(), "LogAnalyticsDataClient", "v1"); + } + + private void initializeService() { + service = restClient().retrofit().create(LogAnalyticsDataClientService.class); + } + + /** + * The interface defining all the services for LogAnalyticsDataClient to be + * used by Retrofit to perform actually REST calls. + */ + interface LogAnalyticsDataClientService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.loganalytics.LogAnalyticsDataClient query" }) + @POST("workspaces/{workspaceId}/query") + Observable> query(@Path("workspaceId") String workspaceId, @Body QueryBody body, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Execute an Analytics query. + * Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. + * + * @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. + * @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the QueryResults object if successful. + */ + public QueryResults query(String workspaceId, QueryBody body) { + return queryWithServiceResponseAsync(workspaceId, body).toBlocking().single().body(); + } + + /** + * Execute an Analytics query. + * Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. + * + * @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. + * @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture queryAsync(String workspaceId, QueryBody body, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(queryWithServiceResponseAsync(workspaceId, body), serviceCallback); + } + + /** + * Execute an Analytics query. + * Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. + * + * @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. + * @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the QueryResults object + */ + public Observable queryAsync(String workspaceId, QueryBody body) { + return queryWithServiceResponseAsync(workspaceId, body).map(new Func1, QueryResults>() { + @Override + public QueryResults call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Execute an Analytics query. + * Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. + * + * @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. + * @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the QueryResults object + */ + public Observable> queryWithServiceResponseAsync(String workspaceId, QueryBody body) { + if (workspaceId == null) { + throw new IllegalArgumentException("Parameter workspaceId is required and cannot be null."); + } + if (body == null) { + throw new IllegalArgumentException("Parameter body is required and cannot be null."); + } + Validator.validate(body); + return service.query(workspaceId, body, this.acceptLanguage(), this.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = queryDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse queryDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.restClient().responseBuilderFactory().newInstance(this.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/implementation/package-info.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/implementation/package-info.java new file mode 100644 index 000000000000..265e5e521241 --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for LogAnalyticsDataClient. + * Log Analytics Data Plane Client. + */ +package com.microsoft.azure.loganalytics.implementation; diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/Column.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/Column.java new file mode 100644 index 000000000000..4d2103234d74 --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/Column.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.loganalytics.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A table column. + * A column in a table. + */ +public class Column { + /** + * The name of this column. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The data type of this column. + */ + @JsonProperty(value = "type") + private String type; + + /** + * Get the name of this column. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of this column. + * + * @param name the name value to set + * @return the Column object itself. + */ + public Column withName(String name) { + this.name = name; + return this; + } + + /** + * Get the data type of this column. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the data type of this column. + * + * @param type the type value to set + * @return the Column object itself. + */ + public Column withType(String type) { + this.type = type; + return this; + } + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorDetail.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorDetail.java new file mode 100644 index 000000000000..cc5a332d2913 --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorDetail.java @@ -0,0 +1,174 @@ +/** + * 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.loganalytics.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error details. + */ +public class ErrorDetail { + /** + * The error's code. + */ + @JsonProperty(value = "code", required = true) + private String code; + + /** + * A human readable error message. + */ + @JsonProperty(value = "message", required = true) + private String message; + + /** + * Indicates which property in the request is responsible for the error. + */ + @JsonProperty(value = "target") + private String target; + + /** + * Indicates which value in 'target' is responsible for the error. + */ + @JsonProperty(value = "value") + private String value; + + /** + * Indicates resources which were responsible for the error. + */ + @JsonProperty(value = "resources") + private List resources; + + /** + * The additionalProperties property. + */ + @JsonProperty(value = "additionalProperties") + private Object additionalProperties; + + /** + * Get the error's code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set the error's code. + * + * @param code the code value to set + * @return the ErrorDetail object itself. + */ + public ErrorDetail withCode(String code) { + this.code = code; + return this; + } + + /** + * Get a human readable error message. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set a human readable error message. + * + * @param message the message value to set + * @return the ErrorDetail object itself. + */ + public ErrorDetail withMessage(String message) { + this.message = message; + return this; + } + + /** + * Get indicates which property in the request is responsible for the error. + * + * @return the target value + */ + public String target() { + return this.target; + } + + /** + * Set indicates which property in the request is responsible for the error. + * + * @param target the target value to set + * @return the ErrorDetail object itself. + */ + public ErrorDetail withTarget(String target) { + this.target = target; + return this; + } + + /** + * Get indicates which value in 'target' is responsible for the error. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set indicates which value in 'target' is responsible for the error. + * + * @param value the value value to set + * @return the ErrorDetail object itself. + */ + public ErrorDetail withValue(String value) { + this.value = value; + return this; + } + + /** + * Get indicates resources which were responsible for the error. + * + * @return the resources value + */ + public List resources() { + return this.resources; + } + + /** + * Set indicates resources which were responsible for the error. + * + * @param resources the resources value to set + * @return the ErrorDetail object itself. + */ + public ErrorDetail withResources(List resources) { + this.resources = resources; + return this; + } + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Object additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the ErrorDetail object itself. + */ + public ErrorDetail withAdditionalProperties(Object additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorInfo.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorInfo.java new file mode 100644 index 000000000000..e65b21879935 --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorInfo.java @@ -0,0 +1,148 @@ +/** + * 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.loganalytics.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The code and message for an error. + */ +public class ErrorInfo { + /** + * A machine readable error code. + */ + @JsonProperty(value = "code", required = true) + private String code; + + /** + * A human readable error message. + */ + @JsonProperty(value = "message", required = true) + private String message; + + /** + * error details. + */ + @JsonProperty(value = "details") + private List details; + + /** + * Inner error details if they exist. + */ + @JsonProperty(value = "innererror") + private ErrorInfo innererror; + + /** + * The additionalProperties property. + */ + @JsonProperty(value = "additionalProperties") + private Object additionalProperties; + + /** + * Get a machine readable error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set a machine readable error code. + * + * @param code the code value to set + * @return the ErrorInfo object itself. + */ + public ErrorInfo withCode(String code) { + this.code = code; + return this; + } + + /** + * Get a human readable error message. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set a human readable error message. + * + * @param message the message value to set + * @return the ErrorInfo object itself. + */ + public ErrorInfo withMessage(String message) { + this.message = message; + return this; + } + + /** + * Get error details. + * + * @return the details value + */ + public List details() { + return this.details; + } + + /** + * Set error details. + * + * @param details the details value to set + * @return the ErrorInfo object itself. + */ + public ErrorInfo withDetails(List details) { + this.details = details; + return this; + } + + /** + * Get inner error details if they exist. + * + * @return the innererror value + */ + public ErrorInfo innererror() { + return this.innererror; + } + + /** + * Set inner error details if they exist. + * + * @param innererror the innererror value to set + * @return the ErrorInfo object itself. + */ + public ErrorInfo withInnererror(ErrorInfo innererror) { + this.innererror = innererror; + return this; + } + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Object additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the ErrorInfo object itself. + */ + public ErrorInfo withAdditionalProperties(Object additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorResponse.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorResponse.java new file mode 100644 index 000000000000..0a30e4e4dbf0 --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorResponse.java @@ -0,0 +1,44 @@ +/** + * 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.loganalytics.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error details. + * Contains details when the response code indicates an error. + */ +public class ErrorResponse { + /** + * The error details. + */ + @JsonProperty(value = "error", required = true) + private ErrorInfo error; + + /** + * Get the error details. + * + * @return the error value + */ + public ErrorInfo error() { + return this.error; + } + + /** + * Set the error details. + * + * @param error the error value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withError(ErrorInfo error) { + this.error = error; + return this; + } + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorResponseException.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorResponseException.java new file mode 100644 index 000000000000..7a8c7771d58d --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/ErrorResponseException.java @@ -0,0 +1,44 @@ +/** + * 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.loganalytics.models; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ +public class ErrorResponseException extends RestException { + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorResponseException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorResponseException(final String message, final Response response, final ErrorResponse body) { + super(message, response, body); + } + + @Override + public ErrorResponse body() { + return (ErrorResponse) super.body(); + } +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/QueryBody.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/QueryBody.java new file mode 100644 index 000000000000..1fceddac6624 --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/QueryBody.java @@ -0,0 +1,99 @@ +/** + * 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.loganalytics.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Analytics query. Learn more about the [Analytics query + * syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/). + */ +public class QueryBody { + /** + * The query to execute. + */ + @JsonProperty(value = "query", required = true) + private String query; + + /** + * Optional. The timespan over which to query data. This is an ISO8601 time + * period value. This timespan is applied in addition to any that are + * specified in the query expression. + */ + @JsonProperty(value = "timespan") + private String timespan; + + /** + * A list of workspaces that are included in the query. + */ + @JsonProperty(value = "workspaces") + private List workspaces; + + /** + * Get the query to execute. + * + * @return the query value + */ + public String query() { + return this.query; + } + + /** + * Set the query to execute. + * + * @param query the query value to set + * @return the QueryBody object itself. + */ + public QueryBody withQuery(String query) { + this.query = query; + return this; + } + + /** + * Get optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression. + * + * @return the timespan value + */ + public String timespan() { + return this.timespan; + } + + /** + * Set optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression. + * + * @param timespan the timespan value to set + * @return the QueryBody object itself. + */ + public QueryBody withTimespan(String timespan) { + this.timespan = timespan; + return this; + } + + /** + * Get a list of workspaces that are included in the query. + * + * @return the workspaces value + */ + public List workspaces() { + return this.workspaces; + } + + /** + * Set a list of workspaces that are included in the query. + * + * @param workspaces the workspaces value to set + * @return the QueryBody object itself. + */ + public QueryBody withWorkspaces(List workspaces) { + this.workspaces = workspaces; + return this; + } + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/QueryResults.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/QueryResults.java new file mode 100644 index 000000000000..bde5f9b305ed --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/QueryResults.java @@ -0,0 +1,45 @@ +/** + * 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.loganalytics.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A query response. + * Contains the tables, columns & rows resulting from a query. + */ +public class QueryResults { + /** + * The list of tables, columns and rows. + */ + @JsonProperty(value = "tables", required = true) + private List tables; + + /** + * Get the list of tables, columns and rows. + * + * @return the tables value + */ + public List
tables() { + return this.tables; + } + + /** + * Set the list of tables, columns and rows. + * + * @param tables the tables value to set + * @return the QueryResults object itself. + */ + public QueryResults withTables(List
tables) { + this.tables = tables; + return this; + } + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/Table.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/Table.java new file mode 100644 index 000000000000..506d6a9f24b9 --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/Table.java @@ -0,0 +1,97 @@ +/** + * 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.loganalytics.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A query response table. + * Contains the columns and rows for one table in a query response. + */ +public class Table { + /** + * The name of the table. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The list of columns in this table. + */ + @JsonProperty(value = "columns", required = true) + private List columns; + + /** + * The resulting rows from this query. + */ + @JsonProperty(value = "rows", required = true) + private List> rows; + + /** + * Get the name of the table. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the table. + * + * @param name the name value to set + * @return the Table object itself. + */ + public Table withName(String name) { + this.name = name; + return this; + } + + /** + * Get the list of columns in this table. + * + * @return the columns value + */ + public List columns() { + return this.columns; + } + + /** + * Set the list of columns in this table. + * + * @param columns the columns value to set + * @return the Table object itself. + */ + public Table withColumns(List columns) { + this.columns = columns; + return this; + } + + /** + * Get the resulting rows from this query. + * + * @return the rows value + */ + public List> rows() { + return this.rows; + } + + /** + * Set the resulting rows from this query. + * + * @param rows the rows value to set + * @return the Table object itself. + */ + public Table withRows(List> rows) { + this.rows = rows; + return this; + } + +} diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/package-info.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/package-info.java new file mode 100644 index 000000000000..1cadbca8849c --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/models/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the models classes for LogAnalyticsDataClient. + * Log Analytics Data Plane Client. + */ +package com.microsoft.azure.loganalytics.models; diff --git a/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/package-info.java b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/package-info.java new file mode 100644 index 000000000000..374e44497e9c --- /dev/null +++ b/loganalytics/data-plane/src/main/java/com/microsoft/azure/loganalytics/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for LogAnalyticsDataClient. + * Log Analytics Data Plane Client. + */ +package com.microsoft.azure.loganalytics; diff --git a/loganalytics/data-plane/src/test/java/com/microsoft/azure/loganalytics/LogAnalyticsDataClientTests.java b/loganalytics/data-plane/src/test/java/com/microsoft/azure/loganalytics/LogAnalyticsDataClientTests.java new file mode 100644 index 000000000000..6a4a5604efb8 --- /dev/null +++ b/loganalytics/data-plane/src/test/java/com/microsoft/azure/loganalytics/LogAnalyticsDataClientTests.java @@ -0,0 +1,47 @@ +package com.microsoft.azure.loganalytics; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.loganalytics.implementation.LogAnalyticsDataClientImpl; +import com.microsoft.azure.loganalytics.models.QueryBody; +import com.microsoft.azure.loganalytics.models.QueryResults; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.arm.core.TestBase; +import com.microsoft.rest.RestClient; +import org.junit.Assert; +import org.junit.Test; + +public class LogAnalyticsDataClientTests extends TestBase { + protected static LogAnalyticsDataClientImpl logAnalyticsClient; + + @Override + protected String baseUri() { + return AzureEnvironment.AZURE.logAnalyticsEndpoint() + "v1/"; + } + + @Override + protected void initializeClients(RestClient restClient, String defaultSubscription, String domain) { + logAnalyticsClient = new LogAnalyticsDataClientImpl(restClient); + } + + @Override + protected void cleanUpResources() { + return; + } + + @Test + public void firstTest() { + String query = "Heartbeat | take 1"; + String workspaceId = "cab864ad-d0c1-496b-bc5e-4418315621bf"; + QueryResults queryResults = logAnalyticsClient.query(workspaceId, new QueryBody().withQuery(query)); + Assert.assertNotNull(queryResults); + + // Query should return a single table with one row + Assert.assertEquals(queryResults.tables().size(), 1); + Assert.assertEquals(queryResults.tables().get(0).rows().size(), 1); + + // Check type behavior on results + Assert.assertTrue(queryResults.tables().get(0).rows().get(0).get(1) instanceof String); + Assert.assertTrue(queryResults.tables().get(0).rows().get(0).get(16) instanceof Double); + Assert.assertNull(queryResults.tables().get(0).rows().get(0).get(15)); + } +} \ No newline at end of file diff --git a/loganalytics/data-plane/target/test-classes/session-records/firstTest.json b/loganalytics/data-plane/target/test-classes/session-records/firstTest.json new file mode 100644 index 000000000000..416dfc85cc00 --- /dev/null +++ b/loganalytics/data-plane/target/test-classes/session-records/firstTest.json @@ -0,0 +1,28 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "http://localhost:1234/workspaces/cab864ad-d0c1-496b-bc5e-4418315621bf/query", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:a868cd1346b534e1d19791216fab6df609d09c66b0f97bd640af4913ad89527e Java:10.0.1 (LogAnalyticsDataClient, v1)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Thu, 09 Aug 2018 19:35:54 GMT", + "server" : "nginx", + "content-length" : "1906", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000000; includeSubDomains", + "access-control-expose-headers" : "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", + "via" : "1.1 draft-oms-green.efbb771c-9c05-11e8-9972-70b3d5800001", + "access-control-allow-origin" : "*", + "x-content-type-options" : "nosniff", + "content-location" : "https://eastus.api.loganalytics.io/v1/workspaces/cab864ad-d0c1-496b-bc5e-4418315621bf/query", + "content-type" : "application/json; charset=utf-8", + "Body" : "{\"tables\":[{\"name\":\"PrimaryResult\",\"columns\":[{\"name\":\"TenantId\",\"type\":\"string\"},{\"name\":\"SourceSystem\",\"type\":\"string\"},{\"name\":\"TimeGenerated\",\"type\":\"datetime\"},{\"name\":\"MG\",\"type\":\"string\"},{\"name\":\"ManagementGroupName\",\"type\":\"string\"},{\"name\":\"SourceComputerId\",\"type\":\"string\"},{\"name\":\"ComputerIP\",\"type\":\"string\"},{\"name\":\"Computer\",\"type\":\"string\"},{\"name\":\"Category\",\"type\":\"string\"},{\"name\":\"OSType\",\"type\":\"string\"},{\"name\":\"OSName\",\"type\":\"string\"},{\"name\":\"OSMajorVersion\",\"type\":\"string\"},{\"name\":\"OSMinorVersion\",\"type\":\"string\"},{\"name\":\"Version\",\"type\":\"string\"},{\"name\":\"SCAgentChannel\",\"type\":\"string\"},{\"name\":\"IsGatewayInstalled\",\"type\":\"bool\"},{\"name\":\"RemoteIPLongitude\",\"type\":\"real\"},{\"name\":\"RemoteIPLatitude\",\"type\":\"real\"},{\"name\":\"RemoteIPCountry\",\"type\":\"string\"},{\"name\":\"SubscriptionId\",\"type\":\"string\"},{\"name\":\"ResourceGroup\",\"type\":\"string\"},{\"name\":\"ResourceProvider\",\"type\":\"string\"},{\"name\":\"Resource\",\"type\":\"string\"},{\"name\":\"ResourceId\",\"type\":\"string\"},{\"name\":\"ResourceType\",\"type\":\"string\"},{\"name\":\"ComputerEnvironment\",\"type\":\"string\"},{\"name\":\"Solutions\",\"type\":\"string\"},{\"name\":\"VMUUID\",\"type\":\"string\"},{\"name\":\"Type\",\"type\":\"string\"}],\"rows\":[[\"cab864ad-d0c1-496b-bc5e-4418315621bf\",\"OpsManager\",\"2018-07-19T06:16:53.32Z\",\"00000000-0000-0000-0000-000000000002\",\"\",\"54a48994-9f16-444b-8433-d7ba1f44f1c8\",\"104.42.118.149\",\"dcos-master-draftacs-int-green-0\",\"Direct Agent\",\"Linux\",\"Ubuntu\",\"16\",\"04\",\"1.6.0-42\",\"Direct\",null,-121.83,37.32,\"United States\",\"00000000-0000-0000-0000-000000000000\",\"draftacs-int-green\",\"microsoft.compute\",\"dcos-master-draftacs-int-green-0\",\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/draftacs-int-green/providers/microsoft.compute/virtualmachines/dcos-master-draftacs-int-green-0\",\"virtualmachines\",\"Azure\",\"\\\"security\\\", \\\"securityCenterFree\\\"\",\"1bae5f16-d661-7347-9427-a26b391ae746\",\"Heartbeat\"]]}]}", + "age" : "36" + } + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/network/resource-manager/v2017_10_01/pom.xml b/network/resource-manager/v2017_10_01/pom.xml index 2f139c2ab3b6..0765ba1756f0 100644 --- a/network/resource-manager/v2017_10_01/pom.xml +++ b/network/resource-manager/v2017_10_01/pom.xml @@ -130,4 +130,4 @@ - \ No newline at end of file + diff --git a/network/resource-manager/v2018_04_01/pom.xml b/network/resource-manager/v2018_04_01/pom.xml index ee5b9dc776da..22c1113461a9 100644 --- a/network/resource-manager/v2018_04_01/pom.xml +++ b/network/resource-manager/v2018_04_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.network.v2018_04_01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-network - 1.0.0-beta - jar - Microsoft Azure SDK for Network Management - This package contains Microsoft Network Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.network.v2018_04_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-network + 1.0.0-beta + jar + Microsoft Azure SDK for Network Management + This package contains Microsoft Network Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/VpnConnection.java b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/VpnConnection.java index 8ec38becb93a..aaddc4fd5823 100644 --- a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/VpnConnection.java +++ b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/VpnConnection.java @@ -26,9 +26,9 @@ */ public interface VpnConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** - * @return the connectionBandwidthInMbps value. + * @return the connectionBandwidth value. */ - Integer connectionBandwidthInMbps(); + Integer connectionBandwidth(); /** * @return the connectionStatus value. diff --git a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/VpnConnections.java b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/VpnConnections.java index 7e13ff1d563b..698ed08d775f 100644 --- a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/VpnConnections.java +++ b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/VpnConnections.java @@ -32,11 +32,12 @@ public interface VpnConnections extends SupportsCreating listByVpnGatewayAsync(final String gatewayName); + Observable listByVpnGatewayAsync(final String resourceGroupName, final String gatewayName); /** * Deletes a vpn connection. diff --git a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/NetworkManagementClientImpl.java b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/NetworkManagementClientImpl.java index 85187ad4ef1c..7cd4db9a3c9d 100644 --- a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/NetworkManagementClientImpl.java +++ b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/NetworkManagementClientImpl.java @@ -68,11 +68,11 @@ public NetworkManagementClientImpl withSubscriptionId(String subscriptionId) { return this; } - /** The preferred language for the response. */ + /** Gets or sets the preferred language for the response. */ private String acceptLanguage; /** - * Gets The preferred language for the response. + * Gets Gets or sets the preferred language for the response. * * @return the acceptLanguage value. */ @@ -81,7 +81,7 @@ public String acceptLanguage() { } /** - * Sets The preferred language for the response. + * Sets Gets or sets the preferred language for the response. * * @param acceptLanguage the acceptLanguage value. * @return the service client itself @@ -91,11 +91,11 @@ public NetworkManagementClientImpl withAcceptLanguage(String acceptLanguage) { return this; } - /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ private int longRunningOperationRetryTimeout; /** - * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @return the longRunningOperationRetryTimeout value. */ @@ -104,7 +104,7 @@ public int longRunningOperationRetryTimeout() { } /** - * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself @@ -114,11 +114,11 @@ public NetworkManagementClientImpl withLongRunningOperationRetryTimeout(int long return this; } - /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ private boolean generateClientRequestId; /** - * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @return the generateClientRequestId value. */ @@ -127,7 +127,7 @@ public boolean generateClientRequestId() { } /** - * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself diff --git a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionImpl.java b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionImpl.java index badeeb2e785a..1e8ced5f9823 100644 --- a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionImpl.java +++ b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionImpl.java @@ -76,8 +76,8 @@ public boolean isInCreateMode() { @Override - public Integer connectionBandwidthInMbps() { - return this.inner().connectionBandwidthInMbps(); + public Integer connectionBandwidth() { + return this.inner().connectionBandwidth(); } @Override diff --git a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionInner.java b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionInner.java index 4b3e7ea3624e..3e49cc16ef8e 100644 --- a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionInner.java +++ b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionInner.java @@ -58,8 +58,8 @@ public class VpnConnectionInner extends Resource { /** * Expected bandwidth in MBPS. */ - @JsonProperty(value = "properties.connectionBandwidthInMbps", access = JsonProperty.Access.WRITE_ONLY) - private Integer connectionBandwidthInMbps; + @JsonProperty(value = "properties.connectionBandwidth", access = JsonProperty.Access.WRITE_ONLY) + private Integer connectionBandwidth; /** * SharedKey for the vpn connection. @@ -180,10 +180,10 @@ public Long egressBytesTransferred() { /** * Get expected bandwidth in MBPS. * - * @return the connectionBandwidthInMbps value + * @return the connectionBandwidth value */ - public Integer connectionBandwidthInMbps() { - return this.connectionBandwidthInMbps; + public Integer connectionBandwidth() { + return this.connectionBandwidth; } /** diff --git a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionsImpl.java b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionsImpl.java index c018b93f4165..d43923dc9fd4 100644 --- a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionsImpl.java +++ b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionsImpl.java @@ -43,9 +43,9 @@ private VpnConnectionImpl wrapModel(String name) { } @Override - public Observable listByVpnGatewayAsync(final String gatewayName) { + public Observable listByVpnGatewayAsync(final String resourceGroupName, final String gatewayName) { VpnConnectionsInner client = this.inner(); - return client.listByVpnGatewayAsync(gatewayName) + return client.listByVpnGatewayAsync(resourceGroupName, gatewayName) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { diff --git a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionsInner.java b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionsInner.java index ef25d54c8267..96fee0c2e34e 100644 --- a/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionsInner.java +++ b/network/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/VpnConnectionsInner.java @@ -82,8 +82,8 @@ interface VpnConnectionsService { Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @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.management.network.v2018_04_01.VpnConnections listByVpnGateway" }) - @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections") - Observable> listByVpnGateway(@Path("subscriptionId") String subscriptionId, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections") + Observable> listByVpnGateway(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @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.management.network.v2018_04_01.VpnConnections listByVpnGatewayNext" }) @GET @@ -532,14 +532,15 @@ private ServiceResponse beginDeleteDelegate(Response respons /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * + * @param resourceGroupName The resource group name of the VpnGateway. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<VpnConnectionInner> object if successful. */ - public PagedList listByVpnGateway(final String gatewayName) { - ServiceResponse> response = listByVpnGatewaySinglePageAsync(gatewayName).toBlocking().single(); + public PagedList listByVpnGateway(final String resourceGroupName, final String gatewayName) { + ServiceResponse> response = listByVpnGatewaySinglePageAsync(resourceGroupName, gatewayName).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { @@ -551,14 +552,15 @@ public Page nextPage(String nextPageLink) { /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * + * @param resourceGroupName The resource group name of the VpnGateway. * @param gatewayName The name of the gateway. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByVpnGatewayAsync(final String gatewayName, final ListOperationCallback serviceCallback) { + public ServiceFuture> listByVpnGatewayAsync(final String resourceGroupName, final String gatewayName, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listByVpnGatewaySinglePageAsync(gatewayName), + listByVpnGatewaySinglePageAsync(resourceGroupName, gatewayName), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { @@ -571,12 +573,13 @@ public Observable>> call(String nextPag /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * + * @param resourceGroupName The resource group name of the VpnGateway. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<VpnConnectionInner> object */ - public Observable> listByVpnGatewayAsync(final String gatewayName) { - return listByVpnGatewayWithServiceResponseAsync(gatewayName) + public Observable> listByVpnGatewayAsync(final String resourceGroupName, final String gatewayName) { + return listByVpnGatewayWithServiceResponseAsync(resourceGroupName, gatewayName) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -588,12 +591,13 @@ public Page call(ServiceResponse> r /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * + * @param resourceGroupName The resource group name of the VpnGateway. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<VpnConnectionInner> object */ - public Observable>> listByVpnGatewayWithServiceResponseAsync(final String gatewayName) { - return listByVpnGatewaySinglePageAsync(gatewayName) + public Observable>> listByVpnGatewayWithServiceResponseAsync(final String resourceGroupName, final String gatewayName) { + return listByVpnGatewaySinglePageAsync(resourceGroupName, gatewayName) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -609,19 +613,23 @@ public Observable>> call(ServiceRespons /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * + ServiceResponse> * @param resourceGroupName The resource group name of the VpnGateway. ServiceResponse> * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<VpnConnectionInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listByVpnGatewaySinglePageAsync(final String gatewayName) { + public Observable>> listByVpnGatewaySinglePageAsync(final String resourceGroupName, final String gatewayName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } if (gatewayName == null) { throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); } final String apiVersion = "2018-04-01"; - return service.listByVpnGateway(this.client.subscriptionId(), gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.listByVpnGateway(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { diff --git a/network/resource-manager/v2018_05_01/pom.xml b/network/resource-manager/v2018_06_01/pom.xml similarity index 96% rename from network/resource-manager/v2018_05_01/pom.xml rename to network/resource-manager/v2018_06_01/pom.xml index a90e22b1bcf2..3f4d33385d81 100644 --- a/network/resource-manager/v2018_05_01/pom.xml +++ b/network/resource-manager/v2018_06_01/pom.xml @@ -7,7 +7,7 @@ --> 4.0.0 - com.microsoft.azure.network.v2018_05_01 + com.microsoft.azure.network.v2018_06_01 com.microsoft.azure azure-arm-parent diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Access.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Access.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Access.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Access.java index eb504d171f0c..1d7d3583b2a5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Access.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Access.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AddressSpace.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AddressSpace.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AddressSpace.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AddressSpace.java index 2224cf724a1c..4f8fbb88d4bf 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AddressSpace.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AddressSpace.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGateway.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGateway.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGateway.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGateway.java index e2a26a5db2ba..8be2fe0e81f7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGateway.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGateway.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,9 +17,9 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ApplicationGatewayInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ApplicationGatewayInner; /** * Type representing ApplicationGateway. @@ -30,6 +30,11 @@ public interface ApplicationGateway extends HasInner, R */ List authenticationCertificates(); + /** + * @return the autoscaleConfiguration value. + */ + ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration(); + /** * @return the backendAddressPools value. */ @@ -40,6 +45,11 @@ public interface ApplicationGateway extends HasInner, R */ List backendHttpSettingsCollection(); + /** + * @return the enableFips value. + */ + Boolean enableFips(); + /** * @return the enableHttp2 value. */ @@ -125,6 +135,11 @@ public interface ApplicationGateway extends HasInner, R */ ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration(); + /** + * @return the zones value. + */ + List zones(); + /** * The entirety of the ApplicationGateway definition. */ @@ -157,6 +172,16 @@ interface WithAuthenticationCertificates { WithCreate withAuthenticationCertificates(List authenticationCertificates); } + /** + * The stage of the applicationgateway update allowing to specify AutoscaleConfiguration. + */ + interface WithAutoscaleConfiguration { + /** + * Specifies autoscaleConfiguration. + */ + WithCreate withAutoscaleConfiguration(ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration); + } + /** * The stage of the applicationgateway update allowing to specify BackendAddressPools. */ @@ -177,6 +202,16 @@ interface WithBackendHttpSettingsCollection { WithCreate withBackendHttpSettingsCollection(List backendHttpSettingsCollection); } + /** + * The stage of the applicationgateway update allowing to specify EnableFips. + */ + interface WithEnableFips { + /** + * Specifies enableFips. + */ + WithCreate withEnableFips(Boolean enableFips); + } + /** * The stage of the applicationgateway update allowing to specify EnableHttp2. */ @@ -337,18 +372,28 @@ interface WithWebApplicationFirewallConfiguration { WithCreate withWebApplicationFirewallConfiguration(ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration); } + /** + * The stage of the applicationgateway update allowing to specify Zones. + */ + interface WithZones { + /** + * Specifies zones. + */ + WithCreate withZones(List zones); + } + /** * The stage of the definition which contains all the minimum required inputs for * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAuthenticationCertificates, DefinitionStages.WithBackendAddressPools, DefinitionStages.WithBackendHttpSettingsCollection, DefinitionStages.WithEnableHttp2, DefinitionStages.WithEtag, DefinitionStages.WithFrontendIPConfigurations, DefinitionStages.WithFrontendPorts, DefinitionStages.WithGatewayIPConfigurations, DefinitionStages.WithHttpListeners, DefinitionStages.WithProbes, DefinitionStages.WithProvisioningState, DefinitionStages.WithRedirectConfigurations, DefinitionStages.WithRequestRoutingRules, DefinitionStages.WithResourceGuid, DefinitionStages.WithSku, DefinitionStages.WithSslCertificates, DefinitionStages.WithSslPolicy, DefinitionStages.WithUrlPathMaps, DefinitionStages.WithWebApplicationFirewallConfiguration { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAuthenticationCertificates, DefinitionStages.WithAutoscaleConfiguration, DefinitionStages.WithBackendAddressPools, DefinitionStages.WithBackendHttpSettingsCollection, DefinitionStages.WithEnableFips, DefinitionStages.WithEnableHttp2, DefinitionStages.WithEtag, DefinitionStages.WithFrontendIPConfigurations, DefinitionStages.WithFrontendPorts, DefinitionStages.WithGatewayIPConfigurations, DefinitionStages.WithHttpListeners, DefinitionStages.WithProbes, DefinitionStages.WithProvisioningState, DefinitionStages.WithRedirectConfigurations, DefinitionStages.WithRequestRoutingRules, DefinitionStages.WithResourceGuid, DefinitionStages.WithSku, DefinitionStages.WithSslCertificates, DefinitionStages.WithSslPolicy, DefinitionStages.WithUrlPathMaps, DefinitionStages.WithWebApplicationFirewallConfiguration, DefinitionStages.WithZones { } } /** * The template for a ApplicationGateway update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAuthenticationCertificates, UpdateStages.WithBackendAddressPools, UpdateStages.WithBackendHttpSettingsCollection, UpdateStages.WithEnableHttp2, UpdateStages.WithEtag, UpdateStages.WithFrontendIPConfigurations, UpdateStages.WithFrontendPorts, UpdateStages.WithGatewayIPConfigurations, UpdateStages.WithHttpListeners, UpdateStages.WithProbes, UpdateStages.WithProvisioningState, UpdateStages.WithRedirectConfigurations, UpdateStages.WithRequestRoutingRules, UpdateStages.WithResourceGuid, UpdateStages.WithSku, UpdateStages.WithSslCertificates, UpdateStages.WithSslPolicy, UpdateStages.WithUrlPathMaps, UpdateStages.WithWebApplicationFirewallConfiguration { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAuthenticationCertificates, UpdateStages.WithAutoscaleConfiguration, UpdateStages.WithBackendAddressPools, UpdateStages.WithBackendHttpSettingsCollection, UpdateStages.WithEnableFips, UpdateStages.WithEnableHttp2, UpdateStages.WithEtag, UpdateStages.WithFrontendIPConfigurations, UpdateStages.WithFrontendPorts, UpdateStages.WithGatewayIPConfigurations, UpdateStages.WithHttpListeners, UpdateStages.WithProbes, UpdateStages.WithProvisioningState, UpdateStages.WithRedirectConfigurations, UpdateStages.WithRequestRoutingRules, UpdateStages.WithResourceGuid, UpdateStages.WithSku, UpdateStages.WithSslCertificates, UpdateStages.WithSslPolicy, UpdateStages.WithUrlPathMaps, UpdateStages.WithWebApplicationFirewallConfiguration, UpdateStages.WithZones { } /** @@ -365,6 +410,16 @@ interface WithAuthenticationCertificates { Update withAuthenticationCertificates(List authenticationCertificates); } + /** + * The stage of the applicationgateway {0} allowing to specify AutoscaleConfiguration. + */ + interface WithAutoscaleConfiguration { + /** + * Specifies autoscaleConfiguration. + */ + Update withAutoscaleConfiguration(ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration); + } + /** * The stage of the applicationgateway {0} allowing to specify BackendAddressPools. */ @@ -385,6 +440,16 @@ interface WithBackendHttpSettingsCollection { Update withBackendHttpSettingsCollection(List backendHttpSettingsCollection); } + /** + * The stage of the applicationgateway {0} allowing to specify EnableFips. + */ + interface WithEnableFips { + /** + * Specifies enableFips. + */ + Update withEnableFips(Boolean enableFips); + } + /** * The stage of the applicationgateway {0} allowing to specify EnableHttp2. */ @@ -545,5 +610,15 @@ interface WithWebApplicationFirewallConfiguration { Update withWebApplicationFirewallConfiguration(ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration); } + /** + * The stage of the applicationgateway {0} allowing to specify Zones. + */ + interface WithZones { + /** + * Specifies zones. + */ + Update withZones(List zones); + } + } } diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAuthenticationCertificate.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAuthenticationCertificate.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAuthenticationCertificate.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAuthenticationCertificate.java index ae78f280308f..256308ee6fa6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAuthenticationCertificate.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAuthenticationCertificate.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAutoscaleBounds.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAutoscaleBounds.java new file mode 100644 index 000000000000..f671876a392d --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAutoscaleBounds.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.network.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Application Gateway autoscale bounds on number of Application Gateway + * instance. + */ +public class ApplicationGatewayAutoscaleBounds { + /** + * Lower bound on number of Application Gateway instances. + */ + @JsonProperty(value = "min", required = true) + private int min; + + /** + * Upper bound on number of Application Gateway instances. + */ + @JsonProperty(value = "max", required = true) + private int max; + + /** + * Get lower bound on number of Application Gateway instances. + * + * @return the min value + */ + public int min() { + return this.min; + } + + /** + * Set lower bound on number of Application Gateway instances. + * + * @param min the min value to set + * @return the ApplicationGatewayAutoscaleBounds object itself. + */ + public ApplicationGatewayAutoscaleBounds withMin(int min) { + this.min = min; + return this; + } + + /** + * Get upper bound on number of Application Gateway instances. + * + * @return the max value + */ + public int max() { + return this.max; + } + + /** + * Set upper bound on number of Application Gateway instances. + * + * @param max the max value to set + * @return the ApplicationGatewayAutoscaleBounds object itself. + */ + public ApplicationGatewayAutoscaleBounds withMax(int max) { + this.max = max; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAutoscaleConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAutoscaleConfiguration.java new file mode 100644 index 000000000000..14904eea419f --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAutoscaleConfiguration.java @@ -0,0 +1,43 @@ +/** + * 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.management.network.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Application Gateway autoscale configuration. + */ +public class ApplicationGatewayAutoscaleConfiguration { + /** + * Autoscale bounds. + */ + @JsonProperty(value = "bounds", required = true) + private ApplicationGatewayAutoscaleBounds bounds; + + /** + * Get autoscale bounds. + * + * @return the bounds value + */ + public ApplicationGatewayAutoscaleBounds bounds() { + return this.bounds; + } + + /** + * Set autoscale bounds. + * + * @param bounds the bounds value to set + * @return the ApplicationGatewayAutoscaleConfiguration object itself. + */ + public ApplicationGatewayAutoscaleConfiguration withBounds(ApplicationGatewayAutoscaleBounds bounds) { + this.bounds = bounds; + return this; + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAvailableSslOptions.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAvailableSslOptions.java similarity index 89% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAvailableSslOptions.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAvailableSslOptions.java index 13a1351e9a33..f1ecfe471af1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAvailableSslOptions.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAvailableSslOptions.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ApplicationGatewayAvailableSslOptionsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ApplicationGatewayAvailableSslOptionsInner; import java.util.List; import com.microsoft.azure.SubResource; import java.util.Map; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAvailableWafRuleSetsResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAvailableWafRuleSetsResult.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAvailableWafRuleSetsResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAvailableWafRuleSetsResult.java index 716825b15c64..56722b9f390f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayAvailableWafRuleSetsResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayAvailableWafRuleSetsResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ApplicationGatewayAvailableWafRuleSetsResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ApplicationGatewayAvailableWafRuleSetsResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendAddress.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendAddress.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendAddress.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendAddress.java index 2b0eb5d83025..96e14e62a819 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendAddress.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendAddress.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendAddressPool.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendAddressPool.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendAddressPool.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendAddressPool.java index 726ffbb70aa1..1788b3259080 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendAddressPool.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendAddressPool.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceIPConfigurationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceIPConfigurationInner; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealth.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealth.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealth.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealth.java index cb602278b534..a7d82ba4477c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealth.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealth.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ApplicationGatewayBackendHealthInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ApplicationGatewayBackendHealthInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthHttpSettings.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthHttpSettings.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthHttpSettings.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthHttpSettings.java index f54242495ae1..e122c7d3bb62 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthHttpSettings.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthHttpSettings.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthPool.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthPool.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthPool.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthPool.java index 598479adb669..62cba4e13c4a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthPool.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthPool.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthServer.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthServer.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthServer.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthServer.java index e5264a6877e0..aa02b4e6cac0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthServer.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthServer.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceIPConfigurationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceIPConfigurationInner; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthServerHealth.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthServerHealth.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthServerHealth.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthServerHealth.java index de0866c5c18b..b2f841dc7a25 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHealthServerHealth.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHealthServerHealth.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHttpSettings.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHttpSettings.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHttpSettings.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHttpSettings.java index 3472c648bd5c..3f2230875d9e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayBackendHttpSettings.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayBackendHttpSettings.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import java.util.List; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayConnectionDraining.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayConnectionDraining.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayConnectionDraining.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayConnectionDraining.java index 8c3f376d6c04..35d7a988f11d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayConnectionDraining.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayConnectionDraining.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayCookieBasedAffinity.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayCookieBasedAffinity.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayCookieBasedAffinity.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayCookieBasedAffinity.java index 2393e278e956..b7c942620336 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayCookieBasedAffinity.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayCookieBasedAffinity.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallDisabledRuleGroup.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallDisabledRuleGroup.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallDisabledRuleGroup.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallDisabledRuleGroup.java index 4a1f566dc225..0564abd5febc 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallDisabledRuleGroup.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallDisabledRuleGroup.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallMode.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallMode.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallMode.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallMode.java index 241ec93f2f40..09debe0f09cb 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallMode.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallMode.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRule.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRule.java index 07a76d34b58b..88f6c27c2344 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRule.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRuleGroup.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRuleGroup.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRuleGroup.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRuleGroup.java index 697ee95ed3af..585cdfa02310 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRuleGroup.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRuleGroup.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRuleSet.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRuleSet.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRuleSet.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRuleSet.java index bca76bc58719..11f17bd3a248 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFirewallRuleSet.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFirewallRuleSet.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFrontendIPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFrontendIPConfiguration.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFrontendIPConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFrontendIPConfiguration.java index 0953d3dd1dca..3af9e29a9911 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFrontendIPConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFrontendIPConfiguration.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFrontendPort.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFrontendPort.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFrontendPort.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFrontendPort.java index d8b1cabf7964..d3216c1ef385 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayFrontendPort.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayFrontendPort.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayHttpListener.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayHttpListener.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayHttpListener.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayHttpListener.java index f5cea1bde1f2..836bb0a303ca 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayHttpListener.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayHttpListener.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayIPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayIPConfiguration.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayIPConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayIPConfiguration.java index 6e97fee54cff..dd2daa61b0ec 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayIPConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayIPConfiguration.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayOperationalState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayOperationalState.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayOperationalState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayOperationalState.java index 132345265127..547a29a8b796 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayOperationalState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayOperationalState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayPathRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayPathRule.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayPathRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayPathRule.java index 55cab822222b..2a90bfefccc8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayPathRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayPathRule.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProbe.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProbe.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProbe.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProbe.java index 3e21599e630a..6d4399ebb9ce 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProbe.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProbe.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProbeHealthResponseMatch.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProbeHealthResponseMatch.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProbeHealthResponseMatch.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProbeHealthResponseMatch.java index 1713086601e0..8291ea68906d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProbeHealthResponseMatch.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProbeHealthResponseMatch.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProtocol.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProtocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProtocol.java index 903e601403f8..415e9238c33f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayProtocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayProtocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRedirectConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRedirectConfiguration.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRedirectConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRedirectConfiguration.java index a0617ec0eab0..b400d4e3020d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRedirectConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRedirectConfiguration.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import java.util.List; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRedirectType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRedirectType.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRedirectType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRedirectType.java index f135f9d8af12..c8ba23061ccd 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRedirectType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRedirectType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRequestRoutingRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRequestRoutingRule.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRequestRoutingRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRequestRoutingRule.java index b585de30ab28..07347895a6fe 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRequestRoutingRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRequestRoutingRule.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRequestRoutingRuleType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRequestRoutingRuleType.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRequestRoutingRuleType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRequestRoutingRuleType.java index 69265d0741da..fbc54df310d2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewayRequestRoutingRuleType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewayRequestRoutingRuleType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewaySku.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewaySku.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewaySku.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewaySku.java index 6052e7eb7dde..9e9502f025d7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewaySku.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewaySku.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; @@ -17,14 +17,14 @@ public class ApplicationGatewaySku { /** * Name of an application gateway SKU. Possible values include: * 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', - * 'WAF_Large'. + * 'WAF_Large', 'Standard_v2', 'WAF_v2'. */ @JsonProperty(value = "name") private ApplicationGatewaySkuName name; /** * Tier of an application gateway. Possible values include: 'Standard', - * 'WAF'. + * 'WAF', 'Standard_v2', 'WAF_v2'. */ @JsonProperty(value = "tier") private ApplicationGatewayTier tier; @@ -36,7 +36,7 @@ public class ApplicationGatewaySku { private Integer capacity; /** - * Get name of an application gateway SKU. Possible values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', 'WAF_Large'. + * Get name of an application gateway SKU. Possible values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2'. * * @return the name value */ @@ -45,7 +45,7 @@ public ApplicationGatewaySkuName name() { } /** - * Set name of an application gateway SKU. Possible values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', 'WAF_Large'. + * Set name of an application gateway SKU. Possible values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2'. * * @param name the name value to set * @return the ApplicationGatewaySku object itself. @@ -56,7 +56,7 @@ public ApplicationGatewaySku withName(ApplicationGatewaySkuName name) { } /** - * Get tier of an application gateway. Possible values include: 'Standard', 'WAF'. + * Get tier of an application gateway. Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2'. * * @return the tier value */ @@ -65,7 +65,7 @@ public ApplicationGatewayTier tier() { } /** - * Set tier of an application gateway. Possible values include: 'Standard', 'WAF'. + * Set tier of an application gateway. Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2'. * * @param tier the tier value to set * @return the ApplicationGatewaySku object itself. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewaySkuName.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewaySkuName.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewaySkuName.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewaySkuName.java index b019effaa911..484a130a29eb 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ApplicationGatewaySkuName.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ApplicationGatewaySkuName.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; @@ -31,6 +31,12 @@ public final class ApplicationGatewaySkuName extends ExpandableStringEnum, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the applicationRuleCollections value. + */ + List applicationRuleCollections(); + + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the ipConfigurations value. + */ + List ipConfigurations(); + + /** + * @return the networkRuleCollections value. + */ + List networkRuleCollections(); + + /** + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * The entirety of the AzureFirewall definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of AzureFirewall definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a AzureFirewall definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the AzureFirewall definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the azurefirewall update allowing to specify ApplicationRuleCollections. + */ + interface WithApplicationRuleCollections { + /** + * Specifies applicationRuleCollections. + */ + WithCreate withApplicationRuleCollections(List applicationRuleCollections); + } + + /** + * The stage of the azurefirewall update allowing to specify IpConfigurations. + */ + interface WithIpConfigurations { + /** + * Specifies ipConfigurations. + */ + WithCreate withIpConfigurations(List ipConfigurations); + } + + /** + * The stage of the azurefirewall update allowing to specify NetworkRuleCollections. + */ + interface WithNetworkRuleCollections { + /** + * Specifies networkRuleCollections. + */ + WithCreate withNetworkRuleCollections(List networkRuleCollections); + } + + /** + * The stage of the azurefirewall update allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + WithCreate withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithApplicationRuleCollections, DefinitionStages.WithIpConfigurations, DefinitionStages.WithNetworkRuleCollections, DefinitionStages.WithProvisioningState { + } + } + /** + * The template for a AzureFirewall update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithApplicationRuleCollections, UpdateStages.WithIpConfigurations, UpdateStages.WithNetworkRuleCollections, UpdateStages.WithProvisioningState { + } + + /** + * Grouping of AzureFirewall update stages. + */ + interface UpdateStages { + /** + * The stage of the azurefirewall {0} allowing to specify ApplicationRuleCollections. + */ + interface WithApplicationRuleCollections { + /** + * Specifies applicationRuleCollections. + */ + Update withApplicationRuleCollections(List applicationRuleCollections); + } + + /** + * The stage of the azurefirewall {0} allowing to specify IpConfigurations. + */ + interface WithIpConfigurations { + /** + * Specifies ipConfigurations. + */ + Update withIpConfigurations(List ipConfigurations); + } + + /** + * The stage of the azurefirewall {0} allowing to specify NetworkRuleCollections. + */ + interface WithNetworkRuleCollections { + /** + * Specifies networkRuleCollections. + */ + Update withNetworkRuleCollections(List networkRuleCollections); + } + + /** + * The stage of the azurefirewall {0} allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + Update withProvisioningState(ProvisioningState provisioningState); + } + + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRule.java new file mode 100644 index 000000000000..53d28fdba75f --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRule.java @@ -0,0 +1,148 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Properties of an application rule. + */ +public class AzureFirewallApplicationRule { + /** + * Name of the application rule. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Description of the rule. + */ + @JsonProperty(value = "description") + private String description; + + /** + * List of source IP addresses for this rule. + */ + @JsonProperty(value = "sourceAddresses") + private List sourceAddresses; + + /** + * Array of ApplicationRuleProtocols. + */ + @JsonProperty(value = "protocols") + private List protocols; + + /** + * List of URLs for this rule. + */ + @JsonProperty(value = "targetUrls") + private List targetUrls; + + /** + * Get name of the application rule. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set name of the application rule. + * + * @param name the name value to set + * @return the AzureFirewallApplicationRule object itself. + */ + public AzureFirewallApplicationRule withName(String name) { + this.name = name; + return this; + } + + /** + * Get description of the rule. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set description of the rule. + * + * @param description the description value to set + * @return the AzureFirewallApplicationRule object itself. + */ + public AzureFirewallApplicationRule withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get list of source IP addresses for this rule. + * + * @return the sourceAddresses value + */ + public List sourceAddresses() { + return this.sourceAddresses; + } + + /** + * Set list of source IP addresses for this rule. + * + * @param sourceAddresses the sourceAddresses value to set + * @return the AzureFirewallApplicationRule object itself. + */ + public AzureFirewallApplicationRule withSourceAddresses(List sourceAddresses) { + this.sourceAddresses = sourceAddresses; + return this; + } + + /** + * Get array of ApplicationRuleProtocols. + * + * @return the protocols value + */ + public List protocols() { + return this.protocols; + } + + /** + * Set array of ApplicationRuleProtocols. + * + * @param protocols the protocols value to set + * @return the AzureFirewallApplicationRule object itself. + */ + public AzureFirewallApplicationRule withProtocols(List protocols) { + this.protocols = protocols; + return this; + } + + /** + * Get list of URLs for this rule. + * + * @return the targetUrls value + */ + public List targetUrls() { + return this.targetUrls; + } + + /** + * Set list of URLs for this rule. + * + * @param targetUrls the targetUrls value to set + * @return the AzureFirewallApplicationRule object itself. + */ + public AzureFirewallApplicationRule withTargetUrls(List targetUrls) { + this.targetUrls = targetUrls; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleCollection.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleCollection.java new file mode 100644 index 000000000000..6466eb1ffd34 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleCollection.java @@ -0,0 +1,169 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.SubResource; + +/** + * Application rule collection resource. + */ +@JsonFlatten +public class AzureFirewallApplicationRuleCollection extends SubResource { + /** + * Priority of the application rule collection resource. + */ + @JsonProperty(value = "properties.priority") + private Integer priority; + + /** + * The action type of a rule collection. + */ + @JsonProperty(value = "properties.action") + private AzureFirewallRCAction action; + + /** + * Collection of rules used by a application rule collection. + */ + @JsonProperty(value = "properties.rules") + private List rules; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets name of the resource that is unique within a resource group. This + * name can be used to access the resource. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get priority of the application rule collection resource. + * + * @return the priority value + */ + public Integer priority() { + return this.priority; + } + + /** + * Set priority of the application rule collection resource. + * + * @param priority the priority value to set + * @return the AzureFirewallApplicationRuleCollection object itself. + */ + public AzureFirewallApplicationRuleCollection withPriority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * Get the action type of a rule collection. + * + * @return the action value + */ + public AzureFirewallRCAction action() { + return this.action; + } + + /** + * Set the action type of a rule collection. + * + * @param action the action value to set + * @return the AzureFirewallApplicationRuleCollection object itself. + */ + public AzureFirewallApplicationRuleCollection withAction(AzureFirewallRCAction action) { + this.action = action; + return this; + } + + /** + * Get collection of rules used by a application rule collection. + * + * @return the rules value + */ + public List rules() { + return this.rules; + } + + /** + * Set collection of rules used by a application rule collection. + * + * @param rules the rules value to set + * @return the AzureFirewallApplicationRuleCollection object itself. + */ + public AzureFirewallApplicationRuleCollection withRules(List rules) { + this.rules = rules; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the AzureFirewallApplicationRuleCollection object itself. + */ + public AzureFirewallApplicationRuleCollection withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets name of the resource that is unique within a resource group. This name can be used to access the resource. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set gets name of the resource that is unique within a resource group. This name can be used to access the resource. + * + * @param name the name value to set + * @return the AzureFirewallApplicationRuleCollection object itself. + */ + public AzureFirewallApplicationRuleCollection withName(String name) { + this.name = name; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleProtocol.java new file mode 100644 index 000000000000..82be432390ba --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleProtocol.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.network.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Properties of the application rule protocol. + */ +public class AzureFirewallApplicationRuleProtocol { + /** + * Protocol type. Possible values include: 'Http', 'Https'. + */ + @JsonProperty(value = "protocolType") + private AzureFirewallApplicationRuleProtocolType protocolType; + + /** + * Port number for the protocol, cannot be greater than 64000. This field + * is optional. + */ + @JsonProperty(value = "port") + private Integer port; + + /** + * Get protocol type. Possible values include: 'Http', 'Https'. + * + * @return the protocolType value + */ + public AzureFirewallApplicationRuleProtocolType protocolType() { + return this.protocolType; + } + + /** + * Set protocol type. Possible values include: 'Http', 'Https'. + * + * @param protocolType the protocolType value to set + * @return the AzureFirewallApplicationRuleProtocol object itself. + */ + public AzureFirewallApplicationRuleProtocol withProtocolType(AzureFirewallApplicationRuleProtocolType protocolType) { + this.protocolType = protocolType; + return this; + } + + /** + * Get port number for the protocol, cannot be greater than 64000. This field is optional. + * + * @return the port value + */ + public Integer port() { + return this.port; + } + + /** + * Set port number for the protocol, cannot be greater than 64000. This field is optional. + * + * @param port the port value to set + * @return the AzureFirewallApplicationRuleProtocol object itself. + */ + public AzureFirewallApplicationRuleProtocol withPort(Integer port) { + this.port = port; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleProtocolType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleProtocolType.java new file mode 100644 index 000000000000..fa6384f79060 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallApplicationRuleProtocolType.java @@ -0,0 +1,41 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for AzureFirewallApplicationRuleProtocolType. + */ +public final class AzureFirewallApplicationRuleProtocolType extends ExpandableStringEnum { + /** Static value Http for AzureFirewallApplicationRuleProtocolType. */ + public static final AzureFirewallApplicationRuleProtocolType HTTP = fromString("Http"); + + /** Static value Https for AzureFirewallApplicationRuleProtocolType. */ + public static final AzureFirewallApplicationRuleProtocolType HTTPS = fromString("Https"); + + /** + * Creates or finds a AzureFirewallApplicationRuleProtocolType from its string representation. + * @param name a name to look for + * @return the corresponding AzureFirewallApplicationRuleProtocolType + */ + @JsonCreator + public static AzureFirewallApplicationRuleProtocolType fromString(String name) { + return fromString(name, AzureFirewallApplicationRuleProtocolType.class); + } + + /** + * @return known AzureFirewallApplicationRuleProtocolType values + */ + public static Collection values() { + return values(AzureFirewallApplicationRuleProtocolType.class); + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallIPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallIPConfiguration.java new file mode 100644 index 000000000000..f6419c453415 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallIPConfiguration.java @@ -0,0 +1,207 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.SubResource; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * IP configuration of an Azure Firewall. + */ +@JsonFlatten +public class AzureFirewallIPConfiguration extends SubResource { + /** + * The Firewall Internal Load Balancer IP to be used as the next hop in + * User Defined Routes. + */ + @JsonProperty(value = "properties.privateIPAddress") + private String privateIPAddress; + + /** + * Reference of the subnet resource. This resource must be named + * 'AzureFirewallSubnet'. + */ + @JsonProperty(value = "properties.subnet") + private SubResource subnet; + + /** + * Reference of the PublicIP resource. This field is a mandatory input. + */ + @JsonProperty(value = "properties.internalPublicIpAddress") + private SubResource internalPublicIpAddress; + + /** + * Reference of the PublicIP resource. This field is populated in the + * output. + */ + @JsonProperty(value = "properties.publicIPAddress") + private SubResource publicIPAddress; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Name of the resource that is unique within a resource group. This name + * can be used to access the resource. + */ + @JsonProperty(value = "name") + private String name; + + /** + * A unique read-only string that changes whenever the resource is updated. + */ + @JsonProperty(value = "etag") + private String etag; + + /** + * Get the Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes. + * + * @return the privateIPAddress value + */ + public String privateIPAddress() { + return this.privateIPAddress; + } + + /** + * Set the Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes. + * + * @param privateIPAddress the privateIPAddress value to set + * @return the AzureFirewallIPConfiguration object itself. + */ + public AzureFirewallIPConfiguration withPrivateIPAddress(String privateIPAddress) { + this.privateIPAddress = privateIPAddress; + return this; + } + + /** + * Get reference of the subnet resource. This resource must be named 'AzureFirewallSubnet'. + * + * @return the subnet value + */ + public SubResource subnet() { + return this.subnet; + } + + /** + * Set reference of the subnet resource. This resource must be named 'AzureFirewallSubnet'. + * + * @param subnet the subnet value to set + * @return the AzureFirewallIPConfiguration object itself. + */ + public AzureFirewallIPConfiguration withSubnet(SubResource subnet) { + this.subnet = subnet; + return this; + } + + /** + * Get reference of the PublicIP resource. This field is a mandatory input. + * + * @return the internalPublicIpAddress value + */ + public SubResource internalPublicIpAddress() { + return this.internalPublicIpAddress; + } + + /** + * Set reference of the PublicIP resource. This field is a mandatory input. + * + * @param internalPublicIpAddress the internalPublicIpAddress value to set + * @return the AzureFirewallIPConfiguration object itself. + */ + public AzureFirewallIPConfiguration withInternalPublicIpAddress(SubResource internalPublicIpAddress) { + this.internalPublicIpAddress = internalPublicIpAddress; + return this; + } + + /** + * Get reference of the PublicIP resource. This field is populated in the output. + * + * @return the publicIPAddress value + */ + public SubResource publicIPAddress() { + return this.publicIPAddress; + } + + /** + * Set reference of the PublicIP resource. This field is populated in the output. + * + * @param publicIPAddress the publicIPAddress value to set + * @return the AzureFirewallIPConfiguration object itself. + */ + public AzureFirewallIPConfiguration withPublicIPAddress(SubResource publicIPAddress) { + this.publicIPAddress = publicIPAddress; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the AzureFirewallIPConfiguration object itself. + */ + public AzureFirewallIPConfiguration withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get name of the resource that is unique within a resource group. This name can be used to access the resource. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set name of the resource that is unique within a resource group. This name can be used to access the resource. + * + * @param name the name value to set + * @return the AzureFirewallIPConfiguration object itself. + */ + public AzureFirewallIPConfiguration withName(String name) { + this.name = name; + return this; + } + + /** + * Get a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Set a unique read-only string that changes whenever the resource is updated. + * + * @param etag the etag value to set + * @return the AzureFirewallIPConfiguration object itself. + */ + public AzureFirewallIPConfiguration withEtag(String etag) { + this.etag = etag; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRule.java new file mode 100644 index 000000000000..7ff0e0282308 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRule.java @@ -0,0 +1,174 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Properties of the network rule. + */ +public class AzureFirewallNetworkRule { + /** + * Name of the network rule. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Description of the rule. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Array of AzureFirewallNetworkRuleProtocols. + */ + @JsonProperty(value = "protocols") + private List protocols; + + /** + * List of source IP addresses for this rule. + */ + @JsonProperty(value = "sourceAddresses") + private List sourceAddresses; + + /** + * List of destination IP addresses. + */ + @JsonProperty(value = "destinationAddresses") + private List destinationAddresses; + + /** + * List of destination ports. + */ + @JsonProperty(value = "destinationPorts") + private List destinationPorts; + + /** + * Get name of the network rule. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set name of the network rule. + * + * @param name the name value to set + * @return the AzureFirewallNetworkRule object itself. + */ + public AzureFirewallNetworkRule withName(String name) { + this.name = name; + return this; + } + + /** + * Get description of the rule. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set description of the rule. + * + * @param description the description value to set + * @return the AzureFirewallNetworkRule object itself. + */ + public AzureFirewallNetworkRule withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get array of AzureFirewallNetworkRuleProtocols. + * + * @return the protocols value + */ + public List protocols() { + return this.protocols; + } + + /** + * Set array of AzureFirewallNetworkRuleProtocols. + * + * @param protocols the protocols value to set + * @return the AzureFirewallNetworkRule object itself. + */ + public AzureFirewallNetworkRule withProtocols(List protocols) { + this.protocols = protocols; + return this; + } + + /** + * Get list of source IP addresses for this rule. + * + * @return the sourceAddresses value + */ + public List sourceAddresses() { + return this.sourceAddresses; + } + + /** + * Set list of source IP addresses for this rule. + * + * @param sourceAddresses the sourceAddresses value to set + * @return the AzureFirewallNetworkRule object itself. + */ + public AzureFirewallNetworkRule withSourceAddresses(List sourceAddresses) { + this.sourceAddresses = sourceAddresses; + return this; + } + + /** + * Get list of destination IP addresses. + * + * @return the destinationAddresses value + */ + public List destinationAddresses() { + return this.destinationAddresses; + } + + /** + * Set list of destination IP addresses. + * + * @param destinationAddresses the destinationAddresses value to set + * @return the AzureFirewallNetworkRule object itself. + */ + public AzureFirewallNetworkRule withDestinationAddresses(List destinationAddresses) { + this.destinationAddresses = destinationAddresses; + return this; + } + + /** + * Get list of destination ports. + * + * @return the destinationPorts value + */ + public List destinationPorts() { + return this.destinationPorts; + } + + /** + * Set list of destination ports. + * + * @param destinationPorts the destinationPorts value to set + * @return the AzureFirewallNetworkRule object itself. + */ + public AzureFirewallNetworkRule withDestinationPorts(List destinationPorts) { + this.destinationPorts = destinationPorts; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRuleCollection.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRuleCollection.java new file mode 100644 index 000000000000..8da8973c77c6 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRuleCollection.java @@ -0,0 +1,169 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.SubResource; + +/** + * Network rule collection resource. + */ +@JsonFlatten +public class AzureFirewallNetworkRuleCollection extends SubResource { + /** + * Priority of the network rule collection resource. + */ + @JsonProperty(value = "properties.priority") + private Integer priority; + + /** + * The action type of a rule collection. + */ + @JsonProperty(value = "properties.action") + private AzureFirewallRCAction action; + + /** + * Collection of rules used by a network rule collection. + */ + @JsonProperty(value = "properties.rules") + private List rules; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets name of the resource that is unique within a resource group. This + * name can be used to access the resource. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get priority of the network rule collection resource. + * + * @return the priority value + */ + public Integer priority() { + return this.priority; + } + + /** + * Set priority of the network rule collection resource. + * + * @param priority the priority value to set + * @return the AzureFirewallNetworkRuleCollection object itself. + */ + public AzureFirewallNetworkRuleCollection withPriority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * Get the action type of a rule collection. + * + * @return the action value + */ + public AzureFirewallRCAction action() { + return this.action; + } + + /** + * Set the action type of a rule collection. + * + * @param action the action value to set + * @return the AzureFirewallNetworkRuleCollection object itself. + */ + public AzureFirewallNetworkRuleCollection withAction(AzureFirewallRCAction action) { + this.action = action; + return this; + } + + /** + * Get collection of rules used by a network rule collection. + * + * @return the rules value + */ + public List rules() { + return this.rules; + } + + /** + * Set collection of rules used by a network rule collection. + * + * @param rules the rules value to set + * @return the AzureFirewallNetworkRuleCollection object itself. + */ + public AzureFirewallNetworkRuleCollection withRules(List rules) { + this.rules = rules; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the AzureFirewallNetworkRuleCollection object itself. + */ + public AzureFirewallNetworkRuleCollection withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets name of the resource that is unique within a resource group. This name can be used to access the resource. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set gets name of the resource that is unique within a resource group. This name can be used to access the resource. + * + * @param name the name value to set + * @return the AzureFirewallNetworkRuleCollection object itself. + */ + public AzureFirewallNetworkRuleCollection withName(String name) { + this.name = name; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRuleProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRuleProtocol.java new file mode 100644 index 000000000000..3350886f9375 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallNetworkRuleProtocol.java @@ -0,0 +1,47 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for AzureFirewallNetworkRuleProtocol. + */ +public final class AzureFirewallNetworkRuleProtocol extends ExpandableStringEnum { + /** Static value TCP for AzureFirewallNetworkRuleProtocol. */ + public static final AzureFirewallNetworkRuleProtocol TCP = fromString("TCP"); + + /** Static value UDP for AzureFirewallNetworkRuleProtocol. */ + public static final AzureFirewallNetworkRuleProtocol UDP = fromString("UDP"); + + /** Static value Any for AzureFirewallNetworkRuleProtocol. */ + public static final AzureFirewallNetworkRuleProtocol ANY = fromString("Any"); + + /** Static value ICMP for AzureFirewallNetworkRuleProtocol. */ + public static final AzureFirewallNetworkRuleProtocol ICMP = fromString("ICMP"); + + /** + * Creates or finds a AzureFirewallNetworkRuleProtocol from its string representation. + * @param name a name to look for + * @return the corresponding AzureFirewallNetworkRuleProtocol + */ + @JsonCreator + public static AzureFirewallNetworkRuleProtocol fromString(String name) { + return fromString(name, AzureFirewallNetworkRuleProtocol.class); + } + + /** + * @return known AzureFirewallNetworkRuleProtocol values + */ + public static Collection values() { + return values(AzureFirewallNetworkRuleProtocol.class); + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallRCAction.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallRCAction.java new file mode 100644 index 000000000000..12d1fd8dc843 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallRCAction.java @@ -0,0 +1,43 @@ +/** + * 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.management.network.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Properties of the AzureFirewallRCAction. + */ +public class AzureFirewallRCAction { + /** + * The type of action. Possible values include: 'Allow', 'Deny'. + */ + @JsonProperty(value = "type") + private AzureFirewallRCActionType type; + + /** + * Get the type of action. Possible values include: 'Allow', 'Deny'. + * + * @return the type value + */ + public AzureFirewallRCActionType type() { + return this.type; + } + + /** + * Set the type of action. Possible values include: 'Allow', 'Deny'. + * + * @param type the type value to set + * @return the AzureFirewallRCAction object itself. + */ + public AzureFirewallRCAction withType(AzureFirewallRCActionType type) { + this.type = type; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallRCActionType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallRCActionType.java new file mode 100644 index 000000000000..748a30b1ddc9 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewallRCActionType.java @@ -0,0 +1,41 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for AzureFirewallRCActionType. + */ +public final class AzureFirewallRCActionType extends ExpandableStringEnum { + /** Static value Allow for AzureFirewallRCActionType. */ + public static final AzureFirewallRCActionType ALLOW = fromString("Allow"); + + /** Static value Deny for AzureFirewallRCActionType. */ + public static final AzureFirewallRCActionType DENY = fromString("Deny"); + + /** + * Creates or finds a AzureFirewallRCActionType from its string representation. + * @param name a name to look for + * @return the corresponding AzureFirewallRCActionType + */ + @JsonCreator + public static AzureFirewallRCActionType fromString(String name) { + return fromString(name, AzureFirewallRCActionType.class); + } + + /** + * @return known AzureFirewallRCActionType values + */ + public static Collection values() { + return values(AzureFirewallRCActionType.class); + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewalls.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewalls.java new file mode 100644 index 000000000000..9d6811ae1a02 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureFirewalls.java @@ -0,0 +1,25 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.network.v2018_06_01.implementation.AzureFirewallsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing AzureFirewalls. + */ +public interface AzureFirewalls extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReport.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReport.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReport.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReport.java index dc81dbef364e..ed5e712968f9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReport.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReport.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.AzureReachabilityReportInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.AzureReachabilityReportInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportItem.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportItem.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportItem.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportItem.java index 159de5d6369e..dba634f22767 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportItem.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportItem.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportLatencyInfo.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportLatencyInfo.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportLatencyInfo.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportLatencyInfo.java index 36ec144cd024..ffbc70b29daf 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportLatencyInfo.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportLatencyInfo.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportLocation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportLocation.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportLocation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportLocation.java index 2414e55c9dc6..202a678e298c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportLocation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportLocation.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportParameters.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportParameters.java index 358fb1dc0701..1453bb683db6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/AzureReachabilityReportParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/AzureReachabilityReportParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import org.joda.time.DateTime; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BGPCommunity.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BGPCommunity.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BGPCommunity.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BGPCommunity.java index 1360e98935b8..eb7e42a5000f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BGPCommunity.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BGPCommunity.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BackendAddressPool.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BackendAddressPool.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BackendAddressPool.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BackendAddressPool.java index 4bf02109a98d..cb9007afe37a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BackendAddressPool.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BackendAddressPool.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.BackendAddressPoolInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.BackendAddressPoolInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerState.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerState.java index 2600b56101ab..b628c4398c66 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerStatus.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerStatus.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerStatus.java index 4be0af5d59b9..99a12e146891 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerStatus.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerStatus.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerStatusListResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerStatusListResult.java similarity index 78% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerStatusListResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerStatusListResult.java index c09551a70a5e..271943a5aa1f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpPeerStatusListResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpPeerStatusListResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.BgpPeerStatusListResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.BgpPeerStatusListResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpServiceCommunities.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpServiceCommunities.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpServiceCommunities.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpServiceCommunities.java index 8b811f542c6c..a60b2e730e18 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpServiceCommunities.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpServiceCommunities.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.BgpServiceCommunitiesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.BgpServiceCommunitiesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpServiceCommunity.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpServiceCommunity.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpServiceCommunity.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpServiceCommunity.java index dae587703dfc..17ec6e3966c1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpServiceCommunity.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpServiceCommunity.java @@ -6,16 +6,16 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.BgpServiceCommunityInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.BgpServiceCommunityInner; /** * Type representing BgpServiceCommunity. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpSettings.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpSettings.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpSettings.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpSettings.java index edd56c26023f..0dbddd61eb45 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/BgpSettings.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/BgpSettings.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/CircuitConnectionStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/CircuitConnectionStatus.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/CircuitConnectionStatus.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/CircuitConnectionStatus.java index cdb715f6818e..b0fb9524f030 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/CircuitConnectionStatus.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/CircuitConnectionStatus.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorDestination.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorDestination.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorDestination.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorDestination.java index 163592fc0065..88142e8d892e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorDestination.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorDestination.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorParameters.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorParameters.java index e9b1f797f2ce..5aa580f8061c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorQueryResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorQueryResult.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorQueryResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorQueryResult.java index 212123c5c759..cf097b65e465 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorQueryResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorQueryResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ConnectionMonitorQueryResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectionMonitorQueryResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorResult.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorResult.java index 256a3bbf292f..3087945673e1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorResult.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ConnectionMonitorResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectionMonitorResultInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.Map; import org.joda.time.DateTime; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorSource.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorSource.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorSource.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorSource.java index 3b229cb3351d..577b287161d0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorSource.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorSource.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorSourceStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorSourceStatus.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorSourceStatus.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorSourceStatus.java index 19627b18124a..f665ff3de378 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitorSourceStatus.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorSourceStatus.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitors.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitors.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitors.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitors.java index 27d65cb7c054..fd51825be613 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionMonitors.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitors.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ConnectionMonitorsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectionMonitorsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionResetSharedKey.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionResetSharedKey.java similarity index 77% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionResetSharedKey.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionResetSharedKey.java index 89d69cf60d57..ff8f69a1dd7a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionResetSharedKey.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionResetSharedKey.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ConnectionResetSharedKeyInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectionResetSharedKeyInner; /** * Type representing ConnectionResetSharedKey. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionSharedKey.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionSharedKey.java similarity index 71% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionSharedKey.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionSharedKey.java index 1e452b194e17..fb449447bf6c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionSharedKey.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionSharedKey.java @@ -6,17 +6,22 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ConnectionSharedKeyInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectionSharedKeyInner; /** * Type representing ConnectionSharedKey. */ public interface ConnectionSharedKey extends HasInner, HasManager { + /** + * @return the id value. + */ + String id(); + /** * @return the value value. */ diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionState.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionState.java index 7f731fa3a3cf..35dc1ff378c9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionStateSnapshot.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionStateSnapshot.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionStateSnapshot.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionStateSnapshot.java index 9364cd0a8363..7048fd55a4b8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionStateSnapshot.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionStateSnapshot.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import org.joda.time.DateTime; import java.util.List; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionStatus.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionStatus.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionStatus.java index b815967da540..25cdce2c54cc 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectionStatus.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectionStatus.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityDestination.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityDestination.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityDestination.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityDestination.java index 24dcf655a5fb..731d4e062e79 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityDestination.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityDestination.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityHop.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityHop.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityHop.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityHop.java index c5bb2d905a06..15c7a2f8434c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityHop.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityHop.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityInformation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityInformation.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityInformation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityInformation.java index fdfc47ecfcf4..210a369bc480 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityInformation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityInformation.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ConnectivityInformationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectivityInformationInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityIssue.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityIssue.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityIssue.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityIssue.java index 69516c0bcfed..e77640dac36e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityIssue.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityIssue.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import java.util.Map; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityParameters.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityParameters.java index dfc40b4d7da2..92fa4c625c87 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivityParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivityParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivitySource.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivitySource.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivitySource.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivitySource.java index 6170b349c75c..6628552b6922 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ConnectivitySource.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ConnectivitySource.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DdosProtectionPlan.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DdosProtectionPlan.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DdosProtectionPlan.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DdosProtectionPlan.java index 68de4fab131f..c67050c360c9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DdosProtectionPlan.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DdosProtectionPlan.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,10 +17,10 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.implementation.DdosProtectionPlanInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.DdosProtectionPlanInner; /** * Type representing DdosProtectionPlan. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DdosProtectionPlans.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DdosProtectionPlans.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DdosProtectionPlans.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DdosProtectionPlans.java index a30d415fe721..fe5ecfca28e0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DdosProtectionPlans.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DdosProtectionPlans.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,7 +15,7 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.DdosProtectionPlansInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.DdosProtectionPlansInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DefaultSecurityRules.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DefaultSecurityRules.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DefaultSecurityRules.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DefaultSecurityRules.java index b06239829c4b..a6d80a6c13d1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DefaultSecurityRules.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DefaultSecurityRules.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.DefaultSecurityRulesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.DefaultSecurityRulesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DeviceProperties.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DeviceProperties.java new file mode 100644 index 000000000000..917ab717471c --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DeviceProperties.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.network.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * List of properties of the device. + */ +public class DeviceProperties { + /** + * Name of the device Vendor. + */ + @JsonProperty(value = "deviceVendor") + private String deviceVendor; + + /** + * Model of the device. + */ + @JsonProperty(value = "deviceModel") + private String deviceModel; + + /** + * Link speed. + */ + @JsonProperty(value = "linkSpeedInMbps") + private Integer linkSpeedInMbps; + + /** + * Get name of the device Vendor. + * + * @return the deviceVendor value + */ + public String deviceVendor() { + return this.deviceVendor; + } + + /** + * Set name of the device Vendor. + * + * @param deviceVendor the deviceVendor value to set + * @return the DeviceProperties object itself. + */ + public DeviceProperties withDeviceVendor(String deviceVendor) { + this.deviceVendor = deviceVendor; + return this; + } + + /** + * Get model of the device. + * + * @return the deviceModel value + */ + public String deviceModel() { + return this.deviceModel; + } + + /** + * Set model of the device. + * + * @param deviceModel the deviceModel value to set + * @return the DeviceProperties object itself. + */ + public DeviceProperties withDeviceModel(String deviceModel) { + this.deviceModel = deviceModel; + return this; + } + + /** + * Get link speed. + * + * @return the linkSpeedInMbps value + */ + public Integer linkSpeedInMbps() { + return this.linkSpeedInMbps; + } + + /** + * Set link speed. + * + * @param linkSpeedInMbps the linkSpeedInMbps value to set + * @return the DeviceProperties object itself. + */ + public DeviceProperties withLinkSpeedInMbps(Integer linkSpeedInMbps) { + this.linkSpeedInMbps = linkSpeedInMbps; + return this; + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DhGroup.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DhGroup.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DhGroup.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DhGroup.java index 528179c3ace7..92ddde7355d5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DhGroup.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DhGroup.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DhcpOptions.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DhcpOptions.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DhcpOptions.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DhcpOptions.java index 73bd58f1b20b..9e5276b4a248 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/DhcpOptions.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/DhcpOptions.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Dimension.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Dimension.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Dimension.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Dimension.java index c57a743f32c6..39e8b356c689 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Dimension.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Dimension.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Direction.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Direction.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Direction.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Direction.java index d4949b6b243d..184186caf9fa 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Direction.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Direction.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroup.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroup.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroup.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroup.java index ef021320d528..53d48b0e8a0d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroup.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroup.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import java.util.List; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroupAssociation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroupAssociation.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroupAssociation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroupAssociation.java index 3bdf621ef321..05266b3f8dd8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroupAssociation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroupAssociation.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroupListResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroupListResult.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroupListResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroupListResult.java index 190023813d86..f9618403a032 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityGroupListResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityGroupListResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.EffectiveNetworkSecurityGroupListResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.EffectiveNetworkSecurityGroupListResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityRule.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityRule.java index 67f38ce3d47c..5601e0850c4d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveNetworkSecurityRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveNetworkSecurityRule.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRoute.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRoute.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRoute.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRoute.java index 1d24001ec34f..b2103d68cae9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRoute.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRoute.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteListResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteListResult.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteListResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteListResult.java index d4ed2445275c..5e1b2eb1df73 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteListResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteListResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.EffectiveRouteListResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.EffectiveRouteListResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteSource.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteSource.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteSource.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteSource.java index 32c1e25a33e2..2e69b5a34782 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteSource.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteSource.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteState.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteState.java index 37fc0a0396d8..737860adbe3a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveRouteState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveRouteState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveSecurityRuleProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveSecurityRuleProtocol.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveSecurityRuleProtocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveSecurityRuleProtocol.java index ac85756d74ae..727c38bca3bb 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EffectiveSecurityRuleProtocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EffectiveSecurityRuleProtocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EndpointServiceResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EndpointServiceResult.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EndpointServiceResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EndpointServiceResult.java index cf571df7d07d..ebd76c2593c7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EndpointServiceResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EndpointServiceResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.EndpointServiceResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.EndpointServiceResultInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; /** * Type representing EndpointServiceResult. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Error.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Error.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Error.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Error.java index 39b814ad8e88..318710fd87df 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Error.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Error.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ErrorDetails.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ErrorDetails.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ErrorDetails.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ErrorDetails.java index c67ec3a86da2..300cce0ff051 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ErrorDetails.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ErrorDetails.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ErrorException.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ErrorException.java new file mode 100644 index 000000000000..6b5efe92830b --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ErrorException.java @@ -0,0 +1,44 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with Error information. + */ +public class ErrorException extends RestException { + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorException(final String message, final Response response, final Error body) { + super(message, response, body); + } + + @Override + public Error body() { + return (Error) super.body(); + } +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EvaluationState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EvaluationState.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EvaluationState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EvaluationState.java index afc86ce1d94e..9acb7906e9b7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/EvaluationState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/EvaluationState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuit.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuit.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuit.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuit.java index 62093dd98f9c..562c380bf1c5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuit.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuit.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,11 +17,11 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitAuthorizationInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitPeeringInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitAuthorizationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitPeeringInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitInner; /** * Type representing ExpressRouteCircuit. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitArpTable.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitArpTable.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitArpTable.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitArpTable.java index 53b17505575a..9f9eaccc89c1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitArpTable.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitArpTable.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitAuthorization.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitAuthorization.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitAuthorization.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitAuthorization.java index 109b9c936f66..be663eeb4584 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitAuthorization.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitAuthorization.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitAuthorizationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitAuthorizationInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; /** * Type representing ExpressRouteCircuitAuthorization. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitAuthorizations.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitAuthorizations.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitAuthorizations.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitAuthorizations.java index 13d3748eabd0..91f8c60531a2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitAuthorizations.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitAuthorizations.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitAuthorizationsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitAuthorizationsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitConnection.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitConnection.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitConnection.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitConnection.java index bbd455d92029..ca788fa5bc86 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitConnection.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitConnection.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitConnectionInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitConnectionInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import com.microsoft.azure.SubResource; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitConnections.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitConnections.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitConnections.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitConnections.java index e129c8b3376a..94c30ae2e589 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitConnections.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitConnections.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitConnectionsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitConnectionsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeering.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeering.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeering.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeering.java index 6ae31ba4d3fc..1e405df9d44f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeering.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeering.java @@ -6,21 +6,21 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitPeeringInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitPeeringInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitConnectionInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteFilterInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitStatsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitConnectionInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteFilterInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitStatsInner; /** * Type representing ExpressRouteCircuitPeering. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.java index bdbce4fdd3d5..53e1a43e8bbf 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringConfig.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringConfig.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringConfig.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringConfig.java index dd24f55f1bb2..26a9a4d01615 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringConfig.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringConfig.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringState.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringState.java index 3d88f76d22c7..7638bec7cf5f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeeringState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeeringState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeerings.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeerings.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeerings.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeerings.java index 461875a107b3..2d1960caf6dd 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitPeerings.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitPeerings.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitPeeringsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitPeeringsInner; import com.microsoft.azure.arm.model.HasInner; /** @@ -19,7 +19,7 @@ */ public interface ExpressRouteCircuitPeerings extends SupportsCreating, HasInner { /** - * Gets the specified authorization from the specified express route circuit. + * Gets the specified peering for the express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitReference.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitReference.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitReference.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitReference.java index 60c21dc40ad0..fa06d0a6201d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitReference.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitReference.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitRoutesTable.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitRoutesTable.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitRoutesTable.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitRoutesTable.java index 81e60a250b66..2fc87cf503e5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitRoutesTable.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitRoutesTable.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitRoutesTableSummary.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitRoutesTableSummary.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitRoutesTableSummary.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitRoutesTableSummary.java index 9c4bbad37d37..03fdef498046 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitRoutesTableSummary.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitRoutesTableSummary.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitServiceProviderProperties.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitServiceProviderProperties.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitServiceProviderProperties.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitServiceProviderProperties.java index 1105a40b4e73..8f677cabe50e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitServiceProviderProperties.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitServiceProviderProperties.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSku.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSku.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSku.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSku.java index ef9039e55d67..85ce86ad461b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSku.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSku.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSkuFamily.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSkuFamily.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSkuFamily.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSkuFamily.java index 70715cca269b..83beaf084330 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSkuFamily.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSkuFamily.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSkuTier.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSkuTier.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSkuTier.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSkuTier.java index 349ed5801ec7..ddbbbd5cb636 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitSkuTier.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitSkuTier.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitStats.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitStats.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitStats.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitStats.java index 61e78b5c03d4..a76dc30c4e4e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitStats.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitStats.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitStatsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitStatsInner; /** * Type representing ExpressRouteCircuitStats. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuits.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuits.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuits.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuits.java index f1949c6fd651..961066022698 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuits.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuits.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,7 +15,7 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsArpTableListResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsArpTableListResult.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsArpTableListResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsArpTableListResult.java index d1e15aafcd51..65bae3853337 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsArpTableListResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsArpTableListResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitsArpTableListResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitsArpTableListResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsRoutesTableListResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsRoutesTableListResult.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsRoutesTableListResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsRoutesTableListResult.java index 4ca6aec5053e..05ca878f5954 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsRoutesTableListResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsRoutesTableListResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitsRoutesTableListResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitsRoutesTableListResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsRoutesTableSummaryListResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsRoutesTableSummaryListResult.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsRoutesTableSummaryListResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsRoutesTableSummaryListResult.java index 7ad2c926b0dd..e2f7cfa4bc83 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCircuitsRoutesTableSummaryListResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCircuitsRoutesTableSummaryListResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitsRoutesTableSummaryListResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitsRoutesTableSummaryListResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnection.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnection.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnection.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnection.java index 035059161b34..edfe7db7a6ef 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnection.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnection.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,10 +17,10 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCrossConnectionPeeringInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCrossConnectionInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCrossConnectionPeeringInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCrossConnectionInner; /** * Type representing ExpressRouteCrossConnection. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionPeering.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionPeering.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionPeering.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionPeering.java index f33bc5b6face..47cb0d2f6166 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionPeering.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionPeering.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCrossConnectionPeeringInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCrossConnectionPeeringInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; /** * Type representing ExpressRouteCrossConnectionPeering. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionPeerings.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionPeerings.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionPeerings.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionPeerings.java index a204f810ae40..3e739de6f5bb 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionPeerings.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionPeerings.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCrossConnectionPeeringsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCrossConnectionPeeringsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionRoutesTableSummary.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionRoutesTableSummary.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionRoutesTableSummary.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionRoutesTableSummary.java index 2a1b05361f78..471a0400b168 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionRoutesTableSummary.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionRoutesTableSummary.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnections.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnections.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnections.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnections.java index 80e0b09e3fde..3a457ba791ea 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnections.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnections.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCrossConnectionsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCrossConnectionsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.java index f9c2d3dc5371..2c87c34fd39d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRoutePeeringState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRoutePeeringState.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRoutePeeringState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRoutePeeringState.java index d1b3e9ea0320..b82f033d4489 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRoutePeeringState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRoutePeeringState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRoutePeeringType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRoutePeeringType.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRoutePeeringType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRoutePeeringType.java index f9ec7528a0bc..eb43fa183b11 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRoutePeeringType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRoutePeeringType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProvider.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProvider.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProvider.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProvider.java index 5c4ab888d1b8..a9a62b8fa215 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProvider.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProvider.java @@ -6,16 +6,16 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteServiceProviderInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteServiceProviderInner; /** * Type representing ExpressRouteServiceProvider. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProviderBandwidthsOffered.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProviderBandwidthsOffered.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProviderBandwidthsOffered.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProviderBandwidthsOffered.java index 84dfad8b6377..ea450b6ad2a0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProviderBandwidthsOffered.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProviderBandwidthsOffered.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProviders.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProviders.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProviders.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProviders.java index f9e923087724..5fc4ec88ae25 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ExpressRouteServiceProviders.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ExpressRouteServiceProviders.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteServiceProvidersInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteServiceProvidersInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FlowLogInformation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FlowLogInformation.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FlowLogInformation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FlowLogInformation.java index c1546d1cffe8..1b96a8ed011e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FlowLogInformation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FlowLogInformation.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.FlowLogInformationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.FlowLogInformationInner; /** * Type representing FlowLogInformation. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FlowLogStatusParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FlowLogStatusParameters.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FlowLogStatusParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FlowLogStatusParameters.java index f6e848fd8c99..aa0aedf7e60f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FlowLogStatusParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FlowLogStatusParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FrontendIPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FrontendIPConfiguration.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FrontendIPConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FrontendIPConfiguration.java index 5f53967a91ed..3f0a50e03fe5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/FrontendIPConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/FrontendIPConfiguration.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.FrontendIPConfigurationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.FrontendIPConfigurationInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/GatewayRoute.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GatewayRoute.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/GatewayRoute.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GatewayRoute.java index c986a93e290a..38cbd9ec3605 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/GatewayRoute.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GatewayRoute.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/GatewayRouteListResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GatewayRouteListResult.java similarity index 78% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/GatewayRouteListResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GatewayRouteListResult.java index fd30f3b804f0..e3e4b719dd2d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/GatewayRouteListResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GatewayRouteListResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.GatewayRouteListResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.GatewayRouteListResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GetVpnSitesConfigurationRequest.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GetVpnSitesConfigurationRequest.java new file mode 100644 index 000000000000..da7efb035b6e --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/GetVpnSitesConfigurationRequest.java @@ -0,0 +1,72 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.List; +import com.microsoft.azure.SubResource; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * List of Vpn-Sites. + */ +public class GetVpnSitesConfigurationRequest { + /** + * List of resource-ids of the vpn-sites for which config is to be + * downloaded. + */ + @JsonProperty(value = "vpnSites") + private List vpnSites; + + /** + * The sas-url to download the configurations for vpn-sites. + */ + @JsonProperty(value = "outputBlobSasUrl") + private String outputBlobSasUrl; + + /** + * Get list of resource-ids of the vpn-sites for which config is to be downloaded. + * + * @return the vpnSites value + */ + public List vpnSites() { + return this.vpnSites; + } + + /** + * Set list of resource-ids of the vpn-sites for which config is to be downloaded. + * + * @param vpnSites the vpnSites value to set + * @return the GetVpnSitesConfigurationRequest object itself. + */ + public GetVpnSitesConfigurationRequest withVpnSites(List vpnSites) { + this.vpnSites = vpnSites; + return this; + } + + /** + * Get the sas-url to download the configurations for vpn-sites. + * + * @return the outputBlobSasUrl value + */ + public String outputBlobSasUrl() { + return this.outputBlobSasUrl; + } + + /** + * Set the sas-url to download the configurations for vpn-sites. + * + * @param outputBlobSasUrl the outputBlobSasUrl value to set + * @return the GetVpnSitesConfigurationRequest object itself. + */ + public GetVpnSitesConfigurationRequest withOutputBlobSasUrl(String outputBlobSasUrl) { + this.outputBlobSasUrl = outputBlobSasUrl; + return this; + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPConfiguration.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPConfiguration.java index a1cfe94a35b2..4c0dadefa604 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPConfiguration.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPHeader.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPHeader.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPHeader.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPHeader.java index 7073e3a432ec..aea7ac67efdd 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPHeader.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPHeader.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPMethod.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPMethod.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPMethod.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPMethod.java index dc677f770ff4..33ad44db31c0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/HTTPMethod.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HTTPMethod.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnection.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnection.java new file mode 100644 index 000000000000..26db1c694c49 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnection.java @@ -0,0 +1,74 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.network.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.HubVirtualNetworkConnectionInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.SubResource; +import java.util.Map; + +/** + * Type representing HubVirtualNetworkConnection. + */ +public interface HubVirtualNetworkConnection extends HasInner, Indexable, Refreshable, HasManager { + /** + * @return the allowHubToRemoteVnetTransit value. + */ + Boolean allowHubToRemoteVnetTransit(); + + /** + * @return the allowRemoteVnetToUseHubVnetGateways value. + */ + Boolean allowRemoteVnetToUseHubVnetGateways(); + + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * @return the remoteVirtualNetwork value. + */ + SubResource remoteVirtualNetwork(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnectionStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnectionStatus.java new file mode 100644 index 000000000000..2e87ef0f9932 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnectionStatus.java @@ -0,0 +1,47 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for HubVirtualNetworkConnectionStatus. + */ +public final class HubVirtualNetworkConnectionStatus extends ExpandableStringEnum { + /** Static value Unknown for HubVirtualNetworkConnectionStatus. */ + public static final HubVirtualNetworkConnectionStatus UNKNOWN = fromString("Unknown"); + + /** Static value Connecting for HubVirtualNetworkConnectionStatus. */ + public static final HubVirtualNetworkConnectionStatus CONNECTING = fromString("Connecting"); + + /** Static value Connected for HubVirtualNetworkConnectionStatus. */ + public static final HubVirtualNetworkConnectionStatus CONNECTED = fromString("Connected"); + + /** Static value NotConnected for HubVirtualNetworkConnectionStatus. */ + public static final HubVirtualNetworkConnectionStatus NOT_CONNECTED = fromString("NotConnected"); + + /** + * Creates or finds a HubVirtualNetworkConnectionStatus from its string representation. + * @param name a name to look for + * @return the corresponding HubVirtualNetworkConnectionStatus + */ + @JsonCreator + public static HubVirtualNetworkConnectionStatus fromString(String name) { + return fromString(name, HubVirtualNetworkConnectionStatus.class); + } + + /** + * @return known HubVirtualNetworkConnectionStatus values + */ + public static Collection values() { + return values(HubVirtualNetworkConnectionStatus.class); + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnections.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnections.java new file mode 100644 index 000000000000..03360436a98b --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/HubVirtualNetworkConnections.java @@ -0,0 +1,40 @@ +/** + * 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.management.network.v2018_06_01; + +import rx.Observable; +import com.microsoft.azure.management.network.v2018_06_01.implementation.HubVirtualNetworkConnectionsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing HubVirtualNetworkConnections. + */ +public interface HubVirtualNetworkConnections extends HasInner { + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String virtualHubName, String connectionName); + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(final String resourceGroupName, final String virtualHubName); + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPAddressAvailabilityResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPAddressAvailabilityResult.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPAddressAvailabilityResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPAddressAvailabilityResult.java index 5ef132edf279..bd6d67c66188 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPAddressAvailabilityResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPAddressAvailabilityResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.IPAddressAvailabilityResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.IPAddressAvailabilityResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPAllocationMethod.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPAllocationMethod.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPAllocationMethod.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPAllocationMethod.java index 1ac1d302c8da..026f338411d3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPAllocationMethod.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPAllocationMethod.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPConfiguration.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPConfiguration.java index d6533ef2cedf..38b58f08293e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPConfiguration.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SubnetInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.PublicIPAddressInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SubnetInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.PublicIPAddressInner; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPVersion.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPVersion.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPVersion.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPVersion.java index 054f6ebc15a0..b679bd7fe4ec 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IPVersion.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IPVersion.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IkeEncryption.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IkeEncryption.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IkeEncryption.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IkeEncryption.java index 14022eee9fd4..a8a754dc859c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IkeEncryption.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IkeEncryption.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IkeIntegrity.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IkeIntegrity.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IkeIntegrity.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IkeIntegrity.java index f70c080c52a0..4d95d2ba5691 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IkeIntegrity.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IkeIntegrity.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatPool.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatPool.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatPool.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatPool.java index b6409e4ea07a..a0f1f3eb43cb 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatPool.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatPool.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatRule.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatRule.java index 4f7120c10eb4..95295748a1b0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatRule.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.InboundNatRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.InboundNatRuleInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import com.microsoft.azure.SubResource; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatRules.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatRules.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatRules.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatRules.java index 07de0965eff1..a16982db67c0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/InboundNatRules.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/InboundNatRules.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.InboundNatRulesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.InboundNatRulesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpFlowProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpFlowProtocol.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpFlowProtocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpFlowProtocol.java index f8324f62fa3a..0d62a4e5885a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpFlowProtocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpFlowProtocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpTag.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpTag.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpTag.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpTag.java index c6547d389a8f..773abfc39132 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpTag.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpTag.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecEncryption.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecEncryption.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecEncryption.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecEncryption.java index b3fdd6ce03a9..f953c9f148df 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecEncryption.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecEncryption.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecIntegrity.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecIntegrity.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecIntegrity.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecIntegrity.java index 73c9d6eb70e6..867709e55683 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecIntegrity.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecIntegrity.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecPolicy.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecPolicy.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecPolicy.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecPolicy.java index 6693b664ca08..a2aa9fe6549b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IpsecPolicy.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IpsecPolicy.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Ipv6ExpressRouteCircuitPeeringConfig.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Ipv6ExpressRouteCircuitPeeringConfig.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Ipv6ExpressRouteCircuitPeeringConfig.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Ipv6ExpressRouteCircuitPeeringConfig.java index 443f302497b5..8e34a3a07c4b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Ipv6ExpressRouteCircuitPeeringConfig.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Ipv6ExpressRouteCircuitPeeringConfig.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteFilterInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteFilterInner; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IssueType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IssueType.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IssueType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IssueType.java index c9446b029cdd..b8e445fdc1f5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/IssueType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/IssueType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancer.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancer.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancer.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancer.java index a98c1ea86ebe..7047c12b9d2d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancer.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancer.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,14 +17,14 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.BackendAddressPoolInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.FrontendIPConfigurationInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.InboundNatRuleInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancingRuleInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ProbeInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancerInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.BackendAddressPoolInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.FrontendIPConfigurationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.InboundNatRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancingRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ProbeInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancerInner; /** * Type representing LoadBalancer. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerBackendAddressPools.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerBackendAddressPools.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerBackendAddressPools.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerBackendAddressPools.java index 675360403fe9..2009ca9298cc 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerBackendAddressPools.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerBackendAddressPools.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancerBackendAddressPoolsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancerBackendAddressPoolsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerFrontendIPConfigurations.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerFrontendIPConfigurations.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerFrontendIPConfigurations.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerFrontendIPConfigurations.java index ea2cc8c5fff8..fa10c0473129 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerFrontendIPConfigurations.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerFrontendIPConfigurations.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancerFrontendIPConfigurationsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancerFrontendIPConfigurationsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerLoadBalancingRules.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerLoadBalancingRules.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerLoadBalancingRules.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerLoadBalancingRules.java index 0d00ce846a0b..6377a0b5d8e1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerLoadBalancingRules.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerLoadBalancingRules.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancerLoadBalancingRulesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancerLoadBalancingRulesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerNetworkInterface.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerNetworkInterface.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerNetworkInterface.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerNetworkInterface.java index e5f6f6b0874a..5d61589c5606 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerNetworkInterface.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerNetworkInterface.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import java.util.Map; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerNetworkInterfaces.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerNetworkInterfaces.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerNetworkInterfaces.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerNetworkInterfaces.java index 7eba8beaeb3f..d805ee16cd2e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerNetworkInterfaces.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerNetworkInterfaces.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancerNetworkInterfacesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancerNetworkInterfacesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerProbes.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerProbes.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerProbes.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerProbes.java index 920bf42e1424..401208218512 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerProbes.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerProbes.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancerProbesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancerProbesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerSku.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerSku.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerSku.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerSku.java index a83374a014f6..cfbdf994435b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerSku.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerSku.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerSkuName.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerSkuName.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerSkuName.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerSkuName.java index 286ca00d4b9b..0583bfcb145b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancerSkuName.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancerSkuName.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancers.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancers.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancers.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancers.java index 472d5e26da3d..6b47718283ec 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancers.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancers.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,7 +15,7 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancersInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancersInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancingRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancingRule.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancingRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancingRule.java index 8bf4493aec7d..4e00c7b4d6e8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadBalancingRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadBalancingRule.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancingRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancingRuleInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import com.microsoft.azure.SubResource; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadDistribution.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadDistribution.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadDistribution.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadDistribution.java index b3f2f43c989e..815f458562f2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LoadDistribution.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LoadDistribution.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LocalNetworkGateway.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LocalNetworkGateway.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LocalNetworkGateway.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LocalNetworkGateway.java index 0da24f927297..69df51b86f82 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LocalNetworkGateway.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LocalNetworkGateway.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,8 +17,8 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LocalNetworkGatewayInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LocalNetworkGatewayInner; /** * Type representing LocalNetworkGateway. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LocalNetworkGateways.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LocalNetworkGateways.java similarity index 89% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LocalNetworkGateways.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LocalNetworkGateways.java index af834c56cf1a..5274c5737fc0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LocalNetworkGateways.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LocalNetworkGateways.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -14,7 +14,7 @@ import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LocalNetworkGatewaysInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LocalNetworkGatewaysInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LogSpecification.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LogSpecification.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LogSpecification.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LogSpecification.java index ad29ba86498a..e598d0cf0102 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/LogSpecification.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/LogSpecification.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/MetricSpecification.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/MetricSpecification.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/MetricSpecification.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/MetricSpecification.java index cf9f95c43e5a..3f9e8d933412 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/MetricSpecification.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/MetricSpecification.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterface.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterface.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterface.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterface.java index c7ca994e6c7a..dcc3e8e1ede1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterface.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterface.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,12 +17,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import com.microsoft.azure.SubResource; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceIPConfigurationInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkSecurityGroupInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceIPConfigurationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkSecurityGroupInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceInner; /** * Type representing NetworkInterface. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceAssociation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceAssociation.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceAssociation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceAssociation.java index a4b094783be8..4cbf279c2063 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceAssociation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceAssociation.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SecurityRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SecurityRuleInner; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceDnsSettings.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceDnsSettings.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceDnsSettings.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceDnsSettings.java index f4abd6a8a12a..ad3a1ed6e263 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceDnsSettings.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceDnsSettings.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceIPConfigurations.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceIPConfigurations.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceIPConfigurations.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceIPConfigurations.java index baea71d23f4a..aedb5f671eab 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceIPConfigurations.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceIPConfigurations.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceIPConfigurationsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceIPConfigurationsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceLoadBalancer.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceLoadBalancer.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceLoadBalancer.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceLoadBalancer.java index 72f08f7cd060..82191a54c580 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceLoadBalancer.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceLoadBalancer.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LoadBalancerInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LoadBalancerInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import java.util.Map; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceLoadBalancers.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceLoadBalancers.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceLoadBalancers.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceLoadBalancers.java index 8390d599eda1..a28a37b9bb5c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceLoadBalancers.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceLoadBalancers.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceLoadBalancersInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceLoadBalancersInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceNetworkInterfaceIPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceNetworkInterfaceIPConfiguration.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceNetworkInterfaceIPConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceNetworkInterfaceIPConfiguration.java index 2e655cf55ff4..4c8820db3944 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaceNetworkInterfaceIPConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaceNetworkInterfaceIPConfiguration.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceIPConfigurationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceIPConfigurationInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaces.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaces.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaces.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaces.java index d852c085c31a..db3b089888b6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkInterfaces.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkInterfaces.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterface; import rx.Completable; -import com.microsoft.azure.management.network.v2018_05_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; /** * Type representing NetworkInterfaces. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkOperationStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkOperationStatus.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkOperationStatus.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkOperationStatus.java index 741489f20a22..b30997fb4904 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkOperationStatus.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkOperationStatus.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroup.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroup.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroup.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroup.java index bfd0b0425ca7..45eacb27d1de 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroup.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroup.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,10 +17,10 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SecurityRuleInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkSecurityGroupInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SecurityRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkSecurityGroupInner; /** * Type representing NetworkSecurityGroup. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroupSecurityRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroupSecurityRule.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroupSecurityRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroupSecurityRule.java index e39ddb727980..b0b19ec08b99 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroupSecurityRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroupSecurityRule.java @@ -6,19 +6,19 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SecurityRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SecurityRuleInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ApplicationSecurityGroupInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ApplicationSecurityGroupInner; /** * Type representing NetworkSecurityGroupSecurityRule. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroupSecurityRuleModel.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroupSecurityRuleModel.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroupSecurityRuleModel.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroupSecurityRuleModel.java index ef324a204982..05029eb41ce7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroupSecurityRuleModel.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroupSecurityRuleModel.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SecurityRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SecurityRuleInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroups.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroups.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroups.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroups.java index 7b08a81f9ad5..82bbe9d775db 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkSecurityGroups.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkSecurityGroups.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,7 +15,7 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkSecurityGroupsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkSecurityGroupsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkWatcher.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkWatcher.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkWatcher.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkWatcher.java index 28bbf6fd72ea..b82ef4791059 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkWatcher.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkWatcher.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,8 +17,8 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkWatcherInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkWatcherInner; /** * Type representing NetworkWatcher. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkWatchers.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkWatchers.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkWatchers.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkWatchers.java index 8a572b5f2598..a462c56dd7af 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NetworkWatchers.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NetworkWatchers.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,8 +15,8 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.FlowLogInformationInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkWatchersInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.FlowLogInformationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkWatchersInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopParameters.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopParameters.java index 875f54de9013..a26e55538a09 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopResult.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopResult.java index 363851048316..f20f13626605 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NextHopResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NextHopResultInner; /** * Type representing NextHopResult. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopType.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopType.java index 0037114642a0..dfed71281a0d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/NextHopType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/NextHopType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Operation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Operation.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Operation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Operation.java index a46301242108..e223e6e4496f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Operation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Operation.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.OperationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.OperationInner; /** * Type representing Operation. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OperationDisplay.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OperationDisplay.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OperationDisplay.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OperationDisplay.java index c409528767fa..aca1b9a4990d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OperationDisplay.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OperationDisplay.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OperationPropertiesFormatServiceSpecification.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OperationPropertiesFormatServiceSpecification.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OperationPropertiesFormatServiceSpecification.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OperationPropertiesFormatServiceSpecification.java index 9dff09d73be7..b8f94f1f9649 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OperationPropertiesFormatServiceSpecification.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OperationPropertiesFormatServiceSpecification.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Operations.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Operations.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Operations.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Operations.java index 4b726f88eb65..6c909aea4d9c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Operations.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Operations.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.OperationsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.OperationsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Origin.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Origin.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Origin.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Origin.java index 8e10b21341b5..4e293156f1b5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Origin.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Origin.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OutboundNatRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OutboundNatRule.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OutboundNatRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OutboundNatRule.java index f6d88040e712..b5ef5fbbe110 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/OutboundNatRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/OutboundNatRule.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureFilter.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureFilter.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureFilter.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureFilter.java index 5e5628c339e0..ed5a49ca73b0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureFilter.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureFilter.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureParameters.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureParameters.java index d4967b7835ac..52569d138dde 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureQueryStatusResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureQueryStatusResult.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureQueryStatusResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureQueryStatusResult.java index d7378a3dbc72..c892e99eccf0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureQueryStatusResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureQueryStatusResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.PacketCaptureQueryStatusResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.PacketCaptureQueryStatusResultInner; import org.joda.time.DateTime; import java.util.List; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureResult.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureResult.java index cb67686e2b00..d13f55095caa 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureResult.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.PacketCaptureResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.PacketCaptureResultInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureStorageLocation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureStorageLocation.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureStorageLocation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureStorageLocation.java index e5eda5cd8633..302d2244959c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptureStorageLocation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptureStorageLocation.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptures.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptures.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptures.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptures.java index e5f4b1d741ef..ee70572fcb79 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PacketCaptures.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PacketCaptures.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.PacketCapturesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.PacketCapturesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PatchRouteFilter.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PatchRouteFilter.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PatchRouteFilter.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PatchRouteFilter.java index 9ce54d25f486..b92f7e2e1291 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PatchRouteFilter.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PatchRouteFilter.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteFilterRuleInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitPeeringInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteFilterRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitPeeringInner; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PatchRouteFilterRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PatchRouteFilterRule.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PatchRouteFilterRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PatchRouteFilterRule.java index 31f39afb1808..d56e23988dde 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PatchRouteFilterRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PatchRouteFilterRule.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcError.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcError.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcError.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcError.java index 4c34ba90666f..0dbfdcc7f414 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcError.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcError.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcProtocol.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcProtocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcProtocol.java index 06cecfed4d2f..defea46c7939 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcProtocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcProtocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcStatus.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcStatus.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcStatus.java index b17d1bcc062a..78aff7a3588f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PcStatus.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PcStatus.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PfsGroup.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PfsGroup.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PfsGroup.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PfsGroup.java index 9dbd7bee1b59..385efe0ef5d4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PfsGroup.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PfsGroup.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Policies.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Policies.java new file mode 100644 index 000000000000..bb2566cf1feb --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Policies.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.network.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Policies for vpn gateway. + */ +public class Policies { + /** + * True if branch to branch traffic is allowed. + */ + @JsonProperty(value = "allowBranchToBranchTraffic") + private Boolean allowBranchToBranchTraffic; + + /** + * True if Vnet to Vnet traffic is allowed. + */ + @JsonProperty(value = "allowVnetToVnetTraffic") + private Boolean allowVnetToVnetTraffic; + + /** + * Get true if branch to branch traffic is allowed. + * + * @return the allowBranchToBranchTraffic value + */ + public Boolean allowBranchToBranchTraffic() { + return this.allowBranchToBranchTraffic; + } + + /** + * Set true if branch to branch traffic is allowed. + * + * @param allowBranchToBranchTraffic the allowBranchToBranchTraffic value to set + * @return the Policies object itself. + */ + public Policies withAllowBranchToBranchTraffic(Boolean allowBranchToBranchTraffic) { + this.allowBranchToBranchTraffic = allowBranchToBranchTraffic; + return this; + } + + /** + * Get true if Vnet to Vnet traffic is allowed. + * + * @return the allowVnetToVnetTraffic value + */ + public Boolean allowVnetToVnetTraffic() { + return this.allowVnetToVnetTraffic; + } + + /** + * Set true if Vnet to Vnet traffic is allowed. + * + * @param allowVnetToVnetTraffic the allowVnetToVnetTraffic value to set + * @return the Policies object itself. + */ + public Policies withAllowVnetToVnetTraffic(Boolean allowVnetToVnetTraffic) { + this.allowVnetToVnetTraffic = allowVnetToVnetTraffic; + return this; + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Probe.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Probe.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Probe.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Probe.java index 598d7dd52be2..8a338a3cb3db 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Probe.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Probe.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ProbeInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ProbeInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProbeProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProbeProtocol.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProbeProtocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProbeProtocol.java index e4a9be3459b9..cafb109feef0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProbeProtocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProbeProtocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProcessorArchitecture.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProcessorArchitecture.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProcessorArchitecture.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProcessorArchitecture.java index 268b7b2a90d9..da8488991e78 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProcessorArchitecture.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProcessorArchitecture.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Protocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Protocol.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Protocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Protocol.java index fb2041432b7e..5ada6762fa6b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Protocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Protocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProtocolConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProtocolConfiguration.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProtocolConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProtocolConfiguration.java index 4a097d2d6c3a..f0e9bb453f72 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProtocolConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProtocolConfiguration.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProvisioningState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProvisioningState.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProvisioningState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProvisioningState.java index bba19606b6e5..528e5ca4efda 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ProvisioningState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ProvisioningState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddress.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddress.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddress.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddress.java index a4bb65121d06..98de5e27cfb6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddress.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddress.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,9 +17,9 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.PublicIPAddressInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.PublicIPAddressInner; /** * Type representing PublicIPAddress. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressDnsSettings.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressDnsSettings.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressDnsSettings.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressDnsSettings.java index 4da3795015bf..2d05d1e91bbf 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressDnsSettings.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressDnsSettings.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressSku.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressSku.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressSku.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressSku.java index a0acedfdeab3..a93894d5cdb1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressSku.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressSku.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressSkuName.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressSkuName.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressSkuName.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressSkuName.java index f3a3fa7856ef..60fdaac9939d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddressSkuName.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddressSkuName.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddresses.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddresses.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddresses.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddresses.java index 785f3534796c..9c7b94c33e08 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/PublicIPAddresses.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/PublicIPAddresses.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,7 +15,7 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.PublicIPAddressesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.PublicIPAddressesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/QueryTroubleshootingParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/QueryTroubleshootingParameters.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/QueryTroubleshootingParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/QueryTroubleshootingParameters.java index 25351d4bbac1..832b7be66f25 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/QueryTroubleshootingParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/QueryTroubleshootingParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ResourceNavigationLink.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ResourceNavigationLink.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ResourceNavigationLink.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ResourceNavigationLink.java index e4e437c782d4..ca6aaf11249d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ResourceNavigationLink.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ResourceNavigationLink.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RetentionPolicyParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RetentionPolicyParameters.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RetentionPolicyParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RetentionPolicyParameters.java index 8cc821b00c6b..778243c24875 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RetentionPolicyParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RetentionPolicyParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Route.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Route.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Route.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Route.java index e92f1f1a4f2c..9bae7c4a8565 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Route.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Route.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; /** * Type representing Route. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilter.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilter.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilter.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilter.java index d7b5be22d049..f072953da24a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilter.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilter.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,11 +17,11 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteFilterRuleInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.ExpressRouteCircuitPeeringInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteFilterInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteFilterRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ExpressRouteCircuitPeeringInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteFilterInner; /** * Type representing RouteFilter. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilterRule.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilterRule.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilterRule.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilterRule.java index ccec08d1e8fc..629526606aee 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilterRule.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilterRule.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteFilterRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteFilterRuleInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilterRules.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilterRules.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilterRules.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilterRules.java index e276a4bc4508..ee2eb3db8e6d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilterRules.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilterRules.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteFilterRulesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteFilterRulesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilters.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilters.java index a91ca6573aab..08777e50371f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteFilters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteFilters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,7 +15,7 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteFiltersInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteFiltersInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteNextHopType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteNextHopType.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteNextHopType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteNextHopType.java index 78de90f2286b..59a3ad4ffb46 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteNextHopType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteNextHopType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteTable.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteTable.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteTable.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteTable.java index 694eed1076ed..e512da456159 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteTable.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteTable.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,10 +17,10 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteTableInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteTableInner; /** * Type representing RouteTable. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteTables.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteTables.java similarity index 89% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteTables.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteTables.java index 576d51692477..ad25a58223e1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/RouteTables.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/RouteTables.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,7 +15,7 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteTablesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteTablesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Routes.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Routes.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Routes.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Routes.java index 7661116ee681..f7be748d90a3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Routes.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Routes.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RoutesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RoutesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupNetworkInterface.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupNetworkInterface.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupNetworkInterface.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupNetworkInterface.java index f09036599c23..a5d072629178 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupNetworkInterface.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupNetworkInterface.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupViewParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupViewParameters.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupViewParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupViewParameters.java index b8e674e4701e..af26310e1f71 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupViewParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupViewParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupViewResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupViewResult.java similarity index 79% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupViewResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupViewResult.java index 99fe53325420..f64d7efe1896 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityGroupViewResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityGroupViewResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SecurityGroupViewResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SecurityGroupViewResultInner; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleAccess.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleAccess.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleAccess.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleAccess.java index c54da5639545..ccde5de43017 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleAccess.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleAccess.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleAssociations.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleAssociations.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleAssociations.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleAssociations.java index 666b9bc4bf80..6ee92c0f9f94 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleAssociations.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleAssociations.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SecurityRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SecurityRuleInner; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleDirection.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleDirection.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleDirection.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleDirection.java index 11f1db9c7dfd..de035a21015c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleDirection.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleDirection.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleProtocol.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleProtocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleProtocol.java index d4fcdff39b57..7fb53cddd2bf 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRuleProtocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRuleProtocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRules.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRules.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRules.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRules.java index 6e28b25feef7..17ed6f16044e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SecurityRules.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SecurityRules.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SecurityRulesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SecurityRulesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ServiceEndpointPropertiesFormat.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ServiceEndpointPropertiesFormat.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ServiceEndpointPropertiesFormat.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ServiceEndpointPropertiesFormat.java index 0ce4dd50991c..4115199fff14 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ServiceEndpointPropertiesFormat.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ServiceEndpointPropertiesFormat.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ServiceProviderProvisioningState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ServiceProviderProvisioningState.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ServiceProviderProvisioningState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ServiceProviderProvisioningState.java index 34b299c6e0d8..9ab9bca91f66 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/ServiceProviderProvisioningState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ServiceProviderProvisioningState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Severity.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Severity.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Severity.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Severity.java index 7f24559c7158..3d06e860620c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Severity.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Severity.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Subnet.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Subnet.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Subnet.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Subnet.java index 5c214b1ce52f..dd7dae71d517 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Subnet.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Subnet.java @@ -6,20 +6,20 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SubnetInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SubnetInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkSecurityGroupInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.RouteTableInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkSecurityGroupInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.RouteTableInner; /** * Type representing Subnet. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SubnetAssociation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SubnetAssociation.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SubnetAssociation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SubnetAssociation.java index c04f6fc445e9..bcddf896ffb9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/SubnetAssociation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/SubnetAssociation.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SecurityRuleInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SecurityRuleInner; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Subnets.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Subnets.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Subnets.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Subnets.java index b40fe1b61c0b..30c7d3f5308c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Subnets.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Subnets.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SubnetsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SubnetsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TagsObject.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TagsObject.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TagsObject.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TagsObject.java index 151e2cccc752..054c6ff8c185 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TagsObject.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TagsObject.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Topology.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Topology.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Topology.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Topology.java index 6735f9da4c24..c457c9840588 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Topology.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Topology.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.TopologyInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.TopologyInner; import org.joda.time.DateTime; import java.util.List; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyAssociation.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyAssociation.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyAssociation.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyAssociation.java index 53352a945877..5a023ff40523 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyAssociation.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyAssociation.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyParameters.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyParameters.java index 31e6c65bf070..a49d523eb5b4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyResource.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyResource.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyResource.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyResource.java index dab48162adbb..f10725ace438 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TopologyResource.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TopologyResource.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TrafficAnalyticsConfigurationProperties.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TrafficAnalyticsConfigurationProperties.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TrafficAnalyticsConfigurationProperties.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TrafficAnalyticsConfigurationProperties.java index d680d24de192..fa2a9ece7ab4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TrafficAnalyticsConfigurationProperties.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TrafficAnalyticsConfigurationProperties.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TrafficAnalyticsProperties.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TrafficAnalyticsProperties.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TrafficAnalyticsProperties.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TrafficAnalyticsProperties.java index 747c487a53b5..4f66033540e6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TrafficAnalyticsProperties.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TrafficAnalyticsProperties.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TransportProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TransportProtocol.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TransportProtocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TransportProtocol.java index af5f1f9522e2..af63d1abe049 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TransportProtocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TransportProtocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingDetails.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingDetails.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingDetails.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingDetails.java index 21b3df14d019..461e8782f4ca 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingDetails.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingDetails.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingParameters.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingParameters.java index 74744ab4d76b..4df448b2598c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingRecommendedActions.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingRecommendedActions.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingRecommendedActions.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingRecommendedActions.java index 235465118a25..058bc8a0c1f7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingRecommendedActions.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingRecommendedActions.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingResult.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingResult.java index ef64fda28dbf..a3cfb97e8739 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TroubleshootingResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TroubleshootingResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.TroubleshootingResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.TroubleshootingResultInner; import org.joda.time.DateTime; import java.util.List; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TunnelConnectionHealth.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TunnelConnectionHealth.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TunnelConnectionHealth.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TunnelConnectionHealth.java index fdecc7827908..6f3f890026d5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/TunnelConnectionHealth.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TunnelConnectionHealth.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TunnelConnectionStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TunnelConnectionStatus.java new file mode 100644 index 000000000000..bb8cfbb578c8 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/TunnelConnectionStatus.java @@ -0,0 +1,47 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for TunnelConnectionStatus. + */ +public final class TunnelConnectionStatus extends ExpandableStringEnum { + /** Static value Unknown for TunnelConnectionStatus. */ + public static final TunnelConnectionStatus UNKNOWN = fromString("Unknown"); + + /** Static value Connecting for TunnelConnectionStatus. */ + public static final TunnelConnectionStatus CONNECTING = fromString("Connecting"); + + /** Static value Connected for TunnelConnectionStatus. */ + public static final TunnelConnectionStatus CONNECTED = fromString("Connected"); + + /** Static value NotConnected for TunnelConnectionStatus. */ + public static final TunnelConnectionStatus NOT_CONNECTED = fromString("NotConnected"); + + /** + * Creates or finds a TunnelConnectionStatus from its string representation. + * @param name a name to look for + * @return the corresponding TunnelConnectionStatus + */ + @JsonCreator + public static TunnelConnectionStatus fromString(String name) { + return fromString(name, TunnelConnectionStatus.class); + } + + /** + * @return known TunnelConnectionStatus values + */ + public static Collection values() { + return values(TunnelConnectionStatus.class); + } +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Usage.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Usage.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Usage.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Usage.java index a98c610e9b8b..1fe78ce1da3d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Usage.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Usage.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.UsageInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.UsageInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; /** * Type representing Usage. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/UsageName.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/UsageName.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/UsageName.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/UsageName.java index e3783b3e4523..94a36c7e793f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/UsageName.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/UsageName.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Usages.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Usages.java similarity index 85% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Usages.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Usages.java index 7516ed9a49cd..ac4432b7c741 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/Usages.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/Usages.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.UsagesInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.UsagesInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VerificationIPFlowParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VerificationIPFlowParameters.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VerificationIPFlowParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VerificationIPFlowParameters.java index 5821b4e5b6ea..da7e5d8fd173 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VerificationIPFlowParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VerificationIPFlowParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VerificationIPFlowResult.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VerificationIPFlowResult.java similarity index 79% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VerificationIPFlowResult.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VerificationIPFlowResult.java index ab2577f8d835..a0d07874a25d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VerificationIPFlowResult.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VerificationIPFlowResult.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VerificationIPFlowResultInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VerificationIPFlowResultInner; /** * Type representing VerificationIPFlowResult. diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualHub.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualHub.java new file mode 100644 index 000000000000..b07255ef8087 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualHub.java @@ -0,0 +1,176 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.SubResource; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.implementation.HubVirtualNetworkConnectionInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualHubInner; + +/** + * Type representing VirtualHub. + */ +public interface VirtualHub extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the addressPrefix value. + */ + String addressPrefix(); + + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the hubVirtualNetworkConnections value. + */ + List hubVirtualNetworkConnections(); + + /** + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * @return the virtualWan value. + */ + SubResource virtualWan(); + + /** + * The entirety of the VirtualHub definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of VirtualHub definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a VirtualHub definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the VirtualHub definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the virtualhub update allowing to specify AddressPrefix. + */ + interface WithAddressPrefix { + /** + * Specifies addressPrefix. + */ + WithCreate withAddressPrefix(String addressPrefix); + } + + /** + * The stage of the virtualhub update allowing to specify HubVirtualNetworkConnections. + */ + interface WithHubVirtualNetworkConnections { + /** + * Specifies hubVirtualNetworkConnections. + */ + WithCreate withHubVirtualNetworkConnections(List hubVirtualNetworkConnections); + } + + /** + * The stage of the virtualhub update allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + WithCreate withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the virtualhub update allowing to specify VirtualWan. + */ + interface WithVirtualWan { + /** + * Specifies virtualWan. + */ + WithCreate withVirtualWan(SubResource virtualWan); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAddressPrefix, DefinitionStages.WithHubVirtualNetworkConnections, DefinitionStages.WithProvisioningState, DefinitionStages.WithVirtualWan { + } + } + /** + * The template for a VirtualHub update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAddressPrefix, UpdateStages.WithHubVirtualNetworkConnections, UpdateStages.WithProvisioningState, UpdateStages.WithVirtualWan { + } + + /** + * Grouping of VirtualHub update stages. + */ + interface UpdateStages { + /** + * The stage of the virtualhub {0} allowing to specify AddressPrefix. + */ + interface WithAddressPrefix { + /** + * Specifies addressPrefix. + */ + Update withAddressPrefix(String addressPrefix); + } + + /** + * The stage of the virtualhub {0} allowing to specify HubVirtualNetworkConnections. + */ + interface WithHubVirtualNetworkConnections { + /** + * Specifies hubVirtualNetworkConnections. + */ + Update withHubVirtualNetworkConnections(List hubVirtualNetworkConnections); + } + + /** + * The stage of the virtualhub {0} allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + Update withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the virtualhub {0} allowing to specify VirtualWan. + */ + interface WithVirtualWan { + /** + * Specifies virtualWan. + */ + Update withVirtualWan(SubResource virtualWan); + } + + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualHubs.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualHubs.java new file mode 100644 index 000000000000..d4273bbf70cf --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualHubs.java @@ -0,0 +1,25 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualHubsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing VirtualHubs. + */ +public interface VirtualHubs extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualMachineScaleSetNetworkInterfaceIPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualMachineScaleSetNetworkInterfaceIPConfiguration.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualMachineScaleSetNetworkInterfaceIPConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualMachineScaleSetNetworkInterfaceIPConfiguration.java index 6cb2420df845..874a976947f4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualMachineScaleSetNetworkInterfaceIPConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualMachineScaleSetNetworkInterfaceIPConfiguration.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkInterfaceIPConfigurationInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkInterfaceIPConfigurationInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetwork.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetwork.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetwork.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetwork.java index 76ab9bef41de..dce787a32391 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetwork.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetwork.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,12 +17,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.implementation.SubnetInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkPeeringInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.SubnetInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkPeeringInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkInner; /** * Type representing VirtualNetwork. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkConnectionGatewayReference.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkConnectionGatewayReference.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkConnectionGatewayReference.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkConnectionGatewayReference.java index 3ac3e07d839b..3664f9327b2e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkConnectionGatewayReference.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkConnectionGatewayReference.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGateway.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGateway.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGateway.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGateway.java index 9bc1c48cd652..5e2119bc1296 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGateway.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGateway.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,10 +17,10 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkGatewayInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkGatewayInner; /** * Type representing VirtualNetworkGateway. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnection.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnection.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnection.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnection.java index 2432e96bd642..1515c4551a3c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnection.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnection.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; @@ -17,12 +17,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.implementation.LocalNetworkGatewayInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkGatewayInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkGatewayConnectionInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.LocalNetworkGatewayInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkGatewayInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkGatewayConnectionInner; /** * Type representing VirtualNetworkGatewayConnection. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionListEntity.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionListEntity.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionListEntity.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionListEntity.java index 5150c7c05a66..b04d6424b793 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionListEntity.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionListEntity.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkGatewayConnectionListEntityInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkGatewayConnectionListEntityInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import java.util.List; import com.microsoft.azure.SubResource; import java.util.Map; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionStatus.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionStatus.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionStatus.java index 6b319aa7f2bf..b6fb20f67f09 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionStatus.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionStatus.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionType.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionType.java index ab1939a2ca6c..fc43f4939b16 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnectionType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnectionType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnections.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnections.java similarity index 87% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnections.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnections.java index 26cb855eeff9..63710063fbeb 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayConnections.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayConnections.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -14,7 +14,8 @@ import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkGatewayConnectionsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectionSharedKeyInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkGatewayConnectionsInner; import com.microsoft.azure.arm.model.HasInner; /** @@ -26,11 +27,11 @@ public interface VirtualNetworkGatewayConnections extends SupportsCreating setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value); + Observable setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters); /** * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual network gateway connection shared key through Network resource provider. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayIPConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayIPConfiguration.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayIPConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayIPConfiguration.java index ac01212bfc90..6deeeb8ce3c1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayIPConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayIPConfiguration.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySku.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySku.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySku.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySku.java index e24342b38a57..8d630131a37f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySku.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySku.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySkuName.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySkuName.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySkuName.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySkuName.java index c2b84e90d6c1..a110bae5856b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySkuName.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySkuName.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySkuTier.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySkuTier.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySkuTier.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySkuTier.java index bac541436c7f..582a2326bb83 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewaySkuTier.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewaySkuTier.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayType.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayType.java index 0f5c76cc2925..b6943707d675 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGatewayType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGatewayType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGateways.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGateways.java similarity index 79% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGateways.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGateways.java index efb97e543198..2d4cdfa896bb 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkGateways.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkGateways.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,9 +15,10 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import rx.Completable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkGatewaysInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnClientIPsecParametersInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkGatewaysInner; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionListEntity; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionListEntity; /** * Type representing VirtualNetworkGateways. @@ -106,6 +107,27 @@ public interface VirtualNetworkGateways extends SupportsCreating getAdvertisedRoutesAsync(String resourceGroupName, String virtualNetworkGatewayName, String peer); + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable setVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams); + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName); + /** * Gets all the connections in a virtual network gateway. * diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeering.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeering.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeering.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeering.java index b01c2cc7aaf8..57c8dcc251d4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeering.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeering.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkPeeringInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkPeeringInner; import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; import com.microsoft.azure.SubResource; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeeringState.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeeringState.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeeringState.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeeringState.java index d564e2070d0a..b194e9e3987a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeeringState.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeeringState.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeerings.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeerings.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeerings.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeerings.java index d8b3dc0f427c..2ca6a53e8687 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkPeerings.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkPeerings.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import rx.Completable; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkPeeringsInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkPeeringsInner; import com.microsoft.azure.arm.model.HasInner; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkUsage.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkUsage.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkUsage.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkUsage.java index a8a60045011e..64d02a69def6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkUsage.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkUsage.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworkUsageInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworkUsageInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.network.v2018_05_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; /** * Type representing VirtualNetworkUsage. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkUsageName.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkUsageName.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkUsageName.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkUsageName.java index 5136ab4fcf51..f3b02b230780 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworkUsageName.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworkUsageName.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworks.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworks.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworks.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworks.java index 98a7ba164582..cb765ea8901c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VirtualNetworks.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualNetworks.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.microsoft.azure.arm.collection.SupportsCreating; import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; @@ -15,9 +15,9 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.network.v2018_05_01.implementation.VirtualNetworksInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualNetworksInner; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkUsage; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkUsage; /** * Type representing VirtualNetworks. diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualWAN.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualWAN.java new file mode 100644 index 000000000000..a1245122d2dc --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualWAN.java @@ -0,0 +1,135 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import java.util.List; +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualWANInner; + +/** + * Type representing VirtualWAN. + */ +public interface VirtualWAN extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the disableVpnEncryption value. + */ + Boolean disableVpnEncryption(); + + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * @return the virtualHubs value. + */ + List virtualHubs(); + + /** + * @return the vpnSites value. + */ + List vpnSites(); + + /** + * The entirety of the VirtualWAN definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of VirtualWAN definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a VirtualWAN definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the VirtualWAN definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the virtualwan update allowing to specify DisableVpnEncryption. + */ + interface WithDisableVpnEncryption { + /** + * Specifies disableVpnEncryption. + */ + WithCreate withDisableVpnEncryption(Boolean disableVpnEncryption); + } + + /** + * The stage of the virtualwan update allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + WithCreate withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithDisableVpnEncryption, DefinitionStages.WithProvisioningState { + } + } + /** + * The template for a VirtualWAN update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithDisableVpnEncryption, UpdateStages.WithProvisioningState { + } + + /** + * Grouping of VirtualWAN update stages. + */ + interface UpdateStages { + /** + * The stage of the virtualwan {0} allowing to specify DisableVpnEncryption. + */ + interface WithDisableVpnEncryption { + /** + * Specifies disableVpnEncryption. + */ + Update withDisableVpnEncryption(Boolean disableVpnEncryption); + } + + /** + * The stage of the virtualwan {0} allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + Update withProvisioningState(ProvisioningState provisioningState); + } + + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualWANs.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualWANs.java new file mode 100644 index 000000000000..f38cedb71cd9 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VirtualWANs.java @@ -0,0 +1,25 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VirtualWANsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing VirtualWANs. + */ +public interface VirtualWANs extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientConfiguration.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientConfiguration.java similarity index 99% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientConfiguration.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientConfiguration.java index c239517d3e8e..a8551d2c4cb5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientConfiguration.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientConfiguration.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientIPsecParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientIPsecParameters.java new file mode 100644 index 000000000000..1fb0a8194d26 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientIPsecParameters.java @@ -0,0 +1,60 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnClientIPsecParametersInner; + +/** + * Type representing VpnClientIPsecParameters. + */ +public interface VpnClientIPsecParameters extends HasInner, HasManager { + /** + * @return the dhGroup value. + */ + DhGroup dhGroup(); + + /** + * @return the ikeEncryption value. + */ + IkeEncryption ikeEncryption(); + + /** + * @return the ikeIntegrity value. + */ + IkeIntegrity ikeIntegrity(); + + /** + * @return the ipsecEncryption value. + */ + IpsecEncryption ipsecEncryption(); + + /** + * @return the ipsecIntegrity value. + */ + IpsecIntegrity ipsecIntegrity(); + + /** + * @return the pfsGroup value. + */ + PfsGroup pfsGroup(); + + /** + * @return the saDataSizeKilobytes value. + */ + int saDataSizeKilobytes(); + + /** + * @return the saLifeTimeSeconds value. + */ + int saLifeTimeSeconds(); + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientParameters.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientParameters.java index 5c7ce49a3120..9bd985250916 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientProtocol.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientProtocol.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientProtocol.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientProtocol.java index 60bd0a3a066f..3f1c2fb15b20 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientProtocol.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnClientProtocol.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,6 +22,9 @@ public final class VpnClientProtocol extends ExpandableStringEnum, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the connectionBandwidthInMbps value. + */ + Integer connectionBandwidthInMbps(); + + /** + * @return the connectionStatus value. + */ + VpnConnectionStatus connectionStatus(); + + /** + * @return the egressBytesTransferred value. + */ + Long egressBytesTransferred(); + + /** + * @return the enableBgp value. + */ + Boolean enableBgp(); + + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the ingressBytesTransferred value. + */ + Long ingressBytesTransferred(); + + /** + * @return the ipsecPolicies value. + */ + List ipsecPolicies(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * @return the remoteVpnSite value. + */ + SubResource remoteVpnSite(); + + /** + * @return the routingWeight value. + */ + Integer routingWeight(); + + /** + * @return the sharedKey value. + */ + String sharedKey(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the VpnConnection definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithVpnGateway, DefinitionStages.WithCreate { + } + + /** + * Grouping of VpnConnection definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a VpnConnection definition. + */ + interface Blank extends WithVpnGateway { + } + + /** + * The stage of the vpnconnection definition allowing to specify VpnGateway. + */ + interface WithVpnGateway { + /** + * Specifies resourceGroupName, gatewayName. + */ + WithCreate withExistingVpnGateway(String resourceGroupName, String gatewayName); + } + + /** + * The stage of the vpnconnection definition allowing to specify ConnectionStatus. + */ + interface WithConnectionStatus { + /** + * Specifies connectionStatus. + */ + WithCreate withConnectionStatus(VpnConnectionStatus connectionStatus); + } + + /** + * The stage of the vpnconnection definition allowing to specify EnableBgp. + */ + interface WithEnableBgp { + /** + * Specifies enableBgp. + */ + WithCreate withEnableBgp(Boolean enableBgp); + } + + /** + * The stage of the vpnconnection definition allowing to specify Id. + */ + interface WithId { + /** + * Specifies id. + */ + WithCreate withId(String id); + } + + /** + * The stage of the vpnconnection definition allowing to specify IpsecPolicies. + */ + interface WithIpsecPolicies { + /** + * Specifies ipsecPolicies. + */ + WithCreate withIpsecPolicies(List ipsecPolicies); + } + + /** + * The stage of the vpnconnection definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + */ + WithCreate withLocation(String location); + } + + /** + * The stage of the vpnconnection definition allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + WithCreate withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the vpnconnection definition allowing to specify RemoteVpnSite. + */ + interface WithRemoteVpnSite { + /** + * Specifies remoteVpnSite. + */ + WithCreate withRemoteVpnSite(SubResource remoteVpnSite); + } + + /** + * The stage of the vpnconnection definition allowing to specify RoutingWeight. + */ + interface WithRoutingWeight { + /** + * Specifies routingWeight. + */ + WithCreate withRoutingWeight(Integer routingWeight); + } + + /** + * The stage of the vpnconnection definition allowing to specify SharedKey. + */ + interface WithSharedKey { + /** + * Specifies sharedKey. + */ + WithCreate withSharedKey(String sharedKey); + } + + /** + * The stage of the vpnconnection definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithConnectionStatus, DefinitionStages.WithEnableBgp, DefinitionStages.WithId, DefinitionStages.WithIpsecPolicies, DefinitionStages.WithLocation, DefinitionStages.WithProvisioningState, DefinitionStages.WithRemoteVpnSite, DefinitionStages.WithRoutingWeight, DefinitionStages.WithSharedKey, DefinitionStages.WithTags { + } + } + /** + * The template for a VpnConnection update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithConnectionStatus, UpdateStages.WithEnableBgp, UpdateStages.WithId, UpdateStages.WithIpsecPolicies, UpdateStages.WithLocation, UpdateStages.WithProvisioningState, UpdateStages.WithRemoteVpnSite, UpdateStages.WithRoutingWeight, UpdateStages.WithSharedKey, UpdateStages.WithTags { + } + + /** + * Grouping of VpnConnection update stages. + */ + interface UpdateStages { + /** + * The stage of the vpnconnection update allowing to specify ConnectionStatus. + */ + interface WithConnectionStatus { + /** + * Specifies connectionStatus. + */ + Update withConnectionStatus(VpnConnectionStatus connectionStatus); + } + + /** + * The stage of the vpnconnection update allowing to specify EnableBgp. + */ + interface WithEnableBgp { + /** + * Specifies enableBgp. + */ + Update withEnableBgp(Boolean enableBgp); + } + + /** + * The stage of the vpnconnection update allowing to specify Id. + */ + interface WithId { + /** + * Specifies id. + */ + Update withId(String id); + } + + /** + * The stage of the vpnconnection update allowing to specify IpsecPolicies. + */ + interface WithIpsecPolicies { + /** + * Specifies ipsecPolicies. + */ + Update withIpsecPolicies(List ipsecPolicies); + } + + /** + * The stage of the vpnconnection update allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + */ + Update withLocation(String location); + } + + /** + * The stage of the vpnconnection update allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + Update withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the vpnconnection update allowing to specify RemoteVpnSite. + */ + interface WithRemoteVpnSite { + /** + * Specifies remoteVpnSite. + */ + Update withRemoteVpnSite(SubResource remoteVpnSite); + } + + /** + * The stage of the vpnconnection update allowing to specify RoutingWeight. + */ + interface WithRoutingWeight { + /** + * Specifies routingWeight. + */ + Update withRoutingWeight(Integer routingWeight); + } + + /** + * The stage of the vpnconnection update allowing to specify SharedKey. + */ + interface WithSharedKey { + /** + * Specifies sharedKey. + */ + Update withSharedKey(String sharedKey); + } + + /** + * The stage of the vpnconnection update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + */ + Update withTags(Map tags); + } + + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnConnectionStatus.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnConnectionStatus.java new file mode 100644 index 000000000000..d81680f01414 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnConnectionStatus.java @@ -0,0 +1,47 @@ +/** + * 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.management.network.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for VpnConnectionStatus. + */ +public final class VpnConnectionStatus extends ExpandableStringEnum { + /** Static value Unknown for VpnConnectionStatus. */ + public static final VpnConnectionStatus UNKNOWN = fromString("Unknown"); + + /** Static value Connecting for VpnConnectionStatus. */ + public static final VpnConnectionStatus CONNECTING = fromString("Connecting"); + + /** Static value Connected for VpnConnectionStatus. */ + public static final VpnConnectionStatus CONNECTED = fromString("Connected"); + + /** Static value NotConnected for VpnConnectionStatus. */ + public static final VpnConnectionStatus NOT_CONNECTED = fromString("NotConnected"); + + /** + * Creates or finds a VpnConnectionStatus from its string representation. + * @param name a name to look for + * @return the corresponding VpnConnectionStatus + */ + @JsonCreator + public static VpnConnectionStatus fromString(String name) { + return fromString(name, VpnConnectionStatus.class); + } + + /** + * @return known VpnConnectionStatus values + */ + public static Collection values() { + return values(VpnConnectionStatus.class); + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnConnections.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnConnections.java new file mode 100644 index 000000000000..89e9d8606b8c --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnConnections.java @@ -0,0 +1,53 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnConnectionsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing VpnConnections. + */ +public interface VpnConnections extends SupportsCreating, HasInner { + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String gatewayName, String connectionName); + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByVpnGatewayAsync(final String resourceGroupName, final String gatewayName); + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String gatewayName, String connectionName); + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnDeviceScriptParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnDeviceScriptParameters.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnDeviceScriptParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnDeviceScriptParameters.java index 880e6900807c..05b72ea627fd 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnDeviceScriptParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnDeviceScriptParameters.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnGateway.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnGateway.java new file mode 100644 index 000000000000..f6b7f685d748 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnGateway.java @@ -0,0 +1,201 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.SubResource; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnConnectionInner; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnGatewayInner; + +/** + * Type representing VpnGateway. + */ +public interface VpnGateway extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the bgpSettings value. + */ + BgpSettings bgpSettings(); + + /** + * @return the connections value. + */ + List connections(); + + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the policies value. + */ + Policies policies(); + + /** + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * @return the virtualHub value. + */ + SubResource virtualHub(); + + /** + * The entirety of the VpnGateway definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of VpnGateway definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a VpnGateway definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the VpnGateway definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the vpngateway update allowing to specify BgpSettings. + */ + interface WithBgpSettings { + /** + * Specifies bgpSettings. + */ + WithCreate withBgpSettings(BgpSettings bgpSettings); + } + + /** + * The stage of the vpngateway update allowing to specify Connections. + */ + interface WithConnections { + /** + * Specifies connections. + */ + WithCreate withConnections(List connections); + } + + /** + * The stage of the vpngateway update allowing to specify Policies. + */ + interface WithPolicies { + /** + * Specifies policies. + */ + WithCreate withPolicies(Policies policies); + } + + /** + * The stage of the vpngateway update allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + WithCreate withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the vpngateway update allowing to specify VirtualHub. + */ + interface WithVirtualHub { + /** + * Specifies virtualHub. + */ + WithCreate withVirtualHub(SubResource virtualHub); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithBgpSettings, DefinitionStages.WithConnections, DefinitionStages.WithPolicies, DefinitionStages.WithProvisioningState, DefinitionStages.WithVirtualHub { + } + } + /** + * The template for a VpnGateway update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithBgpSettings, UpdateStages.WithConnections, UpdateStages.WithPolicies, UpdateStages.WithProvisioningState, UpdateStages.WithVirtualHub { + } + + /** + * Grouping of VpnGateway update stages. + */ + interface UpdateStages { + /** + * The stage of the vpngateway {0} allowing to specify BgpSettings. + */ + interface WithBgpSettings { + /** + * Specifies bgpSettings. + */ + Update withBgpSettings(BgpSettings bgpSettings); + } + + /** + * The stage of the vpngateway {0} allowing to specify Connections. + */ + interface WithConnections { + /** + * Specifies connections. + */ + Update withConnections(List connections); + } + + /** + * The stage of the vpngateway {0} allowing to specify Policies. + */ + interface WithPolicies { + /** + * Specifies policies. + */ + Update withPolicies(Policies policies); + } + + /** + * The stage of the vpngateway {0} allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + Update withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the vpngateway {0} allowing to specify VirtualHub. + */ + interface WithVirtualHub { + /** + * Specifies virtualHub. + */ + Update withVirtualHub(SubResource virtualHub); + } + + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnGateways.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnGateways.java new file mode 100644 index 000000000000..110388afdaa8 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnGateways.java @@ -0,0 +1,25 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnGatewaysInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing VpnGateways. + */ +public interface VpnGateways extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSite.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSite.java new file mode 100644 index 000000000000..9d9221f14af6 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSite.java @@ -0,0 +1,249 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnSiteInner; + +/** + * Type representing VpnSite. + */ +public interface VpnSite extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the addressSpace value. + */ + AddressSpace addressSpace(); + + /** + * @return the bgpProperties value. + */ + BgpSettings bgpProperties(); + + /** + * @return the deviceProperties value. + */ + DeviceProperties deviceProperties(); + + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the ipAddress value. + */ + String ipAddress(); + + /** + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * @return the siteKey value. + */ + String siteKey(); + + /** + * @return the virtualWAN value. + */ + SubResource virtualWAN(); + + /** + * The entirety of the VpnSite definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of VpnSite definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a VpnSite definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the VpnSite definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the vpnsite update allowing to specify AddressSpace. + */ + interface WithAddressSpace { + /** + * Specifies addressSpace. + */ + WithCreate withAddressSpace(AddressSpace addressSpace); + } + + /** + * The stage of the vpnsite update allowing to specify BgpProperties. + */ + interface WithBgpProperties { + /** + * Specifies bgpProperties. + */ + WithCreate withBgpProperties(BgpSettings bgpProperties); + } + + /** + * The stage of the vpnsite update allowing to specify DeviceProperties. + */ + interface WithDeviceProperties { + /** + * Specifies deviceProperties. + */ + WithCreate withDeviceProperties(DeviceProperties deviceProperties); + } + + /** + * The stage of the vpnsite update allowing to specify IpAddress. + */ + interface WithIpAddress { + /** + * Specifies ipAddress. + */ + WithCreate withIpAddress(String ipAddress); + } + + /** + * The stage of the vpnsite update allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + WithCreate withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the vpnsite update allowing to specify SiteKey. + */ + interface WithSiteKey { + /** + * Specifies siteKey. + */ + WithCreate withSiteKey(String siteKey); + } + + /** + * The stage of the vpnsite update allowing to specify VirtualWAN. + */ + interface WithVirtualWAN { + /** + * Specifies virtualWAN. + */ + WithCreate withVirtualWAN(SubResource virtualWAN); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAddressSpace, DefinitionStages.WithBgpProperties, DefinitionStages.WithDeviceProperties, DefinitionStages.WithIpAddress, DefinitionStages.WithProvisioningState, DefinitionStages.WithSiteKey, DefinitionStages.WithVirtualWAN { + } + } + /** + * The template for a VpnSite update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAddressSpace, UpdateStages.WithBgpProperties, UpdateStages.WithDeviceProperties, UpdateStages.WithIpAddress, UpdateStages.WithProvisioningState, UpdateStages.WithSiteKey, UpdateStages.WithVirtualWAN { + } + + /** + * Grouping of VpnSite update stages. + */ + interface UpdateStages { + /** + * The stage of the vpnsite {0} allowing to specify AddressSpace. + */ + interface WithAddressSpace { + /** + * Specifies addressSpace. + */ + Update withAddressSpace(AddressSpace addressSpace); + } + + /** + * The stage of the vpnsite {0} allowing to specify BgpProperties. + */ + interface WithBgpProperties { + /** + * Specifies bgpProperties. + */ + Update withBgpProperties(BgpSettings bgpProperties); + } + + /** + * The stage of the vpnsite {0} allowing to specify DeviceProperties. + */ + interface WithDeviceProperties { + /** + * Specifies deviceProperties. + */ + Update withDeviceProperties(DeviceProperties deviceProperties); + } + + /** + * The stage of the vpnsite {0} allowing to specify IpAddress. + */ + interface WithIpAddress { + /** + * Specifies ipAddress. + */ + Update withIpAddress(String ipAddress); + } + + /** + * The stage of the vpnsite {0} allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + */ + Update withProvisioningState(ProvisioningState provisioningState); + } + + /** + * The stage of the vpnsite {0} allowing to specify SiteKey. + */ + interface WithSiteKey { + /** + * Specifies siteKey. + */ + Update withSiteKey(String siteKey); + } + + /** + * The stage of the vpnsite {0} allowing to specify VirtualWAN. + */ + interface WithVirtualWAN { + /** + * Specifies virtualWAN. + */ + Update withVirtualWAN(SubResource virtualWAN); + } + + } +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSiteId.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSiteId.java new file mode 100644 index 000000000000..de0bba114799 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSiteId.java @@ -0,0 +1,32 @@ +/** + * 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.management.network.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * VpnSite Resource. + */ +public class VpnSiteId { + /** + * The resource-uri of the vpn-site for which config is to be fetched. + */ + @JsonProperty(value = "vpnSite", access = JsonProperty.Access.WRITE_ONLY) + private String vpnSite; + + /** + * Get the resource-uri of the vpn-site for which config is to be fetched. + * + * @return the vpnSite value + */ + public String vpnSite() { + return this.vpnSite; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSites.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSites.java new file mode 100644 index 000000000000..9c2f4e8329af --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSites.java @@ -0,0 +1,25 @@ +/** + * 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.management.network.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnSitesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing VpnSites. + */ +public interface VpnSites extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSitesConfigurations.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSitesConfigurations.java new file mode 100644 index 000000000000..b1e96560f1e0 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnSitesConfigurations.java @@ -0,0 +1,30 @@ +/** + * 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.management.network.v2018_06_01; + +import rx.Completable; +import com.microsoft.azure.management.network.v2018_06_01.implementation.VpnSitesConfigurationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing VpnSitesConfigurations. + */ +public interface VpnSitesConfigurations extends HasInner { + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request); + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnType.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnType.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnType.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnType.java index b43a0bf135a1..1798252698f4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnType.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/VpnType.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableSslOptionsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableSslOptionsImpl.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableSslOptionsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableSslOptionsImpl.java index 637c542821f7..3f2da5f2980c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableSslOptionsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableSslOptionsImpl.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayAvailableSslOptions; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayAvailableSslOptions; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslCipherSuite; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslProtocol; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslPolicyName; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslCipherSuite; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslProtocol; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslPolicyName; import com.microsoft.azure.SubResource; import java.util.Map; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableSslOptionsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableSslOptionsInner.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableSslOptionsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableSslOptionsInner.java index 7afd8474f711..799defdb3ff9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableSslOptionsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableSslOptionsInner.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslPolicyName; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslCipherSuite; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslProtocol; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslPolicyName; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslCipherSuite; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslProtocol; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultImpl.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultImpl.java index 5bbc2d359ddb..6d69c024d1d5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayAvailableWafRuleSetsResult; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayAvailableWafRuleSetsResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayFirewallRuleSet; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayFirewallRuleSet; class ApplicationGatewayAvailableWafRuleSetsResultImpl extends WrapperImpl implements ApplicationGatewayAvailableWafRuleSetsResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultInner.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultInner.java index 089ef8ddf5c8..9d8ce3ec2daf 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayAvailableWafRuleSetsResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayFirewallRuleSet; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayFirewallRuleSet; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayBackendHealthImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayBackendHealthImpl.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayBackendHealthImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayBackendHealthImpl.java index 506abc8baf8b..18c6630a4774 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayBackendHealthImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayBackendHealthImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendHealth; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendHealth; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendHealthPool; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendHealthPool; class ApplicationGatewayBackendHealthImpl extends WrapperImpl implements ApplicationGatewayBackendHealth { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayBackendHealthInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayBackendHealthInner.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayBackendHealthInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayBackendHealthInner.java index 4fa339e3ed1f..efd3392c8574 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayBackendHealthInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayBackendHealthInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendHealthPool; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendHealthPool; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayImpl.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayImpl.java index 7f2e82964777..09230b66147f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayImpl.java @@ -6,28 +6,29 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGateway; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGateway; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySku; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslPolicy; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayOperationalState; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySku; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslPolicy; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayOperationalState; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayAuthenticationCertificate; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslCertificate; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayFrontendIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayFrontendPort; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayProbe; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendAddressPool; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendHttpSettings; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayHttpListener; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayUrlPathMap; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayRequestRoutingRule; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayRedirectConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayWebApplicationFirewallConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayAuthenticationCertificate; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslCertificate; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayFrontendIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayFrontendPort; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayProbe; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendHttpSettings; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayHttpListener; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayUrlPathMap; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayRequestRoutingRule; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayRedirectConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayWebApplicationFirewallConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayAutoscaleConfiguration; class ApplicationGatewayImpl extends GroupableResourceCoreImpl implements ApplicationGateway, ApplicationGateway.Definition, ApplicationGateway.Update { ApplicationGatewayImpl(String name, ApplicationGatewayInner inner, NetworkManager manager) { @@ -65,6 +66,11 @@ public List authenticationCertifica return this.inner().authenticationCertificates(); } + @Override + public ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration() { + return this.inner().autoscaleConfiguration(); + } + @Override public List backendAddressPools() { return this.inner().backendAddressPools(); @@ -75,6 +81,11 @@ public List backendHttpSettingsCollection return this.inner().backendHttpSettingsCollection(); } + @Override + public Boolean enableFips() { + return this.inner().enableFips(); + } + @Override public Boolean enableHttp2() { return this.inner().enableHttp2(); @@ -160,12 +171,23 @@ public ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirew return this.inner().webApplicationFirewallConfiguration(); } + @Override + public List zones() { + return this.inner().zones(); + } + @Override public ApplicationGatewayImpl withAuthenticationCertificates(List authenticationCertificates) { this.inner().withAuthenticationCertificates(authenticationCertificates); return this; } + @Override + public ApplicationGatewayImpl withAutoscaleConfiguration(ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration) { + this.inner().withAutoscaleConfiguration(autoscaleConfiguration); + return this; + } + @Override public ApplicationGatewayImpl withBackendAddressPools(List backendAddressPools) { this.inner().withBackendAddressPools(backendAddressPools); @@ -178,6 +200,12 @@ public ApplicationGatewayImpl withBackendHttpSettingsCollection(List zones) { + this.inner().withZones(zones); + return this; + } + } diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayInner.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayInner.java index d9c61a1f1c4a..a8add4aa8de2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewayInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewayInner.java @@ -6,25 +6,26 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySku; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslPolicy; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayOperationalState; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySku; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslPolicy; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayOperationalState; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayAuthenticationCertificate; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslCertificate; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayFrontendIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayFrontendPort; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayProbe; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendAddressPool; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendHttpSettings; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayHttpListener; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayUrlPathMap; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayRequestRoutingRule; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayRedirectConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayWebApplicationFirewallConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayAuthenticationCertificate; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslCertificate; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayFrontendIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayFrontendPort; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayProbe; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendHttpSettings; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayHttpListener; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayUrlPathMap; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayRequestRoutingRule; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayRedirectConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayWebApplicationFirewallConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayAutoscaleConfiguration; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; @@ -139,6 +140,18 @@ public class ApplicationGatewayInner extends Resource { @JsonProperty(value = "properties.enableHttp2") private Boolean enableHttp2; + /** + * Whether FIPS is enabled on the application gateway resource. + */ + @JsonProperty(value = "properties.enableFips") + private Boolean enableFips; + + /** + * Autoscale Configuration. + */ + @JsonProperty(value = "properties.autoscaleConfiguration") + private ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration; + /** * Resource GUID property of the application gateway resource. */ @@ -158,6 +171,13 @@ public class ApplicationGatewayInner extends Resource { @JsonProperty(value = "etag") private String etag; + /** + * A list of availability zones denoting where the resource needs to come + * from. + */ + @JsonProperty(value = "zones") + private List zones; + /** * Resource ID. */ @@ -493,6 +513,46 @@ public ApplicationGatewayInner withEnableHttp2(Boolean enableHttp2) { return this; } + /** + * Get whether FIPS is enabled on the application gateway resource. + * + * @return the enableFips value + */ + public Boolean enableFips() { + return this.enableFips; + } + + /** + * Set whether FIPS is enabled on the application gateway resource. + * + * @param enableFips the enableFips value to set + * @return the ApplicationGatewayInner object itself. + */ + public ApplicationGatewayInner withEnableFips(Boolean enableFips) { + this.enableFips = enableFips; + return this; + } + + /** + * Get autoscale Configuration. + * + * @return the autoscaleConfiguration value + */ + public ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration() { + return this.autoscaleConfiguration; + } + + /** + * Set autoscale Configuration. + * + * @param autoscaleConfiguration the autoscaleConfiguration value to set + * @return the ApplicationGatewayInner object itself. + */ + public ApplicationGatewayInner withAutoscaleConfiguration(ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration) { + this.autoscaleConfiguration = autoscaleConfiguration; + return this; + } + /** * Get resource GUID property of the application gateway resource. * @@ -553,6 +613,26 @@ public ApplicationGatewayInner withEtag(String etag) { return this; } + /** + * Get a list of availability zones denoting where the resource needs to come from. + * + * @return the zones value + */ + public List zones() { + return this.zones; + } + + /** + * Set a list of availability zones denoting where the resource needs to come from. + * + * @param zones the zones value to set + * @return the ApplicationGatewayInner object itself. + */ + public ApplicationGatewayInner withZones(List zones) { + this.zones = zones; + return this; + } + /** * Get resource ID. * diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaySslPredefinedPolicyImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaySslPredefinedPolicyImpl.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaySslPredefinedPolicyImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaySslPredefinedPolicyImpl.java index be434800b708..416bbc7306b2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaySslPredefinedPolicyImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaySslPredefinedPolicyImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslPredefinedPolicy; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslPredefinedPolicy; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslCipherSuite; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslProtocol; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslCipherSuite; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslProtocol; class ApplicationGatewaySslPredefinedPolicyImpl extends WrapperImpl implements ApplicationGatewaySslPredefinedPolicy { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaySslPredefinedPolicyInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaySslPredefinedPolicyInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaySslPredefinedPolicyInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaySslPredefinedPolicyInner.java index ac9d2d57bd9f..aa376a07d50f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaySslPredefinedPolicyInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaySslPredefinedPolicyInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslCipherSuite; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslProtocol; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslCipherSuite; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslProtocol; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaysImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaysImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaysImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaysImpl.java index ab8c64c9f1c0..289d6d94a9b7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaysImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaysImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGateways; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGateway; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGateway; import rx.Observable; import rx.Completable; import java.util.ArrayList; @@ -22,10 +22,10 @@ import rx.functions.Func1; import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendHealth; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayAvailableWafRuleSetsResult; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayAvailableSslOptions; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewaySslPredefinedPolicy; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendHealth; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayAvailableWafRuleSetsResult; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayAvailableSslOptions; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewaySslPredefinedPolicy; class ApplicationGatewaysImpl extends GroupableResourcesCoreImpl implements ApplicationGateways { protected ApplicationGatewaysImpl(NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaysInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaysInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaysInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaysInner.java index 26977821a800..47ecffdedf1d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationGatewaysInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationGatewaysInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -15,7 +15,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -67,91 +67,91 @@ public ApplicationGatewaysInner(Retrofit retrofit, NetworkManagementClientImpl c * used by Retrofit to perform actually REST calls. */ interface ApplicationGatewaysService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ApplicationGateways delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Body ApplicationGatewayInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Body ApplicationGatewayInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ApplicationGateways beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ApplicationGateways listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways listAll" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways listAll" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways") Observable> listAll(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways start" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways start" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start") Observable> start(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways beginStart" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways beginStart" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start") Observable> beginStart(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways stop" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways stop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop") Observable> stop(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways beginStop" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways beginStop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop") Observable> beginStop(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways backendHealth" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways backendHealth" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth") Observable> backendHealth(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.ApplicationGateways beginBackendHealth" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways beginBackendHealth" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth") Observable> beginBackendHealth(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.ApplicationGateways listAvailableWafRuleSets" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways listAvailableWafRuleSets" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets") Observable> listAvailableWafRuleSets(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways listAvailableSslOptions" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways listAvailableSslOptions" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default") Observable> listAvailableSslOptions(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways listAvailableSslPredefinedPolicies" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways listAvailableSslPredefinedPolicies" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies") Observable> listAvailableSslPredefinedPolicies(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways getSslPredefinedPolicy" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways getSslPredefinedPolicy" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}") Observable> getSslPredefinedPolicy(@Path("subscriptionId") String subscriptionId, @Path("predefinedPolicyName") String predefinedPolicyName, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationGateways listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_05_01.ApplicationGateways listAllNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways listAllNext" }) @GET Observable> listAllNext(@Url String nextUrl, @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.management.network.v2018_05_01.ApplicationGateways listAvailableSslPredefinedPoliciesNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways listAvailableSslPredefinedPoliciesNext" }) @GET Observable> listAvailableSslPredefinedPoliciesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -218,7 +218,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -284,7 +284,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -370,7 +370,7 @@ public Observable> getByResourceGroupWi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -462,7 +462,7 @@ public Observable> createOrUpdateWithSe throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -537,7 +537,7 @@ public Observable> beginCreateOrUpdateW throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -622,7 +622,7 @@ public Observable> updateTagsWithServic if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -696,7 +696,7 @@ public Observable> updateTagsWithServic throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -765,7 +765,7 @@ public Observable> beginUpdateTagsWithS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -850,7 +850,7 @@ public Observable> beginUpdateTagsWithS throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -965,7 +965,7 @@ public Observable>> listByResource if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1070,7 +1070,7 @@ public Observable>> listAllSingleP if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listAll(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1153,7 +1153,7 @@ public Observable> startWithServiceResponseAsync(String re if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.start(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1219,7 +1219,7 @@ public Observable> beginStartWithServiceResponseAsync(Stri if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginStart(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1303,7 +1303,7 @@ public Observable> stopWithServiceResponseAsync(String res if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.stop(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1369,7 +1369,7 @@ public Observable> beginStopWithServiceResponseAsync(Strin if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginStop(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1454,7 +1454,7 @@ public Observable> backend if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; Observable> observable = service.backendHealth(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); @@ -1525,7 +1525,7 @@ public Observable> backend if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.backendHealth(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1592,7 +1592,7 @@ public Observable> beginBa if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.beginBackendHealth(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -1674,7 +1674,7 @@ public Observable> beginBa if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginBackendHealth(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1745,7 +1745,7 @@ public Observable, Observable>>() { @Override @@ -1815,7 +1815,7 @@ public Observable> l if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listAvailableSslOptions(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1920,7 +1920,7 @@ public Observable, Observable>>>() { @Override @@ -1997,7 +1997,7 @@ public Observable> g if (predefinedPolicyName == null) { throw new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getSslPredefinedPolicy(this.client.subscriptionId(), predefinedPolicyName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupImpl.java index 7034d333f5dd..e5c334ec1d35 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupImpl.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroup; import rx.Observable; class ApplicationSecurityGroupImpl extends GroupableResourceCoreImpl implements ApplicationSecurityGroup, ApplicationSecurityGroup.Definition, ApplicationSecurityGroup.Update { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupInner.java index 13a225832a64..4d7b9244fc3d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupsImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupsImpl.java index 9a5a20045675..9b87d53137f3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupsImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroups; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroup; import rx.Observable; import rx.Completable; import java.util.ArrayList; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupsInner.java index cd0445b99f27..2609413f0ce5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ApplicationSecurityGroupsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ApplicationSecurityGroupsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -64,39 +64,39 @@ public ApplicationSecurityGroupsInner(Retrofit retrofit, NetworkManagementClient * used by Retrofit to perform actually REST calls. */ interface ApplicationSecurityGroupsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroups delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("applicationSecurityGroupName") String applicationSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationSecurityGroups beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("applicationSecurityGroupName") String applicationSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationSecurityGroups getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("applicationSecurityGroupName") String applicationSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationSecurityGroups createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("applicationSecurityGroupName") String applicationSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Body ApplicationSecurityGroupInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationSecurityGroups beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("applicationSecurityGroupName") String applicationSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Body ApplicationSecurityGroupInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationSecurityGroups list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationSecurityGroups listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ApplicationSecurityGroups listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups listNext" }) @GET Observable> listNext(@Url String nextUrl, @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.management.network.v2018_05_01.ApplicationSecurityGroups listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -163,7 +163,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, applicationSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -229,7 +229,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, applicationSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -315,7 +315,7 @@ public Observable> getByResourceG if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, applicationSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -407,7 +407,7 @@ public Observable> createOrUpdate throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, applicationSecurityGroupName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -482,7 +482,7 @@ public Observable> beginCreateOrU throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, applicationSecurityGroupName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -588,7 +588,7 @@ public Observable>> listSing if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -701,7 +701,7 @@ public Observable>> listByRe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableEndpointServicesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableEndpointServicesImpl.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableEndpointServicesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableEndpointServicesImpl.java index 90e3e4054832..85c0f2583c90 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableEndpointServicesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableEndpointServicesImpl.java @@ -7,14 +7,14 @@ * abc */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.AvailableEndpointServices; +import com.microsoft.azure.management.network.v2018_06_01.AvailableEndpointServices; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.EndpointServiceResult; +import com.microsoft.azure.management.network.v2018_06_01.EndpointServiceResult; class AvailableEndpointServicesImpl extends WrapperImpl implements AvailableEndpointServices { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableEndpointServicesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableEndpointServicesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableEndpointServicesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableEndpointServicesInner.java index 686f15de202f..1f3c6a5b1d77 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableEndpointServicesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableEndpointServicesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -56,11 +56,11 @@ public AvailableEndpointServicesInner(Retrofit retrofit, NetworkManagementClient * used by Retrofit to perform actually REST calls. */ interface AvailableEndpointServicesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.AvailableEndpointServices list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.AvailableEndpointServices list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices") Observable> list(@Path("location") String location, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.AvailableEndpointServices listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.AvailableEndpointServices listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -157,7 +157,7 @@ public Observable>> listSingleP if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(location, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableProvidersListImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableProvidersListImpl.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableProvidersListImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableProvidersListImpl.java index 7a55966b7a19..5bd97a9bcf61 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableProvidersListImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableProvidersListImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.AvailableProvidersList; +import com.microsoft.azure.management.network.v2018_06_01.AvailableProvidersList; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.AvailableProvidersListCountry; +import com.microsoft.azure.management.network.v2018_06_01.AvailableProvidersListCountry; class AvailableProvidersListImpl extends WrapperImpl implements AvailableProvidersList { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableProvidersListInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableProvidersListInner.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableProvidersListInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableProvidersListInner.java index ca00659bbf72..5304e1f20bd3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AvailableProvidersListInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AvailableProvidersListInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.AvailableProvidersListCountry; +import com.microsoft.azure.management.network.v2018_06_01.AvailableProvidersListCountry; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallImpl.java new file mode 100644 index 000000000000..313ddb25f0d9 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallImpl.java @@ -0,0 +1,100 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewall; +import rx.Observable; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewallApplicationRuleCollection; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewallNetworkRuleCollection; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewallIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; + +class AzureFirewallImpl extends GroupableResourceCoreImpl implements AzureFirewall, AzureFirewall.Definition, AzureFirewall.Update { + AzureFirewallImpl(String name, AzureFirewallInner inner, NetworkManager manager) { + super(name, inner, manager); + } + + @Override + public Observable createResourceAsync() { + AzureFirewallsInner client = this.manager().inner().azureFirewalls(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + AzureFirewallsInner client = this.manager().inner().azureFirewalls(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + AzureFirewallsInner client = this.manager().inner().azureFirewalls(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public List applicationRuleCollections() { + return this.inner().applicationRuleCollections(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public List ipConfigurations() { + return this.inner().ipConfigurations(); + } + + @Override + public List networkRuleCollections() { + return this.inner().networkRuleCollections(); + } + + @Override + public ProvisioningState provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public AzureFirewallImpl withApplicationRuleCollections(List applicationRuleCollections) { + this.inner().withApplicationRuleCollections(applicationRuleCollections); + return this; + } + + @Override + public AzureFirewallImpl withIpConfigurations(List ipConfigurations) { + this.inner().withIpConfigurations(ipConfigurations); + return this; + } + + @Override + public AzureFirewallImpl withNetworkRuleCollections(List networkRuleCollections) { + this.inner().withNetworkRuleCollections(networkRuleCollections); + return this; + } + + @Override + public AzureFirewallImpl withProvisioningState(ProvisioningState provisioningState) { + this.inner().withProvisioningState(provisioningState); + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallInner.java new file mode 100644 index 000000000000..29ca8ff7b9dc --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallInner.java @@ -0,0 +1,174 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewallApplicationRuleCollection; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewallNetworkRuleCollection; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewallIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Azure Firewall resource. + */ +@JsonFlatten +@SkipParentValidation +public class AzureFirewallInner extends Resource { + /** + * Collection of application rule collections used by a Azure Firewall. + */ + @JsonProperty(value = "properties.applicationRuleCollections") + private List applicationRuleCollections; + + /** + * Collection of network rule collections used by a Azure Firewall. + */ + @JsonProperty(value = "properties.networkRuleCollections") + private List networkRuleCollections; + + /** + * IP configuration of the Azure Firewall resource. + */ + @JsonProperty(value = "properties.ipConfigurations") + private List ipConfigurations; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get collection of application rule collections used by a Azure Firewall. + * + * @return the applicationRuleCollections value + */ + public List applicationRuleCollections() { + return this.applicationRuleCollections; + } + + /** + * Set collection of application rule collections used by a Azure Firewall. + * + * @param applicationRuleCollections the applicationRuleCollections value to set + * @return the AzureFirewallInner object itself. + */ + public AzureFirewallInner withApplicationRuleCollections(List applicationRuleCollections) { + this.applicationRuleCollections = applicationRuleCollections; + return this; + } + + /** + * Get collection of network rule collections used by a Azure Firewall. + * + * @return the networkRuleCollections value + */ + public List networkRuleCollections() { + return this.networkRuleCollections; + } + + /** + * Set collection of network rule collections used by a Azure Firewall. + * + * @param networkRuleCollections the networkRuleCollections value to set + * @return the AzureFirewallInner object itself. + */ + public AzureFirewallInner withNetworkRuleCollections(List networkRuleCollections) { + this.networkRuleCollections = networkRuleCollections; + return this; + } + + /** + * Get iP configuration of the Azure Firewall resource. + * + * @return the ipConfigurations value + */ + public List ipConfigurations() { + return this.ipConfigurations; + } + + /** + * Set iP configuration of the Azure Firewall resource. + * + * @param ipConfigurations the ipConfigurations value to set + * @return the AzureFirewallInner object itself. + */ + public AzureFirewallInner withIpConfigurations(List ipConfigurations) { + this.ipConfigurations = ipConfigurations; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the AzureFirewallInner object itself. + */ + public AzureFirewallInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the AzureFirewallInner object itself. + */ + public AzureFirewallInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallsImpl.java new file mode 100644 index 000000000000..4795ac569249 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallsImpl.java @@ -0,0 +1,138 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewalls; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewall; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; + +class AzureFirewallsImpl extends GroupableResourcesCoreImpl implements AzureFirewalls { + protected AzureFirewallsImpl(NetworkManager manager) { + super(manager.inner().azureFirewalls(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + AzureFirewallsInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + AzureFirewallsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + AzureFirewallsInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + AzureFirewallsInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public AzureFirewall call(AzureFirewallInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + AzureFirewallsInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + AzureFirewallsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public AzureFirewall call(AzureFirewallInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public AzureFirewallImpl define(String name) { + return wrapModel(name); + } + + @Override + protected AzureFirewallImpl wrapModel(AzureFirewallInner inner) { + return new AzureFirewallImpl(inner.name(), inner, manager()); + } + + @Override + protected AzureFirewallImpl wrapModel(String name) { + return new AzureFirewallImpl(name, new AzureFirewallInner(), this.manager()); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallsInner.java new file mode 100644 index 000000000000..4d9717efac26 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureFirewallsInner.java @@ -0,0 +1,948 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in AzureFirewalls. + */ +public class AzureFirewallsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private AzureFirewallsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of AzureFirewallsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public AzureFirewallsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(AzureFirewallsService.class); + this.client = client; + } + + /** + * The interface defining all the services for AzureFirewalls to be + * used by Retrofit to perform actually REST calls. + */ + interface AzureFirewallsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.AzureFirewalls delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("azureFirewallName") String azureFirewallName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.AzureFirewalls beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("azureFirewallName") String azureFirewallName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.AzureFirewalls getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") + Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("azureFirewallName") String azureFirewallName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.AzureFirewalls createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") + Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("azureFirewallName") String azureFirewallName, @Path("subscriptionId") String subscriptionId, @Body AzureFirewallInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.AzureFirewalls beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") + Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("azureFirewallName") String azureFirewallName, @Path("subscriptionId") String subscriptionId, @Body AzureFirewallInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.AzureFirewalls listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls") + Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.AzureFirewalls list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.AzureFirewalls listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_06_01.AzureFirewalls listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String azureFirewallName) { + deleteWithServiceResponseAsync(resourceGroupName, azureFirewallName).toBlocking().last().body(); + } + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String azureFirewallName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, azureFirewallName), serviceCallback); + } + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String azureFirewallName) { + return deleteWithServiceResponseAsync(resourceGroupName, azureFirewallName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String azureFirewallName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (azureFirewallName == null) { + throw new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String azureFirewallName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, azureFirewallName).toBlocking().single().body(); + } + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String azureFirewallName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, azureFirewallName), serviceCallback); + } + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String azureFirewallName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, azureFirewallName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String azureFirewallName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (azureFirewallName == null) { + throw new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AzureFirewallInner object if successful. + */ + public AzureFirewallInner getByResourceGroup(String resourceGroupName, String azureFirewallName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, azureFirewallName).toBlocking().single().body(); + } + + /** + * Gets the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String azureFirewallName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, azureFirewallName), serviceCallback); + } + + /** + * Gets the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureFirewallInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String azureFirewallName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, azureFirewallName).map(new Func1, AzureFirewallInner>() { + @Override + public AzureFirewallInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureFirewallInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String azureFirewallName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (azureFirewallName == null) { + throw new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates or updates the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AzureFirewallInner object if successful. + */ + public AzureFirewallInner createOrUpdate(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, azureFirewallName, parameters).toBlocking().last().body(); + } + + /** + * Creates or updates the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, azureFirewallName, parameters), serviceCallback); + } + + /** + * Creates or updates the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, azureFirewallName, parameters).map(new Func1, AzureFirewallInner>() { + @Override + public AzureFirewallInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (azureFirewallName == null) { + throw new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(resourceGroupName, azureFirewallName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates or updates the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AzureFirewallInner object if successful. + */ + public AzureFirewallInner beginCreateOrUpdate(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, azureFirewallName, parameters).toBlocking().single().body(); + } + + /** + * Creates or updates the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, azureFirewallName, parameters), serviceCallback); + } + + /** + * Creates or updates the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureFirewallInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, azureFirewallName, parameters).map(new Func1, AzureFirewallInner>() { + @Override + public AzureFirewallInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureFirewallInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (azureFirewallName == null) { + throw new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + Validator.validate(parameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(resourceGroupName, azureFirewallName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all Azure Firewalls in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AzureFirewallInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all Azure Firewalls in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all Azure Firewalls in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AzureFirewallInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all Azure Firewalls in a resource group. + * + * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AzureFirewallInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all Azure Firewalls in a resource group. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AzureFirewallInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AzureFirewallInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AzureFirewallInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AzureFirewallInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AzureFirewallInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all Azure Firewalls in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AzureFirewallInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all Azure Firewalls in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all Azure Firewalls in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AzureFirewallInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all Azure Firewalls in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AzureFirewallInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all Azure Firewalls in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AzureFirewallInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AzureFirewallInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AzureFirewallInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AzureFirewallInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets all the Azure Firewalls in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AzureFirewallInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AzureReachabilityReportImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureReachabilityReportImpl.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AzureReachabilityReportImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureReachabilityReportImpl.java index c8d981529408..a1066ef00889 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AzureReachabilityReportImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureReachabilityReportImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.AzureReachabilityReport; +import com.microsoft.azure.management.network.v2018_06_01.AzureReachabilityReport; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.AzureReachabilityReportLocation; +import com.microsoft.azure.management.network.v2018_06_01.AzureReachabilityReportLocation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.AzureReachabilityReportItem; +import com.microsoft.azure.management.network.v2018_06_01.AzureReachabilityReportItem; class AzureReachabilityReportImpl extends WrapperImpl implements AzureReachabilityReport { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AzureReachabilityReportInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureReachabilityReportInner.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AzureReachabilityReportInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureReachabilityReportInner.java index 615e0a9f69a0..f7367a5c264b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/AzureReachabilityReportInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/AzureReachabilityReportInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.AzureReachabilityReportLocation; +import com.microsoft.azure.management.network.v2018_06_01.AzureReachabilityReportLocation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.AzureReachabilityReportItem; +import com.microsoft.azure.management.network.v2018_06_01.AzureReachabilityReportItem; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BackendAddressPoolImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BackendAddressPoolImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BackendAddressPoolImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BackendAddressPoolImpl.java index 07c714c1b25a..de72721f686b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BackendAddressPoolImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BackendAddressPoolImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.BackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.BackendAddressPool; import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; import rx.Observable; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BackendAddressPoolInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BackendAddressPoolInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BackendAddressPoolInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BackendAddressPoolInner.java index 15cf767102a6..50ab7872dbe4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BackendAddressPoolInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BackendAddressPoolInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpPeerStatusListResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpPeerStatusListResultImpl.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpPeerStatusListResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpPeerStatusListResultImpl.java index 7575ad527b67..e6bb8e2df126 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpPeerStatusListResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpPeerStatusListResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.BgpPeerStatusListResult; +import com.microsoft.azure.management.network.v2018_06_01.BgpPeerStatusListResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.BgpPeerStatus; +import com.microsoft.azure.management.network.v2018_06_01.BgpPeerStatus; class BgpPeerStatusListResultImpl extends WrapperImpl implements BgpPeerStatusListResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpPeerStatusListResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpPeerStatusListResultInner.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpPeerStatusListResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpPeerStatusListResultInner.java index 9ccbf837a14b..c396f0f7fb2d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpPeerStatusListResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpPeerStatusListResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.BgpPeerStatus; +import com.microsoft.azure.management.network.v2018_06_01.BgpPeerStatus; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunitiesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunitiesImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunitiesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunitiesImpl.java index b9eb5777c5c3..12a00c1cd3f7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunitiesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunitiesImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.BgpServiceCommunities; -import com.microsoft.azure.management.network.v2018_05_01.BgpServiceCommunity; +import com.microsoft.azure.management.network.v2018_06_01.BgpServiceCommunities; +import com.microsoft.azure.management.network.v2018_06_01.BgpServiceCommunity; import rx.Observable; import rx.Completable; import rx.functions.Func1; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunitiesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunitiesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunitiesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunitiesInner.java index 5517d40626ab..4fa5db74fa74 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunitiesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunitiesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -56,11 +56,11 @@ public BgpServiceCommunitiesInner(Retrofit retrofit, NetworkManagementClientImpl * used by Retrofit to perform actually REST calls. */ interface BgpServiceCommunitiesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.BgpServiceCommunities list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.BgpServiceCommunities list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.BgpServiceCommunities listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.BgpServiceCommunities listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -149,7 +149,7 @@ public Observable>> listSinglePag if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunityImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunityImpl.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunityImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunityImpl.java index ca7afa64604e..0a27deb59d8f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunityImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunityImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.BgpServiceCommunity; +import com.microsoft.azure.management.network.v2018_06_01.BgpServiceCommunity; import rx.Observable; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.BGPCommunity; +import com.microsoft.azure.management.network.v2018_06_01.BGPCommunity; class BgpServiceCommunityImpl extends GroupableResourceCoreImpl implements BgpServiceCommunity { BgpServiceCommunityImpl(String name, BgpServiceCommunityInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunityInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunityInner.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunityInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunityInner.java index d5be5b2c56bf..a59c957e47e4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/BgpServiceCommunityInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/BgpServiceCommunityInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.BGPCommunity; +import com.microsoft.azure.management.network.v2018_06_01.BGPCommunity; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorInner.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorInner.java index e38ddffa9a51..ff25d73fdbf2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.Map; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorSource; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorDestination; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorSource; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorDestination; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorQueryResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorQueryResultImpl.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorQueryResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorQueryResultImpl.java index ccf5de95683c..12277d17eb4c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorQueryResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorQueryResultImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorQueryResult; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorQueryResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorSourceStatus; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorSourceStatus; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionStateSnapshot; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionStateSnapshot; class ConnectionMonitorQueryResultImpl extends WrapperImpl implements ConnectionMonitorQueryResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorQueryResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorQueryResultInner.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorQueryResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorQueryResultInner.java index 689fbea40403..64e55e1f2f2f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorQueryResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorQueryResultInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorSourceStatus; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorSourceStatus; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionStateSnapshot; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionStateSnapshot; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorResultImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorResultImpl.java index fd44103c19d0..e2f9818e9983 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorResultImpl.java @@ -6,15 +6,15 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorResult; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorResult; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; import java.util.Map; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorSource; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorDestination; -import com.microsoft.azure.management.network.v2018_05_01.ProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorSource; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorDestination; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; import org.joda.time.DateTime; import rx.functions.Func1; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorResultInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorResultInner.java index 669aefe756ef..7eb0f6f30438 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorResultInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorSource; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorDestination; -import com.microsoft.azure.management.network.v2018_05_01.ProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorSource; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorDestination; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorsImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorsImpl.java index 2e67b4605d6d..a07db62790e3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorsImpl.java @@ -7,16 +7,16 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitors; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors; import rx.Completable; import rx.Observable; import rx.functions.Func1; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorQueryResult; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitorResult; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorQueryResult; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitorResult; class ConnectionMonitorsImpl extends WrapperImpl implements ConnectionMonitors { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorsInner.java index 1b8d4fe10e8e..c5133805d595 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionMonitorsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionMonitorsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -57,51 +57,51 @@ public ConnectionMonitorsInner(Retrofit retrofit, NetworkManagementClientImpl cl * used by Retrofit to perform actually REST calls. */ interface ConnectionMonitorsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitors createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Body ConnectionMonitorInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Body ConnectionMonitorInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors stop" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors stop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop") Observable> stop(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors beginStop" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors beginStop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop") Observable> beginStop(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors start" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors start" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/start") Observable> start(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors beginStart" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors beginStart" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/start") Observable> beginStart(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors query" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors query" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query") Observable> query(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors beginQuery" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors beginQuery" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query") Observable> beginQuery(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("connectionMonitorName") String connectionMonitorName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ConnectionMonitors list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -184,7 +184,7 @@ public Observable> createOrUpdateW throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -266,7 +266,7 @@ public Observable> beginCreateOrUp throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -358,7 +358,7 @@ public Observable> getWithServiceR if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -448,7 +448,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -521,7 +521,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -612,7 +612,7 @@ public Observable> stopWithServiceResponseAsync(String res if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.stop(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -685,7 +685,7 @@ public Observable> beginStopWithServiceResponseAsync(Strin if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginStop(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -776,7 +776,7 @@ public Observable> startWithServiceResponseAsync(String re if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.start(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -849,7 +849,7 @@ public Observable> beginStartWithServiceResponseAsync(Stri if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginStart(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -941,7 +941,7 @@ public Observable> queryWithS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.query(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1015,7 +1015,7 @@ public Observable> beginQuery if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginQuery(resourceGroupName, networkWatcherName, connectionMonitorName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1100,7 +1100,7 @@ public Observable>> listWithS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionResetSharedKeyImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionResetSharedKeyImpl.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionResetSharedKeyImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionResetSharedKeyImpl.java index 49b8f6e55757..4c40458f4ba6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionResetSharedKeyImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionResetSharedKeyImpl.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionResetSharedKey; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionResetSharedKey; import com.microsoft.azure.arm.model.implementation.WrapperImpl; class ConnectionResetSharedKeyImpl extends WrapperImpl implements ConnectionResetSharedKey { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionResetSharedKeyInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionResetSharedKeyInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionResetSharedKeyInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionResetSharedKeyInner.java index 01ef4d28f657..02ac2cbe6dcc 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionResetSharedKeyInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionResetSharedKeyInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionSharedKeyImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionSharedKeyImpl.java similarity index 79% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionSharedKeyImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionSharedKeyImpl.java index 0d34e44be2cd..ddfa8614a4f0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionSharedKeyImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionSharedKeyImpl.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionSharedKey; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionSharedKey; import com.microsoft.azure.arm.model.implementation.WrapperImpl; class ConnectionSharedKeyImpl extends WrapperImpl implements ConnectionSharedKey { @@ -23,6 +23,11 @@ public NetworkManager manager() { return this.manager; } + @Override + public String id() { + return this.inner().id(); + } + @Override public String value() { return this.inner().value(); diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionSharedKeyInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionSharedKeyInner.java similarity index 85% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionSharedKeyInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionSharedKeyInner.java index 69e69bf24717..b8468b256542 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectionSharedKeyInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectionSharedKeyInner.java @@ -6,14 +6,15 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.SubResource; /** * Response for GetConnectionSharedKey API service call. */ -public class ConnectionSharedKeyInner { +public class ConnectionSharedKeyInner extends SubResource { /** * The virtual network connection shared key value. */ diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectivityInformationImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectivityInformationImpl.java similarity index 85% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectivityInformationImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectivityInformationImpl.java index 968a9da9a4a5..cdd60ff39533 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectivityInformationImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectivityInformationImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ConnectivityInformation; +import com.microsoft.azure.management.network.v2018_06_01.ConnectivityInformation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionStatus; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionStatus; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ConnectivityHop; +import com.microsoft.azure.management.network.v2018_06_01.ConnectivityHop; class ConnectivityInformationImpl extends WrapperImpl implements ConnectivityInformation { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectivityInformationInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectivityInformationInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectivityInformationInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectivityInformationInner.java index 3e975c833b0f..570a71ccd112 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ConnectivityInformationInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ConnectivityInformationInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ConnectivityHop; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionStatus; +import com.microsoft.azure.management.network.v2018_06_01.ConnectivityHop; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionStatus; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlanImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlanImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlanImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlanImpl.java index 50cca05a3c4d..e106fd044ac6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlanImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlanImpl.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.DdosProtectionPlan; +import com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlan; import rx.Observable; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlanInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlanInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlanInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlanInner.java index d0ed0849ff63..9abbc0988a58 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlanInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlanInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlansImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlansImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlansImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlansImpl.java index dd9d2bb222ec..212fbf0b62dc 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlansImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlansImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.DdosProtectionPlans; -import com.microsoft.azure.management.network.v2018_05_01.DdosProtectionPlan; +import com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans; +import com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlan; import rx.Observable; import rx.Completable; import java.util.ArrayList; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlansInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlansInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlansInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlansInner.java index d40f7f740e37..329a7031430f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DdosProtectionPlansInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DdosProtectionPlansInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -64,39 +64,39 @@ public DdosProtectionPlansInner(Retrofit retrofit, NetworkManagementClientImpl c * used by Retrofit to perform actually REST calls. */ interface DdosProtectionPlansService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.DdosProtectionPlans delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("ddosProtectionPlanName") String ddosProtectionPlanName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DdosProtectionPlans beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("ddosProtectionPlanName") String ddosProtectionPlanName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DdosProtectionPlans getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("ddosProtectionPlanName") String ddosProtectionPlanName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DdosProtectionPlans createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("ddosProtectionPlanName") String ddosProtectionPlanName, @Path("subscriptionId") String subscriptionId, @Body DdosProtectionPlanInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DdosProtectionPlans beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("ddosProtectionPlanName") String ddosProtectionPlanName, @Path("subscriptionId") String subscriptionId, @Body DdosProtectionPlanInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DdosProtectionPlans list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DdosProtectionPlans listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DdosProtectionPlans listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans listNext" }) @GET Observable> listNext(@Url String nextUrl, @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.management.network.v2018_05_01.DdosProtectionPlans listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -163,7 +163,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, ddosProtectionPlanName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -229,7 +229,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, ddosProtectionPlanName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -315,7 +315,7 @@ public Observable> getByResourceGroupWi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, ddosProtectionPlanName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -407,7 +407,7 @@ public Observable> createOrUpdateWithSe throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, ddosProtectionPlanName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -482,7 +482,7 @@ public Observable> beginCreateOrUpdateW throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, ddosProtectionPlanName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -588,7 +588,7 @@ public Observable>> listSinglePage if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -701,7 +701,7 @@ public Observable>> listByResource if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DefaultSecurityRulesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DefaultSecurityRulesImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DefaultSecurityRulesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DefaultSecurityRulesImpl.java index 3d469b00f981..e8cd22180c24 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DefaultSecurityRulesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DefaultSecurityRulesImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.DefaultSecurityRules; +import com.microsoft.azure.management.network.v2018_06_01.DefaultSecurityRules; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroupSecurityRuleModel; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroupSecurityRuleModel; class DefaultSecurityRulesImpl extends WrapperImpl implements DefaultSecurityRules { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DefaultSecurityRulesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DefaultSecurityRulesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DefaultSecurityRulesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DefaultSecurityRulesInner.java index 5db3737e6a03..7bdd67bb85fd 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DefaultSecurityRulesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DefaultSecurityRulesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -57,15 +57,15 @@ public DefaultSecurityRulesInner(Retrofit retrofit, NetworkManagementClientImpl * used by Retrofit to perform actually REST calls. */ interface DefaultSecurityRulesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.DefaultSecurityRules list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DefaultSecurityRules list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DefaultSecurityRules get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DefaultSecurityRules get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("defaultSecurityRuleName") String defaultSecurityRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.DefaultSecurityRules listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.DefaultSecurityRules listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -170,7 +170,7 @@ public Observable>> listSinglePageAsync( if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -261,7 +261,7 @@ public Observable> getWithServiceResponseAsyn if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DnsNameAvailabilityResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DnsNameAvailabilityResultInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DnsNameAvailabilityResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DnsNameAvailabilityResultInner.java index 78cb1415b019..55c40ef1af11 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/DnsNameAvailabilityResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/DnsNameAvailabilityResultInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveNetworkSecurityGroupListResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveNetworkSecurityGroupListResultImpl.java similarity index 85% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveNetworkSecurityGroupListResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveNetworkSecurityGroupListResultImpl.java index 5b5bbc24334d..edba1455cb73 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveNetworkSecurityGroupListResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveNetworkSecurityGroupListResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.EffectiveNetworkSecurityGroupListResult; +import com.microsoft.azure.management.network.v2018_06_01.EffectiveNetworkSecurityGroupListResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.EffectiveNetworkSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.EffectiveNetworkSecurityGroup; class EffectiveNetworkSecurityGroupListResultImpl extends WrapperImpl implements EffectiveNetworkSecurityGroupListResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveNetworkSecurityGroupListResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveNetworkSecurityGroupListResultInner.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveNetworkSecurityGroupListResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveNetworkSecurityGroupListResultInner.java index 0969f0956e1e..fd732d552bf9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveNetworkSecurityGroupListResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveNetworkSecurityGroupListResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.EffectiveNetworkSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.EffectiveNetworkSecurityGroup; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveRouteListResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveRouteListResultImpl.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveRouteListResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveRouteListResultImpl.java index b2ae743cdeaf..2a6ffcbeb727 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveRouteListResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveRouteListResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.EffectiveRouteListResult; +import com.microsoft.azure.management.network.v2018_06_01.EffectiveRouteListResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.EffectiveRoute; +import com.microsoft.azure.management.network.v2018_06_01.EffectiveRoute; class EffectiveRouteListResultImpl extends WrapperImpl implements EffectiveRouteListResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveRouteListResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveRouteListResultInner.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveRouteListResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveRouteListResultInner.java index eb15580b6f2c..67f07087d092 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EffectiveRouteListResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EffectiveRouteListResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.EffectiveRoute; +import com.microsoft.azure.management.network.v2018_06_01.EffectiveRoute; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EndpointServiceResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EndpointServiceResultImpl.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EndpointServiceResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EndpointServiceResultImpl.java index 31bdab0d2d0f..e82c45e44e4e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EndpointServiceResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EndpointServiceResultImpl.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.EndpointServiceResult; +import com.microsoft.azure.management.network.v2018_06_01.EndpointServiceResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import rx.Observable; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EndpointServiceResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EndpointServiceResultInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EndpointServiceResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EndpointServiceResultInner.java index 7cf446645ef3..aa3a8f3e6212 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/EndpointServiceResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/EndpointServiceResultInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationImpl.java index bc0e294d840c..6729ac9c65a8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitAuthorization; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorization; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.AuthorizationUseStatus; +import com.microsoft.azure.management.network.v2018_06_01.AuthorizationUseStatus; class ExpressRouteCircuitAuthorizationImpl extends CreatableUpdatableImpl implements ExpressRouteCircuitAuthorization, ExpressRouteCircuitAuthorization.Definition, ExpressRouteCircuitAuthorization.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationInner.java index a20ae1db1a07..71a500ee16e1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationInner.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.AuthorizationUseStatus; +import com.microsoft.azure.management.network.v2018_06_01.AuthorizationUseStatus; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationsImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationsImpl.java index e6b903b283f7..f9c80b4d4d10 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationsImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitAuthorization; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorization; class ExpressRouteCircuitAuthorizationsImpl extends WrapperImpl implements ExpressRouteCircuitAuthorizations { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationsInner.java index 20174ef22f47..d9201d97ae10 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitAuthorizationsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitAuthorizationsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -61,31 +61,31 @@ public ExpressRouteCircuitAuthorizationsInner(Retrofit retrofit, NetworkManageme * used by Retrofit to perform actually REST calls. */ interface ExpressRouteCircuitAuthorizationsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("authorizationName") String authorizationName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("authorizationName") String authorizationName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("authorizationName") String authorizationName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("authorizationName") String authorizationName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCircuitAuthorizationInner authorizationParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("authorizationName") String authorizationName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCircuitAuthorizationInner authorizationParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -159,7 +159,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, circuitName, authorizationName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -232,7 +232,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, circuitName, authorizationName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -325,7 +325,7 @@ public Observable> getWit if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, circuitName, authorizationName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -424,7 +424,7 @@ public Observable> create throw new IllegalArgumentException("Parameter authorizationParameters is required and cannot be null."); } Validator.validate(authorizationParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, circuitName, authorizationName, this.client.subscriptionId(), authorizationParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -506,7 +506,7 @@ public Observable> beginC throw new IllegalArgumentException("Parameter authorizationParameters is required and cannot be null."); } Validator.validate(authorizationParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, circuitName, authorizationName, this.client.subscriptionId(), authorizationParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -628,7 +628,7 @@ public Observable>> if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, circuitName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionImpl.java index 8f0a0b3ee8bc..0549832a5722 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitConnection; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnection; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.CircuitConnectionStatus; +import com.microsoft.azure.management.network.v2018_06_01.CircuitConnectionStatus; class ExpressRouteCircuitConnectionImpl extends CreatableUpdatableImpl implements ExpressRouteCircuitConnection, ExpressRouteCircuitConnection.Definition, ExpressRouteCircuitConnection.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionInner.java index 657e9042e872..5f1a602b66cc 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.CircuitConnectionStatus; +import com.microsoft.azure.management.network.v2018_06_01.CircuitConnectionStatus; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionsImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionsImpl.java index 2bc468e57e54..fed451a68cce 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionsImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitConnections; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnections; import rx.Completable; import rx.Observable; import rx.functions.Func1; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitConnection; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnection; class ExpressRouteCircuitConnectionsImpl extends WrapperImpl implements ExpressRouteCircuitConnections { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionsInner.java index cd3c5216a763..91bbb1cd5735 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitConnectionsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitConnectionsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -55,23 +55,23 @@ public ExpressRouteCircuitConnectionsInner(Retrofit retrofit, NetworkManagementC * used by Retrofit to perform actually REST calls. */ interface ExpressRouteCircuitConnectionsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitConnections delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnections delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("connectionName") String connectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitConnections beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnections beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("connectionName") String connectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitConnections get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnections get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("connectionName") String connectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitConnections createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnections createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("connectionName") String connectionName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCircuitConnectionInner expressRouteCircuitConnectionParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitConnections beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnections beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("connectionName") String connectionName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCircuitConnectionInner expressRouteCircuitConnectionParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -152,7 +152,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, circuitName, peeringName, connectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -232,7 +232,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, circuitName, peeringName, connectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -332,7 +332,7 @@ public Observable> getWithSe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, circuitName, peeringName, connectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -438,7 +438,7 @@ public Observable> createOrU throw new IllegalArgumentException("Parameter expressRouteCircuitConnectionParameters is required and cannot be null."); } Validator.validate(expressRouteCircuitConnectionParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, circuitName, peeringName, connectionName, this.client.subscriptionId(), expressRouteCircuitConnectionParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -527,7 +527,7 @@ public Observable> beginCrea throw new IllegalArgumentException("Parameter expressRouteCircuitConnectionParameters is required and cannot be null."); } Validator.validate(expressRouteCircuitConnectionParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, circuitName, peeringName, connectionName, this.client.subscriptionId(), expressRouteCircuitConnectionParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitImpl.java index c903487a1300..5c27ec3a203b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitImpl.java @@ -6,18 +6,18 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuit; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuit; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitSku; -import com.microsoft.azure.management.network.v2018_05_01.ServiceProviderProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitSku; +import com.microsoft.azure.management.network.v2018_06_01.ServiceProviderProvisioningState; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitServiceProviderProperties; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitServiceProviderProperties; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitAuthorization; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeering; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorization; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeering; class ExpressRouteCircuitImpl extends GroupableResourceCoreImpl implements ExpressRouteCircuit, ExpressRouteCircuit.Definition, ExpressRouteCircuit.Update { ExpressRouteCircuitImpl(String name, ExpressRouteCircuitInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitInner.java index 68c93ae9bf91..da050c77e563 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitSku; -import com.microsoft.azure.management.network.v2018_05_01.ServiceProviderProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitSku; +import com.microsoft.azure.management.network.v2018_06_01.ServiceProviderProvisioningState; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitServiceProviderProperties; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitServiceProviderProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringImpl.java index b18e298a92c4..967b340a7b21 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringImpl.java @@ -6,20 +6,20 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeering; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeering; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRoutePeeringType; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRoutePeeringState; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeeringConfig; -import com.microsoft.azure.management.network.v2018_05_01.Ipv6ExpressRouteCircuitPeeringConfig; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRoutePeeringType; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRoutePeeringState; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeeringConfig; +import com.microsoft.azure.management.network.v2018_06_01.Ipv6ExpressRouteCircuitPeeringConfig; import java.util.List; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitConnection; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilter; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitStats; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnection; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilter; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitStats; class ExpressRouteCircuitPeeringImpl extends CreatableUpdatableImpl implements ExpressRouteCircuitPeering, ExpressRouteCircuitPeering.Definition, ExpressRouteCircuitPeering.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringInner.java index 23d4f620931f..9eb6931c6914 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRoutePeeringType; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRoutePeeringState; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeeringConfig; -import com.microsoft.azure.management.network.v2018_05_01.Ipv6ExpressRouteCircuitPeeringConfig; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRoutePeeringType; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRoutePeeringState; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeeringConfig; +import com.microsoft.azure.management.network.v2018_06_01.Ipv6ExpressRouteCircuitPeeringConfig; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringsImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringsImpl.java index d622d1f6ff79..c5212143dd66 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringsImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeerings; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeering; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeering; class ExpressRouteCircuitPeeringsImpl extends WrapperImpl implements ExpressRouteCircuitPeerings { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringsInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringsInner.java index 86d7914a6962..49d6bcd643a4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitPeeringsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitPeeringsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -61,31 +61,31 @@ public ExpressRouteCircuitPeeringsInner(Retrofit retrofit, NetworkManagementClie * used by Retrofit to perform actually REST calls. */ interface ExpressRouteCircuitPeeringsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeerings delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitPeerings beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitPeerings get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitPeerings createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCircuitPeeringInner peeringParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitPeerings beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCircuitPeeringInner peeringParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitPeerings list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuitPeerings listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -159,7 +159,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, circuitName, peeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -232,7 +232,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, circuitName, peeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -257,7 +257,7 @@ private ServiceResponse beginDeleteDelegate(Response respons } /** - * Gets the specified authorization from the specified express route circuit. + * Gets the specified peering for the express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. @@ -272,7 +272,7 @@ public ExpressRouteCircuitPeeringInner get(String resourceGroupName, String circ } /** - * Gets the specified authorization from the specified express route circuit. + * Gets the specified peering for the express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. @@ -286,7 +286,7 @@ public ServiceFuture getAsync(String resourceGr } /** - * Gets the specified authorization from the specified express route circuit. + * Gets the specified peering for the express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. @@ -304,7 +304,7 @@ public ExpressRouteCircuitPeeringInner call(ServiceResponse> getWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, circuitName, peeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -424,7 +424,7 @@ public Observable> createOrUpda throw new IllegalArgumentException("Parameter peeringParameters is required and cannot be null."); } Validator.validate(peeringParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, circuitName, peeringName, this.client.subscriptionId(), peeringParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -506,7 +506,7 @@ public Observable> beginCreateO throw new IllegalArgumentException("Parameter peeringParameters is required and cannot be null."); } Validator.validate(peeringParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, circuitName, peeringName, this.client.subscriptionId(), peeringParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -628,7 +628,7 @@ public Observable>> listSi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, circuitName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitStatsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitStatsImpl.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitStatsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitStatsImpl.java index a3aaef4f1caa..6d399851b16a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitStatsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitStatsImpl.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitStats; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitStats; import com.microsoft.azure.arm.model.implementation.WrapperImpl; class ExpressRouteCircuitStatsImpl extends WrapperImpl implements ExpressRouteCircuitStats { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitStatsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitStatsInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitStatsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitStatsInner.java index 0d6be36a6360..bfe16644550e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitStatsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitStatsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsArpTableListResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsArpTableListResultImpl.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsArpTableListResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsArpTableListResultImpl.java index de1d5ffa3e2c..3adec1f84cd5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsArpTableListResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsArpTableListResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitsArpTableListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitsArpTableListResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitArpTable; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitArpTable; class ExpressRouteCircuitsArpTableListResultImpl extends WrapperImpl implements ExpressRouteCircuitsArpTableListResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsArpTableListResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsArpTableListResultInner.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsArpTableListResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsArpTableListResultInner.java index 8ec215e72d45..c175d9617cce 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsArpTableListResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsArpTableListResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitArpTable; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitArpTable; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsImpl.java index 960144a71120..572cdc20fdba 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuits; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuit; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuit; import rx.Observable; import rx.Completable; import java.util.ArrayList; @@ -22,10 +22,10 @@ import rx.functions.Func1; import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitsArpTableListResult; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitsRoutesTableListResult; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitsRoutesTableSummaryListResult; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitStats; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitsArpTableListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitsRoutesTableListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitsRoutesTableSummaryListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitStats; class ExpressRouteCircuitsImpl extends GroupableResourcesCoreImpl implements ExpressRouteCircuits { protected ExpressRouteCircuitsImpl(NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsInner.java index 1a7821aa1826..f98de4297ec0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -16,7 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -68,79 +68,79 @@ public ExpressRouteCircuitsInner(Retrofit retrofit, NetworkManagementClientImpl * used by Retrofit to perform actually REST calls. */ interface ExpressRouteCircuitsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuits delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCircuitInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCircuitInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuits beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuits listArpTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits listArpTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}") Observable> listArpTable(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits beginListArpTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits beginListArpTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}") Observable> beginListArpTable(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits listRoutesTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits listRoutesTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}") Observable> listRoutesTable(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits beginListRoutesTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits beginListRoutesTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}") Observable> beginListRoutesTable(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits listRoutesTableSummary" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits listRoutesTableSummary" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") Observable> listRoutesTableSummary(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits beginListRoutesTableSummary" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits beginListRoutesTableSummary" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") Observable> beginListRoutesTableSummary(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits getStats" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits getStats" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats") Observable> getStats(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits getPeeringStats" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits getPeeringStats" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats") Observable> getPeeringStats(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCircuits listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_05_01.ExpressRouteCircuits listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -207,7 +207,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, circuitName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -273,7 +273,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, circuitName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -359,7 +359,7 @@ public Observable> getByResourceGroupW if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, circuitName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -451,7 +451,7 @@ public Observable> createOrUpdateWithS throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, circuitName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -526,7 +526,7 @@ public Observable> beginCreateOrUpdate throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, circuitName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -611,7 +611,7 @@ public Observable> updateTagsWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -685,7 +685,7 @@ public Observable> updateTagsWithServi throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, circuitName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -754,7 +754,7 @@ public Observable> beginUpdateTagsWith if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -839,7 +839,7 @@ public Observable> beginUpdateTagsWith throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, circuitName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -939,7 +939,7 @@ public Observable> if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.listArpTable(resourceGroupName, circuitName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1020,7 +1020,7 @@ public Observable> if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginListArpTable(resourceGroupName, circuitName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1119,7 +1119,7 @@ public Observable> observable = service.listRoutesTable(resourceGroupName, circuitName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1200,7 +1200,7 @@ public Observable, Observable>>() { @Override @@ -1299,7 +1299,7 @@ public Observable> observable = service.listRoutesTableSummary(resourceGroupName, circuitName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1380,7 +1380,7 @@ public Observable, Observable>>() { @Override @@ -1465,7 +1465,7 @@ public Observable> getStatsWithSe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getStats(resourceGroupName, circuitName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1556,7 +1556,7 @@ public Observable> getPeeringStat if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getPeeringStats(resourceGroupName, circuitName, peeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1669,7 +1669,7 @@ public Observable>> listByResourc if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1774,7 +1774,7 @@ public Observable>> listSinglePag if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableListResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableListResultImpl.java similarity index 85% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableListResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableListResultImpl.java index fb3a7dfa3ea5..20a58d229b62 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableListResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableListResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitsRoutesTableListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitsRoutesTableListResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitRoutesTable; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitRoutesTable; class ExpressRouteCircuitsRoutesTableListResultImpl extends WrapperImpl implements ExpressRouteCircuitsRoutesTableListResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableListResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableListResultInner.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableListResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableListResultInner.java index 6b98947040a2..ebbd51132ae7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableListResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableListResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitRoutesTable; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitRoutesTable; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultImpl.java similarity index 85% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultImpl.java index 703d11b6c1e6..1155f08637bf 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitsRoutesTableSummaryListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitsRoutesTableSummaryListResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitRoutesTableSummary; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitRoutesTableSummary; class ExpressRouteCircuitsRoutesTableSummaryListResultImpl extends WrapperImpl implements ExpressRouteCircuitsRoutesTableSummaryListResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java index 6cf9c3955059..0139fd990ec9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitRoutesTableSummary; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitRoutesTableSummary; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionImpl.java index d6f4630b811b..32a35554679e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionImpl.java @@ -6,16 +6,16 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnection; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnection; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitReference; -import com.microsoft.azure.management.network.v2018_05_01.ServiceProviderProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitReference; +import com.microsoft.azure.management.network.v2018_06_01.ServiceProviderProvisioningState; import java.util.List; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionPeering; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeering; class ExpressRouteCrossConnectionImpl extends GroupableResourceCoreImpl implements ExpressRouteCrossConnection, ExpressRouteCrossConnection.Definition, ExpressRouteCrossConnection.Update { ExpressRouteCrossConnectionImpl(String name, ExpressRouteCrossConnectionInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionInner.java index 6987208b41cb..dd8a79ee0ce8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitReference; -import com.microsoft.azure.management.network.v2018_05_01.ServiceProviderProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitReference; +import com.microsoft.azure.management.network.v2018_06_01.ServiceProviderProvisioningState; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringImpl.java index 4cd94845a9b7..dc506377fa12 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringImpl.java @@ -6,15 +6,15 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionPeering; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeering; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRoutePeeringType; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRoutePeeringState; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeeringConfig; -import com.microsoft.azure.management.network.v2018_05_01.Ipv6ExpressRouteCircuitPeeringConfig; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRoutePeeringType; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRoutePeeringState; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeeringConfig; +import com.microsoft.azure.management.network.v2018_06_01.Ipv6ExpressRouteCircuitPeeringConfig; class ExpressRouteCrossConnectionPeeringImpl extends CreatableUpdatableImpl implements ExpressRouteCrossConnectionPeering, ExpressRouteCrossConnectionPeering.Definition, ExpressRouteCrossConnectionPeering.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringInner.java index cbe1507432b2..a231bf5fe6a3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRoutePeeringType; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRoutePeeringState; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeeringConfig; -import com.microsoft.azure.management.network.v2018_05_01.Ipv6ExpressRouteCircuitPeeringConfig; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRoutePeeringType; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRoutePeeringState; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeeringConfig; +import com.microsoft.azure.management.network.v2018_06_01.Ipv6ExpressRouteCircuitPeeringConfig; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringsImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringsImpl.java index 6493c642d6ed..be7fc3a23b1a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringsImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionPeering; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeering; class ExpressRouteCrossConnectionPeeringsImpl extends WrapperImpl implements ExpressRouteCrossConnectionPeerings { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringsInner.java index 5fee6080351f..8af66d12951d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionPeeringsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionPeeringsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -61,31 +61,31 @@ public ExpressRouteCrossConnectionPeeringsInner(Retrofit retrofit, NetworkManage * used by Retrofit to perform actually REST calls. */ interface ExpressRouteCrossConnectionPeeringsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCrossConnectionPeeringInner peeringParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCrossConnectionPeeringInner peeringParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -190,7 +190,7 @@ public Observable> if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, crossConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -280,7 +280,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, crossConnectionName, peeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -353,7 +353,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, crossConnectionName, peeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -446,7 +446,7 @@ public Observable> getW if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, crossConnectionName, peeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -545,7 +545,7 @@ public Observable> crea throw new IllegalArgumentException("Parameter peeringParameters is required and cannot be null."); } Validator.validate(peeringParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, crossConnectionName, peeringName, this.client.subscriptionId(), peeringParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -627,7 +627,7 @@ public Observable> begi throw new IllegalArgumentException("Parameter peeringParameters is required and cannot be null."); } Validator.validate(peeringParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, crossConnectionName, peeringName, this.client.subscriptionId(), peeringParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsImpl.java index a66d32c85af5..8ab69815a160 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsImpl.java @@ -7,19 +7,19 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnections; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnection; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnection; import rx.Observable; import rx.Completable; import rx.functions.Func1; import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitsArpTableListResult; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionsRoutesTableSummaryListResult; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitsRoutesTableListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitsArpTableListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionsRoutesTableSummaryListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitsRoutesTableListResult; class ExpressRouteCrossConnectionsImpl extends GroupableResourcesCoreImpl implements ExpressRouteCrossConnections { protected ExpressRouteCrossConnectionsImpl(NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsInner.java index 3e93b64433bd..abf009110bce 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsListing; @@ -15,7 +15,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -66,63 +66,63 @@ public ExpressRouteCrossConnectionsInner(Retrofit retrofit, NetworkManagementCli * used by Retrofit to perform actually REST calls. */ interface ExpressRouteCrossConnectionsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnections list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCrossConnectionInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCrossConnectionInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject crossConnectionParameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnections beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject crossConnectionParameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnections listArpTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections listArpTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}") Observable> listArpTable(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections beginListArpTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections beginListArpTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}") Observable> beginListArpTable(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections listRoutesTableSummary" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections listRoutesTableSummary" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") Observable> listRoutesTableSummary(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections beginListRoutesTableSummary" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections beginListRoutesTableSummary" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") Observable> beginListRoutesTableSummary(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections listRoutesTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections listRoutesTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}") Observable> listRoutesTable(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections beginListRoutesTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections beginListRoutesTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}") Observable> beginListRoutesTable(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteCrossConnections listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections listNext" }) @GET Observable> listNext(@Url String nextUrl, @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.management.network.v2018_05_01.ExpressRouteCrossConnections listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -211,7 +211,7 @@ public Observable>> listS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -324,7 +324,7 @@ public Observable>> listB if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -408,7 +408,7 @@ public Observable> getByResour if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, crossConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -500,7 +500,7 @@ public Observable> createOrUpd throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, crossConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -575,7 +575,7 @@ public Observable> beginCreate throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, crossConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -659,7 +659,7 @@ public Observable> updateTagsW if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject crossConnectionParameters = new TagsObject(); crossConnectionParameters.withTags(null); @@ -733,7 +733,7 @@ public Observable> updateTagsW throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject crossConnectionParameters = new TagsObject(); crossConnectionParameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, crossConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), crossConnectionParameters, this.client.userAgent()); @@ -802,7 +802,7 @@ public Observable> beginUpdate if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject crossConnectionParameters = new TagsObject(); crossConnectionParameters.withTags(null); @@ -887,7 +887,7 @@ public Observable> beginUpdate throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject crossConnectionParameters = new TagsObject(); crossConnectionParameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, crossConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), crossConnectionParameters, this.client.userAgent()) @@ -987,7 +987,7 @@ public Observable> if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.listArpTable(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1068,7 +1068,7 @@ public Observable> if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginListArpTable(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1167,7 +1167,7 @@ public Observable> observable = service.listRoutesTableSummary(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1248,7 +1248,7 @@ public Observable, Observable>>() { @Override @@ -1347,7 +1347,7 @@ public Observable> observable = service.listRoutesTable(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1428,7 +1428,7 @@ public Observable, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultImpl.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultImpl.java index 666c84bbab22..69f47db659e7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionsRoutesTableSummaryListResult; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionsRoutesTableSummaryListResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionRoutesTableSummary; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionRoutesTableSummary; class ExpressRouteCrossConnectionsRoutesTableSummaryListResultImpl extends WrapperImpl implements ExpressRouteCrossConnectionsRoutesTableSummaryListResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java index 0b0dbc93d2ed..4087c14d63b7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionRoutesTableSummary; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionRoutesTableSummary; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProviderImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProviderImpl.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProviderImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProviderImpl.java index d83853f42819..3fe67a9eb4d0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProviderImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProviderImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteServiceProvider; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteServiceProvider; import rx.Observable; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteServiceProviderBandwidthsOffered; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteServiceProviderBandwidthsOffered; class ExpressRouteServiceProviderImpl extends GroupableResourceCoreImpl implements ExpressRouteServiceProvider { ExpressRouteServiceProviderImpl(String name, ExpressRouteServiceProviderInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProviderInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProviderInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProviderInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProviderInner.java index e93c926687ec..e746c8202c45 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProviderInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProviderInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteServiceProviderBandwidthsOffered; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteServiceProviderBandwidthsOffered; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProvidersImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProvidersImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProvidersImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProvidersImpl.java index ac158dc3d4c1..98204d9e4d92 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProvidersImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProvidersImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteServiceProviders; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteServiceProvider; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteServiceProviders; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteServiceProvider; import rx.Observable; import rx.Completable; import rx.functions.Func1; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProvidersInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProvidersInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProvidersInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProvidersInner.java index 3180bb274b9b..c662aba61862 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ExpressRouteServiceProvidersInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteServiceProvidersInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -56,11 +56,11 @@ public ExpressRouteServiceProvidersInner(Retrofit retrofit, NetworkManagementCli * used by Retrofit to perform actually REST calls. */ interface ExpressRouteServiceProvidersService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.ExpressRouteServiceProviders list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteServiceProviders list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.ExpressRouteServiceProviders listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.ExpressRouteServiceProviders listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -149,7 +149,7 @@ public Observable>> listS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FlowLogInformationImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FlowLogInformationImpl.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FlowLogInformationImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FlowLogInformationImpl.java index 921740fd76d5..2aec16bd0799 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FlowLogInformationImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FlowLogInformationImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.FlowLogInformation; +import com.microsoft.azure.management.network.v2018_06_01.FlowLogInformation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.TrafficAnalyticsProperties; -import com.microsoft.azure.management.network.v2018_05_01.RetentionPolicyParameters; +import com.microsoft.azure.management.network.v2018_06_01.TrafficAnalyticsProperties; +import com.microsoft.azure.management.network.v2018_06_01.RetentionPolicyParameters; class FlowLogInformationImpl extends WrapperImpl implements FlowLogInformation { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FlowLogInformationInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FlowLogInformationInner.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FlowLogInformationInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FlowLogInformationInner.java index 65c0d3313079..de60aecf2b8c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FlowLogInformationInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FlowLogInformationInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.RetentionPolicyParameters; -import com.microsoft.azure.management.network.v2018_05_01.TrafficAnalyticsProperties; +import com.microsoft.azure.management.network.v2018_06_01.RetentionPolicyParameters; +import com.microsoft.azure.management.network.v2018_06_01.TrafficAnalyticsProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FrontendIPConfigurationImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FrontendIPConfigurationImpl.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FrontendIPConfigurationImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FrontendIPConfigurationImpl.java index 715b98243b0c..2cdbc8ec1387 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FrontendIPConfigurationImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FrontendIPConfigurationImpl.java @@ -6,16 +6,16 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.FrontendIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.FrontendIPConfiguration; import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; import rx.Observable; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.IPAllocationMethod; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddress; -import com.microsoft.azure.management.network.v2018_05_01.Subnet; +import com.microsoft.azure.management.network.v2018_06_01.IPAllocationMethod; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddress; +import com.microsoft.azure.management.network.v2018_06_01.Subnet; class FrontendIPConfigurationImpl extends IndexableRefreshableWrapperImpl implements FrontendIPConfiguration { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FrontendIPConfigurationInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FrontendIPConfigurationInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FrontendIPConfigurationInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FrontendIPConfigurationInner.java index 75bd5cffda3b..20fa089be8bc 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/FrontendIPConfigurationInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/FrontendIPConfigurationInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.IPAllocationMethod; +import com.microsoft.azure.management.network.v2018_06_01.IPAllocationMethod; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/GatewayRouteListResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/GatewayRouteListResultImpl.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/GatewayRouteListResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/GatewayRouteListResultImpl.java index 8a9468a6d118..98213112fb34 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/GatewayRouteListResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/GatewayRouteListResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.GatewayRouteListResult; +import com.microsoft.azure.management.network.v2018_06_01.GatewayRouteListResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.GatewayRoute; +import com.microsoft.azure.management.network.v2018_06_01.GatewayRoute; class GatewayRouteListResultImpl extends WrapperImpl implements GatewayRouteListResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/GatewayRouteListResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/GatewayRouteListResultInner.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/GatewayRouteListResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/GatewayRouteListResultInner.java index 60c59e715578..92e4549771a8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/GatewayRouteListResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/GatewayRouteListResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.GatewayRoute; +import com.microsoft.azure.management.network.v2018_06_01.GatewayRoute; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionImpl.java new file mode 100644 index 000000000000..ea5b302808f5 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionImpl.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.management.network.v2018_06_01.HubVirtualNetworkConnection; +import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; +import rx.Observable; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.microsoft.azure.SubResource; +import java.util.Map; + +class HubVirtualNetworkConnectionImpl extends IndexableRefreshableWrapperImpl implements HubVirtualNetworkConnection { + private final NetworkManager manager; + private String resourceGroupName; + private String virtualHubName; + private String connectionName; + + HubVirtualNetworkConnectionImpl(HubVirtualNetworkConnectionInner inner, NetworkManager manager) { + super(null, inner); + this.manager = manager; + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.virtualHubName = IdParsingUtils.getValueFromIdByName(inner.id(), "virtualHubs"); + this.connectionName = IdParsingUtils.getValueFromIdByName(inner.id(), "hubVirtualNetworkConnections"); + } + + @Override + public NetworkManager manager() { + return this.manager; + } + + @Override + protected Observable getInnerAsync() { + HubVirtualNetworkConnectionsInner client = this.manager().inner().hubVirtualNetworkConnections(); + return client.getAsync(this.resourceGroupName, this.virtualHubName, this.connectionName); + } + + + + @Override + public Boolean allowHubToRemoteVnetTransit() { + return this.inner().allowHubToRemoteVnetTransit(); + } + + @Override + public Boolean allowRemoteVnetToUseHubVnetGateways() { + return this.inner().allowRemoteVnetToUseHubVnetGateways(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public ProvisioningState provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public SubResource remoteVirtualNetwork() { + return this.inner().remoteVirtualNetwork(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionInner.java new file mode 100644 index 000000000000..9aacd555e7ca --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionInner.java @@ -0,0 +1,171 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * HubVirtualNetworkConnection Resource. + */ +@JsonFlatten +@SkipParentValidation +public class HubVirtualNetworkConnectionInner extends Resource { + /** + * Reference to the remote virtual network. + */ + @JsonProperty(value = "properties.remoteVirtualNetwork") + private SubResource remoteVirtualNetwork; + + /** + * VirtualHub to RemoteVnet transit to enabled or not. + */ + @JsonProperty(value = "properties.allowHubToRemoteVnetTransit") + private Boolean allowHubToRemoteVnetTransit; + + /** + * Allow RemoteVnet to use Virtual Hub's gateways. + */ + @JsonProperty(value = "properties.allowRemoteVnetToUseHubVnetGateways") + private Boolean allowRemoteVnetToUseHubVnetGateways; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get reference to the remote virtual network. + * + * @return the remoteVirtualNetwork value + */ + public SubResource remoteVirtualNetwork() { + return this.remoteVirtualNetwork; + } + + /** + * Set reference to the remote virtual network. + * + * @param remoteVirtualNetwork the remoteVirtualNetwork value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withRemoteVirtualNetwork(SubResource remoteVirtualNetwork) { + this.remoteVirtualNetwork = remoteVirtualNetwork; + return this; + } + + /** + * Get virtualHub to RemoteVnet transit to enabled or not. + * + * @return the allowHubToRemoteVnetTransit value + */ + public Boolean allowHubToRemoteVnetTransit() { + return this.allowHubToRemoteVnetTransit; + } + + /** + * Set virtualHub to RemoteVnet transit to enabled or not. + * + * @param allowHubToRemoteVnetTransit the allowHubToRemoteVnetTransit value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withAllowHubToRemoteVnetTransit(Boolean allowHubToRemoteVnetTransit) { + this.allowHubToRemoteVnetTransit = allowHubToRemoteVnetTransit; + return this; + } + + /** + * Get allow RemoteVnet to use Virtual Hub's gateways. + * + * @return the allowRemoteVnetToUseHubVnetGateways value + */ + public Boolean allowRemoteVnetToUseHubVnetGateways() { + return this.allowRemoteVnetToUseHubVnetGateways; + } + + /** + * Set allow RemoteVnet to use Virtual Hub's gateways. + * + * @param allowRemoteVnetToUseHubVnetGateways the allowRemoteVnetToUseHubVnetGateways value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withAllowRemoteVnetToUseHubVnetGateways(Boolean allowRemoteVnetToUseHubVnetGateways) { + this.allowRemoteVnetToUseHubVnetGateways = allowRemoteVnetToUseHubVnetGateways; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionsImpl.java new file mode 100644 index 000000000000..22383e8fae7b --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionsImpl.java @@ -0,0 +1,65 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.network.v2018_06_01.HubVirtualNetworkConnections; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.network.v2018_06_01.HubVirtualNetworkConnection; + +class HubVirtualNetworkConnectionsImpl extends WrapperImpl implements HubVirtualNetworkConnections { + private final NetworkManager manager; + + HubVirtualNetworkConnectionsImpl(NetworkManager manager) { + super(manager.inner().hubVirtualNetworkConnections()); + this.manager = manager; + } + + public NetworkManager manager() { + return this.manager; + } + + private HubVirtualNetworkConnectionImpl wrapModel(HubVirtualNetworkConnectionInner inner) { + return new HubVirtualNetworkConnectionImpl(inner, manager()); + } + + @Override + public Observable listAsync(final String resourceGroupName, final String virtualHubName) { + HubVirtualNetworkConnectionsInner client = this.inner(); + return client.listAsync(resourceGroupName, virtualHubName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public HubVirtualNetworkConnection call(HubVirtualNetworkConnectionInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String virtualHubName, String connectionName) { + HubVirtualNetworkConnectionsInner client = this.inner(); + return client.getAsync(resourceGroupName, virtualHubName, connectionName) + .map(new Func1() { + @Override + public HubVirtualNetworkConnection call(HubVirtualNetworkConnectionInner inner) { + return wrapModel(inner); + } + }); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionsInner.java new file mode 100644 index 000000000000..187cd06d6d72 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/HubVirtualNetworkConnectionsInner.java @@ -0,0 +1,397 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.v2018_06_01.ErrorException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in HubVirtualNetworkConnections. + */ +public class HubVirtualNetworkConnectionsInner { + /** The Retrofit service to perform REST calls. */ + private HubVirtualNetworkConnectionsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of HubVirtualNetworkConnectionsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public HubVirtualNetworkConnectionsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(HubVirtualNetworkConnectionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for HubVirtualNetworkConnections to be + * used by Retrofit to perform actually REST calls. + */ + interface HubVirtualNetworkConnectionsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.HubVirtualNetworkConnections get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.HubVirtualNetworkConnections list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections") + Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.HubVirtualNetworkConnections listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the HubVirtualNetworkConnectionInner object if successful. + */ + public HubVirtualNetworkConnectionInner get(String resourceGroupName, String virtualHubName, String connectionName) { + return getWithServiceResponseAsync(resourceGroupName, virtualHubName, connectionName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String virtualHubName, String connectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, virtualHubName, connectionName), serviceCallback); + } + + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HubVirtualNetworkConnectionInner object + */ + public Observable getAsync(String resourceGroupName, String virtualHubName, String connectionName) { + return getWithServiceResponseAsync(resourceGroupName, virtualHubName, connectionName).map(new Func1, HubVirtualNetworkConnectionInner>() { + @Override + public HubVirtualNetworkConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HubVirtualNetworkConnectionInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String virtualHubName, String connectionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.get(this.client.subscriptionId(), resourceGroupName, virtualHubName, connectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<HubVirtualNetworkConnectionInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String virtualHubName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, virtualHubName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String virtualHubName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, virtualHubName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<HubVirtualNetworkConnectionInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String virtualHubName) { + return listWithServiceResponseAsync(resourceGroupName, virtualHubName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<HubVirtualNetworkConnectionInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String virtualHubName) { + return listSinglePageAsync(resourceGroupName, virtualHubName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VirtualHub. + ServiceResponse> * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<HubVirtualNetworkConnectionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<HubVirtualNetworkConnectionInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<HubVirtualNetworkConnectionInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<HubVirtualNetworkConnectionInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<HubVirtualNetworkConnectionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IPAddressAvailabilityResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IPAddressAvailabilityResultImpl.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IPAddressAvailabilityResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IPAddressAvailabilityResultImpl.java index 67118557b617..1267dbd265fb 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IPAddressAvailabilityResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IPAddressAvailabilityResultImpl.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.IPAddressAvailabilityResult; +import com.microsoft.azure.management.network.v2018_06_01.IPAddressAvailabilityResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IPAddressAvailabilityResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IPAddressAvailabilityResultInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IPAddressAvailabilityResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IPAddressAvailabilityResultInner.java index 440408ee50a4..2042673de7a9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IPAddressAvailabilityResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IPAddressAvailabilityResultInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IdParsingUtils.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IdParsingUtils.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IdParsingUtils.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IdParsingUtils.java index c7937ab3f4f4..305820ddec23 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/IdParsingUtils.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/IdParsingUtils.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.Arrays; import java.util.Iterator; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRuleImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRuleImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRuleImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRuleImpl.java index 39d3c31247b2..5d447a8fdbce 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRuleImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRuleImpl.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatRule; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.TransportProtocol; -import com.microsoft.azure.management.network.v2018_05_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.TransportProtocol; +import com.microsoft.azure.management.network.v2018_06_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; class InboundNatRuleImpl extends CreatableUpdatableImpl implements InboundNatRule, InboundNatRule.Definition, InboundNatRule.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRuleInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRuleInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRuleInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRuleInner.java index def8d018f921..ce9159b6cc2e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRuleInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRuleInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.TransportProtocol; +import com.microsoft.azure.management.network.v2018_06_01.TransportProtocol; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRulesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRulesImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRulesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRulesImpl.java index 1664516b8f5a..b9971d18de7e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRulesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRulesImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatRules; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatRules; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatRule; class InboundNatRulesImpl extends WrapperImpl implements InboundNatRules { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRulesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRulesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRulesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRulesInner.java index bfd2f8dfcdff..230b5a958004 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/InboundNatRulesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/InboundNatRulesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -61,31 +61,31 @@ public InboundNatRulesInner(Retrofit retrofit, NetworkManagementClientImpl clien * used by Retrofit to perform actually REST calls. */ interface InboundNatRulesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.InboundNatRules list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.InboundNatRules list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.InboundNatRules delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.InboundNatRules delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("inboundNatRuleName") String inboundNatRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.InboundNatRules beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.InboundNatRules beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("inboundNatRuleName") String inboundNatRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.InboundNatRules get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.InboundNatRules get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("inboundNatRuleName") String inboundNatRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.InboundNatRules createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.InboundNatRules createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("inboundNatRuleName") String inboundNatRuleName, @Path("subscriptionId") String subscriptionId, @Body InboundNatRuleInner inboundNatRuleParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.InboundNatRules beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.InboundNatRules beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("inboundNatRuleName") String inboundNatRuleName, @Path("subscriptionId") String subscriptionId, @Body InboundNatRuleInner inboundNatRuleParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.InboundNatRules listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.InboundNatRules listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -190,7 +190,7 @@ public Observable>> listSinglePageAsyn if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -280,7 +280,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, loadBalancerName, inboundNatRuleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -353,7 +353,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, loadBalancerName, inboundNatRuleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -446,7 +446,7 @@ public Observable> getWithServiceResponseAs if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.get(resourceGroupName, loadBalancerName, inboundNatRuleName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -535,7 +535,7 @@ public Observable> getWithServiceResponseAs if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, loadBalancerName, inboundNatRuleName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -634,7 +634,7 @@ public Observable> createOrUpdateWithServic throw new IllegalArgumentException("Parameter inboundNatRuleParameters is required and cannot be null."); } Validator.validate(inboundNatRuleParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, this.client.subscriptionId(), inboundNatRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -716,7 +716,7 @@ public Observable> beginCreateOrUpdateWithS throw new IllegalArgumentException("Parameter inboundNatRuleParameters is required and cannot be null."); } Validator.validate(inboundNatRuleParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, this.client.subscriptionId(), inboundNatRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerBackendAddressPoolsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerBackendAddressPoolsImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerBackendAddressPoolsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerBackendAddressPoolsImpl.java index 06716431ea74..b87c1d566a83 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerBackendAddressPoolsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerBackendAddressPoolsImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerBackendAddressPools; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerBackendAddressPools; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.BackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.BackendAddressPool; class LoadBalancerBackendAddressPoolsImpl extends WrapperImpl implements LoadBalancerBackendAddressPools { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerBackendAddressPoolsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerBackendAddressPoolsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerBackendAddressPoolsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerBackendAddressPoolsInner.java index b789754daa2c..0388d9a5d031 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerBackendAddressPoolsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerBackendAddressPoolsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -57,15 +57,15 @@ public LoadBalancerBackendAddressPoolsInner(Retrofit retrofit, NetworkManagement * used by Retrofit to perform actually REST calls. */ interface LoadBalancerBackendAddressPoolsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LoadBalancerBackendAddressPools list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerBackendAddressPools list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerBackendAddressPools get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerBackendAddressPools get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("backendAddressPoolName") String backendAddressPoolName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerBackendAddressPools listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerBackendAddressPools listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -170,7 +170,7 @@ public Observable>> listSinglePage if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -261,7 +261,7 @@ public Observable> getWithServiceRespon if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, loadBalancerName, backendAddressPoolName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerFrontendIPConfigurationsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerFrontendIPConfigurationsImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerFrontendIPConfigurationsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerFrontendIPConfigurationsImpl.java index e9e5e951707a..1a7def1cd48f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerFrontendIPConfigurationsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerFrontendIPConfigurationsImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerFrontendIPConfigurations; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerFrontendIPConfigurations; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.FrontendIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.FrontendIPConfiguration; class LoadBalancerFrontendIPConfigurationsImpl extends WrapperImpl implements LoadBalancerFrontendIPConfigurations { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerFrontendIPConfigurationsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerFrontendIPConfigurationsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerFrontendIPConfigurationsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerFrontendIPConfigurationsInner.java index f0a8feeefda2..f638747960ce 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerFrontendIPConfigurationsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerFrontendIPConfigurationsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -57,15 +57,15 @@ public LoadBalancerFrontendIPConfigurationsInner(Retrofit retrofit, NetworkManag * used by Retrofit to perform actually REST calls. */ interface LoadBalancerFrontendIPConfigurationsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LoadBalancerFrontendIPConfigurations list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerFrontendIPConfigurations list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerFrontendIPConfigurations get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerFrontendIPConfigurations get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("frontendIPConfigurationName") String frontendIPConfigurationName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerFrontendIPConfigurations listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerFrontendIPConfigurations listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -170,7 +170,7 @@ public Observable>> listSingl if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -261,7 +261,7 @@ public Observable> getWithServiceR if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, loadBalancerName, frontendIPConfigurationName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerImpl.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerImpl.java index 3376eea64bc6..448f78b3ccd3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerImpl.java @@ -6,21 +6,21 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancer; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancer; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerSku; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerSku; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatPool; -import com.microsoft.azure.management.network.v2018_05_01.OutboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatPool; +import com.microsoft.azure.management.network.v2018_06_01.OutboundNatRule; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.BackendAddressPool; -import com.microsoft.azure.management.network.v2018_05_01.FrontendIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatRule; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancingRule; -import com.microsoft.azure.management.network.v2018_05_01.Probe; +import com.microsoft.azure.management.network.v2018_06_01.BackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.FrontendIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancingRule; +import com.microsoft.azure.management.network.v2018_06_01.Probe; class LoadBalancerImpl extends GroupableResourceCoreImpl implements LoadBalancer, LoadBalancer.Definition, LoadBalancer.Update { LoadBalancerImpl(String name, LoadBalancerInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerInner.java index fed18946fc1d..53304722fb7d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerSku; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerSku; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatPool; -import com.microsoft.azure.management.network.v2018_05_01.OutboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatPool; +import com.microsoft.azure.management.network.v2018_06_01.OutboundNatRule; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerLoadBalancingRulesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerLoadBalancingRulesImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerLoadBalancingRulesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerLoadBalancingRulesImpl.java index a5cc8aecc014..fec03f0315c5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerLoadBalancingRulesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerLoadBalancingRulesImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerLoadBalancingRules; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerLoadBalancingRules; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancingRule; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancingRule; class LoadBalancerLoadBalancingRulesImpl extends WrapperImpl implements LoadBalancerLoadBalancingRules { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerLoadBalancingRulesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerLoadBalancingRulesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerLoadBalancingRulesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerLoadBalancingRulesInner.java index 4ffe3373735b..cc4ce55f0a63 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerLoadBalancingRulesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerLoadBalancingRulesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -57,15 +57,15 @@ public LoadBalancerLoadBalancingRulesInner(Retrofit retrofit, NetworkManagementC * used by Retrofit to perform actually REST calls. */ interface LoadBalancerLoadBalancingRulesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LoadBalancerLoadBalancingRules list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerLoadBalancingRules list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerLoadBalancingRules get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerLoadBalancingRules get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("loadBalancingRuleName") String loadBalancingRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerLoadBalancingRules listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerLoadBalancingRules listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -170,7 +170,7 @@ public Observable>> listSinglePageA if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -261,7 +261,7 @@ public Observable> getWithServiceRespons if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, loadBalancerName, loadBalancingRuleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfaceImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfaceImpl.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfaceImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfaceImpl.java index eff3795e5a82..507a1ec5b5f3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfaceImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfaceImpl.java @@ -6,16 +6,16 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerNetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerNetworkInterface; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceDnsSettings; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceDnsSettings; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroup; import java.util.Map; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfacesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfacesImpl.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfacesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfacesImpl.java index 8be634924e20..27310b7355ba 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfacesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfacesImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerNetworkInterfaces; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerNetworkInterfaces; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerNetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerNetworkInterface; class LoadBalancerNetworkInterfacesImpl extends WrapperImpl implements LoadBalancerNetworkInterfaces { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfacesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfacesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfacesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfacesInner.java index e324059470ba..24bb612b813c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerNetworkInterfacesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerNetworkInterfacesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -56,11 +56,11 @@ public LoadBalancerNetworkInterfacesInner(Retrofit retrofit, NetworkManagementCl * used by Retrofit to perform actually REST calls. */ interface LoadBalancerNetworkInterfacesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LoadBalancerNetworkInterfaces list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerNetworkInterfaces list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerNetworkInterfaces listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerNetworkInterfaces listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -165,7 +165,7 @@ public Observable>> listSinglePageAs if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerProbesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerProbesImpl.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerProbesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerProbesImpl.java index 09fafae1a42a..19dfd2ad9498 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerProbesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerProbesImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerProbes; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerProbes; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.Probe; +import com.microsoft.azure.management.network.v2018_06_01.Probe; class LoadBalancerProbesImpl extends WrapperImpl implements LoadBalancerProbes { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerProbesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerProbesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerProbesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerProbesInner.java index c6f0251db0cc..7f2fbb69e955 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancerProbesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancerProbesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -57,15 +57,15 @@ public LoadBalancerProbesInner(Retrofit retrofit, NetworkManagementClientImpl cl * used by Retrofit to perform actually REST calls. */ interface LoadBalancerProbesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LoadBalancerProbes list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerProbes list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerProbes get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerProbes get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("probeName") String probeName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancerProbes listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancerProbes listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -170,7 +170,7 @@ public Observable>> listSinglePageAsync(final S if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -261,7 +261,7 @@ public Observable> getWithServiceResponseAsync(Strin if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, loadBalancerName, probeName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancersImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancersImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancersImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancersImpl.java index cfad339b164d..7d68fa4b850a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancersImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancersImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancers; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancer; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancers; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancer; import rx.Observable; import rx.Completable; import java.util.ArrayList; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancersInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancersInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancersInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancersInner.java index 65b5df0815a3..a53646386396 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancersInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancersInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -16,7 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -67,47 +67,47 @@ public LoadBalancersInner(Retrofit retrofit, NetworkManagementClientImpl client) * used by Retrofit to perform actually REST calls. */ interface LoadBalancersService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LoadBalancers delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancers beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancers getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.LoadBalancers createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Body LoadBalancerInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancers beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Body LoadBalancerInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancers updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LoadBalancers beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("loadBalancerName") String loadBalancerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LoadBalancers list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancers listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LoadBalancers listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers listNext" }) @GET Observable> listNext(@Url String nextUrl, @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.management.network.v2018_05_01.LoadBalancers listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LoadBalancers listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -174,7 +174,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -240,7 +240,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -326,7 +326,7 @@ public Observable> getByResourceGroupWithServ if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.getByResourceGroup(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -408,7 +408,7 @@ public Observable> getByResourceGroupWithServ if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -500,7 +500,7 @@ public Observable> createOrUpdateWithServiceR throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, loadBalancerName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -575,7 +575,7 @@ public Observable> beginCreateOrUpdateWithSer throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, loadBalancerName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -660,7 +660,7 @@ public Observable> updateTagsWithServiceRespo if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -734,7 +734,7 @@ public Observable> updateTagsWithServiceRespo throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -803,7 +803,7 @@ public Observable> beginUpdateTagsWithService if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -888,7 +888,7 @@ public Observable> beginUpdateTagsWithService throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, loadBalancerName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -995,7 +995,7 @@ public Observable>> listSinglePageAsync( if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1108,7 +1108,7 @@ public Observable>> listByResourceGroupS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancingRuleImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancingRuleImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancingRuleImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancingRuleImpl.java index a84351803ddd..dcb189eab872 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancingRuleImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancingRuleImpl.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancingRule; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancingRule; import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; import rx.Observable; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.LoadDistribution; -import com.microsoft.azure.management.network.v2018_05_01.TransportProtocol; +import com.microsoft.azure.management.network.v2018_06_01.LoadDistribution; +import com.microsoft.azure.management.network.v2018_06_01.TransportProtocol; class LoadBalancingRuleImpl extends IndexableRefreshableWrapperImpl implements LoadBalancingRule { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancingRuleInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancingRuleInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancingRuleInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancingRuleInner.java index fa91daefb852..8c94708152c3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LoadBalancingRuleInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LoadBalancingRuleInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.TransportProtocol; -import com.microsoft.azure.management.network.v2018_05_01.LoadDistribution; +import com.microsoft.azure.management.network.v2018_06_01.TransportProtocol; +import com.microsoft.azure.management.network.v2018_06_01.LoadDistribution; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewayImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewayImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewayImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewayImpl.java index 0a727a525b00..00bf4ba885b1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewayImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewayImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.LocalNetworkGateway; +import com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateway; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.AddressSpace; -import com.microsoft.azure.management.network.v2018_05_01.BgpSettings; +import com.microsoft.azure.management.network.v2018_06_01.AddressSpace; +import com.microsoft.azure.management.network.v2018_06_01.BgpSettings; class LocalNetworkGatewayImpl extends GroupableResourceCoreImpl implements LocalNetworkGateway, LocalNetworkGateway.Definition, LocalNetworkGateway.Update { LocalNetworkGatewayImpl(String name, LocalNetworkGatewayInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewayInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewayInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewayInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewayInner.java index 4b5ef03e868b..6b7fce03a0e4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewayInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewayInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.AddressSpace; -import com.microsoft.azure.management.network.v2018_05_01.BgpSettings; +import com.microsoft.azure.management.network.v2018_06_01.AddressSpace; +import com.microsoft.azure.management.network.v2018_06_01.BgpSettings; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewaysImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewaysImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewaysImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewaysImpl.java index 0d44829572cc..194ec0763d7e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewaysImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewaysImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.LocalNetworkGateways; -import com.microsoft.azure.management.network.v2018_05_01.LocalNetworkGateway; +import com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways; +import com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateway; import rx.Observable; import rx.Completable; import java.util.ArrayList; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewaysInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewaysInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewaysInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewaysInner.java index 571dbd765edf..b6df43d29479 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/LocalNetworkGatewaysInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/LocalNetworkGatewaysInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -15,7 +15,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -66,39 +66,39 @@ public LocalNetworkGatewaysInner(Retrofit retrofit, NetworkManagementClientImpl * used by Retrofit to perform actually REST calls. */ interface LocalNetworkGatewaysService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LocalNetworkGateways createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("localNetworkGatewayName") String localNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body LocalNetworkGatewayInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LocalNetworkGateways beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("localNetworkGatewayName") String localNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body LocalNetworkGatewayInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LocalNetworkGateways getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("localNetworkGatewayName") String localNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LocalNetworkGateways delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("localNetworkGatewayName") String localNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LocalNetworkGateways beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("localNetworkGatewayName") String localNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LocalNetworkGateways updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("localNetworkGatewayName") String localNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LocalNetworkGateways beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("localNetworkGatewayName") String localNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.LocalNetworkGateways listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.LocalNetworkGateways listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -174,7 +174,7 @@ public Observable> createOrUpdateWithS throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, localNetworkGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -249,7 +249,7 @@ public Observable> beginCreateOrUpdate throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, localNetworkGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -334,7 +334,7 @@ public Observable> getByResourceGroupW if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, localNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -417,7 +417,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, localNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -483,7 +483,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, localNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -569,7 +569,7 @@ public Observable> updateTagsWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -643,7 +643,7 @@ public Observable> updateTagsWithServi throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, localNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -712,7 +712,7 @@ public Observable> beginUpdateTagsWith if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -797,7 +797,7 @@ public Observable> beginUpdateTagsWith throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, localNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -912,7 +912,7 @@ public Observable>> listByResourc if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationInner.java index d26cca9a0b85..8571f0b64cad 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendAddressPool; -import com.microsoft.azure.management.network.v2018_05_01.IPAllocationMethod; -import com.microsoft.azure.management.network.v2018_05_01.IPVersion; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.IPAllocationMethod; +import com.microsoft.azure.management.network.v2018_06_01.IPVersion; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationsImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationsImpl.java index b191612abecc..06cde4018012 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationsImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceIPConfigurations; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceIPConfigurations; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceNetworkInterfaceIPConfiguration; class NetworkInterfaceIPConfigurationsImpl extends WrapperImpl implements NetworkInterfaceIPConfigurations { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationsInner.java index 78dca4f45014..a994baa5ae54 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceIPConfigurationsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceIPConfigurationsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -57,15 +57,15 @@ public NetworkInterfaceIPConfigurationsInner(Retrofit retrofit, NetworkManagemen * used by Retrofit to perform actually REST calls. */ interface NetworkInterfaceIPConfigurationsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceIPConfigurations list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceIPConfigurations list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaceIPConfigurations get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceIPConfigurations get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("ipConfigurationName") String ipConfigurationName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaceIPConfigurations listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceIPConfigurations listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -170,7 +170,7 @@ public Observable>> l if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -261,7 +261,7 @@ public Observable> getWith if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, networkInterfaceName, ipConfigurationName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceImpl.java index ec10adfd68a1..aa298a390fc5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceImpl.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterface; import rx.Observable; import com.microsoft.azure.SubResource; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceDnsSettings; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceDnsSettings; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroup; class NetworkInterfaceImpl extends GroupableResourceCoreImpl implements NetworkInterface, NetworkInterface.Definition, NetworkInterface.Update { NetworkInterfaceImpl(String name, NetworkInterfaceInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceInner.java index 55fdc22d8e6e..9d08083d1cac 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.SubResource; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceDnsSettings; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceDnsSettings; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancerImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancerImpl.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancerImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancerImpl.java index 1fca21630ae3..4784e2e88299 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancerImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancerImpl.java @@ -6,21 +6,21 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceLoadBalancer; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceLoadBalancer; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import rx.Observable; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.BackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.BackendAddressPool; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.FrontendIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatPool; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatRule; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancingRule; -import com.microsoft.azure.management.network.v2018_05_01.OutboundNatRule; -import com.microsoft.azure.management.network.v2018_05_01.Probe; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerSku; +import com.microsoft.azure.management.network.v2018_06_01.FrontendIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatPool; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancingRule; +import com.microsoft.azure.management.network.v2018_06_01.OutboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.Probe; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerSku; import java.util.Map; class NetworkInterfaceLoadBalancerImpl extends WrapperImpl implements NetworkInterfaceLoadBalancer { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancersImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancersImpl.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancersImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancersImpl.java index 23e4967a0587..24603da833df 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancersImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancersImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceLoadBalancers; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceLoadBalancers; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceLoadBalancer; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceLoadBalancer; class NetworkInterfaceLoadBalancersImpl extends WrapperImpl implements NetworkInterfaceLoadBalancers { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancersInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancersInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancersInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancersInner.java index cb6bdf52adc4..74ef384429d2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceLoadBalancersInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceLoadBalancersInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -56,11 +56,11 @@ public NetworkInterfaceLoadBalancersInner(Retrofit retrofit, NetworkManagementCl * used by Retrofit to perform actually REST calls. */ interface NetworkInterfaceLoadBalancersService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceLoadBalancers list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceLoadBalancers list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaceLoadBalancers listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceLoadBalancers listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -165,7 +165,7 @@ public Observable>> listSinglePageAsync( if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceNetworkInterfaceIPConfigurationImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceNetworkInterfaceIPConfigurationImpl.java similarity index 88% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceNetworkInterfaceIPConfigurationImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceNetworkInterfaceIPConfigurationImpl.java index 11426636e702..e06a5072de88 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfaceNetworkInterfaceIPConfigurationImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfaceNetworkInterfaceIPConfigurationImpl.java @@ -6,21 +6,21 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceNetworkInterfaceIPConfiguration; import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; import rx.Observable; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendAddressPool; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroup; -import com.microsoft.azure.management.network.v2018_05_01.BackendAddressPool; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatRule; -import com.microsoft.azure.management.network.v2018_05_01.IPVersion; -import com.microsoft.azure.management.network.v2018_05_01.IPAllocationMethod; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddress; -import com.microsoft.azure.management.network.v2018_05_01.Subnet; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.BackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.IPVersion; +import com.microsoft.azure.management.network.v2018_06_01.IPAllocationMethod; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddress; +import com.microsoft.azure.management.network.v2018_06_01.Subnet; class NetworkInterfaceNetworkInterfaceIPConfigurationImpl extends IndexableRefreshableWrapperImpl implements NetworkInterfaceNetworkInterfaceIPConfiguration { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfacesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfacesImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfacesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfacesImpl.java index 020fd1e4eec2..117d26cbe5f1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfacesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfacesImpl.java @@ -7,19 +7,19 @@ * abc */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaces; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces; import rx.Observable; import rx.functions.Func1; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterface; import com.microsoft.azure.Page; import rx.Completable; -import com.microsoft.azure.management.network.v2018_05_01.EffectiveRouteListResult; -import com.microsoft.azure.management.network.v2018_05_01.EffectiveNetworkSecurityGroupListResult; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerNetworkInterface; -import com.microsoft.azure.management.network.v2018_05_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.EffectiveRouteListResult; +import com.microsoft.azure.management.network.v2018_06_01.EffectiveNetworkSecurityGroupListResult; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerNetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; class NetworkInterfacesImpl extends WrapperImpl implements NetworkInterfaces { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfacesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfacesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfacesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfacesInner.java index cf393dd3a883..7aaeece02232 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkInterfacesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfacesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -16,7 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -68,95 +68,95 @@ public NetworkInterfacesInner(Retrofit retrofit, NetworkManagementClientImpl cli * used by Retrofit to perform actually REST calls. */ interface NetworkInterfacesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaces delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.NetworkInterfaces createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Body NetworkInterfaceInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Body NetworkInterfaceInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaces beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaces list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces getEffectiveRouteTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces getEffectiveRouteTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable") Observable> getEffectiveRouteTable(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces beginGetEffectiveRouteTable" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces beginGetEffectiveRouteTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable") Observable> beginGetEffectiveRouteTable(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces listEffectiveNetworkSecurityGroups" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listEffectiveNetworkSecurityGroups" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups") Observable> listEffectiveNetworkSecurityGroups(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces beginListEffectiveNetworkSecurityGroups" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces beginListEffectiveNetworkSecurityGroups" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups") Observable> beginListEffectiveNetworkSecurityGroups(@Path("resourceGroupName") String resourceGroupName, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces listVirtualMachineScaleSetVMNetworkInterfaces" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listVirtualMachineScaleSetVMNetworkInterfaces" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces") Observable> listVirtualMachineScaleSetVMNetworkInterfaces(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("virtualmachineIndex") String virtualmachineIndex, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces listVirtualMachineScaleSetNetworkInterfaces" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listVirtualMachineScaleSetNetworkInterfaces" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces") Observable> listVirtualMachineScaleSetNetworkInterfaces(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkInterfaces getVirtualMachineScaleSetNetworkInterface" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces getVirtualMachineScaleSetNetworkInterface" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}") Observable> getVirtualMachineScaleSetNetworkInterface(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("virtualmachineIndex") String virtualmachineIndex, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.NetworkInterfaces listVirtualMachineScaleSetIpConfigurations" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listVirtualMachineScaleSetIpConfigurations" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations") Observable> listVirtualMachineScaleSetIpConfigurations(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("virtualmachineIndex") String virtualmachineIndex, @Path("networkInterfaceName") String networkInterfaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.NetworkInterfaces getVirtualMachineScaleSetIpConfiguration" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces getVirtualMachineScaleSetIpConfiguration" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}") Observable> getVirtualMachineScaleSetIpConfiguration(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("virtualmachineIndex") String virtualmachineIndex, @Path("networkInterfaceName") String networkInterfaceName, @Path("ipConfigurationName") String ipConfigurationName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.NetworkInterfaces listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listNext" }) @GET Observable> listNext(@Url String nextUrl, @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.management.network.v2018_05_01.NetworkInterfaces listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_05_01.NetworkInterfaces listVirtualMachineScaleSetVMNetworkInterfacesNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listVirtualMachineScaleSetVMNetworkInterfacesNext" }) @GET Observable> listVirtualMachineScaleSetVMNetworkInterfacesNext(@Url String nextUrl, @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.management.network.v2018_05_01.NetworkInterfaces listVirtualMachineScaleSetNetworkInterfacesNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listVirtualMachineScaleSetNetworkInterfacesNext" }) @GET Observable> listVirtualMachineScaleSetNetworkInterfacesNext(@Url String nextUrl, @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.management.network.v2018_05_01.NetworkInterfaces listVirtualMachineScaleSetIpConfigurationsNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces listVirtualMachineScaleSetIpConfigurationsNext" }) @GET Observable> listVirtualMachineScaleSetIpConfigurationsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -223,7 +223,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -289,7 +289,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -375,7 +375,7 @@ public Observable> getByResourceGroupWith if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.getByResourceGroup(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -457,7 +457,7 @@ public Observable> getByResourceGroupWith if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -549,7 +549,7 @@ public Observable> createOrUpdateWithServ throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -624,7 +624,7 @@ public Observable> beginCreateOrUpdateWit throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -709,7 +709,7 @@ public Observable> updateTagsWithServiceR if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -783,7 +783,7 @@ public Observable> updateTagsWithServiceR throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -852,7 +852,7 @@ public Observable> beginUpdateTagsWithSer if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -937,7 +937,7 @@ public Observable> beginUpdateTagsWithSer throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -1044,7 +1044,7 @@ public Observable>> listSinglePageAs if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1157,7 +1157,7 @@ public Observable>> listByResourceGr if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1241,7 +1241,7 @@ public Observable> getEffectiveRo if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getEffectiveRouteTable(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1308,7 +1308,7 @@ public Observable> beginGetEffect if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetEffectiveRouteTable(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1393,7 +1393,7 @@ public Observable> if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.listEffectiveNetworkSecurityGroups(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1460,7 +1460,7 @@ public Observable> if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginListEffectiveNetworkSecurityGroups(resourceGroupName, networkInterfaceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkManagementClientImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkManagementClientImpl.java similarity index 89% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkManagementClientImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkManagementClientImpl.java index 6d0d6a4f1f58..75ddaa93bcd6 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkManagementClientImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkManagementClientImpl.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureClient; @@ -137,6 +137,19 @@ public NetworkManagementClientImpl withGenerateClientRequestId(boolean generateC return this; } + /** + * The AzureFirewallsInner object to access its operations. + */ + private AzureFirewallsInner azureFirewalls; + + /** + * Gets the AzureFirewallsInner object to access its operations. + * @return the AzureFirewallsInner object. + */ + public AzureFirewallsInner azureFirewalls() { + return this.azureFirewalls; + } + /** * The ApplicationGatewaysInner object to access its operations. */ @@ -670,6 +683,97 @@ public LocalNetworkGatewaysInner localNetworkGateways() { return this.localNetworkGateways; } + /** + * The VirtualWANsInner object to access its operations. + */ + private VirtualWANsInner virtualWANs; + + /** + * Gets the VirtualWANsInner object to access its operations. + * @return the VirtualWANsInner object. + */ + public VirtualWANsInner virtualWANs() { + return this.virtualWANs; + } + + /** + * The VpnSitesInner object to access its operations. + */ + private VpnSitesInner vpnSites; + + /** + * Gets the VpnSitesInner object to access its operations. + * @return the VpnSitesInner object. + */ + public VpnSitesInner vpnSites() { + return this.vpnSites; + } + + /** + * The VpnSitesConfigurationsInner object to access its operations. + */ + private VpnSitesConfigurationsInner vpnSitesConfigurations; + + /** + * Gets the VpnSitesConfigurationsInner object to access its operations. + * @return the VpnSitesConfigurationsInner object. + */ + public VpnSitesConfigurationsInner vpnSitesConfigurations() { + return this.vpnSitesConfigurations; + } + + /** + * The VirtualHubsInner object to access its operations. + */ + private VirtualHubsInner virtualHubs; + + /** + * Gets the VirtualHubsInner object to access its operations. + * @return the VirtualHubsInner object. + */ + public VirtualHubsInner virtualHubs() { + return this.virtualHubs; + } + + /** + * The HubVirtualNetworkConnectionsInner object to access its operations. + */ + private HubVirtualNetworkConnectionsInner hubVirtualNetworkConnections; + + /** + * Gets the HubVirtualNetworkConnectionsInner object to access its operations. + * @return the HubVirtualNetworkConnectionsInner object. + */ + public HubVirtualNetworkConnectionsInner hubVirtualNetworkConnections() { + return this.hubVirtualNetworkConnections; + } + + /** + * The VpnGatewaysInner object to access its operations. + */ + private VpnGatewaysInner vpnGateways; + + /** + * Gets the VpnGatewaysInner object to access its operations. + * @return the VpnGatewaysInner object. + */ + public VpnGatewaysInner vpnGateways() { + return this.vpnGateways; + } + + /** + * The VpnConnectionsInner object to access its operations. + */ + private VpnConnectionsInner vpnConnections; + + /** + * Gets the VpnConnectionsInner object to access its operations. + * @return the VpnConnectionsInner object. + */ + public VpnConnectionsInner vpnConnections() { + return this.vpnConnections; + } + /** * Initializes an instance of NetworkManagementClient client. * @@ -704,6 +808,7 @@ protected void initialize() { this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; + this.azureFirewalls = new AzureFirewallsInner(restClient().retrofit(), this); this.applicationGateways = new ApplicationGatewaysInner(restClient().retrofit(), this); this.applicationSecurityGroups = new ApplicationSecurityGroupsInner(restClient().retrofit(), this); this.ddosProtectionPlans = new DdosProtectionPlansInner(restClient().retrofit(), this); @@ -745,6 +850,13 @@ protected void initialize() { this.virtualNetworkGateways = new VirtualNetworkGatewaysInner(restClient().retrofit(), this); this.virtualNetworkGatewayConnections = new VirtualNetworkGatewayConnectionsInner(restClient().retrofit(), this); this.localNetworkGateways = new LocalNetworkGatewaysInner(restClient().retrofit(), this); + this.virtualWANs = new VirtualWANsInner(restClient().retrofit(), this); + this.vpnSites = new VpnSitesInner(restClient().retrofit(), this); + this.vpnSitesConfigurations = new VpnSitesConfigurationsInner(restClient().retrofit(), this); + this.virtualHubs = new VirtualHubsInner(restClient().retrofit(), this); + this.hubVirtualNetworkConnections = new HubVirtualNetworkConnectionsInner(restClient().retrofit(), this); + this.vpnGateways = new VpnGatewaysInner(restClient().retrofit(), this); + this.vpnConnections = new VpnConnectionsInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); initializeService(); } @@ -768,7 +880,7 @@ private void initializeService() { * used by Retrofit to perform actually REST calls. */ interface NetworkManagementClientService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkManagementClient checkDnsNameAvailability" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkManagementClient checkDnsNameAvailability" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability") Observable> checkDnsNameAvailability(@Path("location") String location, @Path("subscriptionId") String subscriptionId, @Query("domainNameLabel") String domainNameLabel, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -836,7 +948,7 @@ public Observable> checkDnsNameA if (domainNameLabel == null) { throw new IllegalArgumentException("Parameter domainNameLabel is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.checkDnsNameAvailability(location, this.subscriptionId(), domainNameLabel, apiVersion, this.acceptLanguage(), this.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkManager.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkManager.java similarity index 77% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkManager.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkManager.java index 75db0ff8050e..77268bb997ea 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkManager.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkManager.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.AzureEnvironment; import com.microsoft.azure.AzureResponseBuilder; @@ -16,47 +16,55 @@ import com.microsoft.azure.arm.resources.AzureConfigurable; import com.microsoft.azure.serializer.AzureJacksonAdapter; import com.microsoft.rest.RestClient; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGateways; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroups; -import com.microsoft.azure.management.network.v2018_05_01.DdosProtectionPlans; -import com.microsoft.azure.management.network.v2018_05_01.AvailableEndpointServices; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitAuthorizations; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeerings; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitConnections; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuits; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteServiceProviders; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnections; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCrossConnectionPeerings; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancers; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerBackendAddressPools; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerFrontendIPConfigurations; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatRules; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerLoadBalancingRules; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerNetworkInterfaces; -import com.microsoft.azure.management.network.v2018_05_01.LoadBalancerProbes; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaces; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceIPConfigurations; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterfaceLoadBalancers; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroups; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRules; -import com.microsoft.azure.management.network.v2018_05_01.DefaultSecurityRules; -import com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptures; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionMonitors; -import com.microsoft.azure.management.network.v2018_05_01.Operations; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddresses; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilters; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilterRules; -import com.microsoft.azure.management.network.v2018_05_01.RouteTables; -import com.microsoft.azure.management.network.v2018_05_01.Routes; -import com.microsoft.azure.management.network.v2018_05_01.BgpServiceCommunities; -import com.microsoft.azure.management.network.v2018_05_01.Usages; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworks; -import com.microsoft.azure.management.network.v2018_05_01.Subnets; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkPeerings; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGateways; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnections; -import com.microsoft.azure.management.network.v2018_05_01.LocalNetworkGateways; +import com.microsoft.azure.management.network.v2018_06_01.AzureFirewalls; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGateways; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroups; +import com.microsoft.azure.management.network.v2018_06_01.DdosProtectionPlans; +import com.microsoft.azure.management.network.v2018_06_01.AvailableEndpointServices; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitAuthorizations; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeerings; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitConnections; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuits; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteServiceProviders; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnections; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCrossConnectionPeerings; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancers; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerBackendAddressPools; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerFrontendIPConfigurations; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatRules; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerLoadBalancingRules; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerNetworkInterfaces; +import com.microsoft.azure.management.network.v2018_06_01.LoadBalancerProbes; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaces; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceIPConfigurations; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterfaceLoadBalancers; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRules; +import com.microsoft.azure.management.network.v2018_06_01.DefaultSecurityRules; +import com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptures; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionMonitors; +import com.microsoft.azure.management.network.v2018_06_01.Operations; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilters; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules; +import com.microsoft.azure.management.network.v2018_06_01.RouteTables; +import com.microsoft.azure.management.network.v2018_06_01.Routes; +import com.microsoft.azure.management.network.v2018_06_01.BgpServiceCommunities; +import com.microsoft.azure.management.network.v2018_06_01.Usages; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks; +import com.microsoft.azure.management.network.v2018_06_01.Subnets; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections; +import com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateways; +import com.microsoft.azure.management.network.v2018_06_01.VirtualWANs; +import com.microsoft.azure.management.network.v2018_06_01.VpnSites; +import com.microsoft.azure.management.network.v2018_06_01.VpnSitesConfigurations; +import com.microsoft.azure.management.network.v2018_06_01.VirtualHubs; +import com.microsoft.azure.management.network.v2018_06_01.HubVirtualNetworkConnections; +import com.microsoft.azure.management.network.v2018_06_01.VpnGateways; +import com.microsoft.azure.management.network.v2018_06_01.VpnConnections; import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; import com.microsoft.azure.arm.resources.implementation.ManagerCore; @@ -64,6 +72,7 @@ * Entry point to Azure Network resource management. */ public final class NetworkManager extends ManagerCore { + private AzureFirewalls azureFirewalls; private ApplicationGateways applicationGateways; private ApplicationSecurityGroups applicationSecurityGroups; private DdosProtectionPlans ddosProtectionPlans; @@ -105,6 +114,13 @@ public final class NetworkManager extends ManagerCore { NetworkManager authenticate(AzureTokenCredentials credentials, String subscriptionId); } + /** + * @return Entry point to manage AzureFirewalls. + */ + public AzureFirewalls azureFirewalls() { + if (this.azureFirewalls == null) { + this.azureFirewalls = new AzureFirewallsImpl(this); + } + return this.azureFirewalls; + } + /** * @return Entry point to manage ApplicationGateways. */ @@ -562,6 +588,76 @@ public LocalNetworkGateways localNetworkGateways() { return this.localNetworkGateways; } + /** + * @return Entry point to manage VirtualWANs. + */ + public VirtualWANs virtualWANs() { + if (this.virtualWANs == null) { + this.virtualWANs = new VirtualWANsImpl(this); + } + return this.virtualWANs; + } + + /** + * @return Entry point to manage VpnSites. + */ + public VpnSites vpnSites() { + if (this.vpnSites == null) { + this.vpnSites = new VpnSitesImpl(this); + } + return this.vpnSites; + } + + /** + * @return Entry point to manage VpnSitesConfigurations. + */ + public VpnSitesConfigurations vpnSitesConfigurations() { + if (this.vpnSitesConfigurations == null) { + this.vpnSitesConfigurations = new VpnSitesConfigurationsImpl(this); + } + return this.vpnSitesConfigurations; + } + + /** + * @return Entry point to manage VirtualHubs. + */ + public VirtualHubs virtualHubs() { + if (this.virtualHubs == null) { + this.virtualHubs = new VirtualHubsImpl(this); + } + return this.virtualHubs; + } + + /** + * @return Entry point to manage HubVirtualNetworkConnections. + */ + public HubVirtualNetworkConnections hubVirtualNetworkConnections() { + if (this.hubVirtualNetworkConnections == null) { + this.hubVirtualNetworkConnections = new HubVirtualNetworkConnectionsImpl(this); + } + return this.hubVirtualNetworkConnections; + } + + /** + * @return Entry point to manage VpnGateways. + */ + public VpnGateways vpnGateways() { + if (this.vpnGateways == null) { + this.vpnGateways = new VpnGatewaysImpl(this); + } + return this.vpnGateways; + } + + /** + * @return Entry point to manage VpnConnections. + */ + public VpnConnections vpnConnections() { + if (this.vpnConnections == null) { + this.vpnConnections = new VpnConnectionsImpl(this); + } + return this.vpnConnections; + } + /** * The implementation for Configurable interface. */ diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupImpl.java index bb7ccae1c187..e935ac71d757 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupImpl.java @@ -6,16 +6,16 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroup; import rx.Observable; import java.util.List; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroupSecurityRule; -import com.microsoft.azure.management.network.v2018_05_01.NetworkInterface; -import com.microsoft.azure.management.network.v2018_05_01.Subnet; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroupSecurityRule; +import com.microsoft.azure.management.network.v2018_06_01.NetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.Subnet; class NetworkSecurityGroupImpl extends GroupableResourceCoreImpl implements NetworkSecurityGroup, NetworkSecurityGroup.Definition, NetworkSecurityGroup.Update { NetworkSecurityGroupImpl(String name, NetworkSecurityGroupInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupInner.java index fee2af297611..a19a235517b0 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupSecurityRuleImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupSecurityRuleImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupSecurityRuleImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupSecurityRuleImpl.java index eef075702dea..d6b3b2937da2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupSecurityRuleImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupSecurityRuleImpl.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroupSecurityRule; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroupSecurityRule; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleProtocol; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleProtocol; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleAccess; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleDirection; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleAccess; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleDirection; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroup; class NetworkSecurityGroupSecurityRuleImpl extends CreatableUpdatableImpl implements NetworkSecurityGroupSecurityRule, NetworkSecurityGroupSecurityRule.Definition, NetworkSecurityGroupSecurityRule.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupSecurityRuleModelImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupSecurityRuleModelImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupSecurityRuleModelImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupSecurityRuleModelImpl.java index 168a59e4ebba..e180f7987663 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupSecurityRuleModelImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupSecurityRuleModelImpl.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroupSecurityRuleModel; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroupSecurityRuleModel; import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleAccess; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleAccess; import java.util.List; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroup; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleDirection; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleProtocol; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleDirection; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleProtocol; class NetworkSecurityGroupSecurityRuleModelImpl extends IndexableRefreshableWrapperImpl implements NetworkSecurityGroupSecurityRuleModel { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupsImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupsImpl.java index 7177aca71c68..467c84464714 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupsImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroups; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroup; import rx.Observable; import rx.Completable; import java.util.ArrayList; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupsInner.java index a17c1f0a5df1..d8496a1467e4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkSecurityGroupsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -16,7 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -67,47 +67,47 @@ public NetworkSecurityGroupsInner(Retrofit retrofit, NetworkManagementClientImpl * used by Retrofit to perform actually REST calls. */ interface NetworkSecurityGroupsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroups delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkSecurityGroups beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkSecurityGroups getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.NetworkSecurityGroups createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Body NetworkSecurityGroupInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkSecurityGroups beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Body NetworkSecurityGroupInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkSecurityGroups updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroups beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroups list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkSecurityGroups listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkSecurityGroups listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups listNext" }) @GET Observable> listNext(@Url String nextUrl, @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.management.network.v2018_05_01.NetworkSecurityGroups listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroups listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -174,7 +174,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -240,7 +240,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -326,7 +326,7 @@ public Observable> getByResourceGroup if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.getByResourceGroup(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -408,7 +408,7 @@ public Observable> getByResourceGroup if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -500,7 +500,7 @@ public Observable> createOrUpdateWith throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -575,7 +575,7 @@ public Observable> beginCreateOrUpdat throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -660,7 +660,7 @@ public Observable> updateTagsWithServ if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -734,7 +734,7 @@ public Observable> updateTagsWithServ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -803,7 +803,7 @@ public Observable> beginUpdateTagsWit if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -888,7 +888,7 @@ public Observable> beginUpdateTagsWit throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -995,7 +995,7 @@ public Observable>> listSinglePa if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1108,7 +1108,7 @@ public Observable>> listByResour if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatcherImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatcherImpl.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatcherImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatcherImpl.java index 030f052dfe5f..473f5bf4ce44 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatcherImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatcherImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.NetworkWatcher; +import com.microsoft.azure.management.network.v2018_06_01.NetworkWatcher; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.ProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; class NetworkWatcherImpl extends GroupableResourceCoreImpl implements NetworkWatcher, NetworkWatcher.Definition, NetworkWatcher.Update { NetworkWatcherImpl(String name, NetworkWatcherInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatcherInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatcherInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatcherInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatcherInner.java index 5df4bc1e98f2..cd8cf200a29f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatcherInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatcherInner.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.ProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatchersImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatchersImpl.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatchersImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatchersImpl.java index a0bf95fdc030..9e02b34355a7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatchersImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatchersImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers; -import com.microsoft.azure.management.network.v2018_05_01.NetworkWatcher; +import com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers; +import com.microsoft.azure.management.network.v2018_06_01.NetworkWatcher; import rx.Observable; import rx.Completable; import java.util.ArrayList; @@ -22,22 +22,22 @@ import rx.functions.Func1; import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.Topology; -import com.microsoft.azure.management.network.v2018_05_01.VerificationIPFlowResult; -import com.microsoft.azure.management.network.v2018_05_01.NextHopResult; -import com.microsoft.azure.management.network.v2018_05_01.SecurityGroupViewResult; -import com.microsoft.azure.management.network.v2018_05_01.TroubleshootingResult; -import com.microsoft.azure.management.network.v2018_05_01.FlowLogInformation; -import com.microsoft.azure.management.network.v2018_05_01.ConnectivityInformation; -import com.microsoft.azure.management.network.v2018_05_01.AzureReachabilityReport; -import com.microsoft.azure.management.network.v2018_05_01.AvailableProvidersList; -import com.microsoft.azure.management.network.v2018_05_01.TopologyParameters; -import com.microsoft.azure.management.network.v2018_05_01.VerificationIPFlowParameters; -import com.microsoft.azure.management.network.v2018_05_01.NextHopParameters; -import com.microsoft.azure.management.network.v2018_05_01.TroubleshootingParameters; -import com.microsoft.azure.management.network.v2018_05_01.ConnectivityParameters; -import com.microsoft.azure.management.network.v2018_05_01.AzureReachabilityReportParameters; -import com.microsoft.azure.management.network.v2018_05_01.AvailableProvidersListParameters; +import com.microsoft.azure.management.network.v2018_06_01.Topology; +import com.microsoft.azure.management.network.v2018_06_01.VerificationIPFlowResult; +import com.microsoft.azure.management.network.v2018_06_01.NextHopResult; +import com.microsoft.azure.management.network.v2018_06_01.SecurityGroupViewResult; +import com.microsoft.azure.management.network.v2018_06_01.TroubleshootingResult; +import com.microsoft.azure.management.network.v2018_06_01.FlowLogInformation; +import com.microsoft.azure.management.network.v2018_06_01.ConnectivityInformation; +import com.microsoft.azure.management.network.v2018_06_01.AzureReachabilityReport; +import com.microsoft.azure.management.network.v2018_06_01.AvailableProvidersList; +import com.microsoft.azure.management.network.v2018_06_01.TopologyParameters; +import com.microsoft.azure.management.network.v2018_06_01.VerificationIPFlowParameters; +import com.microsoft.azure.management.network.v2018_06_01.NextHopParameters; +import com.microsoft.azure.management.network.v2018_06_01.TroubleshootingParameters; +import com.microsoft.azure.management.network.v2018_06_01.ConnectivityParameters; +import com.microsoft.azure.management.network.v2018_06_01.AzureReachabilityReportParameters; +import com.microsoft.azure.management.network.v2018_06_01.AvailableProvidersListParameters; class NetworkWatchersImpl extends GroupableResourcesCoreImpl implements NetworkWatchers { protected NetworkWatchersImpl(NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatchersInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatchersInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatchersInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatchersInner.java index cb167da23857..55944e5794da 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NetworkWatchersInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkWatchersInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -14,17 +14,17 @@ import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.CloudException; -import com.microsoft.azure.management.network.v2018_05_01.AvailableProvidersListParameters; -import com.microsoft.azure.management.network.v2018_05_01.AzureReachabilityReportParameters; -import com.microsoft.azure.management.network.v2018_05_01.ConnectivityParameters; -import com.microsoft.azure.management.network.v2018_05_01.FlowLogStatusParameters; -import com.microsoft.azure.management.network.v2018_05_01.NextHopParameters; -import com.microsoft.azure.management.network.v2018_05_01.QueryTroubleshootingParameters; -import com.microsoft.azure.management.network.v2018_05_01.SecurityGroupViewParameters; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; -import com.microsoft.azure.management.network.v2018_05_01.TopologyParameters; -import com.microsoft.azure.management.network.v2018_05_01.TroubleshootingParameters; -import com.microsoft.azure.management.network.v2018_05_01.VerificationIPFlowParameters; +import com.microsoft.azure.management.network.v2018_06_01.AvailableProvidersListParameters; +import com.microsoft.azure.management.network.v2018_06_01.AzureReachabilityReportParameters; +import com.microsoft.azure.management.network.v2018_06_01.ConnectivityParameters; +import com.microsoft.azure.management.network.v2018_06_01.FlowLogStatusParameters; +import com.microsoft.azure.management.network.v2018_06_01.NextHopParameters; +import com.microsoft.azure.management.network.v2018_06_01.QueryTroubleshootingParameters; +import com.microsoft.azure.management.network.v2018_06_01.SecurityGroupViewParameters; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TopologyParameters; +import com.microsoft.azure.management.network.v2018_06_01.TroubleshootingParameters; +import com.microsoft.azure.management.network.v2018_06_01.VerificationIPFlowParameters; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -75,115 +75,115 @@ public NetworkWatchersInner(Retrofit retrofit, NetworkManagementClientImpl clien * used by Retrofit to perform actually REST calls. */ interface NetworkWatchersService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body NetworkWatcherInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers getTopology" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers getTopology" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology") Observable> getTopology(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body TopologyParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers verifyIPFlow" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers verifyIPFlow" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify") Observable> verifyIPFlow(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body VerificationIPFlowParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers beginVerifyIPFlow" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginVerifyIPFlow" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify") Observable> beginVerifyIPFlow(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body VerificationIPFlowParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers getNextHop" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers getNextHop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop") Observable> getNextHop(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body NextHopParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers beginGetNextHop" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginGetNextHop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop") Observable> beginGetNextHop(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body NextHopParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers getVMSecurityRules" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers getVMSecurityRules" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView") Observable> getVMSecurityRules(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body SecurityGroupViewParameters parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers beginGetVMSecurityRules" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginGetVMSecurityRules" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView") Observable> beginGetVMSecurityRules(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body SecurityGroupViewParameters parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers getTroubleshooting" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers getTroubleshooting" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot") Observable> getTroubleshooting(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body TroubleshootingParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers beginGetTroubleshooting" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginGetTroubleshooting" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot") Observable> beginGetTroubleshooting(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body TroubleshootingParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers getTroubleshootingResult" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers getTroubleshootingResult" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult") Observable> getTroubleshootingResult(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body QueryTroubleshootingParameters parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers beginGetTroubleshootingResult" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginGetTroubleshootingResult" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult") Observable> beginGetTroubleshootingResult(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body QueryTroubleshootingParameters parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers setFlowLogConfiguration" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers setFlowLogConfiguration" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog") Observable> setFlowLogConfiguration(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body FlowLogInformationInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers beginSetFlowLogConfiguration" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginSetFlowLogConfiguration" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog") Observable> beginSetFlowLogConfiguration(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body FlowLogInformationInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers getFlowLogStatus" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers getFlowLogStatus" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus") Observable> getFlowLogStatus(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body FlowLogStatusParameters parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers beginGetFlowLogStatus" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginGetFlowLogStatus" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus") Observable> beginGetFlowLogStatus(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body FlowLogStatusParameters parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.NetworkWatchers checkConnectivity" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers checkConnectivity" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck") Observable> checkConnectivity(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body ConnectivityParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers beginCheckConnectivity" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginCheckConnectivity" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck") Observable> beginCheckConnectivity(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body ConnectivityParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers getAzureReachabilityReport" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers getAzureReachabilityReport" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport") Observable> getAzureReachabilityReport(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body AzureReachabilityReportParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers beginGetAzureReachabilityReport" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginGetAzureReachabilityReport" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport") Observable> beginGetAzureReachabilityReport(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body AzureReachabilityReportParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers listAvailableProviders" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers listAvailableProviders" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList") Observable> listAvailableProviders(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body AvailableProvidersListParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.NetworkWatchers beginListAvailableProviders" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.NetworkWatchers beginListAvailableProviders" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList") Observable> beginListAvailableProviders(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Body AvailableProvidersListParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -259,7 +259,7 @@ public Observable> createOrUpdateWithServic throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.createOrUpdate(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -344,7 +344,7 @@ public Observable> getByResourceGroupWithSe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -427,7 +427,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -493,7 +493,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -578,7 +578,7 @@ public Observable> updateTagsWithServiceRes if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -663,7 +663,7 @@ public Observable> updateTagsWithServiceRes throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.updateTags(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -746,7 +746,7 @@ public Observable>> listByResourceGrou if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -825,7 +825,7 @@ public Observable>> listWithServiceRes if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -922,7 +922,7 @@ public Observable> getTopologyWithServiceResponse throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getTopology(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1014,7 +1014,7 @@ public Observable> verifyIPFlowWi throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.verifyIPFlow(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1089,7 +1089,7 @@ public Observable> beginVerifyIPF throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginVerifyIPFlow(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1182,7 +1182,7 @@ public Observable> getNextHopWithServiceResp throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getNextHop(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1257,7 +1257,7 @@ public Observable> beginGetNextHopWithServic throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetNextHop(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1349,7 +1349,7 @@ public Observable> getVMSecurityRu if (targetResourceId == null) { throw new IllegalArgumentException("Parameter targetResourceId is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; SecurityGroupViewParameters parameters = new SecurityGroupViewParameters(); parameters.withTargetResourceId(targetResourceId); Observable> observable = service.getVMSecurityRules(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -1425,7 +1425,7 @@ public Observable> beginGetVMSecur if (targetResourceId == null) { throw new IllegalArgumentException("Parameter targetResourceId is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; SecurityGroupViewParameters parameters = new SecurityGroupViewParameters(); parameters.withTargetResourceId(targetResourceId); return service.beginGetVMSecurityRules(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -1520,7 +1520,7 @@ public Observable> getTroubleshootin throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getTroubleshooting(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1595,7 +1595,7 @@ public Observable> beginGetTroublesh throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetTroubleshooting(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1687,7 +1687,7 @@ public Observable> getTroubleshootin if (targetResourceId == null) { throw new IllegalArgumentException("Parameter targetResourceId is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; QueryTroubleshootingParameters parameters = new QueryTroubleshootingParameters(); parameters.withTargetResourceId(targetResourceId); Observable> observable = service.getTroubleshootingResult(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -1763,7 +1763,7 @@ public Observable> beginGetTroublesh if (targetResourceId == null) { throw new IllegalArgumentException("Parameter targetResourceId is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; QueryTroubleshootingParameters parameters = new QueryTroubleshootingParameters(); parameters.withTargetResourceId(targetResourceId); return service.beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -1858,7 +1858,7 @@ public Observable> setFlowLogConfigurat throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.setFlowLogConfiguration(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1933,7 +1933,7 @@ public Observable> beginSetFlowLogConfi throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginSetFlowLogConfiguration(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2025,7 +2025,7 @@ public Observable> getFlowLogStatusWith if (targetResourceId == null) { throw new IllegalArgumentException("Parameter targetResourceId is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; FlowLogStatusParameters parameters = new FlowLogStatusParameters(); parameters.withTargetResourceId(targetResourceId); Observable> observable = service.getFlowLogStatus(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -2101,7 +2101,7 @@ public Observable> beginGetFlowLogStatu if (targetResourceId == null) { throw new IllegalArgumentException("Parameter targetResourceId is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; FlowLogStatusParameters parameters = new FlowLogStatusParameters(); parameters.withTargetResourceId(targetResourceId); return service.beginGetFlowLogStatus(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -2196,7 +2196,7 @@ public Observable> checkConnectivi throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.checkConnectivity(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -2271,7 +2271,7 @@ public Observable> beginCheckConne throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCheckConnectivity(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2364,7 +2364,7 @@ public Observable> getAzureReachab throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getAzureReachabilityReport(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -2439,7 +2439,7 @@ public Observable> beginGetAzureRe throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetAzureReachabilityReport(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2532,7 +2532,7 @@ public Observable> listAvailablePro throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.listAvailableProviders(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -2607,7 +2607,7 @@ public Observable> beginListAvailab throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginListAvailableProviders(resourceGroupName, networkWatcherName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NextHopResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NextHopResultImpl.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NextHopResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NextHopResultImpl.java index 7b3ec96d6971..9632002b982f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NextHopResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NextHopResultImpl.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.NextHopResult; +import com.microsoft.azure.management.network.v2018_06_01.NextHopResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.NextHopType; +import com.microsoft.azure.management.network.v2018_06_01.NextHopType; class NextHopResultImpl extends WrapperImpl implements NextHopResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NextHopResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NextHopResultInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NextHopResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NextHopResultInner.java index 4565fae43d87..7af2d0f92777 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/NextHopResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NextHopResultInner.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.NextHopType; +import com.microsoft.azure.management.network.v2018_06_01.NextHopType; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationImpl.java similarity index 81% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationImpl.java index 4c61ad927fc4..36c9f6af3c23 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.Operation; +import com.microsoft.azure.management.network.v2018_06_01.Operation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.OperationDisplay; -import com.microsoft.azure.management.network.v2018_05_01.OperationPropertiesFormatServiceSpecification; +import com.microsoft.azure.management.network.v2018_06_01.OperationDisplay; +import com.microsoft.azure.management.network.v2018_06_01.OperationPropertiesFormatServiceSpecification; class OperationImpl extends WrapperImpl implements Operation { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationInner.java index 5c3b2c90098b..d3360c334976 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.OperationDisplay; -import com.microsoft.azure.management.network.v2018_05_01.OperationPropertiesFormatServiceSpecification; +import com.microsoft.azure.management.network.v2018_06_01.OperationDisplay; +import com.microsoft.azure.management.network.v2018_06_01.OperationPropertiesFormatServiceSpecification; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationsImpl.java similarity index 87% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationsImpl.java index c5538ac3bd88..1798d7a0f0f7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationsImpl.java @@ -7,14 +7,14 @@ * abc */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.Operations; +import com.microsoft.azure.management.network.v2018_06_01.Operations; import rx.functions.Func1; import rx.Observable; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.Operation; +import com.microsoft.azure.management.network.v2018_06_01.Operation; class OperationsImpl extends WrapperImpl implements Operations { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationsInner.java index e60b921d1e81..b652173c952c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/OperationsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/OperationsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -55,11 +55,11 @@ public OperationsInner(Retrofit retrofit, NetworkManagementClientImpl client) { * used by Retrofit to perform actually REST calls. */ interface OperationsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.Operations list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Operations list" }) @GET("providers/Microsoft.Network/operations") Observable> list(@Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Operations listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Operations listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -145,7 +145,7 @@ public Observable>> call(ServiceResponse>> listSinglePageAsync() { - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureInner.java index 5b3bb7b19728..ff2c6f392029 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureStorageLocation; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureStorageLocation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureFilter; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureFilter; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureQueryStatusResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureQueryStatusResultImpl.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureQueryStatusResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureQueryStatusResultImpl.java index ae15f030b195..0baa0166d72e 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureQueryStatusResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureQueryStatusResultImpl.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureQueryStatusResult; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureQueryStatusResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import org.joda.time.DateTime; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.PcError; -import com.microsoft.azure.management.network.v2018_05_01.PcStatus; +import com.microsoft.azure.management.network.v2018_06_01.PcError; +import com.microsoft.azure.management.network.v2018_06_01.PcStatus; class PacketCaptureQueryStatusResultImpl extends WrapperImpl implements PacketCaptureQueryStatusResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureQueryStatusResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureQueryStatusResultInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureQueryStatusResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureQueryStatusResultInner.java index 0f5a8a33eb7d..e4b5cc5e5462 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureQueryStatusResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureQueryStatusResultInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import org.joda.time.DateTime; -import com.microsoft.azure.management.network.v2018_05_01.PcStatus; +import com.microsoft.azure.management.network.v2018_06_01.PcStatus; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.PcError; +import com.microsoft.azure.management.network.v2018_06_01.PcError; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureResultImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureResultImpl.java index 8cbf5a45598d..260fed446c67 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureResultImpl.java @@ -6,15 +6,15 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureResult; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureResult; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureStorageLocation; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureStorageLocation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureFilter; -import com.microsoft.azure.management.network.v2018_05_01.ProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureFilter; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; import rx.functions.Func1; class PacketCaptureResultImpl extends CreatableUpdatableImpl implements PacketCaptureResult, PacketCaptureResult.Definition, PacketCaptureResult.Update { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureResultInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureResultInner.java index 1430af70f472..9e1d7fb4042b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCaptureResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCaptureResultInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureStorageLocation; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureStorageLocation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureFilter; -import com.microsoft.azure.management.network.v2018_05_01.ProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureFilter; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCapturesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCapturesImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCapturesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCapturesImpl.java index c4a3c2e8b19d..f4fe16b87b50 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCapturesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCapturesImpl.java @@ -7,16 +7,16 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptures; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptures; import rx.Completable; import rx.Observable; import rx.functions.Func1; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureQueryStatusResult; -import com.microsoft.azure.management.network.v2018_05_01.PacketCaptureResult; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureQueryStatusResult; +import com.microsoft.azure.management.network.v2018_06_01.PacketCaptureResult; class PacketCapturesImpl extends WrapperImpl implements PacketCaptures { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCapturesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCapturesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCapturesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCapturesInner.java index bee7a0f41619..4f02bd28df55 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PacketCapturesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCapturesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -57,43 +57,43 @@ public PacketCapturesInner(Retrofit retrofit, NetworkManagementClientImpl client * used by Retrofit to perform actually REST calls. */ interface PacketCapturesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.PacketCaptures create" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}") Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Body PacketCaptureInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures beginCreate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures beginCreate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}") Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Body PacketCaptureInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures stop" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures stop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop") Observable> stop(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures beginStop" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures beginStop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop") Observable> beginStop(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures getStatus" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures getStatus" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus") Observable> getStatus(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures beginGetStatus" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures beginGetStatus" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus") Observable> beginGetStatus(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PacketCaptures list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PacketCaptures list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -176,7 +176,7 @@ public Observable> createWithServiceRe throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.create(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -258,7 +258,7 @@ public Observable> beginCreateWithServ throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreate(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -349,7 +349,7 @@ public Observable> getWithServiceRespo if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -439,7 +439,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -512,7 +512,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -603,7 +603,7 @@ public Observable> stopWithServiceResponseAsync(String res if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.stop(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -676,7 +676,7 @@ public Observable> beginStopWithServiceResponseAsync(Strin if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginStop(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -768,7 +768,7 @@ public Observable> getStatu if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getStatus(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -842,7 +842,7 @@ public Observable> beginGet if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetStatus(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -927,7 +927,7 @@ public Observable>> listWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, networkWatcherName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PageImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PageImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PageImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PageImpl.java index edb3e83e6a5b..6ededb4f6976 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PageImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PageImpl.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.azure.Page; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PageImpl1.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PageImpl1.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PageImpl1.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PageImpl1.java index 7d6d31191674..220afb32ec83 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PageImpl1.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PageImpl1.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.azure.Page; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ProbeImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ProbeImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ProbeImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ProbeImpl.java index 533314632a86..9b748f318df1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ProbeImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ProbeImpl.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.Probe; +import com.microsoft.azure.management.network.v2018_06_01.Probe; import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; import rx.Observable; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.ProbeProtocol; +import com.microsoft.azure.management.network.v2018_06_01.ProbeProtocol; class ProbeImpl extends IndexableRefreshableWrapperImpl implements Probe { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ProbeInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ProbeInner.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ProbeInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ProbeInner.java index 74b1f12b4d1d..7115c637da6d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/ProbeInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ProbeInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.ProbeProtocol; +import com.microsoft.azure.management.network.v2018_06_01.ProbeProtocol; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; @@ -26,7 +26,7 @@ public class ProbeInner extends SubResource { private List loadBalancingRules; /** - * The protocol of the end point. Possible values are: 'Http', 'Tcp' or + * The protocol of the end point. Possible values are: 'Http', 'Tcp', or * 'Https'. If 'Tcp' is specified, a received ACK is required for the probe * to be successful. If 'Http' or 'Https' is specified, a 200 OK response * from the specifies URI is required for the probe to be successful. @@ -99,7 +99,7 @@ public List loadBalancingRules() { } /** - * Get the protocol of the end point. Possible values are: 'Http', 'Tcp' or 'Https'. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. Possible values include: 'Http', 'Tcp', 'Https'. + * Get the protocol of the end point. Possible values are: 'Http', 'Tcp', or 'Https'. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. Possible values include: 'Http', 'Tcp', 'Https'. * * @return the protocol value */ @@ -108,7 +108,7 @@ public ProbeProtocol protocol() { } /** - * Set the protocol of the end point. Possible values are: 'Http', 'Tcp' or 'Https'. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. Possible values include: 'Http', 'Tcp', 'Https'. + * Set the protocol of the end point. Possible values are: 'Http', 'Tcp', or 'Https'. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. Possible values include: 'Http', 'Tcp', 'Https'. * * @param protocol the protocol value to set * @return the ProbeInner object itself. diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressImpl.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressImpl.java index 21af8788b5d9..2d6bd192331c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressImpl.java @@ -6,18 +6,18 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddress; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddress; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddressSku; -import com.microsoft.azure.management.network.v2018_05_01.IPAllocationMethod; -import com.microsoft.azure.management.network.v2018_05_01.IPVersion; -import com.microsoft.azure.management.network.v2018_05_01.IPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddressDnsSettings; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddressSku; +import com.microsoft.azure.management.network.v2018_06_01.IPAllocationMethod; +import com.microsoft.azure.management.network.v2018_06_01.IPVersion; +import com.microsoft.azure.management.network.v2018_06_01.IPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddressDnsSettings; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.IpTag; +import com.microsoft.azure.management.network.v2018_06_01.IpTag; class PublicIPAddressImpl extends GroupableResourceCoreImpl implements PublicIPAddress, PublicIPAddress.Definition, PublicIPAddress.Update { PublicIPAddressImpl(String name, PublicIPAddressInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressInner.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressInner.java index a6e5cf4640c3..73f7414ff058 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressInner.java @@ -6,15 +6,15 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddressSku; -import com.microsoft.azure.management.network.v2018_05_01.IPAllocationMethod; -import com.microsoft.azure.management.network.v2018_05_01.IPVersion; -import com.microsoft.azure.management.network.v2018_05_01.IPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddressDnsSettings; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddressSku; +import com.microsoft.azure.management.network.v2018_06_01.IPAllocationMethod; +import com.microsoft.azure.management.network.v2018_06_01.IPVersion; +import com.microsoft.azure.management.network.v2018_06_01.IPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddressDnsSettings; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.IpTag; +import com.microsoft.azure.management.network.v2018_06_01.IpTag; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressesImpl.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressesImpl.java index 33100c55ef8e..0e32844f2460 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressesImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddresses; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddress; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddress; import rx.Observable; import rx.Completable; import java.util.ArrayList; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressesInner.java index 36e428889cb9..32fdc8ebe142 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/PublicIPAddressesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PublicIPAddressesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -16,7 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -67,67 +67,67 @@ public PublicIPAddressesInner(Retrofit retrofit, NetworkManagementClientImpl cli * used by Retrofit to perform actually REST calls. */ interface PublicIPAddressesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.PublicIPAddresses delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PublicIPAddresses beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PublicIPAddresses getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.PublicIPAddresses createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Body PublicIPAddressInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PublicIPAddresses beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Body PublicIPAddressInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PublicIPAddresses updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.PublicIPAddresses beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.PublicIPAddresses list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PublicIPAddresses listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PublicIPAddresses listVirtualMachineScaleSetPublicIPAddresses" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses listVirtualMachineScaleSetPublicIPAddresses" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses") Observable> listVirtualMachineScaleSetPublicIPAddresses(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PublicIPAddresses listVirtualMachineScaleSetVMPublicIPAddresses" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses listVirtualMachineScaleSetVMPublicIPAddresses" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses") Observable> listVirtualMachineScaleSetVMPublicIPAddresses(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("virtualmachineIndex") String virtualmachineIndex, @Path("networkInterfaceName") String networkInterfaceName, @Path("ipConfigurationName") String ipConfigurationName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.PublicIPAddresses getVirtualMachineScaleSetPublicIPAddress" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses getVirtualMachineScaleSetPublicIPAddress" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}") Observable> getVirtualMachineScaleSetPublicIPAddress(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("virtualmachineIndex") String virtualmachineIndex, @Path("networkInterfaceName") String networkInterfaceName, @Path("ipConfigurationName") String ipConfigurationName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.PublicIPAddresses listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses listNext" }) @GET Observable> listNext(@Url String nextUrl, @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.management.network.v2018_05_01.PublicIPAddresses listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_05_01.PublicIPAddresses listVirtualMachineScaleSetPublicIPAddressesNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses listVirtualMachineScaleSetPublicIPAddressesNext" }) @GET Observable> listVirtualMachineScaleSetPublicIPAddressesNext(@Url String nextUrl, @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.management.network.v2018_05_01.PublicIPAddresses listVirtualMachineScaleSetVMPublicIPAddressesNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.PublicIPAddresses listVirtualMachineScaleSetVMPublicIPAddressesNext" }) @GET Observable> listVirtualMachineScaleSetVMPublicIPAddressesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -194,7 +194,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, publicIpAddressName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -260,7 +260,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, publicIpAddressName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -346,7 +346,7 @@ public Observable> getByResourceGroupWithS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.getByResourceGroup(resourceGroupName, publicIpAddressName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -428,7 +428,7 @@ public Observable> getByResourceGroupWithS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, publicIpAddressName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -520,7 +520,7 @@ public Observable> createOrUpdateWithServi throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, publicIpAddressName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -595,7 +595,7 @@ public Observable> beginCreateOrUpdateWith throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, publicIpAddressName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -680,7 +680,7 @@ public Observable> updateTagsWithServiceRe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -754,7 +754,7 @@ public Observable> updateTagsWithServiceRe throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, publicIpAddressName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -823,7 +823,7 @@ public Observable> beginUpdateTagsWithServ if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -908,7 +908,7 @@ public Observable> beginUpdateTagsWithServ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, publicIpAddressName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -1015,7 +1015,7 @@ public Observable>> listSinglePageAsy if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1128,7 +1128,7 @@ public Observable>> listByResourceGro if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterImpl.java index 9a192c330abb..9b41fa078e22 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterImpl.java @@ -6,16 +6,16 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilter; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilter; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.PatchRouteFilter; +import com.microsoft.azure.management.network.v2018_06_01.PatchRouteFilter; import java.util.List; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.ExpressRouteCircuitPeering; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilterRule; +import com.microsoft.azure.management.network.v2018_06_01.ExpressRouteCircuitPeering; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilterRule; import rx.functions.Func1; class RouteFilterImpl extends GroupableResourceCoreImpl implements RouteFilter, RouteFilter.Definition, RouteFilter.Update { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterInner.java index 67bfe8a96188..1440ca442f45 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRuleImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRuleImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRuleImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRuleImpl.java index 4e90bdb0b1ef..9e803d9fac4d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRuleImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRuleImpl.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilterRule; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilterRule; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.PatchRouteFilterRule; +import com.microsoft.azure.management.network.v2018_06_01.PatchRouteFilterRule; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.Access; +import com.microsoft.azure.management.network.v2018_06_01.Access; import rx.functions.Func1; class RouteFilterRuleImpl extends CreatableUpdatableImpl implements RouteFilterRule, RouteFilterRule.Definition, RouteFilterRule.Update { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRuleInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRuleInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRuleInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRuleInner.java index 17479dbd1a02..8c4fdbb22882 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRuleInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRuleInner.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.Access; +import com.microsoft.azure.management.network.v2018_06_01.Access; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRulesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRulesImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRulesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRulesImpl.java index 8eb47b16d3f7..acf99f208c71 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRulesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRulesImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilterRules; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilterRule; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilterRule; class RouteFilterRulesImpl extends WrapperImpl implements RouteFilterRules { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRulesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRulesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRulesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRulesInner.java index b0b054d50b64..6e03e80f66c3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFilterRulesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFilterRulesInner.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.PatchRouteFilterRule; +import com.microsoft.azure.management.network.v2018_06_01.PatchRouteFilterRule; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -63,39 +63,39 @@ public RouteFilterRulesInner(Retrofit retrofit, NetworkManagementClientImpl clie * used by Retrofit to perform actually REST calls. */ interface RouteFilterRulesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.RouteFilterRules delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("ruleName") String ruleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilterRules beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("ruleName") String ruleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilterRules get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("ruleName") String ruleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilterRules createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("ruleName") String ruleName, @Path("subscriptionId") String subscriptionId, @Body RouteFilterRuleInner routeFilterRuleParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilterRules beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("ruleName") String ruleName, @Path("subscriptionId") String subscriptionId, @Body RouteFilterRuleInner routeFilterRuleParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilterRules update" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules update" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}") Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("ruleName") String ruleName, @Path("subscriptionId") String subscriptionId, @Body PatchRouteFilterRule routeFilterRuleParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilterRules beginUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules beginUpdate" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}") Observable> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("ruleName") String ruleName, @Path("subscriptionId") String subscriptionId, @Body PatchRouteFilterRule routeFilterRuleParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilterRules listByRouteFilter" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules listByRouteFilter" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules") Observable> listByRouteFilter(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilterRules listByRouteFilterNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilterRules listByRouteFilterNext" }) @GET Observable> listByRouteFilterNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -169,7 +169,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, routeFilterName, ruleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -242,7 +242,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, routeFilterName, ruleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -335,7 +335,7 @@ public Observable> getWithServiceResponseA if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, routeFilterName, ruleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -434,7 +434,7 @@ public Observable> createOrUpdateWithServi throw new IllegalArgumentException("Parameter routeFilterRuleParameters is required and cannot be null."); } Validator.validate(routeFilterRuleParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, routeFilterName, ruleName, this.client.subscriptionId(), routeFilterRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -516,7 +516,7 @@ public Observable> beginCreateOrUpdateWith throw new IllegalArgumentException("Parameter routeFilterRuleParameters is required and cannot be null."); } Validator.validate(routeFilterRuleParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, routeFilterName, ruleName, this.client.subscriptionId(), routeFilterRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -616,7 +616,7 @@ public Observable> updateWithServiceRespon throw new IllegalArgumentException("Parameter routeFilterRuleParameters is required and cannot be null."); } Validator.validate(routeFilterRuleParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.update(resourceGroupName, routeFilterName, ruleName, this.client.subscriptionId(), routeFilterRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -698,7 +698,7 @@ public Observable> beginUpdateWithServiceR throw new IllegalArgumentException("Parameter routeFilterRuleParameters is required and cannot be null."); } Validator.validate(routeFilterRuleParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginUpdate(resourceGroupName, routeFilterName, ruleName, this.client.subscriptionId(), routeFilterRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -819,7 +819,7 @@ public Observable>> listByRouteFilter if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByRouteFilter(resourceGroupName, routeFilterName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFiltersImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFiltersImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFiltersImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFiltersImpl.java index 9b914e0f47ef..77d19ffd0a4f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFiltersImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFiltersImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilters; -import com.microsoft.azure.management.network.v2018_05_01.RouteFilter; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilters; +import com.microsoft.azure.management.network.v2018_06_01.RouteFilter; import rx.Observable; import rx.Completable; import java.util.ArrayList; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFiltersInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFiltersInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFiltersInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFiltersInner.java index 5ba0cb3fc6e1..415664d95d87 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteFiltersInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteFiltersInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -16,7 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.PatchRouteFilter; +import com.microsoft.azure.management.network.v2018_06_01.PatchRouteFilter; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -66,47 +66,47 @@ public RouteFiltersInner(Retrofit retrofit, NetworkManagementClientImpl client) * used by Retrofit to perform actually REST calls. */ interface RouteFiltersService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.RouteFilters delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilters beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilters getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.RouteFilters createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("subscriptionId") String subscriptionId, @Body RouteFilterInner routeFilterParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilters beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("subscriptionId") String subscriptionId, @Body RouteFilterInner routeFilterParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilters update" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters update" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("subscriptionId") String subscriptionId, @Body PatchRouteFilter routeFilterParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilters beginUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters beginUpdate" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") Observable> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeFilterName") String routeFilterName, @Path("subscriptionId") String subscriptionId, @Body PatchRouteFilter routeFilterParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilters listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilters list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteFilters listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_05_01.RouteFilters listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteFilters listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -173,7 +173,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, routeFilterName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -239,7 +239,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, routeFilterName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -325,7 +325,7 @@ public Observable> getByResourceGroupWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.getByResourceGroup(resourceGroupName, routeFilterName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -407,7 +407,7 @@ public Observable> getByResourceGroupWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, routeFilterName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -499,7 +499,7 @@ public Observable> createOrUpdateWithServiceRe throw new IllegalArgumentException("Parameter routeFilterParameters is required and cannot be null."); } Validator.validate(routeFilterParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, routeFilterName, this.client.subscriptionId(), routeFilterParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -574,7 +574,7 @@ public Observable> beginCreateOrUpdateWithServ throw new IllegalArgumentException("Parameter routeFilterParameters is required and cannot be null."); } Validator.validate(routeFilterParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, routeFilterName, this.client.subscriptionId(), routeFilterParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -667,7 +667,7 @@ public Observable> updateWithServiceResponseAs throw new IllegalArgumentException("Parameter routeFilterParameters is required and cannot be null."); } Validator.validate(routeFilterParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.update(resourceGroupName, routeFilterName, this.client.subscriptionId(), routeFilterParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -742,7 +742,7 @@ public Observable> beginUpdateWithServiceRespo throw new IllegalArgumentException("Parameter routeFilterParameters is required and cannot be null."); } Validator.validate(routeFilterParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginUpdate(resourceGroupName, routeFilterName, this.client.subscriptionId(), routeFilterParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -855,7 +855,7 @@ public Observable>> listByResourceGroupSi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -960,7 +960,7 @@ public Observable>> listSinglePageAsync() if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteImpl.java index 9e0cd0d52129..c482ceb40432 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.Route; +import com.microsoft.azure.management.network.v2018_06_01.Route; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.RouteNextHopType; +import com.microsoft.azure.management.network.v2018_06_01.RouteNextHopType; class RouteImpl extends CreatableUpdatableImpl implements Route, Route.Definition, Route.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteInner.java index dc1a34f1d527..2667b70c2ae5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteInner.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.RouteNextHopType; +import com.microsoft.azure.management.network.v2018_06_01.RouteNextHopType; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTableImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTableImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTableImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTableImpl.java index ba339a1a8399..3e5eb2a5fd09 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTableImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTableImpl.java @@ -6,15 +6,15 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.RouteTable; +import com.microsoft.azure.management.network.v2018_06_01.RouteTable; import rx.Observable; import java.util.List; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.Route; -import com.microsoft.azure.management.network.v2018_05_01.Subnet; +import com.microsoft.azure.management.network.v2018_06_01.Route; +import com.microsoft.azure.management.network.v2018_06_01.Subnet; class RouteTableImpl extends GroupableResourceCoreImpl implements RouteTable, RouteTable.Definition, RouteTable.Update { RouteTableImpl(String name, RouteTableInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTableInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTableInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTableInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTableInner.java index 14966a0a2dd5..4bf310cc38a9 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTableInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTableInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTablesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTablesImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTablesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTablesImpl.java index 6033d6e50e65..777cf18b398f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTablesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTablesImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.RouteTables; -import com.microsoft.azure.management.network.v2018_05_01.RouteTable; +import com.microsoft.azure.management.network.v2018_06_01.RouteTables; +import com.microsoft.azure.management.network.v2018_06_01.RouteTable; import rx.Observable; import rx.Completable; import java.util.ArrayList; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTablesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTablesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTablesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTablesInner.java index 7ddbe786c29a..5b8681dbaec4 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RouteTablesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RouteTablesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -16,7 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -67,47 +67,47 @@ public RouteTablesInner(Retrofit retrofit, NetworkManagementClientImpl client) { * used by Retrofit to perform actually REST calls. */ interface RouteTablesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.RouteTables delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteTables beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteTables getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.RouteTables createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("subscriptionId") String subscriptionId, @Body RouteTableInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteTables beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("subscriptionId") String subscriptionId, @Body RouteTableInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteTables updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.RouteTables beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.RouteTables listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteTables list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.RouteTables listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_05_01.RouteTables listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.RouteTables listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -174,7 +174,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, routeTableName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -240,7 +240,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, routeTableName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -326,7 +326,7 @@ public Observable> getByResourceGroupWithServic if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.getByResourceGroup(resourceGroupName, routeTableName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -408,7 +408,7 @@ public Observable> getByResourceGroupWithServic if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, routeTableName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -500,7 +500,7 @@ public Observable> createOrUpdateWithServiceRes throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, routeTableName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -575,7 +575,7 @@ public Observable> beginCreateOrUpdateWithServi throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, routeTableName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -660,7 +660,7 @@ public Observable> updateTagsWithServiceRespons if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -734,7 +734,7 @@ public Observable> updateTagsWithServiceRespons throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, routeTableName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -803,7 +803,7 @@ public Observable> beginUpdateTagsWithServiceRe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -888,7 +888,7 @@ public Observable> beginUpdateTagsWithServiceRe throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, routeTableName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -1003,7 +1003,7 @@ public Observable>> listByResourceGroupSin if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1108,7 +1108,7 @@ public Observable>> listSinglePageAsync() if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RoutesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RoutesImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RoutesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RoutesImpl.java index bf6e12a582f1..b357364fadc8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RoutesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RoutesImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.Routes; +import com.microsoft.azure.management.network.v2018_06_01.Routes; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.Route; +import com.microsoft.azure.management.network.v2018_06_01.Route; class RoutesImpl extends WrapperImpl implements Routes { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RoutesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RoutesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RoutesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RoutesInner.java index f7e5cf66582e..3cadf1592ed2 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/RoutesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RoutesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -61,31 +61,31 @@ public RoutesInner(Retrofit retrofit, NetworkManagementClientImpl client) { * used by Retrofit to perform actually REST calls. */ interface RoutesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.Routes delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Routes delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("routeName") String routeName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Routes beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Routes beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("routeName") String routeName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Routes get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Routes get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("routeName") String routeName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Routes createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Routes createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("routeName") String routeName, @Path("subscriptionId") String subscriptionId, @Body RouteInner routeParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Routes beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Routes beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("routeName") String routeName, @Path("subscriptionId") String subscriptionId, @Body RouteInner routeParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Routes list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Routes list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("routeTableName") String routeTableName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Routes listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Routes listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -159,7 +159,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, routeTableName, routeName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -232,7 +232,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, routeTableName, routeName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -325,7 +325,7 @@ public Observable> getWithServiceResponseAsync(Strin if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, routeTableName, routeName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -424,7 +424,7 @@ public Observable> createOrUpdateWithServiceResponse throw new IllegalArgumentException("Parameter routeParameters is required and cannot be null."); } Validator.validate(routeParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, routeTableName, routeName, this.client.subscriptionId(), routeParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -506,7 +506,7 @@ public Observable> beginCreateOrUpdateWithServiceRes throw new IllegalArgumentException("Parameter routeParameters is required and cannot be null."); } Validator.validate(routeParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, routeTableName, routeName, this.client.subscriptionId(), routeParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -628,7 +628,7 @@ public Observable>> listSinglePageAsync(final S if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, routeTableName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityGroupViewResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityGroupViewResultImpl.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityGroupViewResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityGroupViewResultImpl.java index 1fe68f03e072..0e260a9327a5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityGroupViewResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityGroupViewResultImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.SecurityGroupViewResult; +import com.microsoft.azure.management.network.v2018_06_01.SecurityGroupViewResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.SecurityGroupNetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.SecurityGroupNetworkInterface; class SecurityGroupViewResultImpl extends WrapperImpl implements SecurityGroupViewResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityGroupViewResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityGroupViewResultInner.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityGroupViewResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityGroupViewResultInner.java index dcf20c9d753f..66bcd4ccc85c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityGroupViewResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityGroupViewResultInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.SecurityGroupNetworkInterface; +import com.microsoft.azure.management.network.v2018_06_01.SecurityGroupNetworkInterface; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRuleInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRuleInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRuleInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRuleInner.java index cdff77a110bf..85d6b6991cae 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRuleInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRuleInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleProtocol; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleProtocol; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleAccess; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRuleDirection; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleAccess; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRuleDirection; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRulesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRulesImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRulesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRulesImpl.java index 2a86f1d01d00..3bbd71a3317a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRulesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRulesImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.SecurityRules; +import com.microsoft.azure.management.network.v2018_06_01.SecurityRules; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroupSecurityRule; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroupSecurityRule; class SecurityRulesImpl extends WrapperImpl implements SecurityRules { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRulesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRulesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRulesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRulesInner.java index 6a288ef3d142..9b0ea4b04aab 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SecurityRulesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SecurityRulesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -61,31 +61,31 @@ public SecurityRulesInner(Retrofit retrofit, NetworkManagementClientImpl client) * used by Retrofit to perform actually REST calls. */ interface SecurityRulesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.SecurityRules delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.SecurityRules delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("securityRuleName") String securityRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.SecurityRules beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.SecurityRules beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("securityRuleName") String securityRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.SecurityRules get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.SecurityRules get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("securityRuleName") String securityRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.SecurityRules createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.SecurityRules createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("securityRuleName") String securityRuleName, @Path("subscriptionId") String subscriptionId, @Body SecurityRuleInner securityRuleParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.SecurityRules beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.SecurityRules beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("securityRuleName") String securityRuleName, @Path("subscriptionId") String subscriptionId, @Body SecurityRuleInner securityRuleParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.SecurityRules list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.SecurityRules list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.SecurityRules listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.SecurityRules listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -159,7 +159,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, networkSecurityGroupName, securityRuleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -232,7 +232,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, networkSecurityGroupName, securityRuleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -325,7 +325,7 @@ public Observable> getWithServiceResponseAsyn if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, networkSecurityGroupName, securityRuleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -424,7 +424,7 @@ public Observable> createOrUpdateWithServiceR throw new IllegalArgumentException("Parameter securityRuleParameters is required and cannot be null."); } Validator.validate(securityRuleParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, networkSecurityGroupName, securityRuleName, this.client.subscriptionId(), securityRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -506,7 +506,7 @@ public Observable> beginCreateOrUpdateWithSer throw new IllegalArgumentException("Parameter securityRuleParameters is required and cannot be null."); } Validator.validate(securityRuleParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, securityRuleName, this.client.subscriptionId(), securityRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -628,7 +628,7 @@ public Observable>> listSinglePageAsync( if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, networkSecurityGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetImpl.java index 96c47c0c5116..912b38d60173 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetImpl.java @@ -6,17 +6,17 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.Subnet; +import com.microsoft.azure.management.network.v2018_06_01.Subnet; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ServiceEndpointPropertiesFormat; -import com.microsoft.azure.management.network.v2018_05_01.IPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.ResourceNavigationLink; -import com.microsoft.azure.management.network.v2018_05_01.NetworkSecurityGroup; -import com.microsoft.azure.management.network.v2018_05_01.RouteTable; +import com.microsoft.azure.management.network.v2018_06_01.ServiceEndpointPropertiesFormat; +import com.microsoft.azure.management.network.v2018_06_01.IPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ResourceNavigationLink; +import com.microsoft.azure.management.network.v2018_06_01.NetworkSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.RouteTable; class SubnetImpl extends CreatableUpdatableImpl implements Subnet, Subnet.Definition, Subnet.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetInner.java index 118230854a19..b1f08dbffe5c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetInner.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ServiceEndpointPropertiesFormat; -import com.microsoft.azure.management.network.v2018_05_01.IPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.ResourceNavigationLink; +import com.microsoft.azure.management.network.v2018_06_01.ServiceEndpointPropertiesFormat; +import com.microsoft.azure.management.network.v2018_06_01.IPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.ResourceNavigationLink; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetsImpl.java similarity index 92% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetsImpl.java index 14ced43bd4cd..163a60333ad1 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetsImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.Subnets; +import com.microsoft.azure.management.network.v2018_06_01.Subnets; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.Subnet; +import com.microsoft.azure.management.network.v2018_06_01.Subnet; class SubnetsImpl extends WrapperImpl implements Subnets { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetsInner.java index 7792af9fac8a..05a6e8d3681a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/SubnetsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/SubnetsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -61,31 +61,31 @@ public SubnetsInner(Retrofit retrofit, NetworkManagementClientImpl client) { * used by Retrofit to perform actually REST calls. */ interface SubnetsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.Subnets delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Subnets delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subnetName") String subnetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Subnets beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Subnets beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subnetName") String subnetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Subnets get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Subnets get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subnetName") String subnetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.Subnets createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Subnets createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subnetName") String subnetName, @Path("subscriptionId") String subscriptionId, @Body SubnetInner subnetParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Subnets beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Subnets beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subnetName") String subnetName, @Path("subscriptionId") String subscriptionId, @Body SubnetInner subnetParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Subnets list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Subnets list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Subnets listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Subnets listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -159,7 +159,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, virtualNetworkName, subnetName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -232,7 +232,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, virtualNetworkName, subnetName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -325,7 +325,7 @@ public Observable> getWithServiceResponseAsync(Stri if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.get(resourceGroupName, virtualNetworkName, subnetName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -414,7 +414,7 @@ public Observable> getWithServiceResponseAsync(Stri if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, virtualNetworkName, subnetName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -513,7 +513,7 @@ public Observable> createOrUpdateWithServiceRespons throw new IllegalArgumentException("Parameter subnetParameters is required and cannot be null."); } Validator.validate(subnetParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, virtualNetworkName, subnetName, this.client.subscriptionId(), subnetParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -595,7 +595,7 @@ public Observable> beginCreateOrUpdateWithServiceRe throw new IllegalArgumentException("Parameter subnetParameters is required and cannot be null."); } Validator.validate(subnetParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, virtualNetworkName, subnetName, this.client.subscriptionId(), subnetParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -717,7 +717,7 @@ public Observable>> listSinglePageAsync(final if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TopologyImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TopologyImpl.java similarity index 85% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TopologyImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TopologyImpl.java index 771739f5292c..00483a490dc5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TopologyImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TopologyImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.Topology; +import com.microsoft.azure.management.network.v2018_06_01.Topology; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import org.joda.time.DateTime; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.TopologyResource; +import com.microsoft.azure.management.network.v2018_06_01.TopologyResource; class TopologyImpl extends WrapperImpl implements Topology { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TopologyInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TopologyInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TopologyInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TopologyInner.java index 37bd63b11cbb..d9a93951a12b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TopologyInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TopologyInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import org.joda.time.DateTime; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.TopologyResource; +import com.microsoft.azure.management.network.v2018_06_01.TopologyResource; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TroubleshootingResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TroubleshootingResultImpl.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TroubleshootingResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TroubleshootingResultImpl.java index 882fa6b2090b..a9ddb601ee3a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TroubleshootingResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TroubleshootingResultImpl.java @@ -6,13 +6,13 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.TroubleshootingResult; +import com.microsoft.azure.management.network.v2018_06_01.TroubleshootingResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import org.joda.time.DateTime; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.TroubleshootingDetails; +import com.microsoft.azure.management.network.v2018_06_01.TroubleshootingDetails; class TroubleshootingResultImpl extends WrapperImpl implements TroubleshootingResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TroubleshootingResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TroubleshootingResultInner.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TroubleshootingResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TroubleshootingResultInner.java index 123ef2c83e3a..2ac669a4d080 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/TroubleshootingResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/TroubleshootingResultInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import org.joda.time.DateTime; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.TroubleshootingDetails; +import com.microsoft.azure.management.network.v2018_06_01.TroubleshootingDetails; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsageImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsageImpl.java similarity index 85% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsageImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsageImpl.java index 6c43d00007a6..0a45fe98cae7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsageImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsageImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.Usage; +import com.microsoft.azure.management.network.v2018_06_01.Usage; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.UsageName; +import com.microsoft.azure.management.network.v2018_06_01.UsageName; class UsageImpl extends WrapperImpl implements Usage { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsageInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsageInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsageInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsageInner.java index 3ffecf883997..53a7e9f648d8 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsageInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsageInner.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.UsageName; +import com.microsoft.azure.management.network.v2018_06_01.UsageName; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsagesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsagesImpl.java similarity index 87% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsagesImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsagesImpl.java index fef491ad3630..b52e5d0c10f3 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsagesImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsagesImpl.java @@ -7,14 +7,14 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.Usages; +import com.microsoft.azure.management.network.v2018_06_01.Usages; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.Usage; +import com.microsoft.azure.management.network.v2018_06_01.Usage; class UsagesImpl extends WrapperImpl implements Usages { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsagesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsagesInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsagesInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsagesInner.java index aebada326022..3f6c54316c34 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/UsagesInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/UsagesInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -56,11 +56,11 @@ public UsagesInner(Retrofit retrofit, NetworkManagementClientImpl client) { * used by Retrofit to perform actually REST calls. */ interface UsagesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.Usages list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Usages list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages") Observable> list(@Path("location") String location, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.Usages listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.Usages listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -157,7 +157,7 @@ public Observable>> listSinglePageAsync(final S if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(location, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VerificationIPFlowResultImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VerificationIPFlowResultImpl.java similarity index 82% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VerificationIPFlowResultImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VerificationIPFlowResultImpl.java index c472420f272e..fa0503314a85 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VerificationIPFlowResultImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VerificationIPFlowResultImpl.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.VerificationIPFlowResult; +import com.microsoft.azure.management.network.v2018_06_01.VerificationIPFlowResult; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.Access; +import com.microsoft.azure.management.network.v2018_06_01.Access; class VerificationIPFlowResultImpl extends WrapperImpl implements VerificationIPFlowResult { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VerificationIPFlowResultInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VerificationIPFlowResultInner.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VerificationIPFlowResultInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VerificationIPFlowResultInner.java index 13994c02c91d..21fb003a4690 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VerificationIPFlowResultInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VerificationIPFlowResultInner.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.Access; +import com.microsoft.azure.management.network.v2018_06_01.Access; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubImpl.java new file mode 100644 index 000000000000..a8ec23e5a920 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubImpl.java @@ -0,0 +1,106 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.VirtualHub; +import rx.Observable; +import com.microsoft.azure.SubResource; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import java.util.ArrayList; +import com.microsoft.azure.management.network.v2018_06_01.HubVirtualNetworkConnection; + +class VirtualHubImpl extends GroupableResourceCoreImpl implements VirtualHub, VirtualHub.Definition, VirtualHub.Update { + VirtualHubImpl(String name, VirtualHubInner inner, NetworkManager manager) { + super(name, inner, manager); + } + + @Override + public Observable createResourceAsync() { + VirtualHubsInner client = this.manager().inner().virtualHubs(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + VirtualHubsInner client = this.manager().inner().virtualHubs(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + VirtualHubsInner client = this.manager().inner().virtualHubs(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public String addressPrefix() { + return this.inner().addressPrefix(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public List hubVirtualNetworkConnections() { + List lst = new ArrayList(); + if (this.inner().hubVirtualNetworkConnections() != null) { + for (HubVirtualNetworkConnectionInner inner : this.inner().hubVirtualNetworkConnections()) { + lst.add( new HubVirtualNetworkConnectionImpl(inner, manager())); + } + } + return lst; + } + + @Override + public ProvisioningState provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public SubResource virtualWan() { + return this.inner().virtualWan(); + } + + @Override + public VirtualHubImpl withAddressPrefix(String addressPrefix) { + this.inner().withAddressPrefix(addressPrefix); + return this; + } + + @Override + public VirtualHubImpl withHubVirtualNetworkConnections(List hubVirtualNetworkConnections) { + this.inner().withHubVirtualNetworkConnections(hubVirtualNetworkConnections); + return this; + } + + @Override + public VirtualHubImpl withProvisioningState(ProvisioningState provisioningState) { + this.inner().withProvisioningState(provisioningState); + return this; + } + + @Override + public VirtualHubImpl withVirtualWan(SubResource virtualWan) { + this.inner().withVirtualWan(virtualWan); + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubInner.java new file mode 100644 index 000000000000..80531450f02a --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubInner.java @@ -0,0 +1,172 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.SubResource; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VirtualHub Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VirtualHubInner extends Resource { + /** + * The VirtualWAN to which the VirtualHub belongs. + */ + @JsonProperty(value = "properties.virtualWan") + private SubResource virtualWan; + + /** + * list of all vnet connections with this VirtualHub. + */ + @JsonProperty(value = "properties.hubVirtualNetworkConnections") + private List hubVirtualNetworkConnections; + + /** + * Address-prefix for this VirtualHub. + */ + @JsonProperty(value = "properties.addressPrefix") + private String addressPrefix; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get the VirtualWAN to which the VirtualHub belongs. + * + * @return the virtualWan value + */ + public SubResource virtualWan() { + return this.virtualWan; + } + + /** + * Set the VirtualWAN to which the VirtualHub belongs. + * + * @param virtualWan the virtualWan value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withVirtualWan(SubResource virtualWan) { + this.virtualWan = virtualWan; + return this; + } + + /** + * Get list of all vnet connections with this VirtualHub. + * + * @return the hubVirtualNetworkConnections value + */ + public List hubVirtualNetworkConnections() { + return this.hubVirtualNetworkConnections; + } + + /** + * Set list of all vnet connections with this VirtualHub. + * + * @param hubVirtualNetworkConnections the hubVirtualNetworkConnections value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withHubVirtualNetworkConnections(List hubVirtualNetworkConnections) { + this.hubVirtualNetworkConnections = hubVirtualNetworkConnections; + return this; + } + + /** + * Get address-prefix for this VirtualHub. + * + * @return the addressPrefix value + */ + public String addressPrefix() { + return this.addressPrefix; + } + + /** + * Set address-prefix for this VirtualHub. + * + * @param addressPrefix the addressPrefix value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withAddressPrefix(String addressPrefix) { + this.addressPrefix = addressPrefix; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubsImpl.java new file mode 100644 index 000000000000..3e2a2d5f9c83 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubsImpl.java @@ -0,0 +1,138 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.VirtualHubs; +import com.microsoft.azure.management.network.v2018_06_01.VirtualHub; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; + +class VirtualHubsImpl extends GroupableResourcesCoreImpl implements VirtualHubs { + protected VirtualHubsImpl(NetworkManager manager) { + super(manager.inner().virtualHubs(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + VirtualHubsInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + VirtualHubsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + VirtualHubsInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + VirtualHubsInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VirtualHub call(VirtualHubInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + VirtualHubsInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + VirtualHubsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VirtualHub call(VirtualHubInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public VirtualHubImpl define(String name) { + return wrapModel(name); + } + + @Override + protected VirtualHubImpl wrapModel(VirtualHubInner inner) { + return new VirtualHubImpl(inner.name(), inner, manager()); + } + + @Override + protected VirtualHubImpl wrapModel(String name) { + return new VirtualHubImpl(name, new VirtualHubInner(), this.manager()); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubsInner.java new file mode 100644 index 000000000000..cbd31834f606 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualHubsInner.java @@ -0,0 +1,1274 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.v2018_06_01.ErrorException; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VirtualHubs. + */ +public class VirtualHubsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private VirtualHubsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VirtualHubsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VirtualHubsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VirtualHubsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VirtualHubs to be + * used by Retrofit to perform actually REST calls. + */ + interface VirtualHubsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualHubs getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualHubs createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Body VirtualHubInner virtualHubParameters, @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.management.network.v2018_06_01.VirtualHubs beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Body VirtualHubInner virtualHubParameters, @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.management.network.v2018_06_01.VirtualHubs updateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject virtualHubParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualHubs beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> beginUpdateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject virtualHubParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualHubs delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualHubs beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualHubs listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualHubs list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualHubs listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_06_01.VirtualHubs listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner getByResourceGroup(String resourceGroupName, String virtualHubName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Retrieves the details of a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String virtualHubName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner createOrUpdate(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).toBlocking().last().body(); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters), serviceCallback); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + if (virtualHubParameters == null) { + throw new IllegalArgumentException("Parameter virtualHubParameters is required and cannot be null."); + } + Validator.validate(virtualHubParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, virtualHubParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner beginCreateOrUpdate(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).toBlocking().single().body(); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters), serviceCallback); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + if (virtualHubParameters == null) { + throw new IllegalArgumentException("Parameter virtualHubParameters is required and cannot be null."); + } + Validator.validate(virtualHubParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, virtualHubParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner updateTags(String resourceGroupName, String virtualHubName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().last().body(); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String virtualHubName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject virtualHubParameters = new TagsObject(); + virtualHubParameters.withTags(null); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), virtualHubParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner updateTags(String resourceGroupName, String virtualHubName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags).toBlocking().last().body(); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualHubName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags), serviceCallback); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String virtualHubName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualHubName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject virtualHubParameters = new TagsObject(); + virtualHubParameters.withTags(tags); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), virtualHubParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner beginUpdateTags(String resourceGroupName, String virtualHubName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().single().body(); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualHubName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject virtualHubParameters = new TagsObject(); + virtualHubParameters.withTags(null); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), virtualHubParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner beginUpdateTags(String resourceGroupName, String virtualHubName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags).toBlocking().single().body(); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualHubName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags), serviceCallback); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualHubName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualHubName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject virtualHubParameters = new TagsObject(); + virtualHubParameters.withTags(tags); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), virtualHubParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateTagsDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String virtualHubName) { + deleteWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().last().body(); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String virtualHubName) { + return deleteWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String virtualHubName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().single().body(); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String virtualHubName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualHubInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualHubInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualHubInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualHubInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualHubInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualHubInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualHubInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualHubInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualMachineScaleSetNetworkInterfaceIPConfigurationImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualMachineScaleSetNetworkInterfaceIPConfigurationImpl.java similarity index 89% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualMachineScaleSetNetworkInterfaceIPConfigurationImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualMachineScaleSetNetworkInterfaceIPConfigurationImpl.java index 1ddbed9d5132..9fbf5df29747 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualMachineScaleSetNetworkInterfaceIPConfigurationImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualMachineScaleSetNetworkInterfaceIPConfigurationImpl.java @@ -6,21 +6,21 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.VirtualMachineScaleSetNetworkInterfaceIPConfiguration; import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; import rx.Observable; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationGatewayBackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationGatewayBackendAddressPool; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.ApplicationSecurityGroup; -import com.microsoft.azure.management.network.v2018_05_01.BackendAddressPool; -import com.microsoft.azure.management.network.v2018_05_01.InboundNatRule; -import com.microsoft.azure.management.network.v2018_05_01.IPVersion; -import com.microsoft.azure.management.network.v2018_05_01.IPAllocationMethod; -import com.microsoft.azure.management.network.v2018_05_01.PublicIPAddress; -import com.microsoft.azure.management.network.v2018_05_01.Subnet; +import com.microsoft.azure.management.network.v2018_06_01.ApplicationSecurityGroup; +import com.microsoft.azure.management.network.v2018_06_01.BackendAddressPool; +import com.microsoft.azure.management.network.v2018_06_01.InboundNatRule; +import com.microsoft.azure.management.network.v2018_06_01.IPVersion; +import com.microsoft.azure.management.network.v2018_06_01.IPAllocationMethod; +import com.microsoft.azure.management.network.v2018_06_01.PublicIPAddress; +import com.microsoft.azure.management.network.v2018_06_01.Subnet; class VirtualMachineScaleSetNetworkInterfaceIPConfigurationImpl extends IndexableRefreshableWrapperImpl implements VirtualMachineScaleSetNetworkInterfaceIPConfiguration { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionImpl.java index 93fe57a1a41c..11fcc5de545a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionImpl.java @@ -6,19 +6,19 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnection; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnection; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionType; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionStatus; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionType; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionStatus; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.TunnelConnectionHealth; +import com.microsoft.azure.management.network.v2018_06_01.TunnelConnectionHealth; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.IpsecPolicy; -import com.microsoft.azure.management.network.v2018_05_01.LocalNetworkGateway; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGateway; +import com.microsoft.azure.management.network.v2018_06_01.IpsecPolicy; +import com.microsoft.azure.management.network.v2018_06_01.LocalNetworkGateway; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateway; class VirtualNetworkGatewayConnectionImpl extends GroupableResourceCoreImpl implements VirtualNetworkGatewayConnection, VirtualNetworkGatewayConnection.Definition, VirtualNetworkGatewayConnection.Update { VirtualNetworkGatewayConnectionImpl(String name, VirtualNetworkGatewayConnectionInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionInner.java index bae7fbd8c9ea..5291e0849707 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionInner.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionType; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionStatus; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionType; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionStatus; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.TunnelConnectionHealth; +import com.microsoft.azure.management.network.v2018_06_01.TunnelConnectionHealth; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.IpsecPolicy; +import com.microsoft.azure.management.network.v2018_06_01.IpsecPolicy; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionListEntityImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionListEntityImpl.java similarity index 89% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionListEntityImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionListEntityImpl.java index d2e51755f979..c9ade2d22d87 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionListEntityImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionListEntityImpl.java @@ -6,19 +6,19 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionListEntity; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionListEntity; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionStatus; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionType; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionStatus; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionType; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.IpsecPolicy; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkConnectionGatewayReference; +import com.microsoft.azure.management.network.v2018_06_01.IpsecPolicy; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkConnectionGatewayReference; import com.microsoft.azure.SubResource; import java.util.Map; -import com.microsoft.azure.management.network.v2018_05_01.TunnelConnectionHealth; +import com.microsoft.azure.management.network.v2018_06_01.TunnelConnectionHealth; class VirtualNetworkGatewayConnectionListEntityImpl extends WrapperImpl implements VirtualNetworkGatewayConnectionListEntity { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionListEntityInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionListEntityInner.java similarity index 97% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionListEntityInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionListEntityInner.java index b6405a0fb337..4cb4ab07fb1c 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionListEntityInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionListEntityInner.java @@ -6,15 +6,15 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkConnectionGatewayReference; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionType; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionStatus; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkConnectionGatewayReference; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionType; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionStatus; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.TunnelConnectionHealth; +import com.microsoft.azure.management.network.v2018_06_01.TunnelConnectionHealth; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.IpsecPolicy; +import com.microsoft.azure.management.network.v2018_06_01.IpsecPolicy; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionsImpl.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionsImpl.java index 527267828955..292ffcd7aad7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionsImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnections; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnection; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnection; import rx.Observable; import rx.Completable; import java.util.ArrayList; @@ -22,8 +22,8 @@ import rx.functions.Func1; import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionSharedKey; -import com.microsoft.azure.management.network.v2018_05_01.ConnectionResetSharedKey; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionSharedKey; +import com.microsoft.azure.management.network.v2018_06_01.ConnectionResetSharedKey; class VirtualNetworkGatewayConnectionsImpl extends GroupableResourcesCoreImpl implements VirtualNetworkGatewayConnections { protected VirtualNetworkGatewayConnectionsImpl(NetworkManager manager) { @@ -104,9 +104,9 @@ public VirtualNetworkGatewayConnectionImpl define(String name) { } @Override - public Observable setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value) { + public Observable setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters) { VirtualNetworkGatewayConnectionsInner client = this.inner(); - return client.setSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, value) + return client.setSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters) .map(new Func1() { @Override public ConnectionSharedKey call(ConnectionSharedKeyInner inner) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionsInner.java similarity index 90% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionsInner.java index 97c0025c5263..24d2625beb4b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayConnectionsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayConnectionsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -15,7 +15,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -67,59 +67,59 @@ public VirtualNetworkGatewayConnectionsInner(Retrofit retrofit, NetworkManagemen * used by Retrofit to perform actually REST calls. */ interface VirtualNetworkGatewayConnectionsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnections createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Body VirtualNetworkGatewayConnectionInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Body VirtualNetworkGatewayConnectionInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnections beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnections setSharedKey" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections setSharedKey" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey") - Observable> setSharedKey(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ConnectionSharedKeyInner parameters, @Header("User-Agent") String userAgent); + Observable> setSharedKey(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Body ConnectionSharedKeyInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections beginSetSharedKey" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections beginSetSharedKey" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey") - Observable> beginSetSharedKey(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ConnectionSharedKeyInner parameters, @Header("User-Agent") String userAgent); + Observable> beginSetSharedKey(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Body ConnectionSharedKeyInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections getSharedKey" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections getSharedKey" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey") Observable> getSharedKey(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGatewayConnections resetSharedKey" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections resetSharedKey" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset") Observable> resetSharedKey(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ConnectionResetSharedKeyInner parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnections beginResetSharedKey" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections beginResetSharedKey" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset") Observable> beginResetSharedKey(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ConnectionResetSharedKeyInner parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnections listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnections listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -195,7 +195,7 @@ public Observable> createO throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -270,7 +270,7 @@ public Observable> beginCr throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -355,7 +355,7 @@ public Observable> getByRe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -438,7 +438,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -504,7 +504,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -536,9 +536,9 @@ private ServiceResponse beginDeleteDelegate(Response respons * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the VirtualNetworkGatewayConnectionListEntityInner object if successful. + * @return the VirtualNetworkGatewayConnectionInner object if successful. */ - public VirtualNetworkGatewayConnectionListEntityInner updateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName) { + public VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName) { return updateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName).toBlocking().last().body(); } @@ -551,7 +551,7 @@ public VirtualNetworkGatewayConnectionListEntityInner updateTags(String resource * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, final ServiceCallback serviceCallback) { + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName), serviceCallback); } @@ -563,10 +563,10 @@ public ServiceFuture updateTagsA * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { - return updateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName).map(new Func1, VirtualNetworkGatewayConnectionListEntityInner>() { + public Observable updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName).map(new Func1, VirtualNetworkGatewayConnectionInner>() { @Override - public VirtualNetworkGatewayConnectionListEntityInner call(ServiceResponse response) { + public VirtualNetworkGatewayConnectionInner call(ServiceResponse response) { return response.body(); } }); @@ -580,7 +580,7 @@ public VirtualNetworkGatewayConnectionListEntityInner call(ServiceResponse> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -590,12 +590,12 @@ public Observable tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); Observable> observable = service.updateTags(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** * Updates a virtual network gateway connection tags. @@ -606,9 +606,9 @@ public Observable tags) { + public VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { return updateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, tags).toBlocking().last().body(); } @@ -622,7 +622,7 @@ public VirtualNetworkGatewayConnectionListEntityInner updateTags(String resource * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags, final ServiceCallback serviceCallback) { + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, tags), serviceCallback); } @@ -635,10 +635,10 @@ public ServiceFuture updateTagsA * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { - return updateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, tags).map(new Func1, VirtualNetworkGatewayConnectionListEntityInner>() { + public Observable updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, tags).map(new Func1, VirtualNetworkGatewayConnectionInner>() { @Override - public VirtualNetworkGatewayConnectionListEntityInner call(ServiceResponse response) { + public VirtualNetworkGatewayConnectionInner call(ServiceResponse response) { return response.body(); } }); @@ -653,7 +653,7 @@ public VirtualNetworkGatewayConnectionListEntityInner call(ServiceResponse> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -664,11 +664,11 @@ public Observable> observable = service.updateTags(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** @@ -679,9 +679,9 @@ public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, final ServiceCallback serviceCallback) { + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName), serviceCallback); } @@ -704,12 +704,12 @@ public ServiceFuture beginUpdate * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the VirtualNetworkGatewayConnectionListEntityInner object + * @return the observable to the VirtualNetworkGatewayConnectionInner object */ - public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { - return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName).map(new Func1, VirtualNetworkGatewayConnectionListEntityInner>() { + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName).map(new Func1, VirtualNetworkGatewayConnectionInner>() { @Override - public VirtualNetworkGatewayConnectionListEntityInner call(ServiceResponse response) { + public VirtualNetworkGatewayConnectionInner call(ServiceResponse response) { return response.body(); } }); @@ -721,9 +721,9 @@ public VirtualNetworkGatewayConnectionListEntityInner call(ServiceResponse> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -733,16 +733,16 @@ public Observable tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); return service.beginUpdateTags(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -760,9 +760,9 @@ public Observable tags) { + public VirtualNetworkGatewayConnectionInner beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, tags).toBlocking().single().body(); } @@ -776,7 +776,7 @@ public VirtualNetworkGatewayConnectionListEntityInner beginUpdateTags(String res * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags, final ServiceCallback serviceCallback) { + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, tags), serviceCallback); } @@ -787,12 +787,12 @@ public ServiceFuture beginUpdate * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param tags Resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the VirtualNetworkGatewayConnectionListEntityInner object + * @return the observable to the VirtualNetworkGatewayConnectionInner object */ - public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { - return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, tags).map(new Func1, VirtualNetworkGatewayConnectionListEntityInner>() { + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, tags).map(new Func1, VirtualNetworkGatewayConnectionInner>() { @Override - public VirtualNetworkGatewayConnectionListEntityInner call(ServiceResponse response) { + public VirtualNetworkGatewayConnectionInner call(ServiceResponse response) { return response.body(); } }); @@ -805,9 +805,9 @@ public VirtualNetworkGatewayConnectionListEntityInner call(ServiceResponse> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, Map tags) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -818,15 +818,15 @@ public Observable, Observable>>() { + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -835,9 +835,9 @@ public Observable beginUpdateTagsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginUpdateTagsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -847,14 +847,14 @@ private ServiceResponse beginUpd * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param value The virtual network connection shared key value. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ConnectionSharedKeyInner object if successful. */ - public ConnectionSharedKeyInner setSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value) { - return setSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, value).toBlocking().last().body(); + public ConnectionSharedKeyInner setSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters) { + return setSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).toBlocking().last().body(); } /** @@ -862,13 +862,13 @@ public ConnectionSharedKeyInner setSharedKey(String resourceGroupName, String vi * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param value The virtual network connection shared key value. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(setSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, value), serviceCallback); + public ServiceFuture setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(setSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters), serviceCallback); } /** @@ -876,12 +876,12 @@ public ServiceFuture setSharedKeyAsync(String resource * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param value The virtual network connection shared key value. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value) { - return setSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, value).map(new Func1, ConnectionSharedKeyInner>() { + public Observable setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters) { + return setSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).map(new Func1, ConnectionSharedKeyInner>() { @Override public ConnectionSharedKeyInner call(ServiceResponse response) { return response.body(); @@ -894,11 +894,11 @@ public ConnectionSharedKeyInner call(ServiceResponse r * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param value The virtual network connection shared key value. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> setSharedKeyWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value) { + public Observable> setSharedKeyWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -908,13 +908,12 @@ public Observable> setSharedKeyWithSer if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (value == null) { - throw new IllegalArgumentException("Parameter value is required and cannot be null."); + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - final String apiVersion = "2018-05-01"; - ConnectionSharedKeyInner parameters = new ConnectionSharedKeyInner(); - parameters.withValue(value); - Observable> observable = service.setSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); + Validator.validate(parameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.setSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -923,14 +922,14 @@ public Observable> setSharedKeyWithSer * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param value The virtual network connection shared key value. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ConnectionSharedKeyInner object if successful. */ - public ConnectionSharedKeyInner beginSetSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value) { - return beginSetSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, value).toBlocking().single().body(); + public ConnectionSharedKeyInner beginSetSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters) { + return beginSetSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).toBlocking().single().body(); } /** @@ -938,13 +937,13 @@ public ConnectionSharedKeyInner beginSetSharedKey(String resourceGroupName, Stri * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param value The virtual network connection shared key value. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginSetSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginSetSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, value), serviceCallback); + public ServiceFuture beginSetSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginSetSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters), serviceCallback); } /** @@ -952,12 +951,12 @@ public ServiceFuture beginSetSharedKeyAsync(String res * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param value The virtual network connection shared key value. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ConnectionSharedKeyInner object */ - public Observable beginSetSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value) { - return beginSetSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, value).map(new Func1, ConnectionSharedKeyInner>() { + public Observable beginSetSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters) { + return beginSetSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).map(new Func1, ConnectionSharedKeyInner>() { @Override public ConnectionSharedKeyInner call(ServiceResponse response) { return response.body(); @@ -970,11 +969,11 @@ public ConnectionSharedKeyInner call(ServiceResponse r * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param value The virtual network connection shared key value. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ConnectionSharedKeyInner object */ - public Observable> beginSetSharedKeyWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String value) { + public Observable> beginSetSharedKeyWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -984,13 +983,12 @@ public Observable> beginSetSharedKeyWi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (value == null) { - throw new IllegalArgumentException("Parameter value is required and cannot be null."); + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - final String apiVersion = "2018-05-01"; - ConnectionSharedKeyInner parameters = new ConnectionSharedKeyInner(); - parameters.withValue(value); - return service.beginSetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) + Validator.validate(parameters); + final String apiVersion = "2018-06-01"; + return service.beginSetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1074,7 +1072,7 @@ public Observable> getSharedKeyWithSer if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1187,7 +1185,7 @@ public Observable>> l if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1275,7 +1273,7 @@ public Observable> resetSharedKey if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; ConnectionResetSharedKeyInner parameters = new ConnectionResetSharedKeyInner(); parameters.withKeyLength(keyLength); Observable> observable = service.resetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -1348,7 +1346,7 @@ public Observable> beginResetShar if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; ConnectionResetSharedKeyInner parameters = new ConnectionResetSharedKeyInner(); parameters.withKeyLength(keyLength); return service.beginResetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayImpl.java similarity index 91% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayImpl.java index 80d0ec685b60..cf4fe999f00f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayImpl.java @@ -6,19 +6,19 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGateway; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateway; import rx.Observable; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayType; -import com.microsoft.azure.management.network.v2018_05_01.VpnType; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayType; +import com.microsoft.azure.management.network.v2018_06_01.VpnType; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewaySku; -import com.microsoft.azure.management.network.v2018_05_01.VpnClientConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.BgpSettings; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewaySku; +import com.microsoft.azure.management.network.v2018_06_01.VpnClientConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.BgpSettings; class VirtualNetworkGatewayImpl extends GroupableResourceCoreImpl implements VirtualNetworkGateway, VirtualNetworkGateway.Definition, VirtualNetworkGateway.Update { VirtualNetworkGatewayImpl(String name, VirtualNetworkGatewayInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayInner.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayInner.java index 583263b907ab..8edccb79ba5d 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewayInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewayInner.java @@ -6,16 +6,16 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import java.util.List; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayIPConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayType; -import com.microsoft.azure.management.network.v2018_05_01.VpnType; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayIPConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayType; +import com.microsoft.azure.management.network.v2018_06_01.VpnType; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewaySku; -import com.microsoft.azure.management.network.v2018_05_01.VpnClientConfiguration; -import com.microsoft.azure.management.network.v2018_05_01.BgpSettings; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewaySku; +import com.microsoft.azure.management.network.v2018_06_01.VpnClientConfiguration; +import com.microsoft.azure.management.network.v2018_06_01.BgpSettings; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewaysImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewaysImpl.java similarity index 83% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewaysImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewaysImpl.java index df10d4125c8b..605cbe0c8669 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewaysImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewaysImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGateways; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGateway; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateway; import rx.Observable; import rx.Completable; import java.util.ArrayList; @@ -22,11 +22,12 @@ import rx.functions.Func1; import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.BgpPeerStatusListResult; -import com.microsoft.azure.management.network.v2018_05_01.GatewayRouteListResult; -import com.microsoft.azure.management.network.v2018_05_01.VpnClientParameters; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGatewayConnectionListEntity; -import com.microsoft.azure.management.network.v2018_05_01.VpnDeviceScriptParameters; +import com.microsoft.azure.management.network.v2018_06_01.BgpPeerStatusListResult; +import com.microsoft.azure.management.network.v2018_06_01.GatewayRouteListResult; +import com.microsoft.azure.management.network.v2018_06_01.VpnClientIPsecParameters; +import com.microsoft.azure.management.network.v2018_06_01.VpnClientParameters; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGatewayConnectionListEntity; +import com.microsoft.azure.management.network.v2018_06_01.VpnDeviceScriptParameters; class VirtualNetworkGatewaysImpl extends GroupableResourcesCoreImpl implements VirtualNetworkGateways { protected VirtualNetworkGatewaysImpl(NetworkManager manager) { @@ -178,6 +179,30 @@ public GatewayRouteListResult call(GatewayRouteListResultInner inner) { }); } + @Override + public Observable setVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + VirtualNetworkGatewaysInner client = this.inner(); + return client.setVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams) + .map(new Func1() { + @Override + public VpnClientIPsecParameters call(VpnClientIPsecParametersInner inner) { + return new VpnClientIPsecParametersImpl(inner, manager()); + } + }); + } + + @Override + public Observable getVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName) { + VirtualNetworkGatewaysInner client = this.inner(); + return client.getVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName) + .map(new Func1() { + @Override + public VpnClientIPsecParameters call(VpnClientIPsecParametersInner inner) { + return new VpnClientIPsecParametersImpl(inner, manager()); + } + }); + } + @Override protected VirtualNetworkGatewayImpl wrapModel(VirtualNetworkGatewayInner inner) { return new VirtualNetworkGatewayImpl(inner.name(), inner, manager()); diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewaysInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewaysInner.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewaysInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewaysInner.java index bfde1920f47d..bdc1fc7f4891 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkGatewaysInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkGatewaysInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -15,9 +15,9 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; -import com.microsoft.azure.management.network.v2018_05_01.VpnClientParameters; -import com.microsoft.azure.management.network.v2018_05_01.VpnDeviceScriptParameters; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.VpnClientParameters; +import com.microsoft.azure.management.network.v2018_06_01.VpnDeviceScriptParameters; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -69,111 +69,127 @@ public VirtualNetworkGatewaysInner(Retrofit retrofit, NetworkManagementClientImp * used by Retrofit to perform actually REST calls. */ interface VirtualNetworkGatewaysService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGateways createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VirtualNetworkGatewayInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VirtualNetworkGatewayInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGateways beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkGateways listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways listConnections" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways listConnections" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections") Observable> listConnections(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways reset" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways reset" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset") Observable> reset(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("gatewayVip") String gatewayVip, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginReset" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginReset" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset") Observable> beginReset(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("gatewayVip") String gatewayVip, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways generatevpnclientpackage" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways generatevpnclientpackage" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage") Observable> generatevpnclientpackage(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VpnClientParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginGeneratevpnclientpackage" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginGeneratevpnclientpackage" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage") Observable> beginGeneratevpnclientpackage(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VpnClientParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways generateVpnProfile" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways generateVpnProfile" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile") Observable> generateVpnProfile(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VpnClientParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginGenerateVpnProfile" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginGenerateVpnProfile" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile") Observable> beginGenerateVpnProfile(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VpnClientParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways getVpnProfilePackageUrl" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways getVpnProfilePackageUrl" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl") Observable> getVpnProfilePackageUrl(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginGetVpnProfilePackageUrl" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginGetVpnProfilePackageUrl" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl") Observable> beginGetVpnProfilePackageUrl(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways getBgpPeerStatus" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways getBgpPeerStatus" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus") Observable> getBgpPeerStatus(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("peer") String peer, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginGetBgpPeerStatus" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginGetBgpPeerStatus" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus") Observable> beginGetBgpPeerStatus(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("peer") String peer, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways supportedVpnDevices" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways supportedVpnDevices" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices") Observable> supportedVpnDevices(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways getLearnedRoutes" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways getLearnedRoutes" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes") Observable> getLearnedRoutes(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginGetLearnedRoutes" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginGetLearnedRoutes" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes") Observable> beginGetLearnedRoutes(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways getAdvertisedRoutes" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways getAdvertisedRoutes" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes") Observable> getAdvertisedRoutes(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("peer") String peer, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways beginGetAdvertisedRoutes" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways beginGetAdvertisedRoutes" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes") Observable> beginGetAdvertisedRoutes(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("peer") String peer, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways vpnDeviceConfigurationScript" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways setVpnclientIpsecParameters" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters") + Observable> setVpnclientIpsecParameters(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VpnClientIPsecParametersInner vpnclientIpsecParams, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualNetworkGateways beginSetVpnclientIpsecParameters" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters") + Observable> beginSetVpnclientIpsecParameters(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VpnClientIPsecParametersInner vpnclientIpsecParams, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualNetworkGateways getVpnclientIpsecParameters" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters") + Observable> getVpnclientIpsecParameters(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualNetworkGateways beginGetVpnclientIpsecParameters" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters") + Observable> beginGetVpnclientIpsecParameters(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualNetworkGateways vpnDeviceConfigurationScript" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript") Observable> vpnDeviceConfigurationScript(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Body VpnDeviceScriptParameters parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkGateways listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_05_01.VirtualNetworkGateways listConnectionsNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkGateways listConnectionsNext" }) @GET Observable> listConnectionsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -249,7 +265,7 @@ public Observable> createOrUpdateWit throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -324,7 +340,7 @@ public Observable> beginCreateOrUpda throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -409,7 +425,7 @@ public Observable> getByResourceGrou if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -492,7 +508,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -558,7 +574,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -644,7 +660,7 @@ public Observable> updateTagsWithSer if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -718,7 +734,7 @@ public Observable> updateTagsWithSer throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -787,7 +803,7 @@ public Observable> beginUpdateTagsWi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -872,7 +888,7 @@ public Observable> beginUpdateTagsWi throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -987,7 +1003,7 @@ public Observable>> listByResou if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1108,7 +1124,7 @@ public Observable, Observable>>>() { @Override @@ -1192,7 +1208,7 @@ public Observable> resetWithServiceR if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String gatewayVip = null; Observable> observable = service.reset(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), gatewayVip, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); @@ -1263,7 +1279,7 @@ public Observable> resetWithServiceR if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.reset(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), gatewayVip, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1330,7 +1346,7 @@ public Observable> beginResetWithSer if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String gatewayVip = null; return service.beginReset(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), gatewayVip, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -1412,7 +1428,7 @@ public Observable> beginResetWithSer if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginReset(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), gatewayVip, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1505,7 +1521,7 @@ public Observable> generatevpnclientpackageWithServiceRe throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.generatevpnclientpackage(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1580,7 +1596,7 @@ public Observable> beginGeneratevpnclientpackageWithServ throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGeneratevpnclientpackage(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1672,7 +1688,7 @@ public Observable> generateVpnProfileWithServiceResponse throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.generateVpnProfile(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1747,7 +1763,7 @@ public Observable> beginGenerateVpnProfileWithServiceRes throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGenerateVpnProfile(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1832,7 +1848,7 @@ public Observable> getVpnProfilePackageUrlWithServiceRes if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getVpnProfilePackageUrl(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1899,7 +1915,7 @@ public Observable> beginGetVpnProfilePackageUrlWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetVpnProfilePackageUrl(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1984,7 +2000,7 @@ public Observable> getBgpPeerStatu if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String peer = null; Observable> observable = service.getBgpPeerStatus(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), peer, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); @@ -2055,7 +2071,7 @@ public Observable> getBgpPeerStatu if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getBgpPeerStatus(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), peer, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -2122,7 +2138,7 @@ public Observable> beginGetBgpPeer if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String peer = null; return service.beginGetBgpPeerStatus(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), peer, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -2204,7 +2220,7 @@ public Observable> beginGetBgpPeer if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetBgpPeerStatus(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), peer, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2289,7 +2305,7 @@ public Observable> supportedVpnDevicesWithServiceRespons if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.supportedVpnDevices(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2373,7 +2389,7 @@ public Observable> getLearnedRoutes if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getLearnedRoutes(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -2440,7 +2456,7 @@ public Observable> beginGetLearnedR if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetLearnedRoutes(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2532,7 +2548,7 @@ public Observable> getAdvertisedRou if (peer == null) { throw new IllegalArgumentException("Parameter peer is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.getAdvertisedRoutes(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), peer, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -2606,7 +2622,7 @@ public Observable> beginGetAdvertis if (peer == null) { throw new IllegalArgumentException("Parameter peer is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginGetAdvertisedRoutes(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), peer, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -2629,6 +2645,325 @@ private ServiceResponse beginGetAdvertisedRoutesDel .build(response); } + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnClientIPsecParametersInner object if successful. + */ + public VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + return setVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams).toBlocking().last().body(); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture setVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(setVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams), serviceCallback); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable setVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + return setVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams).map(new Func1, VpnClientIPsecParametersInner>() { + @Override + public VpnClientIPsecParametersInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> setVpnclientIpsecParametersWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualNetworkGatewayName == null) { + throw new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (vpnclientIpsecParams == null) { + throw new IllegalArgumentException("Parameter vpnclientIpsecParams is required and cannot be null."); + } + Validator.validate(vpnclientIpsecParams); + final String apiVersion = "2018-06-01"; + Observable> observable = service.setVpnclientIpsecParameters(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), vpnclientIpsecParams, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnClientIPsecParametersInner object if successful. + */ + public VpnClientIPsecParametersInner beginSetVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + return beginSetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams).toBlocking().single().body(); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginSetVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginSetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams), serviceCallback); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnClientIPsecParametersInner object + */ + public Observable beginSetVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + return beginSetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams).map(new Func1, VpnClientIPsecParametersInner>() { + @Override + public VpnClientIPsecParametersInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnClientIPsecParametersInner object + */ + public Observable> beginSetVpnclientIpsecParametersWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualNetworkGatewayName == null) { + throw new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (vpnclientIpsecParams == null) { + throw new IllegalArgumentException("Parameter vpnclientIpsecParams is required and cannot be null."); + } + Validator.validate(vpnclientIpsecParams); + final String apiVersion = "2018-06-01"; + return service.beginSetVpnclientIpsecParameters(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), vpnclientIpsecParams, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginSetVpnclientIpsecParametersDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginSetVpnclientIpsecParametersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnClientIPsecParametersInner object if successful. + */ + public VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName) { + return getVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).toBlocking().last().body(); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName), serviceCallback); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable getVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName) { + return getVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).map(new Func1, VpnClientIPsecParametersInner>() { + @Override + public VpnClientIPsecParametersInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> getVpnclientIpsecParametersWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualNetworkGatewayName == null) { + throw new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.getVpnclientIpsecParameters(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnClientIPsecParametersInner object if successful. + */ + public VpnClientIPsecParametersInner beginGetVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName) { + return beginGetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).toBlocking().single().body(); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginGetVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginGetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName), serviceCallback); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnClientIPsecParametersInner object + */ + public Observable beginGetVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName) { + return beginGetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).map(new Func1, VpnClientIPsecParametersInner>() { + @Override + public VpnClientIPsecParametersInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnClientIPsecParametersInner object + */ + public Observable> beginGetVpnclientIpsecParametersWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualNetworkGatewayName == null) { + throw new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginGetVpnclientIpsecParameters(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginGetVpnclientIpsecParametersDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginGetVpnclientIpsecParametersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Gets a xml format representation for vpn device configuration script. * @@ -2699,7 +3034,7 @@ public Observable> vpnDeviceConfigurationScriptWithServi throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.vpnDeviceConfigurationScript(resourceGroupName, virtualNetworkGatewayConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkImpl.java index 47cbbdc576a5..a4f39459bd24 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkImpl.java @@ -6,18 +6,18 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetwork; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetwork; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.AddressSpace; -import com.microsoft.azure.management.network.v2018_05_01.DhcpOptions; +import com.microsoft.azure.management.network.v2018_06_01.AddressSpace; +import com.microsoft.azure.management.network.v2018_06_01.DhcpOptions; import java.util.List; import com.microsoft.azure.SubResource; import java.util.ArrayList; -import com.microsoft.azure.management.network.v2018_05_01.Subnet; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkPeering; +import com.microsoft.azure.management.network.v2018_06_01.Subnet; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeering; class VirtualNetworkImpl extends GroupableResourceCoreImpl implements VirtualNetwork, VirtualNetwork.Definition, VirtualNetwork.Update { VirtualNetworkImpl(String name, VirtualNetworkInner inner, NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkInner.java index 2df431038fc4..62825f3b0110 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkInner.java @@ -6,10 +6,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.AddressSpace; -import com.microsoft.azure.management.network.v2018_05_01.DhcpOptions; +import com.microsoft.azure.management.network.v2018_06_01.AddressSpace; +import com.microsoft.azure.management.network.v2018_06_01.DhcpOptions; import java.util.List; import com.microsoft.azure.SubResource; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringImpl.java similarity index 96% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringImpl.java index f4ecd223b1a9..fc50beecef8a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringImpl.java @@ -6,14 +6,14 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkPeering; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeering; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.AddressSpace; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkPeeringState; +import com.microsoft.azure.management.network.v2018_06_01.AddressSpace; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeeringState; class VirtualNetworkPeeringImpl extends CreatableUpdatableImpl implements VirtualNetworkPeering, VirtualNetworkPeering.Definition, VirtualNetworkPeering.Update { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringInner.java index 4dec54b4c304..0e37f79a5110 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringInner.java @@ -6,11 +6,11 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.SubResource; -import com.microsoft.azure.management.network.v2018_05_01.AddressSpace; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkPeeringState; +import com.microsoft.azure.management.network.v2018_06_01.AddressSpace; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeeringState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringsImpl.java similarity index 93% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringsImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringsImpl.java index fe392ecf5a5c..5a0fb3a97a08 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringsImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringsImpl.java @@ -7,15 +7,15 @@ * */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkPeerings; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings; import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkPeering; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeering; class VirtualNetworkPeeringsImpl extends WrapperImpl implements VirtualNetworkPeerings { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringsInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringsInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringsInner.java index 4cde828485d6..6cae994586fa 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkPeeringsInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkPeeringsInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; @@ -61,31 +61,31 @@ public VirtualNetworkPeeringsInner(Retrofit retrofit, NetworkManagementClientImp * used by Retrofit to perform actually REST calls. */ interface VirtualNetworkPeeringsService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkPeerings delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("virtualNetworkPeeringName") String virtualNetworkPeeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkPeerings beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("virtualNetworkPeeringName") String virtualNetworkPeeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkPeerings get" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("virtualNetworkPeeringName") String virtualNetworkPeeringName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkPeerings createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("virtualNetworkPeeringName") String virtualNetworkPeeringName, @Path("subscriptionId") String subscriptionId, @Body VirtualNetworkPeeringInner virtualNetworkPeeringParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkPeerings beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("virtualNetworkPeeringName") String virtualNetworkPeeringName, @Path("subscriptionId") String subscriptionId, @Body VirtualNetworkPeeringInner virtualNetworkPeeringParameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkPeerings list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings") Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworkPeerings listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkPeerings listNext" }) @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -159,7 +159,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -232,7 +232,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -325,7 +325,7 @@ public Observable> getWithServiceRes if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.get(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -424,7 +424,7 @@ public Observable> createOrUpdateWit throw new IllegalArgumentException("Parameter virtualNetworkPeeringParameters is required and cannot be null."); } Validator.validate(virtualNetworkPeeringParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, this.client.subscriptionId(), virtualNetworkPeeringParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -506,7 +506,7 @@ public Observable> beginCreateOrUpda throw new IllegalArgumentException("Parameter virtualNetworkPeeringParameters is required and cannot be null."); } Validator.validate(virtualNetworkPeeringParameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, this.client.subscriptionId(), virtualNetworkPeeringParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -628,7 +628,7 @@ public Observable>> listSingleP if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkUsageImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkUsageImpl.java similarity index 86% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkUsageImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkUsageImpl.java index e277fa337fc7..5cba0b31af2a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkUsageImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkUsageImpl.java @@ -6,12 +6,12 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkUsage; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkUsage; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import rx.Observable; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkUsageName; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkUsageName; class VirtualNetworkUsageImpl extends WrapperImpl implements VirtualNetworkUsage { private final NetworkManager manager; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkUsageInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkUsageInner.java similarity index 94% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkUsageInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkUsageInner.java index 9ae4d50b2606..f74f2e22cad7 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworkUsageInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworkUsageInner.java @@ -6,9 +6,9 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkUsageName; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkUsageName; import com.fasterxml.jackson.annotation.JsonProperty; /** diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworksImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworksImpl.java similarity index 95% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworksImpl.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworksImpl.java index 9b43219b6a13..59b52074a42b 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworksImpl.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworksImpl.java @@ -7,11 +7,11 @@ * def */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworks; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetwork; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetwork; import rx.Observable; import rx.Completable; import java.util.ArrayList; @@ -22,8 +22,8 @@ import rx.functions.Func1; import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -import com.microsoft.azure.management.network.v2018_05_01.IPAddressAvailabilityResult; -import com.microsoft.azure.management.network.v2018_05_01.VirtualNetworkUsage; +import com.microsoft.azure.management.network.v2018_06_01.IPAddressAvailabilityResult; +import com.microsoft.azure.management.network.v2018_06_01.VirtualNetworkUsage; class VirtualNetworksImpl extends GroupableResourcesCoreImpl implements VirtualNetworks { protected VirtualNetworksImpl(NetworkManager manager) { diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworksInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworksInner.java similarity index 98% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworksInner.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworksInner.java index df59094b1039..e5fe5d037c2f 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/VirtualNetworksInner.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualNetworksInner.java @@ -6,7 +6,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; import com.microsoft.azure.arm.collection.InnerSupportsGet; import com.microsoft.azure.arm.collection.InnerSupportsDelete; @@ -16,7 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.network.v2018_05_01.TagsObject; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -67,59 +67,59 @@ public VirtualNetworksInner(Retrofit retrofit, NetworkManagementClientImpl clien * used by Retrofit to perform actually REST calls. */ interface VirtualNetworksService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworks delete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworks beginDelete" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", method = "DELETE", hasBody = true) Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworks getByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.management.network.v2018_05_01.VirtualNetworks createOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Body VirtualNetworkInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworks beginCreateOrUpdate" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Body VirtualNetworkInner parameters, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworks updateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworks beginUpdateTags" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks beginUpdateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_05_01.VirtualNetworks list" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks") Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworks listByResourceGroup" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks") Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworks checkIPAddressAvailability" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks checkIPAddressAvailability" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability") Observable> checkIPAddressAvailability(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("ipAddress") String ipAddress, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworks listUsage" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks listUsage" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages") Observable> listUsage(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_05_01.VirtualNetworks listNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks listNext" }) @GET Observable> listNext(@Url String nextUrl, @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.management.network.v2018_05_01.VirtualNetworks listByResourceGroupNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks listByResourceGroupNext" }) @GET Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_05_01.VirtualNetworks listUsageNext" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualNetworks listUsageNext" }) @GET Observable> listUsageNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -186,7 +186,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.delete(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -252,7 +252,7 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginDelete(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -338,7 +338,7 @@ public Observable> getByResourceGroupWithSe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String expand = null; return service.getByResourceGroup(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -420,7 +420,7 @@ public Observable> getByResourceGroupWithSe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.getByResourceGroup(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -512,7 +512,7 @@ public Observable> createOrUpdateWithServic throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; Observable> observable = service.createOrUpdate(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -587,7 +587,7 @@ public Observable> beginCreateOrUpdateWithS throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.beginCreateOrUpdate(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -672,7 +672,7 @@ public Observable> updateTagsWithServiceRes if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -746,7 +746,7 @@ public Observable> updateTagsWithServiceRes throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); Observable> observable = service.updateTags(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); @@ -815,7 +815,7 @@ public Observable> beginUpdateTagsWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); @@ -900,7 +900,7 @@ public Observable> beginUpdateTagsWithServi throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); return service.beginUpdateTags(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) @@ -1007,7 +1007,7 @@ public Observable>> listSinglePageAsyn if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1120,7 +1120,7 @@ public Observable>> listByResourceGrou if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -1204,7 +1204,7 @@ public Observable> checkIPAddr if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; final String ipAddress = null; return service.checkIPAddressAvailability(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), ipAddress, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -1286,7 +1286,7 @@ public Observable> checkIPAddr if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.checkIPAddressAvailability(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), ipAddress, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -1407,7 +1407,7 @@ public Observable>> listUsageSing if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-05-01"; + final String apiVersion = "2018-06-01"; return service.listUsage(resourceGroupName, virtualNetworkName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANImpl.java new file mode 100644 index 000000000000..5965ad14e439 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANImpl.java @@ -0,0 +1,86 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.VirtualWAN; +import rx.Observable; +import java.util.List; +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; + +class VirtualWANImpl extends GroupableResourceCoreImpl implements VirtualWAN, VirtualWAN.Definition, VirtualWAN.Update { + VirtualWANImpl(String name, VirtualWANInner inner, NetworkManager manager) { + super(name, inner, manager); + } + + @Override + public Observable createResourceAsync() { + VirtualWANsInner client = this.manager().inner().virtualWANs(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + VirtualWANsInner client = this.manager().inner().virtualWANs(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + VirtualWANsInner client = this.manager().inner().virtualWANs(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public Boolean disableVpnEncryption() { + return this.inner().disableVpnEncryption(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public ProvisioningState provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public List virtualHubs() { + return this.inner().virtualHubs(); + } + + @Override + public List vpnSites() { + return this.inner().vpnSites(); + } + + @Override + public VirtualWANImpl withDisableVpnEncryption(Boolean disableVpnEncryption) { + this.inner().withDisableVpnEncryption(disableVpnEncryption); + return this; + } + + @Override + public VirtualWANImpl withProvisioningState(ProvisioningState provisioningState) { + this.inner().withProvisioningState(provisioningState); + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANInner.java new file mode 100644 index 000000000000..5a2763320069 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANInner.java @@ -0,0 +1,150 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import java.util.List; +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VirtualWAN Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VirtualWANInner extends Resource { + /** + * Vpn encryption to be disabled or not. + */ + @JsonProperty(value = "properties.disableVpnEncryption") + private Boolean disableVpnEncryption; + + /** + * List of VirtualHubs in the VirtualWAN. + */ + @JsonProperty(value = "properties.virtualHubs", access = JsonProperty.Access.WRITE_ONLY) + private List virtualHubs; + + /** + * The vpnSites property. + */ + @JsonProperty(value = "properties.vpnSites", access = JsonProperty.Access.WRITE_ONLY) + private List vpnSites; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get vpn encryption to be disabled or not. + * + * @return the disableVpnEncryption value + */ + public Boolean disableVpnEncryption() { + return this.disableVpnEncryption; + } + + /** + * Set vpn encryption to be disabled or not. + * + * @param disableVpnEncryption the disableVpnEncryption value to set + * @return the VirtualWANInner object itself. + */ + public VirtualWANInner withDisableVpnEncryption(Boolean disableVpnEncryption) { + this.disableVpnEncryption = disableVpnEncryption; + return this; + } + + /** + * Get list of VirtualHubs in the VirtualWAN. + * + * @return the virtualHubs value + */ + public List virtualHubs() { + return this.virtualHubs; + } + + /** + * Get the vpnSites value. + * + * @return the vpnSites value + */ + public List vpnSites() { + return this.vpnSites; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VirtualWANInner object itself. + */ + public VirtualWANInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VirtualWANInner object itself. + */ + public VirtualWANInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANsImpl.java new file mode 100644 index 000000000000..a74c1db6746d --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANsImpl.java @@ -0,0 +1,138 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.VirtualWANs; +import com.microsoft.azure.management.network.v2018_06_01.VirtualWAN; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; + +class VirtualWANsImpl extends GroupableResourcesCoreImpl implements VirtualWANs { + protected VirtualWANsImpl(NetworkManager manager) { + super(manager.inner().virtualWANs(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + VirtualWANsInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + VirtualWANsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + VirtualWANsInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + VirtualWANsInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VirtualWAN call(VirtualWANInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + VirtualWANsInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + VirtualWANsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VirtualWAN call(VirtualWANInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public VirtualWANImpl define(String name) { + return wrapModel(name); + } + + @Override + protected VirtualWANImpl wrapModel(VirtualWANInner inner) { + return new VirtualWANImpl(inner.name(), inner, manager()); + } + + @Override + protected VirtualWANImpl wrapModel(String name) { + return new VirtualWANImpl(name, new VirtualWANInner(), this.manager()); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANsInner.java new file mode 100644 index 000000000000..0ab80de3aaed --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VirtualWANsInner.java @@ -0,0 +1,1274 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.v2018_06_01.ErrorException; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VirtualWANs. + */ +public class VirtualWANsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private VirtualWANsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VirtualWANsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VirtualWANsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VirtualWANsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VirtualWANs to be + * used by Retrofit to perform actually REST calls. + */ + interface VirtualWANsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualWANs getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualWANs createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Body VirtualWANInner wANParameters, @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.management.network.v2018_06_01.VirtualWANs beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Body VirtualWANInner wANParameters, @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.management.network.v2018_06_01.VirtualWANs updateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject wANParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualWANs beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> beginUpdateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject wANParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VirtualWANs delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualWANs beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualWANs listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualWANs list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VirtualWANs listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_06_01.VirtualWANs listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner getByResourceGroup(String resourceGroupName, String virtualWANName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Retrieves the details of a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String virtualWANName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(resourceGroupName, virtualWANName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner createOrUpdate(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).toBlocking().last().body(); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters), serviceCallback); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (wANParameters == null) { + throw new IllegalArgumentException("Parameter wANParameters is required and cannot be null."); + } + Validator.validate(wANParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, wANParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner beginCreateOrUpdate(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).toBlocking().single().body(); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters), serviceCallback); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (wANParameters == null) { + throw new IllegalArgumentException("Parameter wANParameters is required and cannot be null."); + } + Validator.validate(wANParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, wANParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner updateTags(String resourceGroupName, String virtualWANName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().last().body(); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String virtualWANName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject wANParameters = new TagsObject(); + wANParameters.withTags(null); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner updateTags(String resourceGroupName, String virtualWANName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).toBlocking().last().body(); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualWANName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags), serviceCallback); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String virtualWANName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject wANParameters = new TagsObject(); + wANParameters.withTags(tags); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner beginUpdateTags(String resourceGroupName, String virtualWANName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body(); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualWANName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject wANParameters = new TagsObject(); + wANParameters.withTags(null); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner beginUpdateTags(String resourceGroupName, String virtualWANName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).toBlocking().single().body(); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualWANName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags), serviceCallback); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualWANName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject wANParameters = new TagsObject(); + wANParameters.withTags(tags); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateTagsDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String virtualWANName) { + deleteWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().last().body(); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String virtualWANName) { + return deleteWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String virtualWANName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body(); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String virtualWANName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualWANInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VirtualWan. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualWANInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualWANInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualWANInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnClientIPsecParametersImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnClientIPsecParametersImpl.java new file mode 100644 index 000000000000..5b2209172f04 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnClientIPsecParametersImpl.java @@ -0,0 +1,72 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.management.network.v2018_06_01.VpnClientIPsecParameters; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.network.v2018_06_01.DhGroup; +import com.microsoft.azure.management.network.v2018_06_01.IkeEncryption; +import com.microsoft.azure.management.network.v2018_06_01.IkeIntegrity; +import com.microsoft.azure.management.network.v2018_06_01.IpsecEncryption; +import com.microsoft.azure.management.network.v2018_06_01.IpsecIntegrity; +import com.microsoft.azure.management.network.v2018_06_01.PfsGroup; + +class VpnClientIPsecParametersImpl extends WrapperImpl implements VpnClientIPsecParameters { + private final NetworkManager manager; + VpnClientIPsecParametersImpl(VpnClientIPsecParametersInner inner, NetworkManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NetworkManager manager() { + return this.manager; + } + + @Override + public DhGroup dhGroup() { + return this.inner().dhGroup(); + } + + @Override + public IkeEncryption ikeEncryption() { + return this.inner().ikeEncryption(); + } + + @Override + public IkeIntegrity ikeIntegrity() { + return this.inner().ikeIntegrity(); + } + + @Override + public IpsecEncryption ipsecEncryption() { + return this.inner().ipsecEncryption(); + } + + @Override + public IpsecIntegrity ipsecIntegrity() { + return this.inner().ipsecIntegrity(); + } + + @Override + public PfsGroup pfsGroup() { + return this.inner().pfsGroup(); + } + + @Override + public int saDataSizeKilobytes() { + return this.inner().saDataSizeKilobytes(); + } + + @Override + public int saLifeTimeSeconds() { + return this.inner().saLifeTimeSeconds(); + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientIPsecParameters.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnClientIPsecParametersInner.java similarity index 80% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientIPsecParameters.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnClientIPsecParametersInner.java index 9e43dd8cdc01..6b4f357901db 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/VpnClientIPsecParameters.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnClientIPsecParametersInner.java @@ -6,14 +6,20 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.network.v2018_05_01; - +package com.microsoft.azure.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.management.network.v2018_06_01.IpsecEncryption; +import com.microsoft.azure.management.network.v2018_06_01.IpsecIntegrity; +import com.microsoft.azure.management.network.v2018_06_01.IkeEncryption; +import com.microsoft.azure.management.network.v2018_06_01.IkeIntegrity; +import com.microsoft.azure.management.network.v2018_06_01.DhGroup; +import com.microsoft.azure.management.network.v2018_06_01.PfsGroup; import com.fasterxml.jackson.annotation.JsonProperty; /** * An IPSec parameters for a virtual network gateway P2S connection. */ -public class VpnClientIPsecParameters { +public class VpnClientIPsecParametersInner { /** * The IPSec Security Association (also called Quick Mode or Phase 2 SA) * lifetime in seconds for P2S client. @@ -86,9 +92,9 @@ public int saLifeTimeSeconds() { * Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. * * @param saLifeTimeSeconds the saLifeTimeSeconds value to set - * @return the VpnClientIPsecParameters object itself. + * @return the VpnClientIPsecParametersInner object itself. */ - public VpnClientIPsecParameters withSaLifeTimeSeconds(int saLifeTimeSeconds) { + public VpnClientIPsecParametersInner withSaLifeTimeSeconds(int saLifeTimeSeconds) { this.saLifeTimeSeconds = saLifeTimeSeconds; return this; } @@ -106,9 +112,9 @@ public int saDataSizeKilobytes() { * Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. * * @param saDataSizeKilobytes the saDataSizeKilobytes value to set - * @return the VpnClientIPsecParameters object itself. + * @return the VpnClientIPsecParametersInner object itself. */ - public VpnClientIPsecParameters withSaDataSizeKilobytes(int saDataSizeKilobytes) { + public VpnClientIPsecParametersInner withSaDataSizeKilobytes(int saDataSizeKilobytes) { this.saDataSizeKilobytes = saDataSizeKilobytes; return this; } @@ -126,9 +132,9 @@ public IpsecEncryption ipsecEncryption() { * Set the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @param ipsecEncryption the ipsecEncryption value to set - * @return the VpnClientIPsecParameters object itself. + * @return the VpnClientIPsecParametersInner object itself. */ - public VpnClientIPsecParameters withIpsecEncryption(IpsecEncryption ipsecEncryption) { + public VpnClientIPsecParametersInner withIpsecEncryption(IpsecEncryption ipsecEncryption) { this.ipsecEncryption = ipsecEncryption; return this; } @@ -146,9 +152,9 @@ public IpsecIntegrity ipsecIntegrity() { * Set the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @param ipsecIntegrity the ipsecIntegrity value to set - * @return the VpnClientIPsecParameters object itself. + * @return the VpnClientIPsecParametersInner object itself. */ - public VpnClientIPsecParameters withIpsecIntegrity(IpsecIntegrity ipsecIntegrity) { + public VpnClientIPsecParametersInner withIpsecIntegrity(IpsecIntegrity ipsecIntegrity) { this.ipsecIntegrity = ipsecIntegrity; return this; } @@ -166,9 +172,9 @@ public IkeEncryption ikeEncryption() { * Set the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'. * * @param ikeEncryption the ikeEncryption value to set - * @return the VpnClientIPsecParameters object itself. + * @return the VpnClientIPsecParametersInner object itself. */ - public VpnClientIPsecParameters withIkeEncryption(IkeEncryption ikeEncryption) { + public VpnClientIPsecParametersInner withIkeEncryption(IkeEncryption ikeEncryption) { this.ikeEncryption = ikeEncryption; return this; } @@ -186,9 +192,9 @@ public IkeIntegrity ikeIntegrity() { * Set the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'. * * @param ikeIntegrity the ikeIntegrity value to set - * @return the VpnClientIPsecParameters object itself. + * @return the VpnClientIPsecParametersInner object itself. */ - public VpnClientIPsecParameters withIkeIntegrity(IkeIntegrity ikeIntegrity) { + public VpnClientIPsecParametersInner withIkeIntegrity(IkeIntegrity ikeIntegrity) { this.ikeIntegrity = ikeIntegrity; return this; } @@ -206,9 +212,9 @@ public DhGroup dhGroup() { * Set the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'. * * @param dhGroup the dhGroup value to set - * @return the VpnClientIPsecParameters object itself. + * @return the VpnClientIPsecParametersInner object itself. */ - public VpnClientIPsecParameters withDhGroup(DhGroup dhGroup) { + public VpnClientIPsecParametersInner withDhGroup(DhGroup dhGroup) { this.dhGroup = dhGroup; return this; } @@ -226,9 +232,9 @@ public PfsGroup pfsGroup() { * Set the Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'. * * @param pfsGroup the pfsGroup value to set - * @return the VpnClientIPsecParameters object itself. + * @return the VpnClientIPsecParametersInner object itself. */ - public VpnClientIPsecParameters withPfsGroup(PfsGroup pfsGroup) { + public VpnClientIPsecParametersInner withPfsGroup(PfsGroup pfsGroup) { this.pfsGroup = pfsGroup; return this; } diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionImpl.java new file mode 100644 index 000000000000..bab586129f1f --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionImpl.java @@ -0,0 +1,225 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.management.network.v2018_06_01.VpnConnection; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.VpnConnectionStatus; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.IpsecPolicy; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; + +class VpnConnectionImpl extends CreatableUpdatableImpl implements VpnConnection, VpnConnection.Definition, VpnConnection.Update { + private final NetworkManager manager; + private String resourceGroupName; + private String gatewayName; + private String connectionName; + + VpnConnectionImpl(String name, NetworkManager manager) { + super(name, new VpnConnectionInner()); + this.manager = manager; + // Set resource name + this.connectionName = name; + // + } + + VpnConnectionImpl(VpnConnectionInner inner, NetworkManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.connectionName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.gatewayName = IdParsingUtils.getValueFromIdByName(inner.id(), "vpnGateways"); + this.connectionName = IdParsingUtils.getValueFromIdByName(inner.id(), "vpnConnections"); + // + } + + @Override + public NetworkManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + VpnConnectionsInner client = this.manager().inner().vpnConnections(); + return client.createOrUpdateAsync(this.resourceGroupName, this.gatewayName, this.connectionName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + VpnConnectionsInner client = this.manager().inner().vpnConnections(); + return client.createOrUpdateAsync(this.resourceGroupName, this.gatewayName, this.connectionName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + VpnConnectionsInner client = this.manager().inner().vpnConnections(); + return client.getAsync(this.resourceGroupName, this.gatewayName, this.connectionName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public Integer connectionBandwidthInMbps() { + return this.inner().connectionBandwidthInMbps(); + } + + @Override + public VpnConnectionStatus connectionStatus() { + return this.inner().connectionStatus(); + } + + @Override + public Long egressBytesTransferred() { + return this.inner().egressBytesTransferred(); + } + + @Override + public Boolean enableBgp() { + return this.inner().enableBgp(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public Long ingressBytesTransferred() { + return this.inner().ingressBytesTransferred(); + } + + @Override + public List ipsecPolicies() { + return this.inner().ipsecPolicies(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public ProvisioningState provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public SubResource remoteVpnSite() { + return this.inner().remoteVpnSite(); + } + + @Override + public Integer routingWeight() { + return this.inner().routingWeight(); + } + + @Override + public String sharedKey() { + return this.inner().sharedKey(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public VpnConnectionImpl withExistingVpnGateway(String resourceGroupName, String gatewayName) { + this.resourceGroupName = resourceGroupName; + this.gatewayName = gatewayName; + return this; + } + + @Override + public VpnConnectionImpl withConnectionStatus(VpnConnectionStatus connectionStatus) { + this.inner().withConnectionStatus(connectionStatus); + return this; + } + + @Override + public VpnConnectionImpl withEnableBgp(Boolean enableBgp) { + this.inner().withEnableBgp(enableBgp); + return this; + } + + @Override + public VpnConnectionImpl withId(String id) { + this.inner().withId(id); + return this; + } + + @Override + public VpnConnectionImpl withIpsecPolicies(List ipsecPolicies) { + this.inner().withIpsecPolicies(ipsecPolicies); + return this; + } + + @Override + public VpnConnectionImpl withLocation(String location) { + this.inner().withLocation(location); + return this; + } + + @Override + public VpnConnectionImpl withProvisioningState(ProvisioningState provisioningState) { + this.inner().withProvisioningState(provisioningState); + return this; + } + + @Override + public VpnConnectionImpl withRemoteVpnSite(SubResource remoteVpnSite) { + this.inner().withRemoteVpnSite(remoteVpnSite); + return this; + } + + @Override + public VpnConnectionImpl withRoutingWeight(Integer routingWeight) { + this.inner().withRoutingWeight(routingWeight); + return this; + } + + @Override + public VpnConnectionImpl withSharedKey(String sharedKey) { + this.inner().withSharedKey(sharedKey); + return this; + } + + @Override + public VpnConnectionImpl withTags(Map tags) { + this.inner().withTags(tags); + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionInner.java new file mode 100644 index 000000000000..c9623a582804 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionInner.java @@ -0,0 +1,298 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.VpnConnectionStatus; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.IpsecPolicy; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VpnConnection Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VpnConnectionInner extends Resource { + /** + * Id of the connected vpn site. + */ + @JsonProperty(value = "properties.remoteVpnSite") + private SubResource remoteVpnSite; + + /** + * routing weight for vpn connection. + */ + @JsonProperty(value = "properties.routingWeight") + private Integer routingWeight; + + /** + * The connection status. Possible values include: 'Unknown', 'Connecting', + * 'Connected', 'NotConnected'. + */ + @JsonProperty(value = "properties.connectionStatus") + private VpnConnectionStatus connectionStatus; + + /** + * Ingress bytes transferred. + */ + @JsonProperty(value = "properties.ingressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY) + private Long ingressBytesTransferred; + + /** + * Egress bytes transferred. + */ + @JsonProperty(value = "properties.egressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY) + private Long egressBytesTransferred; + + /** + * Expected bandwidth in MBPS. + */ + @JsonProperty(value = "properties.connectionBandwidthInMbps", access = JsonProperty.Access.WRITE_ONLY) + private Integer connectionBandwidthInMbps; + + /** + * SharedKey for the vpn connection. + */ + @JsonProperty(value = "properties.sharedKey") + private String sharedKey; + + /** + * EnableBgp flag. + */ + @JsonProperty(value = "properties.enableBgp") + private Boolean enableBgp; + + /** + * The IPSec Policies to be considered by this connection. + */ + @JsonProperty(value = "properties.ipsecPolicies") + private List ipsecPolicies; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get id of the connected vpn site. + * + * @return the remoteVpnSite value + */ + public SubResource remoteVpnSite() { + return this.remoteVpnSite; + } + + /** + * Set id of the connected vpn site. + * + * @param remoteVpnSite the remoteVpnSite value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withRemoteVpnSite(SubResource remoteVpnSite) { + this.remoteVpnSite = remoteVpnSite; + return this; + } + + /** + * Get routing weight for vpn connection. + * + * @return the routingWeight value + */ + public Integer routingWeight() { + return this.routingWeight; + } + + /** + * Set routing weight for vpn connection. + * + * @param routingWeight the routingWeight value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withRoutingWeight(Integer routingWeight) { + this.routingWeight = routingWeight; + return this; + } + + /** + * Get the connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. + * + * @return the connectionStatus value + */ + public VpnConnectionStatus connectionStatus() { + return this.connectionStatus; + } + + /** + * Set the connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. + * + * @param connectionStatus the connectionStatus value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withConnectionStatus(VpnConnectionStatus connectionStatus) { + this.connectionStatus = connectionStatus; + return this; + } + + /** + * Get ingress bytes transferred. + * + * @return the ingressBytesTransferred value + */ + public Long ingressBytesTransferred() { + return this.ingressBytesTransferred; + } + + /** + * Get egress bytes transferred. + * + * @return the egressBytesTransferred value + */ + public Long egressBytesTransferred() { + return this.egressBytesTransferred; + } + + /** + * Get expected bandwidth in MBPS. + * + * @return the connectionBandwidthInMbps value + */ + public Integer connectionBandwidthInMbps() { + return this.connectionBandwidthInMbps; + } + + /** + * Get sharedKey for the vpn connection. + * + * @return the sharedKey value + */ + public String sharedKey() { + return this.sharedKey; + } + + /** + * Set sharedKey for the vpn connection. + * + * @param sharedKey the sharedKey value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withSharedKey(String sharedKey) { + this.sharedKey = sharedKey; + return this; + } + + /** + * Get enableBgp flag. + * + * @return the enableBgp value + */ + public Boolean enableBgp() { + return this.enableBgp; + } + + /** + * Set enableBgp flag. + * + * @param enableBgp the enableBgp value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withEnableBgp(Boolean enableBgp) { + this.enableBgp = enableBgp; + return this; + } + + /** + * Get the IPSec Policies to be considered by this connection. + * + * @return the ipsecPolicies value + */ + public List ipsecPolicies() { + return this.ipsecPolicies; + } + + /** + * Set the IPSec Policies to be considered by this connection. + * + * @param ipsecPolicies the ipsecPolicies value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withIpsecPolicies(List ipsecPolicies) { + this.ipsecPolicies = ipsecPolicies; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionsImpl.java new file mode 100644 index 000000000000..0ce34ffb3489 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionsImpl.java @@ -0,0 +1,81 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.network.v2018_06_01.VpnConnections; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.network.v2018_06_01.VpnConnection; + +class VpnConnectionsImpl extends WrapperImpl implements VpnConnections { + private final NetworkManager manager; + + VpnConnectionsImpl(NetworkManager manager) { + super(manager.inner().vpnConnections()); + this.manager = manager; + } + + public NetworkManager manager() { + return this.manager; + } + + @Override + public VpnConnectionImpl define(String name) { + return wrapModel(name); + } + + private VpnConnectionImpl wrapModel(VpnConnectionInner inner) { + return new VpnConnectionImpl(inner, manager()); + } + + private VpnConnectionImpl wrapModel(String name) { + return new VpnConnectionImpl(name, this.manager()); + } + + @Override + public Observable listByVpnGatewayAsync(final String resourceGroupName, final String gatewayName) { + VpnConnectionsInner client = this.inner(); + return client.listByVpnGatewayAsync(resourceGroupName, gatewayName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VpnConnection call(VpnConnectionInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String gatewayName, String connectionName) { + VpnConnectionsInner client = this.inner(); + return client.getAsync(resourceGroupName, gatewayName, connectionName) + .map(new Func1() { + @Override + public VpnConnection call(VpnConnectionInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String gatewayName, String connectionName) { + VpnConnectionsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, gatewayName, connectionName).toCompletable(); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionsInner.java new file mode 100644 index 000000000000..8ba49e8966e2 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnConnectionsInner.java @@ -0,0 +1,764 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.v2018_06_01.ErrorException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VpnConnections. + */ +public class VpnConnectionsInner { + /** The Retrofit service to perform REST calls. */ + private VpnConnectionsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VpnConnectionsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VpnConnectionsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VpnConnectionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VpnConnections to be + * used by Retrofit to perform actually REST calls. + */ + interface VpnConnectionsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VpnConnections get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnConnections createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Body VpnConnectionInner vpnConnectionParameters, @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.management.network.v2018_06_01.VpnConnections beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Body VpnConnectionInner vpnConnectionParameters, @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.management.network.v2018_06_01.VpnConnections delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnConnections beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnConnections listByVpnGateway" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections") + Observable> listByVpnGateway(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnConnections listByVpnGatewayNext" }) + @GET + Observable> listByVpnGatewayNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnConnectionInner object if successful. + */ + public VpnConnectionInner get(String resourceGroupName, String gatewayName, String connectionName) { + return getWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String gatewayName, String connectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName), serviceCallback); + } + + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnConnectionInner object + */ + public Observable getAsync(String resourceGroupName, String gatewayName, String connectionName) { + return getWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).map(new Func1, VpnConnectionInner>() { + @Override + public VpnConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnConnectionInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.get(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnConnectionInner object if successful. + */ + public VpnConnectionInner createOrUpdate(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters).toBlocking().last().body(); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters), serviceCallback); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters).map(new Func1, VpnConnectionInner>() { + @Override + public VpnConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + if (vpnConnectionParameters == null) { + throw new IllegalArgumentException("Parameter vpnConnectionParameters is required and cannot be null."); + } + Validator.validate(vpnConnectionParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, vpnConnectionParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnConnectionInner object if successful. + */ + public VpnConnectionInner beginCreateOrUpdate(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters).toBlocking().single().body(); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters), serviceCallback); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnConnectionInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters).map(new Func1, VpnConnectionInner>() { + @Override + public VpnConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnConnectionInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + if (vpnConnectionParameters == null) { + throw new IllegalArgumentException("Parameter vpnConnectionParameters is required and cannot be null."); + } + Validator.validate(vpnConnectionParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, vpnConnectionParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String gatewayName, String connectionName) { + deleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).toBlocking().last().body(); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String gatewayName, String connectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName), serviceCallback); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String gatewayName, String connectionName) { + return deleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String gatewayName, String connectionName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).toBlocking().single().body(); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String gatewayName, String connectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName), serviceCallback); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String gatewayName, String connectionName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnConnectionInner> object if successful. + */ + public PagedList listByVpnGateway(final String resourceGroupName, final String gatewayName) { + ServiceResponse> response = listByVpnGatewaySinglePageAsync(resourceGroupName, gatewayName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByVpnGatewayAsync(final String resourceGroupName, final String gatewayName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByVpnGatewaySinglePageAsync(resourceGroupName, gatewayName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnConnectionInner> object + */ + public Observable> listByVpnGatewayAsync(final String resourceGroupName, final String gatewayName) { + return listByVpnGatewayWithServiceResponseAsync(resourceGroupName, gatewayName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnConnectionInner> object + */ + public Observable>> listByVpnGatewayWithServiceResponseAsync(final String resourceGroupName, final String gatewayName) { + return listByVpnGatewaySinglePageAsync(resourceGroupName, gatewayName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByVpnGatewayNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VpnGateway. + ServiceResponse> * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnConnectionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByVpnGatewaySinglePageAsync(final String resourceGroupName, final String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByVpnGateway(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByVpnGatewayDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByVpnGatewayDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnConnectionInner> object if successful. + */ + public PagedList listByVpnGatewayNext(final String nextPageLink) { + ServiceResponse> response = listByVpnGatewayNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByVpnGatewayNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByVpnGatewayNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnConnectionInner> object + */ + public Observable> listByVpnGatewayNextAsync(final String nextPageLink) { + return listByVpnGatewayNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnConnectionInner> object + */ + public Observable>> listByVpnGatewayNextWithServiceResponseAsync(final String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByVpnGatewayNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnConnectionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByVpnGatewayNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByVpnGatewayNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByVpnGatewayNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByVpnGatewayNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewayImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewayImpl.java new file mode 100644 index 000000000000..2b282e1e1f8b --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewayImpl.java @@ -0,0 +1,119 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.VpnGateway; +import rx.Observable; +import com.microsoft.azure.SubResource; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.BgpSettings; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.Policies; +import java.util.ArrayList; +import com.microsoft.azure.management.network.v2018_06_01.VpnConnection; + +class VpnGatewayImpl extends GroupableResourceCoreImpl implements VpnGateway, VpnGateway.Definition, VpnGateway.Update { + VpnGatewayImpl(String name, VpnGatewayInner inner, NetworkManager manager) { + super(name, inner, manager); + } + + @Override + public Observable createResourceAsync() { + VpnGatewaysInner client = this.manager().inner().vpnGateways(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + VpnGatewaysInner client = this.manager().inner().vpnGateways(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + VpnGatewaysInner client = this.manager().inner().vpnGateways(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public BgpSettings bgpSettings() { + return this.inner().bgpSettings(); + } + + @Override + public List connections() { + List lst = new ArrayList(); + if (this.inner().connections() != null) { + for (VpnConnectionInner inner : this.inner().connections()) { + lst.add( new VpnConnectionImpl(inner, manager())); + } + } + return lst; + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public Policies policies() { + return this.inner().policies(); + } + + @Override + public ProvisioningState provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public SubResource virtualHub() { + return this.inner().virtualHub(); + } + + @Override + public VpnGatewayImpl withBgpSettings(BgpSettings bgpSettings) { + this.inner().withBgpSettings(bgpSettings); + return this; + } + + @Override + public VpnGatewayImpl withConnections(List connections) { + this.inner().withConnections(connections); + return this; + } + + @Override + public VpnGatewayImpl withPolicies(Policies policies) { + this.inner().withPolicies(policies); + return this; + } + + @Override + public VpnGatewayImpl withProvisioningState(ProvisioningState provisioningState) { + this.inner().withProvisioningState(provisioningState); + return this; + } + + @Override + public VpnGatewayImpl withVirtualHub(SubResource virtualHub) { + this.inner().withVirtualHub(virtualHub); + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewayInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewayInner.java new file mode 100644 index 000000000000..13acd5b6c44e --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewayInner.java @@ -0,0 +1,200 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.SubResource; +import java.util.List; +import com.microsoft.azure.management.network.v2018_06_01.BgpSettings; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.microsoft.azure.management.network.v2018_06_01.Policies; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VpnGateway Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VpnGatewayInner extends Resource { + /** + * The VirtualHub to which the gateway belongs. + */ + @JsonProperty(value = "properties.virtualHub") + private SubResource virtualHub; + + /** + * list of all vpn connections to the gateway. + */ + @JsonProperty(value = "properties.connections") + private List connections; + + /** + * Local network gateway's BGP speaker settings. + */ + @JsonProperty(value = "properties.bgpSettings") + private BgpSettings bgpSettings; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * The policies applied to this vpn gateway. + */ + @JsonProperty(value = "properties.policies") + private Policies policies; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get the VirtualHub to which the gateway belongs. + * + * @return the virtualHub value + */ + public SubResource virtualHub() { + return this.virtualHub; + } + + /** + * Set the VirtualHub to which the gateway belongs. + * + * @param virtualHub the virtualHub value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withVirtualHub(SubResource virtualHub) { + this.virtualHub = virtualHub; + return this; + } + + /** + * Get list of all vpn connections to the gateway. + * + * @return the connections value + */ + public List connections() { + return this.connections; + } + + /** + * Set list of all vpn connections to the gateway. + * + * @param connections the connections value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withConnections(List connections) { + this.connections = connections; + return this; + } + + /** + * Get local network gateway's BGP speaker settings. + * + * @return the bgpSettings value + */ + public BgpSettings bgpSettings() { + return this.bgpSettings; + } + + /** + * Set local network gateway's BGP speaker settings. + * + * @param bgpSettings the bgpSettings value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withBgpSettings(BgpSettings bgpSettings) { + this.bgpSettings = bgpSettings; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get the policies applied to this vpn gateway. + * + * @return the policies value + */ + public Policies policies() { + return this.policies; + } + + /** + * Set the policies applied to this vpn gateway. + * + * @param policies the policies value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withPolicies(Policies policies) { + this.policies = policies; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewaysImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewaysImpl.java new file mode 100644 index 000000000000..86dab7550383 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewaysImpl.java @@ -0,0 +1,138 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.VpnGateways; +import com.microsoft.azure.management.network.v2018_06_01.VpnGateway; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; + +class VpnGatewaysImpl extends GroupableResourcesCoreImpl implements VpnGateways { + protected VpnGatewaysImpl(NetworkManager manager) { + super(manager.inner().vpnGateways(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + VpnGatewaysInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + VpnGatewaysInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + VpnGatewaysInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + VpnGatewaysInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VpnGateway call(VpnGatewayInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + VpnGatewaysInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + VpnGatewaysInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VpnGateway call(VpnGatewayInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public VpnGatewayImpl define(String name) { + return wrapModel(name); + } + + @Override + protected VpnGatewayImpl wrapModel(VpnGatewayInner inner) { + return new VpnGatewayImpl(inner.name(), inner, manager()); + } + + @Override + protected VpnGatewayImpl wrapModel(String name) { + return new VpnGatewayImpl(name, new VpnGatewayInner(), this.manager()); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewaysInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewaysInner.java new file mode 100644 index 000000000000..4b136f27cbe3 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnGatewaysInner.java @@ -0,0 +1,1274 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.v2018_06_01.ErrorException; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VpnGateways. + */ +public class VpnGatewaysInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private VpnGatewaysService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VpnGatewaysInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VpnGatewaysInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VpnGatewaysService.class); + this.client = client; + } + + /** + * The interface defining all the services for VpnGateways to be + * used by Retrofit to perform actually REST calls. + */ + interface VpnGatewaysService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VpnGateways getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnGateways createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Body VpnGatewayInner vpnGatewayParameters, @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.management.network.v2018_06_01.VpnGateways beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Body VpnGatewayInner vpnGatewayParameters, @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.management.network.v2018_06_01.VpnGateways updateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject vpnGatewayParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VpnGateways beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> beginUpdateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject vpnGatewayParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VpnGateways delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnGateways beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnGateways listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnGateways list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnGateways listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_06_01.VpnGateways listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner getByResourceGroup(String resourceGroupName, String gatewayName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Retrieves the details of a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String gatewayName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner createOrUpdate(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters).toBlocking().last().body(); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters), serviceCallback); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (vpnGatewayParameters == null) { + throw new IllegalArgumentException("Parameter vpnGatewayParameters is required and cannot be null."); + } + Validator.validate(vpnGatewayParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, vpnGatewayParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner beginCreateOrUpdate(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters).toBlocking().single().body(); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters), serviceCallback); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (vpnGatewayParameters == null) { + throw new IllegalArgumentException("Parameter vpnGatewayParameters is required and cannot be null."); + } + Validator.validate(vpnGatewayParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, vpnGatewayParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner updateTags(String resourceGroupName, String gatewayName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().last().body(); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String gatewayName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject vpnGatewayParameters = new TagsObject(); + vpnGatewayParameters.withTags(null); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), vpnGatewayParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags).toBlocking().last().body(); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String gatewayName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags), serviceCallback); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String gatewayName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String gatewayName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject vpnGatewayParameters = new TagsObject(); + vpnGatewayParameters.withTags(tags); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), vpnGatewayParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner beginUpdateTags(String resourceGroupName, String gatewayName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().single().body(); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String gatewayName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject vpnGatewayParameters = new TagsObject(); + vpnGatewayParameters.withTags(null); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), vpnGatewayParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner beginUpdateTags(String resourceGroupName, String gatewayName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags).toBlocking().single().body(); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String gatewayName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags), serviceCallback); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String gatewayName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String gatewayName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject vpnGatewayParameters = new TagsObject(); + vpnGatewayParameters.withTags(tags); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), vpnGatewayParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateTagsDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String gatewayName) { + deleteWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().last().body(); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String gatewayName) { + return deleteWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String gatewayName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().single().body(); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String gatewayName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnGatewayInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnGateways in a resource group. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VpnGateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnGatewayInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnGatewayInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnGatewayInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnGatewayInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnGateways in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnGatewayInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnGatewayInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnGateways in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnGatewayInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSiteImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSiteImpl.java new file mode 100644 index 000000000000..f79f7a99feaa --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSiteImpl.java @@ -0,0 +1,133 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.VpnSite; +import rx.Observable; +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.DeviceProperties; +import com.microsoft.azure.management.network.v2018_06_01.AddressSpace; +import com.microsoft.azure.management.network.v2018_06_01.BgpSettings; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; + +class VpnSiteImpl extends GroupableResourceCoreImpl implements VpnSite, VpnSite.Definition, VpnSite.Update { + VpnSiteImpl(String name, VpnSiteInner inner, NetworkManager manager) { + super(name, inner, manager); + } + + @Override + public Observable createResourceAsync() { + VpnSitesInner client = this.manager().inner().vpnSites(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + VpnSitesInner client = this.manager().inner().vpnSites(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + VpnSitesInner client = this.manager().inner().vpnSites(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public AddressSpace addressSpace() { + return this.inner().addressSpace(); + } + + @Override + public BgpSettings bgpProperties() { + return this.inner().bgpProperties(); + } + + @Override + public DeviceProperties deviceProperties() { + return this.inner().deviceProperties(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String ipAddress() { + return this.inner().ipAddress(); + } + + @Override + public ProvisioningState provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public String siteKey() { + return this.inner().siteKey(); + } + + @Override + public SubResource virtualWAN() { + return this.inner().virtualWAN(); + } + + @Override + public VpnSiteImpl withAddressSpace(AddressSpace addressSpace) { + this.inner().withAddressSpace(addressSpace); + return this; + } + + @Override + public VpnSiteImpl withBgpProperties(BgpSettings bgpProperties) { + this.inner().withBgpProperties(bgpProperties); + return this; + } + + @Override + public VpnSiteImpl withDeviceProperties(DeviceProperties deviceProperties) { + this.inner().withDeviceProperties(deviceProperties); + return this; + } + + @Override + public VpnSiteImpl withIpAddress(String ipAddress) { + this.inner().withIpAddress(ipAddress); + return this; + } + + @Override + public VpnSiteImpl withProvisioningState(ProvisioningState provisioningState) { + this.inner().withProvisioningState(provisioningState); + return this; + } + + @Override + public VpnSiteImpl withSiteKey(String siteKey) { + this.inner().withSiteKey(siteKey); + return this; + } + + @Override + public VpnSiteImpl withVirtualWAN(SubResource virtualWAN) { + this.inner().withVirtualWAN(virtualWAN); + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSiteInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSiteInner.java new file mode 100644 index 000000000000..b0e44725d6c4 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSiteInner.java @@ -0,0 +1,252 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.v2018_06_01.DeviceProperties; +import com.microsoft.azure.management.network.v2018_06_01.AddressSpace; +import com.microsoft.azure.management.network.v2018_06_01.BgpSettings; +import com.microsoft.azure.management.network.v2018_06_01.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VpnSite Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VpnSiteInner extends Resource { + /** + * The VirtualWAN to which the vpnSite belongs. + */ + @JsonProperty(value = "properties.virtualWAN") + private SubResource virtualWAN; + + /** + * The device properties. + */ + @JsonProperty(value = "properties.deviceProperties") + private DeviceProperties deviceProperties; + + /** + * The ip-address for the vpn-site. + */ + @JsonProperty(value = "properties.ipAddress") + private String ipAddress; + + /** + * The key for vpn-site that can be used for connections. + */ + @JsonProperty(value = "properties.siteKey") + private String siteKey; + + /** + * The AddressSpace that contains an array of IP address ranges. + */ + @JsonProperty(value = "properties.addressSpace") + private AddressSpace addressSpace; + + /** + * The set of bgp properties. + */ + @JsonProperty(value = "properties.bgpProperties") + private BgpSettings bgpProperties; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get the VirtualWAN to which the vpnSite belongs. + * + * @return the virtualWAN value + */ + public SubResource virtualWAN() { + return this.virtualWAN; + } + + /** + * Set the VirtualWAN to which the vpnSite belongs. + * + * @param virtualWAN the virtualWAN value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withVirtualWAN(SubResource virtualWAN) { + this.virtualWAN = virtualWAN; + return this; + } + + /** + * Get the device properties. + * + * @return the deviceProperties value + */ + public DeviceProperties deviceProperties() { + return this.deviceProperties; + } + + /** + * Set the device properties. + * + * @param deviceProperties the deviceProperties value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withDeviceProperties(DeviceProperties deviceProperties) { + this.deviceProperties = deviceProperties; + return this; + } + + /** + * Get the ip-address for the vpn-site. + * + * @return the ipAddress value + */ + public String ipAddress() { + return this.ipAddress; + } + + /** + * Set the ip-address for the vpn-site. + * + * @param ipAddress the ipAddress value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Get the key for vpn-site that can be used for connections. + * + * @return the siteKey value + */ + public String siteKey() { + return this.siteKey; + } + + /** + * Set the key for vpn-site that can be used for connections. + * + * @param siteKey the siteKey value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withSiteKey(String siteKey) { + this.siteKey = siteKey; + return this; + } + + /** + * Get the AddressSpace that contains an array of IP address ranges. + * + * @return the addressSpace value + */ + public AddressSpace addressSpace() { + return this.addressSpace; + } + + /** + * Set the AddressSpace that contains an array of IP address ranges. + * + * @param addressSpace the addressSpace value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withAddressSpace(AddressSpace addressSpace) { + this.addressSpace = addressSpace; + return this; + } + + /** + * Get the set of bgp properties. + * + * @return the bgpProperties value + */ + public BgpSettings bgpProperties() { + return this.bgpProperties; + } + + /** + * Set the set of bgp properties. + * + * @param bgpProperties the bgpProperties value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withBgpProperties(BgpSettings bgpProperties) { + this.bgpProperties = bgpProperties; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesConfigurationsImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesConfigurationsImpl.java new file mode 100644 index 000000000000..e90dd8f25436 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesConfigurationsImpl.java @@ -0,0 +1,35 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.network.v2018_06_01.VpnSitesConfigurations; +import rx.Completable; +import com.microsoft.azure.management.network.v2018_06_01.GetVpnSitesConfigurationRequest; + +class VpnSitesConfigurationsImpl extends WrapperImpl implements VpnSitesConfigurations { + private final NetworkManager manager; + + VpnSitesConfigurationsImpl(NetworkManager manager) { + super(manager.inner().vpnSitesConfigurations()); + this.manager = manager; + } + + public NetworkManager manager() { + return this.manager; + } + + @Override + public Completable downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + VpnSitesConfigurationsInner client = this.inner(); + return client.downloadAsync(resourceGroupName, virtualWANName, request).toCompletable(); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesConfigurationsInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesConfigurationsInner.java new file mode 100644 index 000000000000..d0d601220454 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesConfigurationsInner.java @@ -0,0 +1,233 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.network.v2018_06_01.ErrorException; +import com.microsoft.azure.management.network.v2018_06_01.GetVpnSitesConfigurationRequest; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VpnSitesConfigurations. + */ +public class VpnSitesConfigurationsInner { + /** The Retrofit service to perform REST calls. */ + private VpnSitesConfigurationsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VpnSitesConfigurationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VpnSitesConfigurationsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VpnSitesConfigurationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VpnSitesConfigurations to be + * used by Retrofit to perform actually REST calls. + */ + interface VpnSitesConfigurationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VpnSitesConfigurations download" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration") + Observable> download(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualWANName") String virtualWANName, @Body GetVpnSitesConfigurationRequest request, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnSitesConfigurations beginDownload" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration") + Observable> beginDownload(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualWANName") String virtualWANName, @Body GetVpnSitesConfigurationRequest request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void download(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + downloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request).toBlocking().last().body(); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(downloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request), serviceCallback); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + return downloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> downloadWithServiceResponseAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } + Validator.validate(request); + final String apiVersion = "2018-06-01"; + Observable> observable = service.download(this.client.subscriptionId(), resourceGroupName, virtualWANName, request, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDownload(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + beginDownloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request).toBlocking().single().body(); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDownloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDownloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request), serviceCallback); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDownloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + return beginDownloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDownloadWithServiceResponseAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } + Validator.validate(request); + final String apiVersion = "2018-06-01"; + return service.beginDownload(this.client.subscriptionId(), resourceGroupName, virtualWANName, request, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDownloadDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDownloadDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesImpl.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesImpl.java new file mode 100644 index 000000000000..5b172fccd692 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesImpl.java @@ -0,0 +1,138 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.network.v2018_06_01.VpnSites; +import com.microsoft.azure.management.network.v2018_06_01.VpnSite; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; + +class VpnSitesImpl extends GroupableResourcesCoreImpl implements VpnSites { + protected VpnSitesImpl(NetworkManager manager) { + super(manager.inner().vpnSites(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + VpnSitesInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + VpnSitesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + VpnSitesInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + VpnSitesInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VpnSite call(VpnSiteInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + VpnSitesInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + VpnSitesInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public VpnSite call(VpnSiteInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public VpnSiteImpl define(String name) { + return wrapModel(name); + } + + @Override + protected VpnSiteImpl wrapModel(VpnSiteInner inner) { + return new VpnSiteImpl(inner.name(), inner, manager()); + } + + @Override + protected VpnSiteImpl wrapModel(String name) { + return new VpnSiteImpl(name, new VpnSiteInner(), this.manager()); + } + +} diff --git a/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesInner.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesInner.java new file mode 100644 index 000000000000..adccee320aa6 --- /dev/null +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/VpnSitesInner.java @@ -0,0 +1,1274 @@ +/** + * 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.management.network.v2018_06_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.v2018_06_01.ErrorException; +import com.microsoft.azure.management.network.v2018_06_01.TagsObject; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VpnSites. + */ +public class VpnSitesInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private VpnSitesService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VpnSitesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VpnSitesInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VpnSitesService.class); + this.client = client; + } + + /** + * The interface defining all the services for VpnSites to be + * used by Retrofit to perform actually REST calls. + */ + interface VpnSitesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VpnSites getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnSites createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Body VpnSiteInner vpnSiteParameters, @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.management.network.v2018_06_01.VpnSites beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Body VpnSiteInner vpnSiteParameters, @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.management.network.v2018_06_01.VpnSites updateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject vpnSiteParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VpnSites beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> beginUpdateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject vpnSiteParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2018_06_01.VpnSites delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnSites beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnSites listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnSites list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.network.v2018_06_01.VpnSites listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.network.v2018_06_01.VpnSites listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a VPNsite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner getByResourceGroup(String resourceGroupName, String vpnSiteName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a VPNsite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Retrieves the details of a VPNsite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String vpnSiteName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a VPNsite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner createOrUpdate(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters).toBlocking().last().body(); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters), serviceCallback); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + if (vpnSiteParameters == null) { + throw new IllegalArgumentException("Parameter vpnSiteParameters is required and cannot be null."); + } + Validator.validate(vpnSiteParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, vpnSiteParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner beginCreateOrUpdate(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters).toBlocking().single().body(); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters), serviceCallback); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + if (vpnSiteParameters == null) { + throw new IllegalArgumentException("Parameter vpnSiteParameters is required and cannot be null."); + } + Validator.validate(vpnSiteParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, vpnSiteParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner updateTags(String resourceGroupName, String vpnSiteName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().last().body(); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String vpnSiteName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject vpnSiteParameters = new TagsObject(); + vpnSiteParameters.withTags(null); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), vpnSiteParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner updateTags(String resourceGroupName, String vpnSiteName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags).toBlocking().last().body(); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String vpnSiteName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags), serviceCallback); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String vpnSiteName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String vpnSiteName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject vpnSiteParameters = new TagsObject(); + vpnSiteParameters.withTags(tags); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), vpnSiteParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner beginUpdateTags(String resourceGroupName, String vpnSiteName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().single().body(); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String vpnSiteName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject vpnSiteParameters = new TagsObject(); + vpnSiteParameters.withTags(null); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), vpnSiteParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner beginUpdateTags(String resourceGroupName, String vpnSiteName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags).toBlocking().single().body(); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String vpnSiteName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags), serviceCallback); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String vpnSiteName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String vpnSiteName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject vpnSiteParameters = new TagsObject(); + vpnSiteParameters.withTags(tags); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), vpnSiteParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateTagsDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String vpnSiteName) { + deleteWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().last().body(); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String vpnSiteName) { + return deleteWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String vpnSiteName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().single().body(); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String vpnSiteName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnSiteInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the vpnSites in a resource group. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnSiteInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnSiteInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnSiteInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnSiteInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the vpnSites in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnSiteInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnSiteInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnSites in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnSiteInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/package-info.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/package-info.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/package-info.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/package-info.java index 18ccb9a014fa..370286c59ee5 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/implementation/package-info.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/package-info.java @@ -8,4 +8,4 @@ * This package contains the implementation classes for NetworkManagementClient. * Network Client. */ -package com.microsoft.azure.management.network.v2018_05_01.implementation; +package com.microsoft.azure.management.network.v2018_06_01.implementation; diff --git a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/package-info.java b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/package-info.java similarity index 84% rename from network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/package-info.java rename to network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/package-info.java index 5d817ddf809a..d0090a02cf7a 100644 --- a/network/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/network/v2018_05_01/package-info.java +++ b/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/package-info.java @@ -8,4 +8,4 @@ * This package contains the classes for NetworkManagementClient. * Network Client. */ -package com.microsoft.azure.management.network.v2018_05_01; +package com.microsoft.azure.management.network.v2018_06_01; diff --git a/notificationhubs/resource-manager/v2014_09_01/pom.xml b/notificationhubs/resource-manager/v2014_09_01/pom.xml new file mode 100644 index 000000000000..60a7bdce348a --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/pom.xml @@ -0,0 +1,133 @@ + + + 4.0.0 + com.microsoft.azure.notificationhubs.v2014_09_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-notificationhubs + 1.0.0-beta + jar + Microsoft Azure SDK for NotificationHubs Management + This package contains Microsoft NotificationHubs Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AccessRights.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AccessRights.java new file mode 100644 index 000000000000..3cf387036cee --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AccessRights.java @@ -0,0 +1,56 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AccessRights. + */ +public enum AccessRights { + /** Enum value Manage. */ + MANAGE("Manage"), + + /** Enum value Send. */ + SEND("Send"), + + /** Enum value Listen. */ + LISTEN("Listen"); + + /** The actual serialized value for a AccessRights instance. */ + private String value; + + AccessRights(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AccessRights instance. + * + * @param value the serialized value to parse. + * @return the parsed AccessRights object, or null if unable to parse. + */ + @JsonCreator + public static AccessRights fromString(String value) { + AccessRights[] items = AccessRights.values(); + for (AccessRights item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AdmCredential.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AdmCredential.java new file mode 100644 index 000000000000..9672a9383e52 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AdmCredential.java @@ -0,0 +1,43 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub AdmCredential. + */ +public class AdmCredential { + /** + * Gets or sets properties of NotificationHub AdmCredential. + */ + @JsonProperty(value = "properties") + private AdmCredentialProperties properties; + + /** + * Get gets or sets properties of NotificationHub AdmCredential. + * + * @return the properties value + */ + public AdmCredentialProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of NotificationHub AdmCredential. + * + * @param properties the properties value to set + * @return the AdmCredential object itself. + */ + public AdmCredential withProperties(AdmCredentialProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AdmCredentialProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AdmCredentialProperties.java new file mode 100644 index 000000000000..bb3eb206ed1b --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/AdmCredentialProperties.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub AdmCredential. + */ +public class AdmCredentialProperties { + /** + * Gets or sets the client identifier. + */ + @JsonProperty(value = "clientId") + private String clientId; + + /** + * Gets or sets the credential secret access key. + */ + @JsonProperty(value = "clientSecret") + private String clientSecret; + + /** + * Gets or sets the URL of the authorization token. + */ + @JsonProperty(value = "authTokenUrl") + private String authTokenUrl; + + /** + * Get gets or sets the client identifier. + * + * @return the clientId value + */ + public String clientId() { + return this.clientId; + } + + /** + * Set gets or sets the client identifier. + * + * @param clientId the clientId value to set + * @return the AdmCredentialProperties object itself. + */ + public AdmCredentialProperties withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get gets or sets the credential secret access key. + * + * @return the clientSecret value + */ + public String clientSecret() { + return this.clientSecret; + } + + /** + * Set gets or sets the credential secret access key. + * + * @param clientSecret the clientSecret value to set + * @return the AdmCredentialProperties object itself. + */ + public AdmCredentialProperties withClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get gets or sets the URL of the authorization token. + * + * @return the authTokenUrl value + */ + public String authTokenUrl() { + return this.authTokenUrl; + } + + /** + * Set gets or sets the URL of the authorization token. + * + * @param authTokenUrl the authTokenUrl value to set + * @return the AdmCredentialProperties object itself. + */ + public AdmCredentialProperties withAuthTokenUrl(String authTokenUrl) { + this.authTokenUrl = authTokenUrl; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ApnsCredential.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ApnsCredential.java new file mode 100644 index 000000000000..67a401b73d44 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ApnsCredential.java @@ -0,0 +1,43 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub ApnsCredential. + */ +public class ApnsCredential { + /** + * Gets or sets properties of NotificationHub ApnsCredential. + */ + @JsonProperty(value = "properties") + private ApnsCredentialProperties properties; + + /** + * Get gets or sets properties of NotificationHub ApnsCredential. + * + * @return the properties value + */ + public ApnsCredentialProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of NotificationHub ApnsCredential. + * + * @param properties the properties value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withProperties(ApnsCredentialProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ApnsCredentialProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ApnsCredentialProperties.java new file mode 100644 index 000000000000..61ccd2a8508c --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ApnsCredentialProperties.java @@ -0,0 +1,121 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub ApnsCredential. + */ +public class ApnsCredentialProperties { + /** + * Gets or sets the APNS certificate. + */ + @JsonProperty(value = "apnsCertificate") + private String apnsCertificate; + + /** + * Gets or sets the certificate key. + */ + @JsonProperty(value = "certificateKey") + private String certificateKey; + + /** + * Gets or sets the endpoint of this credential. + */ + @JsonProperty(value = "endpoint") + private String endpoint; + + /** + * Gets or sets the Apns certificate Thumbprint. + */ + @JsonProperty(value = "thumbprint") + private String thumbprint; + + /** + * Get gets or sets the APNS certificate. + * + * @return the apnsCertificate value + */ + public String apnsCertificate() { + return this.apnsCertificate; + } + + /** + * Set gets or sets the APNS certificate. + * + * @param apnsCertificate the apnsCertificate value to set + * @return the ApnsCredentialProperties object itself. + */ + public ApnsCredentialProperties withApnsCertificate(String apnsCertificate) { + this.apnsCertificate = apnsCertificate; + return this; + } + + /** + * Get gets or sets the certificate key. + * + * @return the certificateKey value + */ + public String certificateKey() { + return this.certificateKey; + } + + /** + * Set gets or sets the certificate key. + * + * @param certificateKey the certificateKey value to set + * @return the ApnsCredentialProperties object itself. + */ + public ApnsCredentialProperties withCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + return this; + } + + /** + * Get gets or sets the endpoint of this credential. + * + * @return the endpoint value + */ + public String endpoint() { + return this.endpoint; + } + + /** + * Set gets or sets the endpoint of this credential. + * + * @param endpoint the endpoint value to set + * @return the ApnsCredentialProperties object itself. + */ + public ApnsCredentialProperties withEndpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get gets or sets the Apns certificate Thumbprint. + * + * @return the thumbprint value + */ + public String thumbprint() { + return this.thumbprint; + } + + /** + * Set gets or sets the Apns certificate Thumbprint. + * + * @param thumbprint the thumbprint value to set + * @return the ApnsCredentialProperties object itself. + */ + public ApnsCredentialProperties withThumbprint(String thumbprint) { + this.thumbprint = thumbprint; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/BaiduCredential.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/BaiduCredential.java new file mode 100644 index 000000000000..dd747f014dec --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/BaiduCredential.java @@ -0,0 +1,43 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub BaiduCredential. + */ +public class BaiduCredential { + /** + * Gets or sets properties of NotificationHub BaiduCredential. + */ + @JsonProperty(value = "properties") + private BaiduCredentialProperties properties; + + /** + * Get gets or sets properties of NotificationHub BaiduCredential. + * + * @return the properties value + */ + public BaiduCredentialProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of NotificationHub BaiduCredential. + * + * @param properties the properties value to set + * @return the BaiduCredential object itself. + */ + public BaiduCredential withProperties(BaiduCredentialProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/BaiduCredentialProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/BaiduCredentialProperties.java new file mode 100644 index 000000000000..04b7933d289a --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/BaiduCredentialProperties.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub BaiduCredential. + */ +public class BaiduCredentialProperties { + /** + * Get or Set Baidu Api Key. + */ + @JsonProperty(value = "baiduApiKey") + private String baiduApiKey; + + /** + * Get or Set Baidu Endpoint. + */ + @JsonProperty(value = "baiduEndPoint") + private String baiduEndPoint; + + /** + * Get or Set Baidu Secret Key. + */ + @JsonProperty(value = "baiduSecretKey") + private String baiduSecretKey; + + /** + * Get get or Set Baidu Api Key. + * + * @return the baiduApiKey value + */ + public String baiduApiKey() { + return this.baiduApiKey; + } + + /** + * Set get or Set Baidu Api Key. + * + * @param baiduApiKey the baiduApiKey value to set + * @return the BaiduCredentialProperties object itself. + */ + public BaiduCredentialProperties withBaiduApiKey(String baiduApiKey) { + this.baiduApiKey = baiduApiKey; + return this; + } + + /** + * Get get or Set Baidu Endpoint. + * + * @return the baiduEndPoint value + */ + public String baiduEndPoint() { + return this.baiduEndPoint; + } + + /** + * Set get or Set Baidu Endpoint. + * + * @param baiduEndPoint the baiduEndPoint value to set + * @return the BaiduCredentialProperties object itself. + */ + public BaiduCredentialProperties withBaiduEndPoint(String baiduEndPoint) { + this.baiduEndPoint = baiduEndPoint; + return this; + } + + /** + * Get get or Set Baidu Secret Key. + * + * @return the baiduSecretKey value + */ + public String baiduSecretKey() { + return this.baiduSecretKey; + } + + /** + * Set get or Set Baidu Secret Key. + * + * @param baiduSecretKey the baiduSecretKey value to set + * @return the BaiduCredentialProperties object itself. + */ + public BaiduCredentialProperties withBaiduSecretKey(String baiduSecretKey) { + this.baiduSecretKey = baiduSecretKey; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/CheckAvailabilityParameters.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/CheckAvailabilityParameters.java new file mode 100644 index 000000000000..a96f93d355e0 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/CheckAvailabilityParameters.java @@ -0,0 +1,124 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the Check Name Availability for Namespace and + * NotificationHubs. + */ +public class CheckAvailabilityParameters { + /** + * Gets or sets name. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * Gets or sets location. + */ + @JsonProperty(value = "location") + private String location; + + /** + * Gets or sets tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Gets or sets true if the name is available and can be used to create new + * Namespace/NotificationHub. Otherwise false. + */ + @JsonProperty(value = "isAvailiable") + private Boolean isAvailiable; + + /** + * Get gets or sets name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set gets or sets name. + * + * @param name the name value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withName(String name) { + this.name = name; + return this; + } + + /** + * Get gets or sets location. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set gets or sets location. + * + * @param location the location value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get gets or sets tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set gets or sets tags. + * + * @param tags the tags value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get gets or sets true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @return the isAvailiable value + */ + public Boolean isAvailiable() { + return this.isAvailiable; + } + + /** + * Set gets or sets true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @param isAvailiable the isAvailiable value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withIsAvailiable(Boolean isAvailiable) { + this.isAvailiable = isAvailiable; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/CheckAvailabilityResource.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/CheckAvailabilityResource.java new file mode 100644 index 000000000000..9fb5c9dc88d8 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/CheckAvailabilityResource.java @@ -0,0 +1,51 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.CheckAvailabilityResourceInner; +import java.util.Map; + +/** + * Type representing CheckAvailabilityResource. + */ +public interface CheckAvailabilityResource extends HasInner, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the isAvailiable value. + */ + Boolean isAvailiable(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/GcmCredential.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/GcmCredential.java new file mode 100644 index 000000000000..f6b4baf4435f --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/GcmCredential.java @@ -0,0 +1,43 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub GcmCredential. + */ +public class GcmCredential { + /** + * Gets or sets properties of NotificationHub GcmCredential. + */ + @JsonProperty(value = "properties") + private GcmCredentialProperties properties; + + /** + * Get gets or sets properties of NotificationHub GcmCredential. + * + * @return the properties value + */ + public GcmCredentialProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of NotificationHub GcmCredential. + * + * @param properties the properties value to set + * @return the GcmCredential object itself. + */ + public GcmCredential withProperties(GcmCredentialProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/GcmCredentialProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/GcmCredentialProperties.java new file mode 100644 index 000000000000..faf96e801e54 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/GcmCredentialProperties.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub GcmCredential. + */ +public class GcmCredentialProperties { + /** + * Gets or sets the GCM endpoint. + */ + @JsonProperty(value = "gcmEndpoint") + private String gcmEndpoint; + + /** + * Gets or sets the Google API key. + */ + @JsonProperty(value = "googleApiKey") + private String googleApiKey; + + /** + * Get gets or sets the GCM endpoint. + * + * @return the gcmEndpoint value + */ + public String gcmEndpoint() { + return this.gcmEndpoint; + } + + /** + * Set gets or sets the GCM endpoint. + * + * @param gcmEndpoint the gcmEndpoint value to set + * @return the GcmCredentialProperties object itself. + */ + public GcmCredentialProperties withGcmEndpoint(String gcmEndpoint) { + this.gcmEndpoint = gcmEndpoint; + return this; + } + + /** + * Get gets or sets the Google API key. + * + * @return the googleApiKey value + */ + public String googleApiKey() { + return this.googleApiKey; + } + + /** + * Set gets or sets the Google API key. + * + * @param googleApiKey the googleApiKey value to set + * @return the GcmCredentialProperties object itself. + */ + public GcmCredentialProperties withGoogleApiKey(String googleApiKey) { + this.googleApiKey = googleApiKey; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/MpnsCredential.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/MpnsCredential.java new file mode 100644 index 000000000000..855b68706fbf --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/MpnsCredential.java @@ -0,0 +1,43 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub MpnsCredential. + */ +public class MpnsCredential { + /** + * Gets or sets properties of NotificationHub MpnsCredential. + */ + @JsonProperty(value = "properties") + private MpnsCredentialProperties properties; + + /** + * Get gets or sets properties of NotificationHub MpnsCredential. + * + * @return the properties value + */ + public MpnsCredentialProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of NotificationHub MpnsCredential. + * + * @param properties the properties value to set + * @return the MpnsCredential object itself. + */ + public MpnsCredential withProperties(MpnsCredentialProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/MpnsCredentialProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/MpnsCredentialProperties.java new file mode 100644 index 000000000000..ac9ba041730c --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/MpnsCredentialProperties.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub MpnsCredential. + */ +public class MpnsCredentialProperties { + /** + * Gets or sets the MPNS certificate. + */ + @JsonProperty(value = "mpnsCertificate") + private String mpnsCertificate; + + /** + * Gets or sets the certificate key for this credential. + */ + @JsonProperty(value = "certificateKey") + private String certificateKey; + + /** + * Gets or sets the Mpns certificate Thumbprint. + */ + @JsonProperty(value = "thumbprint") + private String thumbprint; + + /** + * Get gets or sets the MPNS certificate. + * + * @return the mpnsCertificate value + */ + public String mpnsCertificate() { + return this.mpnsCertificate; + } + + /** + * Set gets or sets the MPNS certificate. + * + * @param mpnsCertificate the mpnsCertificate value to set + * @return the MpnsCredentialProperties object itself. + */ + public MpnsCredentialProperties withMpnsCertificate(String mpnsCertificate) { + this.mpnsCertificate = mpnsCertificate; + return this; + } + + /** + * Get gets or sets the certificate key for this credential. + * + * @return the certificateKey value + */ + public String certificateKey() { + return this.certificateKey; + } + + /** + * Set gets or sets the certificate key for this credential. + * + * @param certificateKey the certificateKey value to set + * @return the MpnsCredentialProperties object itself. + */ + public MpnsCredentialProperties withCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + return this; + } + + /** + * Get gets or sets the Mpns certificate Thumbprint. + * + * @return the thumbprint value + */ + public String thumbprint() { + return this.thumbprint; + } + + /** + * Set gets or sets the Mpns certificate Thumbprint. + * + * @param thumbprint the thumbprint value to set + * @return the MpnsCredentialProperties object itself. + */ + public MpnsCredentialProperties withThumbprint(String thumbprint) { + this.thumbprint = thumbprint; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceCreateOrUpdateParameters.java new file mode 100644 index 000000000000..74ee50dea6ec --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceCreateOrUpdateParameters.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the CreateOrUpdate Namespace operation. + */ +public class NamespaceCreateOrUpdateParameters { + /** + * Gets or sets Namespace data center location. + */ + @JsonProperty(value = "location", required = true) + private String location; + + /** + * Gets or sets Namespace tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Gets or sets properties of the Namespace. + */ + @JsonProperty(value = "properties", required = true) + private NamespaceProperties properties; + + /** + * Get gets or sets Namespace data center location. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set gets or sets Namespace data center location. + * + * @param location the location value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get gets or sets Namespace tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set gets or sets Namespace tags. + * + * @param tags the tags value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get gets or sets properties of the Namespace. + * + * @return the properties value + */ + public NamespaceProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of the Namespace. + * + * @param properties the properties value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withProperties(NamespaceProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceProperties.java new file mode 100644 index 000000000000..fb5b7678e5e2 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceProperties.java @@ -0,0 +1,310 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Namespace properties. + */ +public class NamespaceProperties { + /** + * The name of the namespace. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets or sets provisioning state of the Namespace. + */ + @JsonProperty(value = "provisioningState") + private String provisioningState; + + /** + * Specifies the targeted region in which the namespace should be created. + * It can be any of the following values: Australia EastAustralia + * SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central + * USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth + * EuropeWest Europe. + */ + @JsonProperty(value = "region") + private String region; + + /** + * Status of the namespace. It can be any of these values:1 = + * Created/Active2 = Creating3 = Suspended4 = Deleting. + */ + @JsonProperty(value = "status") + private String status; + + /** + * The time the namespace was created. + */ + @JsonProperty(value = "createdAt") + private DateTime createdAt; + + /** + * Endpoint you can use to perform NotificationHub operations. + */ + @JsonProperty(value = "serviceBusEndpoint") + private String serviceBusEndpoint; + + /** + * The Id of the Azure subscription associated with the namespace. + */ + @JsonProperty(value = "subscriptionId") + private String subscriptionId; + + /** + * ScaleUnit where the namespace gets created. + */ + @JsonProperty(value = "scaleUnit") + private String scaleUnit; + + /** + * Whether or not the namespace is currently enabled. + */ + @JsonProperty(value = "enabled") + private Boolean enabled; + + /** + * Whether or not the namespace is set as Critical. + */ + @JsonProperty(value = "critical") + private Boolean critical; + + /** + * Gets or sets the namespace type. Possible values include: 'Messaging', + * 'NotificationHub'. + */ + @JsonProperty(value = "namespaceType") + private NamespaceType namespaceType; + + /** + * Get the name of the namespace. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the namespace. + * + * @param name the name value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withName(String name) { + this.name = name; + return this; + } + + /** + * Get gets or sets provisioning state of the Namespace. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set gets or sets provisioning state of the Namespace. + * + * @param provisioningState the provisioningState value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @return the region value + */ + public String region() { + return this.region; + } + + /** + * Set specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @param region the region value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withRegion(String region) { + this.region = region; + return this; + } + + /** + * Get status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @param status the status value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the time the namespace was created. + * + * @return the createdAt value + */ + public DateTime createdAt() { + return this.createdAt; + } + + /** + * Set the time the namespace was created. + * + * @param createdAt the createdAt value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withCreatedAt(DateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get endpoint you can use to perform NotificationHub operations. + * + * @return the serviceBusEndpoint value + */ + public String serviceBusEndpoint() { + return this.serviceBusEndpoint; + } + + /** + * Set endpoint you can use to perform NotificationHub operations. + * + * @param serviceBusEndpoint the serviceBusEndpoint value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withServiceBusEndpoint(String serviceBusEndpoint) { + this.serviceBusEndpoint = serviceBusEndpoint; + return this; + } + + /** + * Get the Id of the Azure subscription associated with the namespace. + * + * @return the subscriptionId value + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the Id of the Azure subscription associated with the namespace. + * + * @param subscriptionId the subscriptionId value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get scaleUnit where the namespace gets created. + * + * @return the scaleUnit value + */ + public String scaleUnit() { + return this.scaleUnit; + } + + /** + * Set scaleUnit where the namespace gets created. + * + * @param scaleUnit the scaleUnit value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withScaleUnit(String scaleUnit) { + this.scaleUnit = scaleUnit; + return this; + } + + /** + * Get whether or not the namespace is currently enabled. + * + * @return the enabled value + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set whether or not the namespace is currently enabled. + * + * @param enabled the enabled value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get whether or not the namespace is set as Critical. + * + * @return the critical value + */ + public Boolean critical() { + return this.critical; + } + + /** + * Set whether or not the namespace is set as Critical. + * + * @param critical the critical value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withCritical(Boolean critical) { + this.critical = critical; + return this; + } + + /** + * Get gets or sets the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @return the namespaceType value + */ + public NamespaceType namespaceType() { + return this.namespaceType; + } + + /** + * Set gets or sets the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @param namespaceType the namespaceType value to set + * @return the NamespaceProperties object itself. + */ + public NamespaceProperties withNamespaceType(NamespaceType namespaceType) { + this.namespaceType = namespaceType; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceResource.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceResource.java new file mode 100644 index 000000000000..6075117a26a6 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceResource.java @@ -0,0 +1,85 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NamespaceResourceInner; + +/** + * Type representing NamespaceResource. + */ +public interface NamespaceResource extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the properties value. + */ + NamespaceProperties properties(); + + /** + * The entirety of the NamespaceResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of NamespaceResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NamespaceResource definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the NamespaceResource definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the namespaceresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Gets or sets properties of the Namespace + * @return the next definition stage +*/ + WithCreate withProperties(NamespaceProperties properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags { + } + } + /** + * The template for a NamespaceResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags { + } + + /** + * Grouping of NamespaceResource update stages. + */ + interface UpdateStages { + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceSharedAccessAuthorizationRuleResource.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceSharedAccessAuthorizationRuleResource.java new file mode 100644 index 000000000000..d01429410fef --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceSharedAccessAuthorizationRuleResource.java @@ -0,0 +1,163 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.SharedAccessAuthorizationRuleResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NotificationHubsManager; +import java.util.Map; + +/** + * Type representing NamespaceSharedAccessAuthorizationRuleResource. + */ +public interface NamespaceSharedAccessAuthorizationRuleResource extends HasInner, Indexable, Updatable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + SharedAccessAuthorizationRuleProperties properties(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the NamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of NamespaceSharedAccessAuthorizationRuleResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Blank extends WithNamespace { + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Namespace. + */ + interface WithNamespace { + /** + * Specifies resourceGroupName, namespaceName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @return the next definition stage + */ + WithProperties withExistingNamespace(String resourceGroupName, String namespaceName); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Gets or sets properties of the Namespace AuthorizationRules + * @return the next definition stage + */ + WithCreate withProperties(SharedAccessAuthorizationRuleProperties properties); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Gets or sets Namespace data center location + * @return the next definition stage + */ + WithCreate withLocation(String location); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Name. + */ + interface WithName { + /** + * Specifies name. + * @param name Gets or sets Name of the Namespace AuthorizationRule + * @return the next definition stage + */ + WithCreate withName(String name); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithLocation, DefinitionStages.WithName { + } + } + /** + * The template for a NamespaceSharedAccessAuthorizationRuleResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithLocation, UpdateStages.WithName { + } + + /** + * Grouping of NamespaceSharedAccessAuthorizationRuleResource update stages. + */ + interface UpdateStages { + /** + * The stage of the namespacesharedaccessauthorizationruleresource update allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Gets or sets Namespace data center location + * @return the next update stage + */ + Update withLocation(String location); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource update allowing to specify Name. + */ + interface WithName { + /** + * Specifies name. + * @param name Gets or sets Name of the Namespace AuthorizationRule + * @return the next update stage + */ + Update withName(String name); + } + + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceType.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceType.java new file mode 100644 index 000000000000..91942daec48a --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NamespaceType.java @@ -0,0 +1,53 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for NamespaceType. + */ +public enum NamespaceType { + /** Enum value Messaging. */ + MESSAGING("Messaging"), + + /** Enum value NotificationHub. */ + NOTIFICATION_HUB("NotificationHub"); + + /** The actual serialized value for a NamespaceType instance. */ + private String value; + + NamespaceType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a NamespaceType instance. + * + * @param value the serialized value to parse. + * @return the parsed NamespaceType object, or null if unable to parse. + */ + @JsonCreator + public static NamespaceType fromString(String value) { + NamespaceType[] items = NamespaceType.values(); + for (NamespaceType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/Namespaces.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/Namespaces.java new file mode 100644 index 000000000000..d27f677325b3 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/Namespaces.java @@ -0,0 +1,94 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import rx.Completable; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NamespacesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Namespaces. + */ +public interface Namespaces extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Begins definition for a new AuthorizationRule resource. + * @param name resource name. + * @return the first stage of the new AuthorizationRule definition. + */ + NamespaceSharedAccessAuthorizationRuleResource.DefinitionStages.Blank defineAuthorizationRule(String name); + + /** + * The Get Operation Status operation returns the status of the specified operation. After calling an asynchronous operation, you can call Get Operation Status to determine whether the operation has succeeded, failed, or is still in progress. + * + * @param operationStatusLink Location value returned by the Begin operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable getLongRunningOperationStatusAsync(String operationStatusLink); + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName); + + /** + * Checks the availability of the given service namespace across all Windows Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters); + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubCreateOrUpdateParameters.java new file mode 100644 index 000000000000..1bc832efd273 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubCreateOrUpdateParameters.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the CreateOrUpdate NotificationHub operation. + */ +public class NotificationHubCreateOrUpdateParameters { + /** + * Gets or sets NotificationHub data center location. + */ + @JsonProperty(value = "location", required = true) + private String location; + + /** + * Gets or sets NotificationHub tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Gets or sets properties of the NotificationHub. + */ + @JsonProperty(value = "properties", required = true) + private NotificationHubProperties properties; + + /** + * Get gets or sets NotificationHub data center location. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set gets or sets NotificationHub data center location. + * + * @param location the location value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get gets or sets NotificationHub tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set gets or sets NotificationHub tags. + * + * @param tags the tags value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get gets or sets properties of the NotificationHub. + * + * @return the properties value + */ + public NotificationHubProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of the NotificationHub. + * + * @param properties the properties value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withProperties(NotificationHubProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java new file mode 100644 index 000000000000..64787f72f137 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java @@ -0,0 +1,164 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.SharedAccessAuthorizationRuleResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NotificationHubsManager; +import java.util.Map; + +/** + * Type representing NotificationHubNamespaceSharedAccessAuthorizationRuleResource. + */ +public interface NotificationHubNamespaceSharedAccessAuthorizationRuleResource extends HasInner, Indexable, Updatable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + SharedAccessAuthorizationRuleProperties properties(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNotificationHub, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Blank extends WithNotificationHub { + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify NotificationHub. + */ + interface WithNotificationHub { + /** + * Specifies resourceGroupName, namespaceName, notificationHubName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name + * @return the next definition stage + */ + WithProperties withExistingNotificationHub(String resourceGroupName, String namespaceName, String notificationHubName); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Gets or sets properties of the Namespace AuthorizationRules + * @return the next definition stage + */ + WithCreate withProperties(SharedAccessAuthorizationRuleProperties properties); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Gets or sets Namespace data center location + * @return the next definition stage + */ + WithCreate withLocation(String location); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify Name. + */ + interface WithName { + /** + * Specifies name. + * @param name Gets or sets Name of the Namespace AuthorizationRule + * @return the next definition stage + */ + WithCreate withName(String name); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithLocation, DefinitionStages.WithName { + } + } + /** + * The template for a NotificationHubNamespaceSharedAccessAuthorizationRuleResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithLocation, UpdateStages.WithName { + } + + /** + * Grouping of NotificationHubNamespaceSharedAccessAuthorizationRuleResource update stages. + */ + interface UpdateStages { + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource update allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Gets or sets Namespace data center location + * @return the next update stage + */ + Update withLocation(String location); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource update allowing to specify Name. + */ + interface WithName { + /** + * Specifies name. + * @param name Gets or sets Name of the Namespace AuthorizationRule + * @return the next update stage + */ + Update withName(String name); + } + + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubProperties.java new file mode 100644 index 000000000000..7474d18991eb --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubProperties.java @@ -0,0 +1,252 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * NotificationHub properties. + */ +public class NotificationHubProperties { + /** + * The NotificationHub name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The RegistrationTtl of the created NotificationHub. + */ + @JsonProperty(value = "registrationTtl") + private String registrationTtl; + + /** + * The AuthorizationRules of the created NotificationHub. + */ + @JsonProperty(value = "authorizationRules") + private List authorizationRules; + + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "baiduCredential") + private BaiduCredential baiduCredential; + + /** + * Get the NotificationHub name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the NotificationHub name. + * + * @param name the name value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withName(String name) { + this.name = name; + return this; + } + + /** + * Get the RegistrationTtl of the created NotificationHub. + * + * @return the registrationTtl value + */ + public String registrationTtl() { + return this.registrationTtl; + } + + /** + * Set the RegistrationTtl of the created NotificationHub. + * + * @param registrationTtl the registrationTtl value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withRegistrationTtl(String registrationTtl) { + this.registrationTtl = registrationTtl; + return this; + } + + /** + * Get the AuthorizationRules of the created NotificationHub. + * + * @return the authorizationRules value + */ + public List authorizationRules() { + return this.authorizationRules; + } + + /** + * Set the AuthorizationRules of the created NotificationHub. + * + * @param authorizationRules the authorizationRules value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withAuthorizationRules(List authorizationRules) { + this.authorizationRules = authorizationRules; + return this; + } + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the NotificationHubProperties object itself. + */ + public NotificationHubProperties withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubResource.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubResource.java new file mode 100644 index 000000000000..3d7baf2d5ca8 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubResource.java @@ -0,0 +1,152 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NotificationHubResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NotificationHubsManager; +import java.util.Map; + +/** + * Type representing NotificationHubResource. + */ +public interface NotificationHubResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + NotificationHubProperties properties(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the NotificationHubResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithLocation, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of NotificationHubResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NotificationHubResource definition. + */ + interface Blank extends WithNamespace { + } + + /** + * The stage of the notificationhubresource definition allowing to specify Namespace. + */ + interface WithNamespace { + /** + * Specifies resourceGroupName, namespaceName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @return the next definition stage + */ + WithLocation withExistingNamespace(String resourceGroupName, String namespaceName); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Gets or sets NotificationHub data center location + * @return the next definition stage + */ + WithProperties withLocation(String location); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Gets or sets properties of the NotificationHub + * @return the next definition stage + */ + WithCreate withProperties(NotificationHubProperties properties); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Gets or sets NotificationHub tags + * @return the next definition stage + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithTags { + } + } + /** + * The template for a NotificationHubResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithTags { + } + + /** + * Grouping of NotificationHubResource update stages. + */ + interface UpdateStages { + /** + * The stage of the notificationhubresource update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Gets or sets NotificationHub tags + * @return the next update stage + */ + Update withTags(Map tags); + } + + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubs.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubs.java new file mode 100644 index 000000000000..79221672b929 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/NotificationHubs.java @@ -0,0 +1,129 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NotificationHubsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing NotificationHubs. + */ +public interface NotificationHubs extends SupportsCreating, HasInner { + /** + * Begins definition for a new AuthorizationRule resource. + * @param name resource name. + * @return the first stage of the new AuthorizationRule definition. + */ + NotificationHubNamespaceSharedAccessAuthorizationRuleResource.DefinitionStages.Blank defineAuthorizationRule(String name); + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName); + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(final String resourceGroupName, final String namespaceName); + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters); + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ResourceListKeys.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ResourceListKeys.java new file mode 100644 index 000000000000..d30360757f2c --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/ResourceListKeys.java @@ -0,0 +1,30 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation.ResourceListKeysInner; + +/** + * Type representing ResourceListKeys. + */ +public interface ResourceListKeys extends HasInner, HasManager { + /** + * @return the primaryConnectionString value. + */ + String primaryConnectionString(); + + /** + * @return the secondaryConnectionString value. + */ + String secondaryConnectionString(); + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java new file mode 100644 index 000000000000..5e3a4745f8c9 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. + */ +public class SharedAccessAuthorizationRuleCreateOrUpdateParameters { + /** + * Gets or sets Namespace data center location. + */ + @JsonProperty(value = "location") + private String location; + + /** + * Gets or sets Name of the Namespace AuthorizationRule. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets or sets properties of the Namespace AuthorizationRules. + */ + @JsonProperty(value = "properties", required = true) + private SharedAccessAuthorizationRuleProperties properties; + + /** + * Get gets or sets Namespace data center location. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set gets or sets Namespace data center location. + * + * @param location the location value to set + * @return the SharedAccessAuthorizationRuleCreateOrUpdateParameters object itself. + */ + public SharedAccessAuthorizationRuleCreateOrUpdateParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get gets or sets Name of the Namespace AuthorizationRule. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set gets or sets Name of the Namespace AuthorizationRule. + * + * @param name the name value to set + * @return the SharedAccessAuthorizationRuleCreateOrUpdateParameters object itself. + */ + public SharedAccessAuthorizationRuleCreateOrUpdateParameters withName(String name) { + this.name = name; + return this; + } + + /** + * Get gets or sets properties of the Namespace AuthorizationRules. + * + * @return the properties value + */ + public SharedAccessAuthorizationRuleProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of the Namespace AuthorizationRules. + * + * @param properties the properties value to set + * @return the SharedAccessAuthorizationRuleCreateOrUpdateParameters object itself. + */ + public SharedAccessAuthorizationRuleCreateOrUpdateParameters withProperties(SharedAccessAuthorizationRuleProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/SharedAccessAuthorizationRuleProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/SharedAccessAuthorizationRuleProperties.java new file mode 100644 index 000000000000..cdb5a512d228 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/SharedAccessAuthorizationRuleProperties.java @@ -0,0 +1,253 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import java.util.List; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SharedAccessAuthorizationRule properties. + */ +public class SharedAccessAuthorizationRuleProperties { + /** + * The primary key that was used. + */ + @JsonProperty(value = "primaryKey") + private String primaryKey; + + /** + * The secondary key that was used. + */ + @JsonProperty(value = "secondaryKey") + private String secondaryKey; + + /** + * The name of the key that was used. + */ + @JsonProperty(value = "keyName") + private String keyName; + + /** + * The type of the claim. + */ + @JsonProperty(value = "claimType") + private String claimType; + + /** + * The value of the claim. + */ + @JsonProperty(value = "claimValue") + private String claimValue; + + /** + * The rights associated with the rule. + */ + @JsonProperty(value = "rights") + private List rights; + + /** + * The time at which the authorization rule was created. + */ + @JsonProperty(value = "createdTime") + private DateTime createdTime; + + /** + * The most recent time the rule was updated. + */ + @JsonProperty(value = "modifiedTime") + private DateTime modifiedTime; + + /** + * The revision number for the rule. + */ + @JsonProperty(value = "revision") + private Integer revision; + + /** + * Get the primary key that was used. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Set the primary key that was used. + * + * @param primaryKey the primaryKey value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withPrimaryKey(String primaryKey) { + this.primaryKey = primaryKey; + return this; + } + + /** + * Get the secondary key that was used. + * + * @return the secondaryKey value + */ + public String secondaryKey() { + return this.secondaryKey; + } + + /** + * Set the secondary key that was used. + * + * @param secondaryKey the secondaryKey value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withSecondaryKey(String secondaryKey) { + this.secondaryKey = secondaryKey; + return this; + } + + /** + * Get the name of the key that was used. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Set the name of the key that was used. + * + * @param keyName the keyName value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withKeyName(String keyName) { + this.keyName = keyName; + return this; + } + + /** + * Get the type of the claim. + * + * @return the claimType value + */ + public String claimType() { + return this.claimType; + } + + /** + * Set the type of the claim. + * + * @param claimType the claimType value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withClaimType(String claimType) { + this.claimType = claimType; + return this; + } + + /** + * Get the value of the claim. + * + * @return the claimValue value + */ + public String claimValue() { + return this.claimValue; + } + + /** + * Set the value of the claim. + * + * @param claimValue the claimValue value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withClaimValue(String claimValue) { + this.claimValue = claimValue; + return this; + } + + /** + * Get the rights associated with the rule. + * + * @return the rights value + */ + public List rights() { + return this.rights; + } + + /** + * Set the rights associated with the rule. + * + * @param rights the rights value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withRights(List rights) { + this.rights = rights; + return this; + } + + /** + * Get the time at which the authorization rule was created. + * + * @return the createdTime value + */ + public DateTime createdTime() { + return this.createdTime; + } + + /** + * Set the time at which the authorization rule was created. + * + * @param createdTime the createdTime value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withCreatedTime(DateTime createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + * Get the most recent time the rule was updated. + * + * @return the modifiedTime value + */ + public DateTime modifiedTime() { + return this.modifiedTime; + } + + /** + * Set the most recent time the rule was updated. + * + * @param modifiedTime the modifiedTime value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withModifiedTime(DateTime modifiedTime) { + this.modifiedTime = modifiedTime; + return this; + } + + /** + * Get the revision number for the rule. + * + * @return the revision value + */ + public Integer revision() { + return this.revision; + } + + /** + * Set the revision number for the rule. + * + * @param revision the revision value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withRevision(Integer revision) { + this.revision = revision; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/WnsCredential.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/WnsCredential.java new file mode 100644 index 000000000000..14085de58dc3 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/WnsCredential.java @@ -0,0 +1,43 @@ +/** + * 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.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub WnsCredential. + */ +public class WnsCredential { + /** + * Gets or sets properties of NotificationHub WnsCredential. + */ + @JsonProperty(value = "properties") + private WnsCredentialProperties properties; + + /** + * Get gets or sets properties of NotificationHub WnsCredential. + * + * @return the properties value + */ + public WnsCredentialProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of NotificationHub WnsCredential. + * + * @param properties the properties value to set + * @return the WnsCredential object itself. + */ + public WnsCredential withProperties(WnsCredentialProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/WnsCredentialProperties.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/WnsCredentialProperties.java new file mode 100644 index 000000000000..74da872fe837 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/WnsCredentialProperties.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub WnsCredential. + */ +public class WnsCredentialProperties { + /** + * Gets or sets the package ID for this credential. + */ + @JsonProperty(value = "packageSid") + private String packageSid; + + /** + * Gets or sets the secret key. + */ + @JsonProperty(value = "secretKey") + private String secretKey; + + /** + * Gets or sets the Windows Live endpoint. + */ + @JsonProperty(value = "windowsLiveEndpoint") + private String windowsLiveEndpoint; + + /** + * Get gets or sets the package ID for this credential. + * + * @return the packageSid value + */ + public String packageSid() { + return this.packageSid; + } + + /** + * Set gets or sets the package ID for this credential. + * + * @param packageSid the packageSid value to set + * @return the WnsCredentialProperties object itself. + */ + public WnsCredentialProperties withPackageSid(String packageSid) { + this.packageSid = packageSid; + return this; + } + + /** + * Get gets or sets the secret key. + * + * @return the secretKey value + */ + public String secretKey() { + return this.secretKey; + } + + /** + * Set gets or sets the secret key. + * + * @param secretKey the secretKey value to set + * @return the WnsCredentialProperties object itself. + */ + public WnsCredentialProperties withSecretKey(String secretKey) { + this.secretKey = secretKey; + return this; + } + + /** + * Get gets or sets the Windows Live endpoint. + * + * @return the windowsLiveEndpoint value + */ + public String windowsLiveEndpoint() { + return this.windowsLiveEndpoint; + } + + /** + * Set gets or sets the Windows Live endpoint. + * + * @param windowsLiveEndpoint the windowsLiveEndpoint value to set + * @return the WnsCredentialProperties object itself. + */ + public WnsCredentialProperties withWindowsLiveEndpoint(String windowsLiveEndpoint) { + this.windowsLiveEndpoint = windowsLiveEndpoint; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/CheckAvailabilityResourceImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/CheckAvailabilityResourceImpl.java new file mode 100644 index 000000000000..7ff3ca2035bf --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/CheckAvailabilityResourceImpl.java @@ -0,0 +1,57 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2014_09_01.CheckAvailabilityResource; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.Map; + +class CheckAvailabilityResourceImpl extends WrapperImpl implements CheckAvailabilityResource { + private final NotificationHubsManager manager; + CheckAvailabilityResourceImpl(CheckAvailabilityResourceInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public Boolean isAvailiable() { + return this.inner().isAvailiable(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Map tags() { + return this.inner().tags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/CheckAvailabilityResourceInner.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/CheckAvailabilityResourceInner.java new file mode 100644 index 000000000000..dd2f0fef8dfd --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/CheckAvailabilityResourceInner.java @@ -0,0 +1,175 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a CheckAvailibility resource. + */ +public class CheckAvailabilityResourceInner { + /** + * Gets or sets the id. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Gets or sets datacenter location. + */ + @JsonProperty(value = "location") + private String location; + + /** + * Gets or sets name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets or sets resource type. + */ + @JsonProperty(value = "type") + private String type; + + /** + * Gets or sets tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Gets or sets true if the name is available and can be used to create new + * Namespace/NotificationHub. Otherwise false. + */ + @JsonProperty(value = "isAvailiable") + private Boolean isAvailiable; + + /** + * Get gets or sets the id. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set gets or sets the id. + * + * @param id the id value to set + * @return the CheckAvailabilityResourceInner object itself. + */ + public CheckAvailabilityResourceInner withId(String id) { + this.id = id; + return this; + } + + /** + * Get gets or sets datacenter location. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set gets or sets datacenter location. + * + * @param location the location value to set + * @return the CheckAvailabilityResourceInner object itself. + */ + public CheckAvailabilityResourceInner withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get gets or sets name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set gets or sets name. + * + * @param name the name value to set + * @return the CheckAvailabilityResourceInner object itself. + */ + public CheckAvailabilityResourceInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get gets or sets resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set gets or sets resource type. + * + * @param type the type value to set + * @return the CheckAvailabilityResourceInner object itself. + */ + public CheckAvailabilityResourceInner withType(String type) { + this.type = type; + return this; + } + + /** + * Get gets or sets tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set gets or sets tags. + * + * @param tags the tags value to set + * @return the CheckAvailabilityResourceInner object itself. + */ + public CheckAvailabilityResourceInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get gets or sets true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @return the isAvailiable value + */ + public Boolean isAvailiable() { + return this.isAvailiable; + } + + /** + * Set gets or sets true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @param isAvailiable the isAvailiable value to set + * @return the CheckAvailabilityResourceInner object itself. + */ + public CheckAvailabilityResourceInner withIsAvailiable(Boolean isAvailiable) { + this.isAvailiable = isAvailiable; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/IdParsingUtils.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/IdParsingUtils.java new file mode 100644 index 000000000000..cd227e4b8e49 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/IdParsingUtils.java @@ -0,0 +1,57 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; +import java.util.Arrays; +import java.util.Iterator; + +class IdParsingUtils { + public static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + public static String getValueFromIdByPosition(String id, int pos) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + int index = 0; + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (index == pos) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + index++; + } + return null; + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceResourceImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceResourceImpl.java new file mode 100644 index 000000000000..e6bb81a5611a --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceResourceImpl.java @@ -0,0 +1,81 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceResource; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceProperties; +import rx.functions.Func1; + +class NamespaceResourceImpl extends GroupableResourceCoreImpl implements NamespaceResource, NamespaceResource.Definition, NamespaceResource.Update { + private NamespaceCreateOrUpdateParameters createOrUpdateParameter; + NamespaceResourceImpl(String name, NamespaceResourceInner inner, NotificationHubsManager manager) { + super(name, inner, manager); + this.createOrUpdateParameter = new NamespaceCreateOrUpdateParameters(); + } + + @Override + public Observable createResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + this.createOrUpdateParameter.withLocation(inner().location()); + this.createOrUpdateParameter.withTags(inner().getTags()); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.createOrUpdateParameter) + .map(new Func1() { + @Override + public NamespaceResourceInner call(NamespaceResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.createOrUpdateParameter) + .map(new Func1() { + @Override + public NamespaceResourceInner call(NamespaceResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new NamespaceCreateOrUpdateParameters(); + } + + @Override + public NamespaceProperties properties() { + return this.inner().properties(); + } + + @Override + public NamespaceResourceImpl withProperties(NamespaceProperties properties) { + this.createOrUpdateParameter.withProperties(properties); + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceResourceInner.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceResourceInner.java new file mode 100644 index 000000000000..b0db44558b41 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceResourceInner.java @@ -0,0 +1,45 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Resource; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceProperties; + +/** + * Description of a Namespace resource. + */ +public class NamespaceResourceInner extends Resource { + /** + * Gets or sets properties of the Namespace. + */ + @JsonProperty(value = "properties") + private NamespaceProperties properties; + + /** + * Get gets or sets properties of the Namespace. + * + * @return the properties value + */ + public NamespaceProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of the Namespace. + * + * @param properties the properties value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withProperties(NamespaceProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java new file mode 100644 index 000000000000..443095e37031 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java @@ -0,0 +1,151 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.SharedAccessAuthorizationRuleProperties; +import java.util.Map; +import rx.functions.Func1; + +class NamespaceSharedAccessAuthorizationRuleResourceImpl extends CreatableUpdatableImpl implements NamespaceSharedAccessAuthorizationRuleResource, NamespaceSharedAccessAuthorizationRuleResource.Definition, NamespaceSharedAccessAuthorizationRuleResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String authorizationRuleName; + private SharedAccessAuthorizationRuleCreateOrUpdateParameters createOrUpdateParameter; + + NamespaceSharedAccessAuthorizationRuleResourceImpl(String name, NotificationHubsManager manager) { + super(name, new SharedAccessAuthorizationRuleResourceInner()); + this.manager = manager; + // Set resource name + this.authorizationRuleName = name; + // + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + NamespaceSharedAccessAuthorizationRuleResourceImpl(SharedAccessAuthorizationRuleResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.authorizationRuleName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.authorizationRuleName = IdParsingUtils.getValueFromIdByName(inner.id(), "AuthorizationRules"); + // + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.authorizationRuleName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.authorizationRuleName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return null; // NOP getInnerAsync implementation as get is not supported + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public SharedAccessAuthorizationRuleProperties properties() { + return this.inner().properties(); + } + + @Override + public Map tags() { + return this.inner().tags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withExistingNamespace(String resourceGroupName, String namespaceName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + return this; + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withProperties(SharedAccessAuthorizationRuleProperties properties) { + this.createOrUpdateParameter.withProperties(properties); + return this; + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withLocation(String location) { + this.createOrUpdateParameter.withLocation(location); + return this; + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withName(String name) { + this.createOrUpdateParameter.withName(name); + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespacesImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespacesImpl.java new file mode 100644 index 000000000000..b04bc4b0e286 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespacesImpl.java @@ -0,0 +1,221 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.Namespaces; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceResource; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.CheckAvailabilityResource; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.ResourceListKeys; + +class NamespacesImpl extends GroupableResourcesCoreImpl implements Namespaces { + protected NamespacesImpl(NotificationHubsManager manager) { + super(manager.inner().namespaces(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + NamespacesInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + NamespacesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + NamespacesInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + NamespacesInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceResource call(NamespaceResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + NamespacesInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + NamespacesInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceResource call(NamespaceResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public NamespaceResourceImpl define(String name) { + return wrapModel(name); + } + + @Override + public Completable getLongRunningOperationStatusAsync(String operationStatusLink) { + NamespacesInner client = this.inner(); + return client.getLongRunningOperationStatusAsync(operationStatusLink).toCompletable(); + } + + @Override + public Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName) { + NamespacesInner client = this.inner(); + return client.listAuthorizationRulesAsync(resourceGroupName, namespaceName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters) { + NamespacesInner client = this.inner(); + return client.checkAvailabilityAsync(parameters) + .map(new Func1() { + @Override + public CheckAvailabilityResource call(CheckAvailabilityResourceInner inner) { + return new CheckAvailabilityResourceImpl(inner, manager()); + } + }); + } + + @Override + protected NamespaceResourceImpl wrapModel(NamespaceResourceInner inner) { + return new NamespaceResourceImpl(inner.name(), inner, manager()); + } + + @Override + protected NamespaceResourceImpl wrapModel(String name) { + return new NamespaceResourceImpl(name, new NamespaceResourceInner(), this.manager()); + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl defineAuthorizationRule(String name) { + return wrapAuthorizationRuleModel(name); + } + + private NamespaceSharedAccessAuthorizationRuleResourceImpl wrapAuthorizationRuleModel(String name) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(name, this.manager()); + } + + private NamespaceSharedAccessAuthorizationRuleResourceImpl wrapNamespaceSharedAccessAuthorizationRuleResourceModel(SharedAccessAuthorizationRuleResourceInner inner) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + + @Override + public Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName).toCompletable(); + } + + @Override + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName) + .map(new Func1() { + @Override + public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.listKeysAsync(resourceGroupName, namespaceName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespacesInner.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespacesInner.java new file mode 100644 index 000000000000..1e27ad6ba0ba --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NamespacesInner.java @@ -0,0 +1,1685 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Namespaces. + */ +public class NamespacesInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private NamespacesService service; + /** The service client containing this operation class. */ + private NotificationHubsManagementClientImpl client; + + /** + * Initializes an instance of NamespacesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public NamespacesInner(Retrofit retrofit, NotificationHubsManagementClientImpl client) { + this.service = retrofit.create(NamespacesService.class); + this.client = client; + } + + /** + * The interface defining all the services for Namespaces to be + * used by Retrofit to perform actually REST calls. + */ + interface NamespacesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2014_09_01.Namespaces checkAvailability" }) + @POST("subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability") + Observable> checkAvailability(@Path("subscriptionId") String subscriptionId, @Body CheckAvailabilityParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}") + Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body NamespaceCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}") + Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces createOrUpdateAuthorizationRule" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}") + Observable> createOrUpdateAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Body SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces deleteAuthorizationRule" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", method = "DELETE", hasBody = true) + Observable> deleteAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces getAuthorizationRule" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}") + Observable> getAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces getLongRunningOperationStatus" }) + @GET("{operationStatusLink}") + Observable> getLongRunningOperationStatus(@Path(value = "operationStatusLink", encoded = true) String operationStatusLink, @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.management.notificationhubs.v2014_09_01.Namespaces listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces") + Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces listAuthorizationRules" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules") + Observable> listAuthorizationRules(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces listKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys") + Observable> listKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.Namespaces listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.notificationhubs.v2014_09_01.Namespaces listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.notificationhubs.v2014_09_01.Namespaces listAuthorizationRulesNext" }) + @GET + Observable> listAuthorizationRulesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Checks the availability of the given service namespace across all Windows Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CheckAvailabilityResourceInner object if successful. + */ + public CheckAvailabilityResourceInner checkAvailability(CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(parameters).toBlocking().single().body(); + } + + /** + * Checks the availability of the given service namespace across all Windows Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkAvailabilityAsync(CheckAvailabilityParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkAvailabilityWithServiceResponseAsync(parameters), serviceCallback); + } + + /** + * Checks the availability of the given service namespace across all Windows Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResourceInner object + */ + public Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(parameters).map(new Func1, CheckAvailabilityResourceInner>() { + @Override + public CheckAvailabilityResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Checks the availability of the given service namespace across all Windows Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResourceInner object + */ + public Observable> checkAvailabilityWithServiceResponseAsync(CheckAvailabilityParameters parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.checkAvailability(this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = checkAvailabilityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse checkAvailabilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NamespaceResourceInner object if successful. + */ + public NamespaceResourceInner createOrUpdate(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).toBlocking().single().body(); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters), serviceCallback); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1, NamespaceResourceInner>() { + @Override + public NamespaceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdate(resourceGroupName, namespaceName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String namespaceName) { + deleteWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().last().body(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String namespaceName) { + return deleteWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String namespaceName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().single().body(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String namespaceName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NamespaceResourceInner object if successful. + */ + public NamespaceResourceInner getByResourceGroup(String resourceGroupName, String namespaceName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().single().body(); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String namespaceName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, NamespaceResourceInner>() { + @Override + public NamespaceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters).toBlocking().single().body(); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param parameters The shared access authorization rule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters), serviceCallback); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> createOrUpdateAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName) { + deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner getAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> getAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * The Get Operation Status operation returns the status of the specified operation. After calling an asynchronous operation, you can call Get Operation Status to determine whether the operation has succeeded, failed, or is still in progress. + * + * @param operationStatusLink Location value returned by the Begin operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void getLongRunningOperationStatus(String operationStatusLink) { + getLongRunningOperationStatusWithServiceResponseAsync(operationStatusLink).toBlocking().single().body(); + } + + /** + * The Get Operation Status operation returns the status of the specified operation. After calling an asynchronous operation, you can call Get Operation Status to determine whether the operation has succeeded, failed, or is still in progress. + * + * @param operationStatusLink Location value returned by the Begin operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getLongRunningOperationStatusAsync(String operationStatusLink, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getLongRunningOperationStatusWithServiceResponseAsync(operationStatusLink), serviceCallback); + } + + /** + * The Get Operation Status operation returns the status of the specified operation. After calling an asynchronous operation, you can call Get Operation Status to determine whether the operation has succeeded, failed, or is still in progress. + * + * @param operationStatusLink Location value returned by the Begin operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable getLongRunningOperationStatusAsync(String operationStatusLink) { + return getLongRunningOperationStatusWithServiceResponseAsync(operationStatusLink).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Get Operation Status operation returns the status of the specified operation. After calling an asynchronous operation, you can call Get Operation Status to determine whether the operation has succeeded, failed, or is still in progress. + * + * @param operationStatusLink Location value returned by the Begin operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> getLongRunningOperationStatusWithServiceResponseAsync(String operationStatusLink) { + if (operationStatusLink == null) { + throw new IllegalArgumentException("Parameter operationStatusLink is required and cannot be null."); + } + return service.getLongRunningOperationStatus(operationStatusLink, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getLongRunningOperationStatusDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getLongRunningOperationStatusDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRules(final String resourceGroupName, final String namespaceName) { + ServiceResponse> response = listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName) { + return listAuthorizationRulesWithServiceResponseAsync(resourceGroupName, namespaceName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesWithServiceResponseAsync(final String resourceGroupName, final String namespaceName) { + return listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesSinglePageAsync(final String resourceGroupName, final String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listAuthorizationRules(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> listKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listKeys(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRulesNext(final String nextPageLink) { + ServiceResponse> response = listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesNextAsync(final String nextPageLink) { + return listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesNextWithServiceResponseAsync(final String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listAuthorizationRulesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java new file mode 100644 index 000000000000..9a04a081ba1d --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java @@ -0,0 +1,154 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubNamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.SharedAccessAuthorizationRuleProperties; +import java.util.Map; +import rx.functions.Func1; + +class NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl extends CreatableUpdatableImpl implements NotificationHubNamespaceSharedAccessAuthorizationRuleResource, NotificationHubNamespaceSharedAccessAuthorizationRuleResource.Definition, NotificationHubNamespaceSharedAccessAuthorizationRuleResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String notificationHubName; + private String authorizationRuleName; + private SharedAccessAuthorizationRuleCreateOrUpdateParameters createOrUpdateParameter; + + NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(String name, NotificationHubsManager manager) { + super(name, new SharedAccessAuthorizationRuleResourceInner()); + this.manager = manager; + // Set resource name + this.authorizationRuleName = name; + // + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(SharedAccessAuthorizationRuleResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.authorizationRuleName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.notificationHubName = IdParsingUtils.getValueFromIdByName(inner.id(), "notificationHubs"); + this.authorizationRuleName = IdParsingUtils.getValueFromIdByName(inner.id(), "AuthorizationRules"); + // + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.authorizationRuleName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.authorizationRuleName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return null; // NOP getInnerAsync implementation as get is not supported + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public SharedAccessAuthorizationRuleProperties properties() { + return this.inner().properties(); + } + + @Override + public Map tags() { + return this.inner().tags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withExistingNotificationHub(String resourceGroupName, String namespaceName, String notificationHubName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + this.notificationHubName = notificationHubName; + return this; + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withProperties(SharedAccessAuthorizationRuleProperties properties) { + this.createOrUpdateParameter.withProperties(properties); + return this; + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withLocation(String location) { + this.createOrUpdateParameter.withLocation(location); + return this; + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withName(String name) { + this.createOrUpdateParameter.withName(name); + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubResourceImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubResourceImpl.java new file mode 100644 index 000000000000..0dc84a8af10b --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubResourceImpl.java @@ -0,0 +1,151 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubCreateOrUpdateParameters; +import java.util.Map; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubProperties; +import rx.functions.Func1; + +class NotificationHubResourceImpl extends CreatableUpdatableImpl implements NotificationHubResource, NotificationHubResource.Definition, NotificationHubResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String notificationHubName; + private NotificationHubCreateOrUpdateParameters createOrUpdateParameter; + + NotificationHubResourceImpl(String name, NotificationHubsManager manager) { + super(name, new NotificationHubResourceInner()); + this.manager = manager; + // Set resource name + this.notificationHubName = name; + // + this.createOrUpdateParameter = new NotificationHubCreateOrUpdateParameters(); + } + + NotificationHubResourceImpl(NotificationHubResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.notificationHubName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.notificationHubName = IdParsingUtils.getValueFromIdByName(inner.id(), "notificationHubs"); + // + this.createOrUpdateParameter = new NotificationHubCreateOrUpdateParameters(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public NotificationHubResourceInner call(NotificationHubResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public NotificationHubResourceInner call(NotificationHubResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.getAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new NotificationHubCreateOrUpdateParameters(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public NotificationHubProperties properties() { + return this.inner().properties(); + } + + @Override + public Map tags() { + return this.inner().tags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public NotificationHubResourceImpl withExistingNamespace(String resourceGroupName, String namespaceName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + return this; + } + + @Override + public NotificationHubResourceImpl withLocation(String location) { + this.createOrUpdateParameter.withLocation(location); + return this; + } + + @Override + public NotificationHubResourceImpl withProperties(NotificationHubProperties properties) { + this.createOrUpdateParameter.withProperties(properties); + return this; + } + + @Override + public NotificationHubResourceImpl withTags(Map tags) { + this.createOrUpdateParameter.withTags(tags); + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubResourceInner.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubResourceInner.java new file mode 100644 index 000000000000..fc246a763944 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubResourceInner.java @@ -0,0 +1,175 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import java.util.Map; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a NotificationHub Resource. + */ +public class NotificationHubResourceInner { + /** + * Gets or sets the id of the created NotificationHub. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Gets or sets datacenter location of the NotificationHub. + */ + @JsonProperty(value = "location") + private String location; + + /** + * Gets or sets name of the NotificationHub. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets or sets resource type of the NotificationHub. + */ + @JsonProperty(value = "type") + private String type; + + /** + * Gets or sets tags of the NotificationHub. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Gets or sets properties of the NotificationHub. + */ + @JsonProperty(value = "properties") + private NotificationHubProperties properties; + + /** + * Get gets or sets the id of the created NotificationHub. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set gets or sets the id of the created NotificationHub. + * + * @param id the id value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withId(String id) { + this.id = id; + return this; + } + + /** + * Get gets or sets datacenter location of the NotificationHub. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set gets or sets datacenter location of the NotificationHub. + * + * @param location the location value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get gets or sets name of the NotificationHub. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set gets or sets name of the NotificationHub. + * + * @param name the name value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get gets or sets resource type of the NotificationHub. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set gets or sets resource type of the NotificationHub. + * + * @param type the type value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withType(String type) { + this.type = type; + return this; + } + + /** + * Get gets or sets tags of the NotificationHub. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set gets or sets tags of the NotificationHub. + * + * @param tags the tags value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get gets or sets properties of the NotificationHub. + * + * @return the properties value + */ + public NotificationHubProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of the NotificationHub. + * + * @param properties the properties value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withProperties(NotificationHubProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsImpl.java new file mode 100644 index 000000000000..dfb5d7bda764 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsImpl.java @@ -0,0 +1,170 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubs; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubResource; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.CheckAvailabilityResource; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.ResourceListKeys; + +class NotificationHubsImpl extends WrapperImpl implements NotificationHubs { + private final NotificationHubsManager manager; + + NotificationHubsImpl(NotificationHubsManager manager) { + super(manager.inner().notificationHubs()); + this.manager = manager; + } + + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public NotificationHubResourceImpl define(String name) { + return wrapModel(name); + } + + private NotificationHubResourceImpl wrapModel(NotificationHubResourceInner inner) { + return new NotificationHubResourceImpl(inner, manager()); + } + + private NotificationHubResourceImpl wrapModel(String name) { + return new NotificationHubResourceImpl(name, this.manager()); + } + + @Override + public Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.listAuthorizationRulesAsync(resourceGroupName, namespaceName, notificationHubName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.getPnsCredentialsAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1() { + @Override + public NotificationHubResource call(NotificationHubResourceInner inner) { + return new NotificationHubResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAsync(final String resourceGroupName, final String namespaceName) { + NotificationHubsInner client = this.inner(); + return client.listAsync(resourceGroupName, namespaceName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NotificationHubResource call(NotificationHubResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.getAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1() { + @Override + public NotificationHubResource call(NotificationHubResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, namespaceName, notificationHubName).toCompletable(); + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl defineAuthorizationRule(String name) { + return wrapAuthorizationRuleModel(name); + } + + private NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl wrapAuthorizationRuleModel(String name) { + return new NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(name, this.manager()); + } + + private NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl wrapNotificationHubNamespaceSharedAccessAuthorizationRuleResourceModel(SharedAccessAuthorizationRuleResourceInner inner) { + return new NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + + @Override + public Observable checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + NotificationHubsInner client = this.inner(); + return client.checkAvailabilityAsync(resourceGroupName, namespaceName, parameters) + .map(new Func1() { + @Override + public CheckAvailabilityResource call(CheckAvailabilityResourceInner inner) { + return new CheckAvailabilityResourceImpl(inner, manager()); + } + }); + } + + @Override + public Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toCompletable(); + } + + @Override + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName) + .map(new Func1() { + @Override + public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.listKeysAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsInner.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsInner.java new file mode 100644 index 000000000000..69329930cee0 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsInner.java @@ -0,0 +1,1480 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in NotificationHubs. + */ +public class NotificationHubsInner { + /** The Retrofit service to perform REST calls. */ + private NotificationHubsService service; + /** The service client containing this operation class. */ + private NotificationHubsManagementClientImpl client; + + /** + * Initializes an instance of NotificationHubsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public NotificationHubsInner(Retrofit retrofit, NotificationHubsManagementClientImpl client) { + this.service = retrofit.create(NotificationHubsService.class); + this.client = client; + } + + /** + * The interface defining all the services for NotificationHubs to be + * used by Retrofit to perform actually REST calls. + */ + interface NotificationHubsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubs checkAvailability" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability") + Observable> checkAvailability(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body CheckAvailabilityParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") + Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Body NotificationHubCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") + Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs createOrUpdateAuthorizationRule" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}") + Observable> createOrUpdateAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Body SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs deleteAuthorizationRule" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", method = "DELETE", hasBody = true) + Observable> deleteAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs getAuthorizationRule" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}") + Observable> getAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs") + Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs listAuthorizationRules" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules") + Observable> listAuthorizationRules(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs listKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys") + Observable> listKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs getPnsCredentials" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials") + Observable> getPnsCredentials(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2014_09_01.NotificationHubs listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.notificationhubs.v2014_09_01.NotificationHubs listAuthorizationRulesNext" }) + @GET + Observable> listAuthorizationRulesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CheckAvailabilityResourceInner object if successful. + */ + public CheckAvailabilityResourceInner checkAvailability(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).toBlocking().single().body(); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters), serviceCallback); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResourceInner object + */ + public Observable checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1, CheckAvailabilityResourceInner>() { + @Override + public CheckAvailabilityResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResourceInner object + */ + public Observable> checkAvailabilityWithServiceResponseAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.checkAvailability(resourceGroupName, namespaceName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = checkAvailabilityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse checkAvailabilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner createOrUpdate(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).toBlocking().single().body(); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters), serviceCallback); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdate(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String namespaceName, String notificationHubName) { + deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner get(String resourceGroupName, String namespaceName, String notificationHubName) { + return getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters).toBlocking().single().body(); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param parameters The shared access authorization rule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters), serviceCallback); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> createOrUpdateAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner getAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> getAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NotificationHubResourceInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String namespaceName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String namespaceName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, namespaceName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String namespaceName) { + return listWithServiceResponseAsync(resourceGroupName, namespaceName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String namespaceName) { + return listSinglePageAsync(resourceGroupName, namespaceName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NotificationHubResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRules(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + ServiceResponse> response = listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + return listAuthorizationRulesWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesWithServiceResponseAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + return listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name + ServiceResponse> * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesSinglePageAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listAuthorizationRules(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner listKeys(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> listKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner getPnsCredentials(String resourceGroupName, String namespaceName, String notificationHubName) { + return getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> getPnsCredentialsWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getPnsCredentials(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getPnsCredentialsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getPnsCredentialsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NotificationHubResourceInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NotificationHubResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRulesNext(final String nextPageLink) { + ServiceResponse> response = listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesNextAsync(final String nextPageLink) { + return listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesNextWithServiceResponseAsync(final String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listAuthorizationRulesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsManagementClientImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsManagementClientImpl.java new file mode 100644 index 000000000000..bb3bd88f8bdd --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsManagementClientImpl.java @@ -0,0 +1,210 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the NotificationHubsManagementClientImpl class. + */ +public class NotificationHubsManagementClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */ + private String subscriptionId; + + /** + * Gets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** Client Api Version. */ + private String apiVersion; + + /** + * Gets Client Api Version. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** The preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets The preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets The preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The NamespacesInner object to access its operations. + */ + private NamespacesInner namespaces; + + /** + * Gets the NamespacesInner object to access its operations. + * @return the NamespacesInner object. + */ + public NamespacesInner namespaces() { + return this.namespaces; + } + + /** + * The NotificationHubsInner object to access its operations. + */ + private NotificationHubsInner notificationHubs; + + /** + * Gets the NotificationHubsInner object to access its operations. + * @return the NotificationHubsInner object. + */ + public NotificationHubsInner notificationHubs() { + return this.notificationHubs; + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param credentials the management credentials for Azure + */ + public NotificationHubsManagementClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public NotificationHubsManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public NotificationHubsManagementClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2014-09-01"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.namespaces = new NamespacesInner(restClient().retrofit(), this); + this.notificationHubs = new NotificationHubsInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "NotificationHubsManagementClient", "2014-09-01"); + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsManager.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsManager.java new file mode 100644 index 000000000000..521face7ea86 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/NotificationHubsManager.java @@ -0,0 +1,111 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.Namespaces; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.NotificationHubs; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure NotificationHubs resource management. + */ +public final class NotificationHubsManager extends ManagerCore { + private Namespaces namespaces; + private NotificationHubs notificationHubs; + /** + * Get a Configurable instance that can be used to create NotificationHubsManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new NotificationHubsManager.ConfigurableImpl(); + } + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the NotificationHubsManager + */ + public static NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new NotificationHubsManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the NotificationHubsManager + */ + public static NotificationHubsManager authenticate(RestClient restClient, String subscriptionId) { + return new NotificationHubsManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing NotificationHubs management API entry points that work across subscriptions + */ + NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Namespaces. + */ + public Namespaces namespaces() { + if (this.namespaces == null) { + this.namespaces = new NamespacesImpl(this); + } + return this.namespaces; + } + + /** + * @return Entry point to manage NotificationHubs. + */ + public NotificationHubs notificationHubs() { + if (this.notificationHubs == null) { + this.notificationHubs = new NotificationHubsImpl(this); + } + return this.notificationHubs; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return NotificationHubsManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private NotificationHubsManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new NotificationHubsManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/PageImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/PageImpl.java new file mode 100644 index 000000000000..cf2c8c64f1e3 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/PageImpl.java @@ -0,0 +1,75 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("nextLink") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/ResourceListKeysImpl.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/ResourceListKeysImpl.java new file mode 100644 index 000000000000..02591f2d40dc --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/ResourceListKeysImpl.java @@ -0,0 +1,36 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2014_09_01.ResourceListKeys; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ResourceListKeysImpl extends WrapperImpl implements ResourceListKeys { + private final NotificationHubsManager manager; + ResourceListKeysImpl(ResourceListKeysInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public String primaryConnectionString() { + return this.inner().primaryConnectionString(); + } + + @Override + public String secondaryConnectionString() { + return this.inner().secondaryConnectionString(); + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/ResourceListKeysInner.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/ResourceListKeysInner.java new file mode 100644 index 000000000000..ba20ce360002 --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/ResourceListKeysInner.java @@ -0,0 +1,71 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Namespace/NotificationHub Connection String. + */ +public class ResourceListKeysInner { + /** + * Gets or sets the primaryConnectionString of the created Namespace + * AuthorizationRule. + */ + @JsonProperty(value = "primaryConnectionString") + private String primaryConnectionString; + + /** + * Gets or sets the secondaryConnectionString of the created Namespace + * AuthorizationRule. + */ + @JsonProperty(value = "secondaryConnectionString") + private String secondaryConnectionString; + + /** + * Get gets or sets the primaryConnectionString of the created Namespace AuthorizationRule. + * + * @return the primaryConnectionString value + */ + public String primaryConnectionString() { + return this.primaryConnectionString; + } + + /** + * Set gets or sets the primaryConnectionString of the created Namespace AuthorizationRule. + * + * @param primaryConnectionString the primaryConnectionString value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withPrimaryConnectionString(String primaryConnectionString) { + this.primaryConnectionString = primaryConnectionString; + return this; + } + + /** + * Get gets or sets the secondaryConnectionString of the created Namespace AuthorizationRule. + * + * @return the secondaryConnectionString value + */ + public String secondaryConnectionString() { + return this.secondaryConnectionString; + } + + /** + * Set gets or sets the secondaryConnectionString of the created Namespace AuthorizationRule. + * + * @param secondaryConnectionString the secondaryConnectionString value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withSecondaryConnectionString(String secondaryConnectionString) { + this.secondaryConnectionString = secondaryConnectionString; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/SharedAccessAuthorizationRuleResourceInner.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/SharedAccessAuthorizationRuleResourceInner.java new file mode 100644 index 000000000000..904737bf46ad --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/SharedAccessAuthorizationRuleResourceInner.java @@ -0,0 +1,175 @@ +/** + * 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.management.notificationhubs.v2014_09_01.implementation; + +import java.util.Map; +import com.microsoft.azure.management.notificationhubs.v2014_09_01.SharedAccessAuthorizationRuleProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Description of a Namespace AuthorizationRules. + */ +public class SharedAccessAuthorizationRuleResourceInner { + /** + * Gets or sets the id of the created Namespace AuthorizationRules. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Gets or sets datacenter location of the Namespace AuthorizationRules. + */ + @JsonProperty(value = "location") + private String location; + + /** + * Gets or sets name of the Namespace AuthorizationRules. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Gets or sets resource type of the Namespace AuthorizationRules. + */ + @JsonProperty(value = "type") + private String type; + + /** + * Gets or sets tags of the Namespace AuthorizationRules. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Gets or sets properties of the Namespace. + */ + @JsonProperty(value = "properties") + private SharedAccessAuthorizationRuleProperties properties; + + /** + * Get gets or sets the id of the created Namespace AuthorizationRules. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set gets or sets the id of the created Namespace AuthorizationRules. + * + * @param id the id value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withId(String id) { + this.id = id; + return this; + } + + /** + * Get gets or sets datacenter location of the Namespace AuthorizationRules. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set gets or sets datacenter location of the Namespace AuthorizationRules. + * + * @param location the location value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get gets or sets name of the Namespace AuthorizationRules. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set gets or sets name of the Namespace AuthorizationRules. + * + * @param name the name value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get gets or sets resource type of the Namespace AuthorizationRules. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set gets or sets resource type of the Namespace AuthorizationRules. + * + * @param type the type value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withType(String type) { + this.type = type; + return this; + } + + /** + * Get gets or sets tags of the Namespace AuthorizationRules. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set gets or sets tags of the Namespace AuthorizationRules. + * + * @param tags the tags value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get gets or sets properties of the Namespace. + * + * @return the properties value + */ + public SharedAccessAuthorizationRuleProperties properties() { + return this.properties; + } + + /** + * Set gets or sets properties of the Namespace. + * + * @param properties the properties value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withProperties(SharedAccessAuthorizationRuleProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/package-info.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/package-info.java new file mode 100644 index 000000000000..5b3327511b5e --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for NotificationHubsManagementClient. + * Azure NotificationHub client. + */ +package com.microsoft.azure.management.notificationhubs.v2014_09_01.implementation; diff --git a/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/package-info.java b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/package-info.java new file mode 100644 index 000000000000..6cc9380f223b --- /dev/null +++ b/notificationhubs/resource-manager/v2014_09_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2014_09_01/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for NotificationHubsManagementClient. + * Azure NotificationHub client. + */ +package com.microsoft.azure.management.notificationhubs.v2014_09_01; diff --git a/notificationhubs/resource-manager/v2016_03_01/pom.xml b/notificationhubs/resource-manager/v2016_03_01/pom.xml new file mode 100644 index 000000000000..c4eed2028414 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/pom.xml @@ -0,0 +1,133 @@ + + + 4.0.0 + com.microsoft.azure.notificationhubs.v2016_03_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-notificationhubs + 1.0.0-beta + jar + Microsoft Azure SDK for NotificationHubs Management + This package contains Microsoft NotificationHubs Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/AccessRights.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/AccessRights.java new file mode 100644 index 000000000000..af2cca114561 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/AccessRights.java @@ -0,0 +1,56 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AccessRights. + */ +public enum AccessRights { + /** Enum value Manage. */ + MANAGE("Manage"), + + /** Enum value Send. */ + SEND("Send"), + + /** Enum value Listen. */ + LISTEN("Listen"); + + /** The actual serialized value for a AccessRights instance. */ + private String value; + + AccessRights(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AccessRights instance. + * + * @param value the serialized value to parse. + * @return the parsed AccessRights object, or null if unable to parse. + */ + @JsonCreator + public static AccessRights fromString(String value) { + AccessRights[] items = AccessRights.values(); + for (AccessRights item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/AdmCredential.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/AdmCredential.java new file mode 100644 index 000000000000..2d28c47ac806 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/AdmCredential.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub AdmCredential. + */ +@JsonFlatten +public class AdmCredential { + /** + * The client identifier. + */ + @JsonProperty(value = "properties.clientId") + private String clientId; + + /** + * The credential secret access key. + */ + @JsonProperty(value = "properties.clientSecret") + private String clientSecret; + + /** + * The URL of the authorization token. + */ + @JsonProperty(value = "properties.authTokenUrl") + private String authTokenUrl; + + /** + * Get the client identifier. + * + * @return the clientId value + */ + public String clientId() { + return this.clientId; + } + + /** + * Set the client identifier. + * + * @param clientId the clientId value to set + * @return the AdmCredential object itself. + */ + public AdmCredential withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the credential secret access key. + * + * @return the clientSecret value + */ + public String clientSecret() { + return this.clientSecret; + } + + /** + * Set the credential secret access key. + * + * @param clientSecret the clientSecret value to set + * @return the AdmCredential object itself. + */ + public AdmCredential withClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the URL of the authorization token. + * + * @return the authTokenUrl value + */ + public String authTokenUrl() { + return this.authTokenUrl; + } + + /** + * Set the URL of the authorization token. + * + * @param authTokenUrl the authTokenUrl value to set + * @return the AdmCredential object itself. + */ + public AdmCredential withAuthTokenUrl(String authTokenUrl) { + this.authTokenUrl = authTokenUrl; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/ApnsCredential.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/ApnsCredential.java new file mode 100644 index 000000000000..e33eab99d352 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/ApnsCredential.java @@ -0,0 +1,123 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub ApnsCredential. + */ +@JsonFlatten +public class ApnsCredential { + /** + * The APNS certificate. + */ + @JsonProperty(value = "properties.apnsCertificate") + private String apnsCertificate; + + /** + * The certificate key. + */ + @JsonProperty(value = "properties.certificateKey") + private String certificateKey; + + /** + * The endpoint of this credential. + */ + @JsonProperty(value = "properties.endpoint") + private String endpoint; + + /** + * The Apns certificate Thumbprint. + */ + @JsonProperty(value = "properties.thumbprint") + private String thumbprint; + + /** + * Get the APNS certificate. + * + * @return the apnsCertificate value + */ + public String apnsCertificate() { + return this.apnsCertificate; + } + + /** + * Set the APNS certificate. + * + * @param apnsCertificate the apnsCertificate value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withApnsCertificate(String apnsCertificate) { + this.apnsCertificate = apnsCertificate; + return this; + } + + /** + * Get the certificate key. + * + * @return the certificateKey value + */ + public String certificateKey() { + return this.certificateKey; + } + + /** + * Set the certificate key. + * + * @param certificateKey the certificateKey value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + return this; + } + + /** + * Get the endpoint of this credential. + * + * @return the endpoint value + */ + public String endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of this credential. + * + * @param endpoint the endpoint value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withEndpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the Apns certificate Thumbprint. + * + * @return the thumbprint value + */ + public String thumbprint() { + return this.thumbprint; + } + + /** + * Set the Apns certificate Thumbprint. + * + * @param thumbprint the thumbprint value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withThumbprint(String thumbprint) { + this.thumbprint = thumbprint; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/BaiduCredential.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/BaiduCredential.java new file mode 100644 index 000000000000..0969ac14da56 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/BaiduCredential.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub BaiduCredential. + */ +@JsonFlatten +public class BaiduCredential { + /** + * Baidu Api Key. + */ + @JsonProperty(value = "properties.baiduApiKey") + private String baiduApiKey; + + /** + * Baidu Endpoint. + */ + @JsonProperty(value = "properties.baiduEndPoint") + private String baiduEndPoint; + + /** + * Baidu Secret Key. + */ + @JsonProperty(value = "properties.baiduSecretKey") + private String baiduSecretKey; + + /** + * Get baidu Api Key. + * + * @return the baiduApiKey value + */ + public String baiduApiKey() { + return this.baiduApiKey; + } + + /** + * Set baidu Api Key. + * + * @param baiduApiKey the baiduApiKey value to set + * @return the BaiduCredential object itself. + */ + public BaiduCredential withBaiduApiKey(String baiduApiKey) { + this.baiduApiKey = baiduApiKey; + return this; + } + + /** + * Get baidu Endpoint. + * + * @return the baiduEndPoint value + */ + public String baiduEndPoint() { + return this.baiduEndPoint; + } + + /** + * Set baidu Endpoint. + * + * @param baiduEndPoint the baiduEndPoint value to set + * @return the BaiduCredential object itself. + */ + public BaiduCredential withBaiduEndPoint(String baiduEndPoint) { + this.baiduEndPoint = baiduEndPoint; + return this; + } + + /** + * Get baidu Secret Key. + * + * @return the baiduSecretKey value + */ + public String baiduSecretKey() { + return this.baiduSecretKey; + } + + /** + * Set baidu Secret Key. + * + * @param baiduSecretKey the baiduSecretKey value to set + * @return the BaiduCredential object itself. + */ + public BaiduCredential withBaiduSecretKey(String baiduSecretKey) { + this.baiduSecretKey = baiduSecretKey; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/CheckAvailabilityParameters.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/CheckAvailabilityParameters.java new file mode 100644 index 000000000000..c1b1c76dcf86 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/CheckAvailabilityParameters.java @@ -0,0 +1,180 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the Check Name Availability for Namespace and + * NotificationHubs. + */ +public class CheckAvailabilityParameters { + /** + * Resource Id. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /** + * Resource name. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * Resource type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Resource location. + */ + @JsonProperty(value = "location", required = true) + private String location; + + /** + * Resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * True if the name is available and can be used to create new + * Namespace/NotificationHub. Otherwise false. + */ + @JsonProperty(value = "isAvailiable") + private Boolean isAvailiable; + + /** + * Get resource Id. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Get resource name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set resource name. + * + * @param name the name value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withName(String name) { + this.name = name; + return this; + } + + /** + * Get resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get resource location. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set resource location. + * + * @param location the location value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set resource tags. + * + * @param tags the tags value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + + /** + * Get true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @return the isAvailiable value + */ + public Boolean isAvailiable() { + return this.isAvailiable; + } + + /** + * Set true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @param isAvailiable the isAvailiable value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withIsAvailiable(Boolean isAvailiable) { + this.isAvailiable = isAvailiable; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/CheckAvailabilityResult.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/CheckAvailabilityResult.java new file mode 100644 index 000000000000..220afa297feb --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/CheckAvailabilityResult.java @@ -0,0 +1,56 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.CheckAvailabilityResultInner; +import java.util.Map; + +/** + * Type representing CheckAvailabilityResult. + */ +public interface CheckAvailabilityResult extends HasInner, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the isAvailiable value. + */ + Boolean isAvailiable(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/GcmCredential.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/GcmCredential.java new file mode 100644 index 000000000000..343bf7a3781c --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/GcmCredential.java @@ -0,0 +1,71 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub GcmCredential. + */ +@JsonFlatten +public class GcmCredential { + /** + * The GCM endpoint. + */ + @JsonProperty(value = "properties.gcmEndpoint") + private String gcmEndpoint; + + /** + * The Google API key. + */ + @JsonProperty(value = "properties.googleApiKey") + private String googleApiKey; + + /** + * Get the GCM endpoint. + * + * @return the gcmEndpoint value + */ + public String gcmEndpoint() { + return this.gcmEndpoint; + } + + /** + * Set the GCM endpoint. + * + * @param gcmEndpoint the gcmEndpoint value to set + * @return the GcmCredential object itself. + */ + public GcmCredential withGcmEndpoint(String gcmEndpoint) { + this.gcmEndpoint = gcmEndpoint; + return this; + } + + /** + * Get the Google API key. + * + * @return the googleApiKey value + */ + public String googleApiKey() { + return this.googleApiKey; + } + + /** + * Set the Google API key. + * + * @param googleApiKey the googleApiKey value to set + * @return the GcmCredential object itself. + */ + public GcmCredential withGoogleApiKey(String googleApiKey) { + this.googleApiKey = googleApiKey; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/MpnsCredential.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/MpnsCredential.java new file mode 100644 index 000000000000..a8e911936376 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/MpnsCredential.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub MpnsCredential. + */ +@JsonFlatten +public class MpnsCredential { + /** + * The MPNS certificate. + */ + @JsonProperty(value = "properties.mpnsCertificate") + private String mpnsCertificate; + + /** + * The certificate key for this credential. + */ + @JsonProperty(value = "properties.certificateKey") + private String certificateKey; + + /** + * The Mpns certificate Thumbprint. + */ + @JsonProperty(value = "properties.thumbprint") + private String thumbprint; + + /** + * Get the MPNS certificate. + * + * @return the mpnsCertificate value + */ + public String mpnsCertificate() { + return this.mpnsCertificate; + } + + /** + * Set the MPNS certificate. + * + * @param mpnsCertificate the mpnsCertificate value to set + * @return the MpnsCredential object itself. + */ + public MpnsCredential withMpnsCertificate(String mpnsCertificate) { + this.mpnsCertificate = mpnsCertificate; + return this; + } + + /** + * Get the certificate key for this credential. + * + * @return the certificateKey value + */ + public String certificateKey() { + return this.certificateKey; + } + + /** + * Set the certificate key for this credential. + * + * @param certificateKey the certificateKey value to set + * @return the MpnsCredential object itself. + */ + public MpnsCredential withCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + return this; + } + + /** + * Get the Mpns certificate Thumbprint. + * + * @return the thumbprint value + */ + public String thumbprint() { + return this.thumbprint; + } + + /** + * Set the Mpns certificate Thumbprint. + * + * @param thumbprint the thumbprint value to set + * @return the MpnsCredential object itself. + */ + public MpnsCredential withThumbprint(String thumbprint) { + this.thumbprint = thumbprint; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceCreateOrUpdateParameters.java new file mode 100644 index 000000000000..fe6a1cbb5365 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceCreateOrUpdateParameters.java @@ -0,0 +1,339 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * Parameters supplied to the CreateOrUpdate Namespace operation. + */ +@JsonFlatten +public class NamespaceCreateOrUpdateParameters extends Resource { + /** + * The name of the namespace. + */ + @JsonProperty(value = "properties.name") + private String namespaceCreateOrUpdateParametersName; + + /** + * Provisioning state of the Namespace. + */ + @JsonProperty(value = "properties.provisioningState") + private String provisioningState; + + /** + * Specifies the targeted region in which the namespace should be created. + * It can be any of the following values: Australia EastAustralia + * SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central + * USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth + * EuropeWest Europe. + */ + @JsonProperty(value = "properties.region") + private String region; + + /** + * Status of the namespace. It can be any of these values:1 = + * Created/Active2 = Creating3 = Suspended4 = Deleting. + */ + @JsonProperty(value = "properties.status") + private String status; + + /** + * The time the namespace was created. + */ + @JsonProperty(value = "properties.createdAt") + private DateTime createdAt; + + /** + * Endpoint you can use to perform NotificationHub operations. + */ + @JsonProperty(value = "properties.serviceBusEndpoint") + private String serviceBusEndpoint; + + /** + * The Id of the Azure subscription associated with the namespace. + */ + @JsonProperty(value = "properties.subscriptionId") + private String subscriptionId; + + /** + * ScaleUnit where the namespace gets created. + */ + @JsonProperty(value = "properties.scaleUnit") + private String scaleUnit; + + /** + * Whether or not the namespace is currently enabled. + */ + @JsonProperty(value = "properties.enabled") + private Boolean enabled; + + /** + * Whether or not the namespace is set as Critical. + */ + @JsonProperty(value = "properties.critical") + private Boolean critical; + + /** + * The namespace type. Possible values include: 'Messaging', + * 'NotificationHub'. + */ + @JsonProperty(value = "properties.namespaceType") + private NamespaceType namespaceType; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the name of the namespace. + * + * @return the namespaceCreateOrUpdateParametersName value + */ + public String namespaceCreateOrUpdateParametersName() { + return this.namespaceCreateOrUpdateParametersName; + } + + /** + * Set the name of the namespace. + * + * @param namespaceCreateOrUpdateParametersName the namespaceCreateOrUpdateParametersName value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withNamespaceCreateOrUpdateParametersName(String namespaceCreateOrUpdateParametersName) { + this.namespaceCreateOrUpdateParametersName = namespaceCreateOrUpdateParametersName; + return this; + } + + /** + * Get provisioning state of the Namespace. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set provisioning state of the Namespace. + * + * @param provisioningState the provisioningState value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @return the region value + */ + public String region() { + return this.region; + } + + /** + * Set specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @param region the region value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withRegion(String region) { + this.region = region; + return this; + } + + /** + * Get status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @param status the status value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the time the namespace was created. + * + * @return the createdAt value + */ + public DateTime createdAt() { + return this.createdAt; + } + + /** + * Set the time the namespace was created. + * + * @param createdAt the createdAt value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withCreatedAt(DateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get endpoint you can use to perform NotificationHub operations. + * + * @return the serviceBusEndpoint value + */ + public String serviceBusEndpoint() { + return this.serviceBusEndpoint; + } + + /** + * Set endpoint you can use to perform NotificationHub operations. + * + * @param serviceBusEndpoint the serviceBusEndpoint value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withServiceBusEndpoint(String serviceBusEndpoint) { + this.serviceBusEndpoint = serviceBusEndpoint; + return this; + } + + /** + * Get the Id of the Azure subscription associated with the namespace. + * + * @return the subscriptionId value + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the Id of the Azure subscription associated with the namespace. + * + * @param subscriptionId the subscriptionId value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get scaleUnit where the namespace gets created. + * + * @return the scaleUnit value + */ + public String scaleUnit() { + return this.scaleUnit; + } + + /** + * Set scaleUnit where the namespace gets created. + * + * @param scaleUnit the scaleUnit value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withScaleUnit(String scaleUnit) { + this.scaleUnit = scaleUnit; + return this; + } + + /** + * Get whether or not the namespace is currently enabled. + * + * @return the enabled value + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set whether or not the namespace is currently enabled. + * + * @param enabled the enabled value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get whether or not the namespace is set as Critical. + * + * @return the critical value + */ + public Boolean critical() { + return this.critical; + } + + /** + * Set whether or not the namespace is set as Critical. + * + * @param critical the critical value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withCritical(Boolean critical) { + this.critical = critical; + return this; + } + + /** + * Get the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @return the namespaceType value + */ + public NamespaceType namespaceType() { + return this.namespaceType; + } + + /** + * Set the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @param namespaceType the namespaceType value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withNamespaceType(NamespaceType namespaceType) { + this.namespaceType = namespaceType; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespacePatchParameters.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespacePatchParameters.java new file mode 100644 index 000000000000..b4e64c173466 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespacePatchParameters.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2016_03_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the Patch Namespace operation. + */ +public class NamespacePatchParameters { + /** + * Resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set resource tags. + * + * @param tags the tags value to set + * @return the NamespacePatchParameters object itself. + */ + public NamespacePatchParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NamespacePatchParameters object itself. + */ + public NamespacePatchParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceResource.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceResource.java new file mode 100644 index 000000000000..20fa7154eb7a --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceResource.java @@ -0,0 +1,268 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubsManager; +import org.joda.time.DateTime; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NamespaceResourceInner; + +/** + * Type representing NamespaceResource. + */ +public interface NamespaceResource extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the createdAt value. + */ + DateTime createdAt(); + + /** + * @return the critical value. + */ + Boolean critical(); + + /** + * @return the enabled value. + */ + Boolean enabled(); + + /** + * @return the namespaceResourceName value. + */ + String namespaceResourceName(); + + /** + * @return the namespaceType value. + */ + NamespaceType namespaceType(); + + /** + * @return the provisioningState value. + */ + String provisioningState(); + + /** + * @return the scaleUnit value. + */ + String scaleUnit(); + + /** + * @return the serviceBusEndpoint value. + */ + String serviceBusEndpoint(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the status value. + */ + String status(); + + /** + * @return the subscriptionId value. + */ + String subscriptionId(); + + /** + * The entirety of the NamespaceResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of NamespaceResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NamespaceResource definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the NamespaceResource definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the namespaceresource definition allowing to specify CreatedAt. + */ + interface WithCreatedAt { + /** + * Specifies createdAt. + * @param createdAt The time the namespace was created + * @return the next definition stage + */ + WithCreate withCreatedAt(DateTime createdAt); + } + + /** + * The stage of the namespaceresource definition allowing to specify Critical. + */ + interface WithCritical { + /** + * Specifies critical. + * @param critical Whether or not the namespace is set as Critical + * @return the next definition stage + */ + WithCreate withCritical(Boolean critical); + } + + /** + * The stage of the namespaceresource definition allowing to specify Enabled. + */ + interface WithEnabled { + /** + * Specifies enabled. + * @param enabled Whether or not the namespace is currently enabled + * @return the next definition stage + */ + WithCreate withEnabled(Boolean enabled); + } + + /** + * The stage of the namespaceresource definition allowing to specify NamespaceCreateOrUpdateParametersName. + */ + interface WithNamespaceCreateOrUpdateParametersName { + /** + * Specifies namespaceCreateOrUpdateParametersName. + * @param namespaceCreateOrUpdateParametersName The name of the namespace + * @return the next definition stage + */ + WithCreate withNamespaceCreateOrUpdateParametersName(String namespaceCreateOrUpdateParametersName); + } + + /** + * The stage of the namespaceresource definition allowing to specify NamespaceType. + */ + interface WithNamespaceType { + /** + * Specifies namespaceType. + * @param namespaceType The namespace type. Possible values include: 'Messaging', 'NotificationHub' + * @return the next definition stage + */ + WithCreate withNamespaceType(NamespaceType namespaceType); + } + + /** + * The stage of the namespaceresource definition allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + * @param provisioningState Provisioning state of the Namespace + * @return the next definition stage + */ + WithCreate withProvisioningState(String provisioningState); + } + + /** + * The stage of the namespaceresource definition allowing to specify ScaleUnit. + */ + interface WithScaleUnit { + /** + * Specifies scaleUnit. + * @param scaleUnit ScaleUnit where the namespace gets created + * @return the next definition stage + */ + WithCreate withScaleUnit(String scaleUnit); + } + + /** + * The stage of the namespaceresource definition allowing to specify ServiceBusEndpoint. + */ + interface WithServiceBusEndpoint { + /** + * Specifies serviceBusEndpoint. + * @param serviceBusEndpoint Endpoint you can use to perform NotificationHub operations + * @return the next definition stage + */ + WithCreate withServiceBusEndpoint(String serviceBusEndpoint); + } + + /** + * The stage of the namespaceresource definition allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next definition stage + */ + WithCreate withSku(Sku sku); + } + + /** + * The stage of the namespaceresource definition allowing to specify Status. + */ + interface WithStatus { + /** + * Specifies status. + * @param status Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting + * @return the next definition stage + */ + WithCreate withStatus(String status); + } + + /** + * The stage of the namespaceresource definition allowing to specify SubscriptionId. + */ + interface WithSubscriptionId { + /** + * Specifies subscriptionId. + * @param subscriptionId The Id of the Azure subscription associated with the namespace + * @return the next definition stage + */ + WithCreate withSubscriptionId(String subscriptionId); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithCreatedAt, DefinitionStages.WithCritical, DefinitionStages.WithEnabled, DefinitionStages.WithNamespaceCreateOrUpdateParametersName, DefinitionStages.WithNamespaceType, DefinitionStages.WithProvisioningState, DefinitionStages.WithScaleUnit, DefinitionStages.WithServiceBusEndpoint, DefinitionStages.WithSku, DefinitionStages.WithStatus, DefinitionStages.WithSubscriptionId { + } + } + /** + * The template for a NamespaceResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithSku { + } + + /** + * Grouping of NamespaceResource update stages. + */ + interface UpdateStages { + /** + * The stage of the namespaceresource update allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next update stage + */ + Update withSku(Sku sku); + } + + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceSharedAccessAuthorizationRuleResource.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceSharedAccessAuthorizationRuleResource.java new file mode 100644 index 000000000000..5545186ed919 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceSharedAccessAuthorizationRuleResource.java @@ -0,0 +1,182 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.SharedAccessAuthorizationRuleResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubsManager; +import java.util.Map; +import java.util.List; + +/** + * Type representing NamespaceSharedAccessAuthorizationRuleResource. + */ +public interface NamespaceSharedAccessAuthorizationRuleResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the rights value. + */ + List rights(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the NamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithLocation, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of NamespaceSharedAccessAuthorizationRuleResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Blank extends WithNamespace { + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Namespace. + */ + interface WithNamespace { + /** + * Specifies resourceGroupName, namespaceName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @return the next definition stage + */ + WithLocation withExistingNamespace(String resourceGroupName, String namespaceName); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Resource location + * @return the next definition stage + */ + WithProperties withLocation(String location); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of the Namespace AuthorizationRules + * @return the next definition stage + */ + WithCreate withProperties(SharedAccessAuthorizationRuleProperties properties); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next definition stage + */ + WithCreate withSku(Sku sku); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Resource tags + * @return the next definition stage + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithSku, DefinitionStages.WithTags { + } + } + /** + * The template for a NamespaceSharedAccessAuthorizationRuleResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithSku, UpdateStages.WithTags { + } + + /** + * Grouping of NamespaceSharedAccessAuthorizationRuleResource update stages. + */ + interface UpdateStages { + /** + * The stage of the namespacesharedaccessauthorizationruleresource update allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next update stage + */ + Update withSku(Sku sku); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Resource tags + * @return the next update stage + */ + Update withTags(Map tags); + } + + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceType.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceType.java new file mode 100644 index 000000000000..08b0e95efd66 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NamespaceType.java @@ -0,0 +1,53 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for NamespaceType. + */ +public enum NamespaceType { + /** Enum value Messaging. */ + MESSAGING("Messaging"), + + /** Enum value NotificationHub. */ + NOTIFICATION_HUB("NotificationHub"); + + /** The actual serialized value for a NamespaceType instance. */ + private String value; + + NamespaceType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a NamespaceType instance. + * + * @param value the serialized value to parse. + * @return the parsed NamespaceType object, or null if unable to parse. + */ + @JsonCreator + public static NamespaceType fromString(String value) { + NamespaceType[] items = NamespaceType.values(); + for (NamespaceType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/Namespaces.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/Namespaces.java new file mode 100644 index 000000000000..026bb60b6ba7 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/Namespaces.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NamespacesInner; +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceSharedAccessAuthorizationRuleResource; +import rx.Completable; + +/** + * Type representing Namespaces. + */ +public interface Namespaces extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Begins definition for a new AuthorizationRule resource. + * @param name resource name. + * @return the first stage of the new AuthorizationRule definition. + */ + NamespaceSharedAccessAuthorizationRuleResource.DefinitionStages.Blank defineAuthorizationRule(String name); + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters); + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName); + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubCreateOrUpdateParameters.java new file mode 100644 index 000000000000..fde1f4233842 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubCreateOrUpdateParameters.java @@ -0,0 +1,281 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * Parameters supplied to the CreateOrUpdate NotificationHub operation. + */ +@JsonFlatten +public class NotificationHubCreateOrUpdateParameters extends Resource { + /** + * The NotificationHub name. + */ + @JsonProperty(value = "properties.name") + private String notificationHubCreateOrUpdateParametersName; + + /** + * The RegistrationTtl of the created NotificationHub. + */ + @JsonProperty(value = "properties.registrationTtl") + private String registrationTtl; + + /** + * The AuthorizationRules of the created NotificationHub. + */ + @JsonProperty(value = "properties.authorizationRules") + private List authorizationRules; + + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.baiduCredential") + private BaiduCredential baiduCredential; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the NotificationHub name. + * + * @return the notificationHubCreateOrUpdateParametersName value + */ + public String notificationHubCreateOrUpdateParametersName() { + return this.notificationHubCreateOrUpdateParametersName; + } + + /** + * Set the NotificationHub name. + * + * @param notificationHubCreateOrUpdateParametersName the notificationHubCreateOrUpdateParametersName value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withNotificationHubCreateOrUpdateParametersName(String notificationHubCreateOrUpdateParametersName) { + this.notificationHubCreateOrUpdateParametersName = notificationHubCreateOrUpdateParametersName; + return this; + } + + /** + * Get the RegistrationTtl of the created NotificationHub. + * + * @return the registrationTtl value + */ + public String registrationTtl() { + return this.registrationTtl; + } + + /** + * Set the RegistrationTtl of the created NotificationHub. + * + * @param registrationTtl the registrationTtl value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withRegistrationTtl(String registrationTtl) { + this.registrationTtl = registrationTtl; + return this; + } + + /** + * Get the AuthorizationRules of the created NotificationHub. + * + * @return the authorizationRules value + */ + public List authorizationRules() { + return this.authorizationRules; + } + + /** + * Set the AuthorizationRules of the created NotificationHub. + * + * @param authorizationRules the authorizationRules value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withAuthorizationRules(List authorizationRules) { + this.authorizationRules = authorizationRules; + return this; + } + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java new file mode 100644 index 000000000000..1b8fd8b7dc14 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java @@ -0,0 +1,183 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.SharedAccessAuthorizationRuleResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubsManager; +import java.util.Map; +import java.util.List; + +/** + * Type representing NotificationHubNamespaceSharedAccessAuthorizationRuleResource. + */ +public interface NotificationHubNamespaceSharedAccessAuthorizationRuleResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the rights value. + */ + List rights(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNotificationHub, DefinitionStages.WithLocation, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Blank extends WithNotificationHub { + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify NotificationHub. + */ + interface WithNotificationHub { + /** + * Specifies resourceGroupName, namespaceName, notificationHubName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name + * @return the next definition stage + */ + WithLocation withExistingNotificationHub(String resourceGroupName, String namespaceName, String notificationHubName); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Resource location + * @return the next definition stage + */ + WithProperties withLocation(String location); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of the Namespace AuthorizationRules + * @return the next definition stage + */ + WithCreate withProperties(SharedAccessAuthorizationRuleProperties properties); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next definition stage + */ + WithCreate withSku(Sku sku); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Resource tags + * @return the next definition stage + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithSku, DefinitionStages.WithTags { + } + } + /** + * The template for a NotificationHubNamespaceSharedAccessAuthorizationRuleResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithSku, UpdateStages.WithTags { + } + + /** + * Grouping of NotificationHubNamespaceSharedAccessAuthorizationRuleResource update stages. + */ + interface UpdateStages { + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource update allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next update stage + */ + Update withSku(Sku sku); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Resource tags + * @return the next update stage + */ + Update withTags(Map tags); + } + + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubResource.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubResource.java new file mode 100644 index 000000000000..33c26b5a6136 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubResource.java @@ -0,0 +1,426 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubsManager; +import java.util.Map; +import java.util.List; + +/** + * Type representing NotificationHubResource. + */ +public interface NotificationHubResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the admCredential value. + */ + AdmCredential admCredential(); + + /** + * @return the apnsCredential value. + */ + ApnsCredential apnsCredential(); + + /** + * @return the authorizationRules value. + */ + List authorizationRules(); + + /** + * @return the baiduCredential value. + */ + BaiduCredential baiduCredential(); + + /** + * @return the gcmCredential value. + */ + GcmCredential gcmCredential(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the mpnsCredential value. + */ + MpnsCredential mpnsCredential(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the notificationHubResourceName value. + */ + String notificationHubResourceName(); + + /** + * @return the registrationTtl value. + */ + String registrationTtl(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * @return the wnsCredential value. + */ + WnsCredential wnsCredential(); + + /** + * The entirety of the NotificationHubResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithLocation, DefinitionStages.WithCreate { + } + + /** + * Grouping of NotificationHubResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NotificationHubResource definition. + */ + interface Blank extends WithNamespace { + } + + /** + * The stage of the notificationhubresource definition allowing to specify Namespace. + */ + interface WithNamespace { + /** + * Specifies resourceGroupName, namespaceName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @return the next definition stage + */ + WithLocation withExistingNamespace(String resourceGroupName, String namespaceName); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Resource location + * @return the next definition stage + */ + WithCreate withLocation(String location); + } + + /** + * The stage of the notificationhubresource definition allowing to specify AdmCredential. + */ + interface WithAdmCredential { + /** + * Specifies admCredential. + * @param admCredential The AdmCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withAdmCredential(AdmCredential admCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify ApnsCredential. + */ + interface WithApnsCredential { + /** + * Specifies apnsCredential. + * @param apnsCredential The ApnsCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withApnsCredential(ApnsCredential apnsCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify AuthorizationRules. + */ + interface WithAuthorizationRules { + /** + * Specifies authorizationRules. + * @param authorizationRules The AuthorizationRules of the created NotificationHub + * @return the next definition stage + */ + WithCreate withAuthorizationRules(List authorizationRules); + } + + /** + * The stage of the notificationhubresource definition allowing to specify BaiduCredential. + */ + interface WithBaiduCredential { + /** + * Specifies baiduCredential. + * @param baiduCredential The BaiduCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withBaiduCredential(BaiduCredential baiduCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify GcmCredential. + */ + interface WithGcmCredential { + /** + * Specifies gcmCredential. + * @param gcmCredential The GcmCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withGcmCredential(GcmCredential gcmCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify MpnsCredential. + */ + interface WithMpnsCredential { + /** + * Specifies mpnsCredential. + * @param mpnsCredential The MpnsCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withMpnsCredential(MpnsCredential mpnsCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify NotificationHubCreateOrUpdateParametersName. + */ + interface WithNotificationHubCreateOrUpdateParametersName { + /** + * Specifies notificationHubCreateOrUpdateParametersName. + * @param notificationHubCreateOrUpdateParametersName The NotificationHub name + * @return the next definition stage + */ + WithCreate withNotificationHubCreateOrUpdateParametersName(String notificationHubCreateOrUpdateParametersName); + } + + /** + * The stage of the notificationhubresource definition allowing to specify RegistrationTtl. + */ + interface WithRegistrationTtl { + /** + * Specifies registrationTtl. + * @param registrationTtl The RegistrationTtl of the created NotificationHub + * @return the next definition stage + */ + WithCreate withRegistrationTtl(String registrationTtl); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next definition stage + */ + WithCreate withSku(Sku sku); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Resource tags + * @return the next definition stage + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the notificationhubresource definition allowing to specify WnsCredential. + */ + interface WithWnsCredential { + /** + * Specifies wnsCredential. + * @param wnsCredential The WnsCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withWnsCredential(WnsCredential wnsCredential); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithAdmCredential, DefinitionStages.WithApnsCredential, DefinitionStages.WithAuthorizationRules, DefinitionStages.WithBaiduCredential, DefinitionStages.WithGcmCredential, DefinitionStages.WithMpnsCredential, DefinitionStages.WithNotificationHubCreateOrUpdateParametersName, DefinitionStages.WithRegistrationTtl, DefinitionStages.WithSku, DefinitionStages.WithTags, DefinitionStages.WithWnsCredential { + } + } + /** + * The template for a NotificationHubResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithAdmCredential, UpdateStages.WithApnsCredential, UpdateStages.WithAuthorizationRules, UpdateStages.WithBaiduCredential, UpdateStages.WithGcmCredential, UpdateStages.WithMpnsCredential, UpdateStages.WithNotificationHubCreateOrUpdateParametersName, UpdateStages.WithRegistrationTtl, UpdateStages.WithSku, UpdateStages.WithTags, UpdateStages.WithWnsCredential { + } + + /** + * Grouping of NotificationHubResource update stages. + */ + interface UpdateStages { + /** + * The stage of the notificationhubresource update allowing to specify AdmCredential. + */ + interface WithAdmCredential { + /** + * Specifies admCredential. + * @param admCredential The AdmCredential of the created NotificationHub + * @return the next update stage + */ + Update withAdmCredential(AdmCredential admCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify ApnsCredential. + */ + interface WithApnsCredential { + /** + * Specifies apnsCredential. + * @param apnsCredential The ApnsCredential of the created NotificationHub + * @return the next update stage + */ + Update withApnsCredential(ApnsCredential apnsCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify AuthorizationRules. + */ + interface WithAuthorizationRules { + /** + * Specifies authorizationRules. + * @param authorizationRules The AuthorizationRules of the created NotificationHub + * @return the next update stage + */ + Update withAuthorizationRules(List authorizationRules); + } + + /** + * The stage of the notificationhubresource update allowing to specify BaiduCredential. + */ + interface WithBaiduCredential { + /** + * Specifies baiduCredential. + * @param baiduCredential The BaiduCredential of the created NotificationHub + * @return the next update stage + */ + Update withBaiduCredential(BaiduCredential baiduCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify GcmCredential. + */ + interface WithGcmCredential { + /** + * Specifies gcmCredential. + * @param gcmCredential The GcmCredential of the created NotificationHub + * @return the next update stage + */ + Update withGcmCredential(GcmCredential gcmCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify MpnsCredential. + */ + interface WithMpnsCredential { + /** + * Specifies mpnsCredential. + * @param mpnsCredential The MpnsCredential of the created NotificationHub + * @return the next update stage + */ + Update withMpnsCredential(MpnsCredential mpnsCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify NotificationHubCreateOrUpdateParametersName. + */ + interface WithNotificationHubCreateOrUpdateParametersName { + /** + * Specifies notificationHubCreateOrUpdateParametersName. + * @param notificationHubCreateOrUpdateParametersName The NotificationHub name + * @return the next update stage + */ + Update withNotificationHubCreateOrUpdateParametersName(String notificationHubCreateOrUpdateParametersName); + } + + /** + * The stage of the notificationhubresource update allowing to specify RegistrationTtl. + */ + interface WithRegistrationTtl { + /** + * Specifies registrationTtl. + * @param registrationTtl The RegistrationTtl of the created NotificationHub + * @return the next update stage + */ + Update withRegistrationTtl(String registrationTtl); + } + + /** + * The stage of the notificationhubresource update allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next update stage + */ + Update withSku(Sku sku); + } + + /** + * The stage of the notificationhubresource update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Resource tags + * @return the next update stage + */ + Update withTags(Map tags); + } + + /** + * The stage of the notificationhubresource update allowing to specify WnsCredential. + */ + interface WithWnsCredential { + /** + * Specifies wnsCredential. + * @param wnsCredential The WnsCredential of the created NotificationHub + * @return the next update stage + */ + Update withWnsCredential(WnsCredential wnsCredential); + } + + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubs.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubs.java new file mode 100644 index 000000000000..6583d42136b1 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/NotificationHubs.java @@ -0,0 +1,142 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubsInner; +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubNamespaceSharedAccessAuthorizationRuleResource; + +/** + * Type representing NotificationHubs. + */ +public interface NotificationHubs extends SupportsCreating, HasInner { + /** + * Begins definition for a new AuthorizationRule resource. + * @param name resource name. + * @return the first stage of the new AuthorizationRule definition. + */ + NotificationHubNamespaceSharedAccessAuthorizationRuleResource.DefinitionStages.Blank defineAuthorizationRule(String name); + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(final String resourceGroupName, final String namespaceName); + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters); + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName); + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/PnsCredentialsResource.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/PnsCredentialsResource.java new file mode 100644 index 000000000000..4ce71231cc1b --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/PnsCredentialsResource.java @@ -0,0 +1,81 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.PnsCredentialsResourceInner; +import java.util.Map; + +/** + * Type representing PnsCredentialsResource. + */ +public interface PnsCredentialsResource extends HasInner, HasManager { + /** + * @return the admCredential value. + */ + AdmCredential admCredential(); + + /** + * @return the apnsCredential value. + */ + ApnsCredential apnsCredential(); + + /** + * @return the baiduCredential value. + */ + BaiduCredential baiduCredential(); + + /** + * @return the gcmCredential value. + */ + GcmCredential gcmCredential(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the mpnsCredential value. + */ + MpnsCredential mpnsCredential(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * @return the wnsCredential value. + */ + WnsCredential wnsCredential(); + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/PolicykeyResource.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/PolicykeyResource.java new file mode 100644 index 000000000000..70367b235729 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/PolicykeyResource.java @@ -0,0 +1,45 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Namespace/NotificationHub Regenerate Keys. + */ +public class PolicykeyResource { + /** + * Name of the key that has to be regenerated for the + * Namespace/Notification Hub Authorization Rule. The value can be Primary + * Key/Secondary Key. + */ + @JsonProperty(value = "policyKey") + private String policyKey; + + /** + * Get name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * + * @return the policyKey value + */ + public String policyKey() { + return this.policyKey; + } + + /** + * Set name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * + * @param policyKey the policyKey value to set + * @return the PolicykeyResource object itself. + */ + public PolicykeyResource withPolicyKey(String policyKey) { + this.policyKey = policyKey; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/ResourceListKeys.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/ResourceListKeys.java new file mode 100644 index 000000000000..0f93caf21d5c --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/ResourceListKeys.java @@ -0,0 +1,45 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation.ResourceListKeysInner; + +/** + * Type representing ResourceListKeys. + */ +public interface ResourceListKeys extends HasInner, HasManager { + /** + * @return the keyName value. + */ + String keyName(); + + /** + * @return the primaryConnectionString value. + */ + String primaryConnectionString(); + + /** + * @return the primaryKey value. + */ + String primaryKey(); + + /** + * @return the secondaryConnectionString value. + */ + String secondaryConnectionString(); + + /** + * @return the secondaryKey value. + */ + String secondaryKey(); + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java new file mode 100644 index 000000000000..91f8c40aade4 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Resource; + +/** + * Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. + */ +public class SharedAccessAuthorizationRuleCreateOrUpdateParameters extends Resource { + /** + * Properties of the Namespace AuthorizationRules. + */ + @JsonProperty(value = "properties", required = true) + private SharedAccessAuthorizationRuleProperties properties; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get properties of the Namespace AuthorizationRules. + * + * @return the properties value + */ + public SharedAccessAuthorizationRuleProperties properties() { + return this.properties; + } + + /** + * Set properties of the Namespace AuthorizationRules. + * + * @param properties the properties value to set + * @return the SharedAccessAuthorizationRuleCreateOrUpdateParameters object itself. + */ + public SharedAccessAuthorizationRuleCreateOrUpdateParameters withProperties(SharedAccessAuthorizationRuleProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the SharedAccessAuthorizationRuleCreateOrUpdateParameters object itself. + */ + public SharedAccessAuthorizationRuleCreateOrUpdateParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SharedAccessAuthorizationRuleProperties.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SharedAccessAuthorizationRuleProperties.java new file mode 100644 index 000000000000..9f241953cb9a --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SharedAccessAuthorizationRuleProperties.java @@ -0,0 +1,44 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SharedAccessAuthorizationRule properties. + */ +public class SharedAccessAuthorizationRuleProperties { + /** + * The rights associated with the rule. + */ + @JsonProperty(value = "rights") + private List rights; + + /** + * Get the rights associated with the rule. + * + * @return the rights value + */ + public List rights() { + return this.rights; + } + + /** + * Set the rights associated with the rule. + * + * @param rights the rights value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withRights(List rights) { + this.rights = rights; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/Sku.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/Sku.java new file mode 100644 index 000000000000..66bd4294d24b --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/Sku.java @@ -0,0 +1,148 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Sku description for a namespace. + */ +public class Sku { + /** + * Name of the notification hub sku. Possible values include: 'Free', + * 'Basic', 'Standard'. + */ + @JsonProperty(value = "name", required = true) + private SkuName name; + + /** + * The tier of particular sku. + */ + @JsonProperty(value = "tier") + private String tier; + + /** + * The Sku size. + */ + @JsonProperty(value = "size") + private String size; + + /** + * The Sku Family. + */ + @JsonProperty(value = "family") + private String family; + + /** + * The capacity of the resource. + */ + @JsonProperty(value = "capacity") + private Integer capacity; + + /** + * Get name of the notification hub sku. Possible values include: 'Free', 'Basic', 'Standard'. + * + * @return the name value + */ + public SkuName name() { + return this.name; + } + + /** + * Set name of the notification hub sku. Possible values include: 'Free', 'Basic', 'Standard'. + * + * @param name the name value to set + * @return the Sku object itself. + */ + public Sku withName(SkuName name) { + this.name = name; + return this; + } + + /** + * Get the tier of particular sku. + * + * @return the tier value + */ + public String tier() { + return this.tier; + } + + /** + * Set the tier of particular sku. + * + * @param tier the tier value to set + * @return the Sku object itself. + */ + public Sku withTier(String tier) { + this.tier = tier; + return this; + } + + /** + * Get the Sku size. + * + * @return the size value + */ + public String size() { + return this.size; + } + + /** + * Set the Sku size. + * + * @param size the size value to set + * @return the Sku object itself. + */ + public Sku withSize(String size) { + this.size = size; + return this; + } + + /** + * Get the Sku Family. + * + * @return the family value + */ + public String family() { + return this.family; + } + + /** + * Set the Sku Family. + * + * @param family the family value to set + * @return the Sku object itself. + */ + public Sku withFamily(String family) { + this.family = family; + return this; + } + + /** + * Get the capacity of the resource. + * + * @return the capacity value + */ + public Integer capacity() { + return this.capacity; + } + + /** + * Set the capacity of the resource. + * + * @param capacity the capacity value to set + * @return the Sku object itself. + */ + public Sku withCapacity(Integer capacity) { + this.capacity = capacity; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SkuName.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SkuName.java new file mode 100644 index 000000000000..5b81ec73258a --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/SkuName.java @@ -0,0 +1,44 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SkuName. + */ +public final class SkuName extends ExpandableStringEnum { + /** Static value Free for SkuName. */ + public static final SkuName FREE = fromString("Free"); + + /** Static value Basic for SkuName. */ + public static final SkuName BASIC = fromString("Basic"); + + /** Static value Standard for SkuName. */ + public static final SkuName STANDARD = fromString("Standard"); + + /** + * Creates or finds a SkuName from its string representation. + * @param name a name to look for + * @return the corresponding SkuName + */ + @JsonCreator + public static SkuName fromString(String name) { + return fromString(name, SkuName.class); + } + + /** + * @return known SkuName values + */ + public static Collection values() { + return values(SkuName.class); + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/WnsCredential.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/WnsCredential.java new file mode 100644 index 000000000000..d5e07d3aafab --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/WnsCredential.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2016_03_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub WnsCredential. + */ +@JsonFlatten +public class WnsCredential { + /** + * The package ID for this credential. + */ + @JsonProperty(value = "properties.packageSid") + private String packageSid; + + /** + * The secret key. + */ + @JsonProperty(value = "properties.secretKey") + private String secretKey; + + /** + * The Windows Live endpoint. + */ + @JsonProperty(value = "properties.windowsLiveEndpoint") + private String windowsLiveEndpoint; + + /** + * Get the package ID for this credential. + * + * @return the packageSid value + */ + public String packageSid() { + return this.packageSid; + } + + /** + * Set the package ID for this credential. + * + * @param packageSid the packageSid value to set + * @return the WnsCredential object itself. + */ + public WnsCredential withPackageSid(String packageSid) { + this.packageSid = packageSid; + return this; + } + + /** + * Get the secret key. + * + * @return the secretKey value + */ + public String secretKey() { + return this.secretKey; + } + + /** + * Set the secret key. + * + * @param secretKey the secretKey value to set + * @return the WnsCredential object itself. + */ + public WnsCredential withSecretKey(String secretKey) { + this.secretKey = secretKey; + return this; + } + + /** + * Get the Windows Live endpoint. + * + * @return the windowsLiveEndpoint value + */ + public String windowsLiveEndpoint() { + return this.windowsLiveEndpoint; + } + + /** + * Set the Windows Live endpoint. + * + * @param windowsLiveEndpoint the windowsLiveEndpoint value to set + * @return the WnsCredential object itself. + */ + public WnsCredential withWindowsLiveEndpoint(String windowsLiveEndpoint) { + this.windowsLiveEndpoint = windowsLiveEndpoint; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/CheckAvailabilityResultImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/CheckAvailabilityResultImpl.java new file mode 100644 index 000000000000..2f82b7fce8f3 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/CheckAvailabilityResultImpl.java @@ -0,0 +1,63 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2016_03_01.CheckAvailabilityResult; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import java.util.Map; + +class CheckAvailabilityResultImpl extends WrapperImpl implements CheckAvailabilityResult { + private final NotificationHubsManager manager; + CheckAvailabilityResultImpl(CheckAvailabilityResultInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public Boolean isAvailiable() { + return this.inner().isAvailiable(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/CheckAvailabilityResultInner.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/CheckAvailabilityResultInner.java new file mode 100644 index 000000000000..979fed683288 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/CheckAvailabilityResultInner.java @@ -0,0 +1,72 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Resource; + +/** + * Description of a CheckAvailibility resource. + */ +public class CheckAvailabilityResultInner extends Resource { + /** + * True if the name is available and can be used to create new + * Namespace/NotificationHub. Otherwise false. + */ + @JsonProperty(value = "isAvailiable") + private Boolean isAvailiable; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @return the isAvailiable value + */ + public Boolean isAvailiable() { + return this.isAvailiable; + } + + /** + * Set true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @param isAvailiable the isAvailiable value to set + * @return the CheckAvailabilityResultInner object itself. + */ + public CheckAvailabilityResultInner withIsAvailiable(Boolean isAvailiable) { + this.isAvailiable = isAvailiable; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the CheckAvailabilityResultInner object itself. + */ + public CheckAvailabilityResultInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/IdParsingUtils.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/IdParsingUtils.java new file mode 100644 index 000000000000..fcc80df14750 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/IdParsingUtils.java @@ -0,0 +1,57 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; +import java.util.Arrays; +import java.util.Iterator; + +class IdParsingUtils { + public static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + public static String getValueFromIdByPosition(String id, int pos) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + int index = 0; + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (index == pos) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + index++; + } + return null; + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceResourceImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceResourceImpl.java new file mode 100644 index 000000000000..4a37d24faade --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceResourceImpl.java @@ -0,0 +1,201 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceResource; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespacePatchParameters; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceCreateOrUpdateParameters; +import org.joda.time.DateTime; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceType; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import rx.functions.Func1; + +class NamespaceResourceImpl extends GroupableResourceCoreImpl implements NamespaceResource, NamespaceResource.Definition, NamespaceResource.Update { + private NamespaceCreateOrUpdateParameters createParameter; + private NamespacePatchParameters updateParameter; + NamespaceResourceImpl(String name, NamespaceResourceInner inner, NotificationHubsManager manager) { + super(name, inner, manager); + this.createParameter = new NamespaceCreateOrUpdateParameters(); + this.updateParameter = new NamespacePatchParameters(); + } + + @Override + public Observable createResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + this.createParameter.withLocation(inner().location()); + this.createParameter.withTags(inner().getTags()); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.createParameter) + .map(new Func1() { + @Override + public NamespaceResourceInner call(NamespaceResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.patchAsync(this.resourceGroupName(), this.name(), this.updateParameter) + .map(new Func1() { + @Override + public NamespaceResourceInner call(NamespaceResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createParameter = new NamespaceCreateOrUpdateParameters(); + this.updateParameter = new NamespacePatchParameters(); + } + + @Override + public DateTime createdAt() { + return this.inner().createdAt(); + } + + @Override + public Boolean critical() { + return this.inner().critical(); + } + + @Override + public Boolean enabled() { + return this.inner().enabled(); + } + + @Override + public String namespaceResourceName() { + return this.inner().namespaceResourceName(); + } + + @Override + public NamespaceType namespaceType() { + return this.inner().namespaceType(); + } + + @Override + public String provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public String scaleUnit() { + return this.inner().scaleUnit(); + } + + @Override + public String serviceBusEndpoint() { + return this.inner().serviceBusEndpoint(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public String status() { + return this.inner().status(); + } + + @Override + public String subscriptionId() { + return this.inner().subscriptionId(); + } + + @Override + public NamespaceResourceImpl withCreatedAt(DateTime createdAt) { + this.createParameter.withCreatedAt(createdAt); + return this; + } + + @Override + public NamespaceResourceImpl withCritical(Boolean critical) { + this.createParameter.withCritical(critical); + return this; + } + + @Override + public NamespaceResourceImpl withEnabled(Boolean enabled) { + this.createParameter.withEnabled(enabled); + return this; + } + + @Override + public NamespaceResourceImpl withNamespaceCreateOrUpdateParametersName(String namespaceCreateOrUpdateParametersName) { + this.createParameter.withNamespaceCreateOrUpdateParametersName(namespaceCreateOrUpdateParametersName); + return this; + } + + @Override + public NamespaceResourceImpl withNamespaceType(NamespaceType namespaceType) { + this.createParameter.withNamespaceType(namespaceType); + return this; + } + + @Override + public NamespaceResourceImpl withProvisioningState(String provisioningState) { + this.createParameter.withProvisioningState(provisioningState); + return this; + } + + @Override + public NamespaceResourceImpl withScaleUnit(String scaleUnit) { + this.createParameter.withScaleUnit(scaleUnit); + return this; + } + + @Override + public NamespaceResourceImpl withServiceBusEndpoint(String serviceBusEndpoint) { + this.createParameter.withServiceBusEndpoint(serviceBusEndpoint); + return this; + } + + @Override + public NamespaceResourceImpl withStatus(String status) { + this.createParameter.withStatus(status); + return this; + } + + @Override + public NamespaceResourceImpl withSubscriptionId(String subscriptionId) { + this.createParameter.withSubscriptionId(subscriptionId); + return this; + } + + @Override + public NamespaceResourceImpl withSku(Sku sku) { + if (isInCreateMode()) { + this.createParameter.withSku(sku); + } else { + this.updateParameter.withSku(sku); + } + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceResourceInner.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceResourceInner.java new file mode 100644 index 000000000000..52aa12e268b5 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceResourceInner.java @@ -0,0 +1,341 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import org.joda.time.DateTime; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceType; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * Description of a Namespace resource. + */ +@JsonFlatten +public class NamespaceResourceInner extends Resource { + /** + * The name of the namespace. + */ + @JsonProperty(value = "properties.name") + private String namespaceResourceName; + + /** + * Provisioning state of the Namespace. + */ + @JsonProperty(value = "properties.provisioningState") + private String provisioningState; + + /** + * Specifies the targeted region in which the namespace should be created. + * It can be any of the following values: Australia EastAustralia + * SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central + * USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth + * EuropeWest Europe. + */ + @JsonProperty(value = "properties.region") + private String region; + + /** + * Status of the namespace. It can be any of these values:1 = + * Created/Active2 = Creating3 = Suspended4 = Deleting. + */ + @JsonProperty(value = "properties.status") + private String status; + + /** + * The time the namespace was created. + */ + @JsonProperty(value = "properties.createdAt") + private DateTime createdAt; + + /** + * Endpoint you can use to perform NotificationHub operations. + */ + @JsonProperty(value = "properties.serviceBusEndpoint") + private String serviceBusEndpoint; + + /** + * The Id of the Azure subscription associated with the namespace. + */ + @JsonProperty(value = "properties.subscriptionId") + private String subscriptionId; + + /** + * ScaleUnit where the namespace gets created. + */ + @JsonProperty(value = "properties.scaleUnit") + private String scaleUnit; + + /** + * Whether or not the namespace is currently enabled. + */ + @JsonProperty(value = "properties.enabled") + private Boolean enabled; + + /** + * Whether or not the namespace is set as Critical. + */ + @JsonProperty(value = "properties.critical") + private Boolean critical; + + /** + * The namespace type. Possible values include: 'Messaging', + * 'NotificationHub'. + */ + @JsonProperty(value = "properties.namespaceType") + private NamespaceType namespaceType; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the name of the namespace. + * + * @return the namespaceResourceName value + */ + public String namespaceResourceName() { + return this.namespaceResourceName; + } + + /** + * Set the name of the namespace. + * + * @param namespaceResourceName the namespaceResourceName value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withNamespaceResourceName(String namespaceResourceName) { + this.namespaceResourceName = namespaceResourceName; + return this; + } + + /** + * Get provisioning state of the Namespace. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set provisioning state of the Namespace. + * + * @param provisioningState the provisioningState value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @return the region value + */ + public String region() { + return this.region; + } + + /** + * Set specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @param region the region value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withRegion(String region) { + this.region = region; + return this; + } + + /** + * Get status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @param status the status value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the time the namespace was created. + * + * @return the createdAt value + */ + public DateTime createdAt() { + return this.createdAt; + } + + /** + * Set the time the namespace was created. + * + * @param createdAt the createdAt value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withCreatedAt(DateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get endpoint you can use to perform NotificationHub operations. + * + * @return the serviceBusEndpoint value + */ + public String serviceBusEndpoint() { + return this.serviceBusEndpoint; + } + + /** + * Set endpoint you can use to perform NotificationHub operations. + * + * @param serviceBusEndpoint the serviceBusEndpoint value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withServiceBusEndpoint(String serviceBusEndpoint) { + this.serviceBusEndpoint = serviceBusEndpoint; + return this; + } + + /** + * Get the Id of the Azure subscription associated with the namespace. + * + * @return the subscriptionId value + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the Id of the Azure subscription associated with the namespace. + * + * @param subscriptionId the subscriptionId value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get scaleUnit where the namespace gets created. + * + * @return the scaleUnit value + */ + public String scaleUnit() { + return this.scaleUnit; + } + + /** + * Set scaleUnit where the namespace gets created. + * + * @param scaleUnit the scaleUnit value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withScaleUnit(String scaleUnit) { + this.scaleUnit = scaleUnit; + return this; + } + + /** + * Get whether or not the namespace is currently enabled. + * + * @return the enabled value + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set whether or not the namespace is currently enabled. + * + * @param enabled the enabled value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get whether or not the namespace is set as Critical. + * + * @return the critical value + */ + public Boolean critical() { + return this.critical; + } + + /** + * Set whether or not the namespace is set as Critical. + * + * @param critical the critical value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withCritical(Boolean critical) { + this.critical = critical; + return this; + } + + /** + * Get the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @return the namespaceType value + */ + public NamespaceType namespaceType() { + return this.namespaceType; + } + + /** + * Set the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @param namespaceType the namespaceType value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withNamespaceType(NamespaceType namespaceType) { + this.namespaceType = namespaceType; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java new file mode 100644 index 000000000000..59750521a20b --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java @@ -0,0 +1,165 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.AccessRights; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.SharedAccessAuthorizationRuleProperties; +import rx.functions.Func1; + +class NamespaceSharedAccessAuthorizationRuleResourceImpl extends CreatableUpdatableImpl implements NamespaceSharedAccessAuthorizationRuleResource, NamespaceSharedAccessAuthorizationRuleResource.Definition, NamespaceSharedAccessAuthorizationRuleResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String authorizationRuleName; + private SharedAccessAuthorizationRuleCreateOrUpdateParameters createOrUpdateParameter; + + NamespaceSharedAccessAuthorizationRuleResourceImpl(String name, NotificationHubsManager manager) { + super(name, new SharedAccessAuthorizationRuleResourceInner()); + this.manager = manager; + // Set resource name + this.authorizationRuleName = name; + // + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + NamespaceSharedAccessAuthorizationRuleResourceImpl(SharedAccessAuthorizationRuleResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.authorizationRuleName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.authorizationRuleName = IdParsingUtils.getValueFromIdByName(inner.id(), "AuthorizationRules"); + // + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.authorizationRuleName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.authorizationRuleName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.getAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.authorizationRuleName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public List rights() { + return this.inner().rights(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withExistingNamespace(String resourceGroupName, String namespaceName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + return this; + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withLocation(String location) { + this.createOrUpdateParameter.withLocation(location); + return this; + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withProperties(SharedAccessAuthorizationRuleProperties properties) { + this.createOrUpdateParameter.withProperties(properties); + return this; + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withSku(Sku sku) { + this.createOrUpdateParameter.withSku(sku); + return this; + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withTags(Map tags) { + this.createOrUpdateParameter.withTags(tags); + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespacesImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespacesImpl.java new file mode 100644 index 000000000000..569fbfb3fad2 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespacesImpl.java @@ -0,0 +1,235 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Namespaces; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceResource; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.CheckAvailabilityResult; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.ResourceListKeys; + +class NamespacesImpl extends GroupableResourcesCoreImpl implements Namespaces { + protected NamespacesImpl(NotificationHubsManager manager) { + super(manager.inner().namespaces(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + NamespacesInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + NamespacesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + NamespacesInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + NamespacesInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceResource call(NamespaceResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + NamespacesInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + NamespacesInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceResource call(NamespaceResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public NamespaceResourceImpl define(String name) { + return wrapModel(name); + } + + @Override + public Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters) { + NamespacesInner client = this.inner(); + return client.checkAvailabilityAsync(parameters) + .map(new Func1() { + @Override + public CheckAvailabilityResult call(CheckAvailabilityResultInner inner) { + return new CheckAvailabilityResultImpl(inner, manager()); + } + }); + } + + @Override + protected NamespaceResourceImpl wrapModel(NamespaceResourceInner inner) { + return new NamespaceResourceImpl(inner.name(), inner, manager()); + } + + @Override + protected NamespaceResourceImpl wrapModel(String name) { + return new NamespaceResourceImpl(name, new NamespaceResourceInner(), this.manager()); + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl defineAuthorizationRule(String name) { + return wrapAuthorizationRuleModel(name); + } + + private NamespaceSharedAccessAuthorizationRuleResourceImpl wrapAuthorizationRuleModel(String name) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(name, this.manager()); + } + + private NamespaceSharedAccessAuthorizationRuleResourceImpl wrapNamespaceSharedAccessAuthorizationRuleResourceModel(SharedAccessAuthorizationRuleResourceInner inner) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + + private Observable getSharedAccessAuthorizationRuleResourceInnerUsingNamespacesInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String namespaceName = IdParsingUtils.getValueFromIdByName(id, "namespaces"); + String authorizationRuleName = IdParsingUtils.getValueFromIdByName(id, "AuthorizationRules"); + NamespacesInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName); + } + + @Override + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName) + .map(new Func1() { + @Override + public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return wrapNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + } + }); + } + + @Override + public Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName) { + NamespacesInner client = this.inner(); + return client.listAuthorizationRulesAsync(resourceGroupName, namespaceName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return wrapNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + } + }); + } + + @Override + public Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName).toCompletable(); + } + + @Override + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.listKeysAsync(resourceGroupName, namespaceName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + + @Override + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.regenerateKeysAsync(resourceGroupName, namespaceName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespacesInner.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespacesInner.java new file mode 100644 index 000000000000..c0e28aa7fe51 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NamespacesInner.java @@ -0,0 +1,1900 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespaceCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NamespacePatchParameters; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.PolicykeyResource; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Namespaces. + */ +public class NamespacesInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private NamespacesService service; + /** The service client containing this operation class. */ + private NotificationHubsManagementClientImpl client; + + /** + * Initializes an instance of NamespacesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public NamespacesInner(Retrofit retrofit, NotificationHubsManagementClientImpl client) { + this.service = retrofit.create(NamespacesService.class); + this.client = client; + } + + /** + * The interface defining all the services for Namespaces to be + * used by Retrofit to perform actually REST calls. + */ + interface NamespacesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2016_03_01.Namespaces checkAvailability" }) + @POST("subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability") + Observable> checkAvailability(@Path("subscriptionId") String subscriptionId, @Body CheckAvailabilityParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}") + Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body NamespaceCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces patch" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}") + Observable> patch(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body NamespacePatchParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}") + Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces createOrUpdateAuthorizationRule" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}") + Observable> createOrUpdateAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Body SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces deleteAuthorizationRule" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", method = "DELETE", hasBody = true) + Observable> deleteAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces getAuthorizationRule" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}") + Observable> getAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces") + Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces listAuthorizationRules" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules") + Observable> listAuthorizationRules(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces listKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys") + Observable> listKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.Namespaces regenerateKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys") + Observable> regenerateKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body PolicykeyResource parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2016_03_01.Namespaces listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.notificationhubs.v2016_03_01.Namespaces listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.notificationhubs.v2016_03_01.Namespaces listAuthorizationRulesNext" }) + @GET + Observable> listAuthorizationRulesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CheckAvailabilityResultInner object if successful. + */ + public CheckAvailabilityResultInner checkAvailability(CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(parameters).toBlocking().single().body(); + } + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkAvailabilityAsync(CheckAvailabilityParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkAvailabilityWithServiceResponseAsync(parameters), serviceCallback); + } + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResultInner object + */ + public Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(parameters).map(new Func1, CheckAvailabilityResultInner>() { + @Override + public CheckAvailabilityResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResultInner object + */ + public Observable> checkAvailabilityWithServiceResponseAsync(CheckAvailabilityParameters parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.checkAvailability(this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = checkAvailabilityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse checkAvailabilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NamespaceResourceInner object if successful. + */ + public NamespaceResourceInner createOrUpdate(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).toBlocking().single().body(); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters), serviceCallback); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1, NamespaceResourceInner>() { + @Override + public NamespaceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdate(resourceGroupName, namespaceName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Patches the existing namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to patch a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NamespaceResourceInner object if successful. + */ + public NamespaceResourceInner patch(String resourceGroupName, String namespaceName, NamespacePatchParameters parameters) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).toBlocking().single().body(); + } + + /** + * Patches the existing namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to patch a Namespace Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture patchAsync(String resourceGroupName, String namespaceName, NamespacePatchParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(patchWithServiceResponseAsync(resourceGroupName, namespaceName, parameters), serviceCallback); + } + + /** + * Patches the existing namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to patch a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable patchAsync(String resourceGroupName, String namespaceName, NamespacePatchParameters parameters) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1, NamespaceResourceInner>() { + @Override + public NamespaceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patches the existing namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to patch a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable> patchWithServiceResponseAsync(String resourceGroupName, String namespaceName, NamespacePatchParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.patch(resourceGroupName, namespaceName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = patchDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse patchDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String namespaceName) { + deleteWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().last().body(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String namespaceName) { + return deleteWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String namespaceName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().single().body(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String namespaceName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NamespaceResourceInner object if successful. + */ + public NamespaceResourceInner getByResourceGroup(String resourceGroupName, String namespaceName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().single().body(); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String namespaceName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, NamespaceResourceInner>() { + @Override + public NamespaceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters).toBlocking().single().body(); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param parameters The shared access authorization rule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters), serviceCallback); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> createOrUpdateAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName) { + deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner getAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> getAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRules(final String resourceGroupName, final String namespaceName) { + ServiceResponse> response = listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName) { + return listAuthorizationRulesWithServiceResponseAsync(resourceGroupName, namespaceName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesWithServiceResponseAsync(final String resourceGroupName, final String namespaceName) { + return listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesSinglePageAsync(final String resourceGroupName, final String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listAuthorizationRules(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> listKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listKeys(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String policyKey = null; + PolicykeyResource parameters = new PolicykeyResource(); + parameters.withPolicyKey(null); + return service.regenerateKeys(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, policyKey).toBlocking().single().body(); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, policyKey), serviceCallback); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, policyKey).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + PolicykeyResource parameters = new PolicykeyResource(); + parameters.withPolicyKey(policyKey); + return service.regenerateKeys(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse regenerateKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRulesNext(final String nextPageLink) { + ServiceResponse> response = listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesNextAsync(final String nextPageLink) { + return listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesNextWithServiceResponseAsync(final String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listAuthorizationRulesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java new file mode 100644 index 000000000000..dda48a5d9726 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java @@ -0,0 +1,168 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubNamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.AccessRights; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.SharedAccessAuthorizationRuleProperties; +import rx.functions.Func1; + +class NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl extends CreatableUpdatableImpl implements NotificationHubNamespaceSharedAccessAuthorizationRuleResource, NotificationHubNamespaceSharedAccessAuthorizationRuleResource.Definition, NotificationHubNamespaceSharedAccessAuthorizationRuleResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String notificationHubName; + private String authorizationRuleName; + private SharedAccessAuthorizationRuleCreateOrUpdateParameters createOrUpdateParameter; + + NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(String name, NotificationHubsManager manager) { + super(name, new SharedAccessAuthorizationRuleResourceInner()); + this.manager = manager; + // Set resource name + this.authorizationRuleName = name; + // + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(SharedAccessAuthorizationRuleResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.authorizationRuleName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.notificationHubName = IdParsingUtils.getValueFromIdByName(inner.id(), "notificationHubs"); + this.authorizationRuleName = IdParsingUtils.getValueFromIdByName(inner.id(), "AuthorizationRules"); + // + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.authorizationRuleName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.authorizationRuleName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.getAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.authorizationRuleName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public List rights() { + return this.inner().rights(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withExistingNotificationHub(String resourceGroupName, String namespaceName, String notificationHubName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + this.notificationHubName = notificationHubName; + return this; + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withLocation(String location) { + this.createOrUpdateParameter.withLocation(location); + return this; + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withProperties(SharedAccessAuthorizationRuleProperties properties) { + this.createOrUpdateParameter.withProperties(properties); + return this; + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withSku(Sku sku) { + this.createOrUpdateParameter.withSku(sku); + return this; + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withTags(Map tags) { + this.createOrUpdateParameter.withTags(tags); + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubResourceImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubResourceImpl.java new file mode 100644 index 000000000000..d3a79e76f4e8 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubResourceImpl.java @@ -0,0 +1,258 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubCreateOrUpdateParameters; +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.AdmCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.SharedAccessAuthorizationRuleProperties; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.GcmCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.WnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import rx.functions.Func1; + +class NotificationHubResourceImpl extends CreatableUpdatableImpl implements NotificationHubResource, NotificationHubResource.Definition, NotificationHubResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String notificationHubName; + private NotificationHubCreateOrUpdateParameters createOrUpdateParameter; + + NotificationHubResourceImpl(String name, NotificationHubsManager manager) { + super(name, new NotificationHubResourceInner()); + this.manager = manager; + // Set resource name + this.notificationHubName = name; + // + this.createOrUpdateParameter = new NotificationHubCreateOrUpdateParameters(); + } + + NotificationHubResourceImpl(NotificationHubResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.notificationHubName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.notificationHubName = IdParsingUtils.getValueFromIdByName(inner.id(), "notificationHubs"); + // + this.createOrUpdateParameter = new NotificationHubCreateOrUpdateParameters(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public NotificationHubResourceInner call(NotificationHubResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public NotificationHubResourceInner call(NotificationHubResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.getAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new NotificationHubCreateOrUpdateParameters(); + } + + @Override + public AdmCredential admCredential() { + return this.inner().admCredential(); + } + + @Override + public ApnsCredential apnsCredential() { + return this.inner().apnsCredential(); + } + + @Override + public List authorizationRules() { + return this.inner().authorizationRules(); + } + + @Override + public BaiduCredential baiduCredential() { + return this.inner().baiduCredential(); + } + + @Override + public GcmCredential gcmCredential() { + return this.inner().gcmCredential(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public MpnsCredential mpnsCredential() { + return this.inner().mpnsCredential(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String notificationHubResourceName() { + return this.inner().notificationHubResourceName(); + } + + @Override + public String registrationTtl() { + return this.inner().registrationTtl(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public WnsCredential wnsCredential() { + return this.inner().wnsCredential(); + } + + @Override + public NotificationHubResourceImpl withExistingNamespace(String resourceGroupName, String namespaceName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + return this; + } + + @Override + public NotificationHubResourceImpl withLocation(String location) { + this.createOrUpdateParameter.withLocation(location); + return this; + } + + @Override + public NotificationHubResourceImpl withAdmCredential(AdmCredential admCredential) { + this.createOrUpdateParameter.withAdmCredential(admCredential); + return this; + } + + @Override + public NotificationHubResourceImpl withApnsCredential(ApnsCredential apnsCredential) { + this.createOrUpdateParameter.withApnsCredential(apnsCredential); + return this; + } + + @Override + public NotificationHubResourceImpl withAuthorizationRules(List authorizationRules) { + this.createOrUpdateParameter.withAuthorizationRules(authorizationRules); + return this; + } + + @Override + public NotificationHubResourceImpl withBaiduCredential(BaiduCredential baiduCredential) { + this.createOrUpdateParameter.withBaiduCredential(baiduCredential); + return this; + } + + @Override + public NotificationHubResourceImpl withGcmCredential(GcmCredential gcmCredential) { + this.createOrUpdateParameter.withGcmCredential(gcmCredential); + return this; + } + + @Override + public NotificationHubResourceImpl withMpnsCredential(MpnsCredential mpnsCredential) { + this.createOrUpdateParameter.withMpnsCredential(mpnsCredential); + return this; + } + + @Override + public NotificationHubResourceImpl withNotificationHubCreateOrUpdateParametersName(String notificationHubCreateOrUpdateParametersName) { + this.createOrUpdateParameter.withNotificationHubCreateOrUpdateParametersName(notificationHubCreateOrUpdateParametersName); + return this; + } + + @Override + public NotificationHubResourceImpl withRegistrationTtl(String registrationTtl) { + this.createOrUpdateParameter.withRegistrationTtl(registrationTtl); + return this; + } + + @Override + public NotificationHubResourceImpl withSku(Sku sku) { + this.createOrUpdateParameter.withSku(sku); + return this; + } + + @Override + public NotificationHubResourceImpl withTags(Map tags) { + this.createOrUpdateParameter.withTags(tags); + return this; + } + + @Override + public NotificationHubResourceImpl withWnsCredential(WnsCredential wnsCredential) { + this.createOrUpdateParameter.withWnsCredential(wnsCredential); + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubResourceInner.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubResourceInner.java new file mode 100644 index 000000000000..326ae60fd084 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubResourceInner.java @@ -0,0 +1,289 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.SharedAccessAuthorizationRuleProperties; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.WnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.GcmCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.AdmCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * Description of a NotificationHub Resource. + */ +@JsonFlatten +public class NotificationHubResourceInner extends Resource { + /** + * The NotificationHub name. + */ + @JsonProperty(value = "properties.name") + private String notificationHubResourceName; + + /** + * The RegistrationTtl of the created NotificationHub. + */ + @JsonProperty(value = "properties.registrationTtl") + private String registrationTtl; + + /** + * The AuthorizationRules of the created NotificationHub. + */ + @JsonProperty(value = "properties.authorizationRules") + private List authorizationRules; + + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.baiduCredential") + private BaiduCredential baiduCredential; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the NotificationHub name. + * + * @return the notificationHubResourceName value + */ + public String notificationHubResourceName() { + return this.notificationHubResourceName; + } + + /** + * Set the NotificationHub name. + * + * @param notificationHubResourceName the notificationHubResourceName value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withNotificationHubResourceName(String notificationHubResourceName) { + this.notificationHubResourceName = notificationHubResourceName; + return this; + } + + /** + * Get the RegistrationTtl of the created NotificationHub. + * + * @return the registrationTtl value + */ + public String registrationTtl() { + return this.registrationTtl; + } + + /** + * Set the RegistrationTtl of the created NotificationHub. + * + * @param registrationTtl the registrationTtl value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withRegistrationTtl(String registrationTtl) { + this.registrationTtl = registrationTtl; + return this; + } + + /** + * Get the AuthorizationRules of the created NotificationHub. + * + * @return the authorizationRules value + */ + public List authorizationRules() { + return this.authorizationRules; + } + + /** + * Set the AuthorizationRules of the created NotificationHub. + * + * @param authorizationRules the authorizationRules value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withAuthorizationRules(List authorizationRules) { + this.authorizationRules = authorizationRules; + return this; + } + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsImpl.java new file mode 100644 index 000000000000..c58f36591374 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsImpl.java @@ -0,0 +1,192 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubs; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.PnsCredentialsResource; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubResource; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.CheckAvailabilityResult; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubNamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.ResourceListKeys; + +class NotificationHubsImpl extends WrapperImpl implements NotificationHubs { + private final NotificationHubsManager manager; + + NotificationHubsImpl(NotificationHubsManager manager) { + super(manager.inner().notificationHubs()); + this.manager = manager; + } + + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public NotificationHubResourceImpl define(String name) { + return wrapModel(name); + } + + private NotificationHubResourceImpl wrapModel(NotificationHubResourceInner inner) { + return new NotificationHubResourceImpl(inner, manager()); + } + + private NotificationHubResourceImpl wrapModel(String name) { + return new NotificationHubResourceImpl(name, this.manager()); + } + + @Override + public Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.getPnsCredentialsAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1() { + @Override + public PnsCredentialsResource call(PnsCredentialsResourceInner inner) { + return new PnsCredentialsResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAsync(final String resourceGroupName, final String namespaceName) { + NotificationHubsInner client = this.inner(); + return client.listAsync(resourceGroupName, namespaceName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NotificationHubResource call(NotificationHubResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.getAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1() { + @Override + public NotificationHubResource call(NotificationHubResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, namespaceName, notificationHubName).toCompletable(); + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl defineAuthorizationRule(String name) { + return wrapAuthorizationRuleModel(name); + } + + private NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl wrapAuthorizationRuleModel(String name) { + return new NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(name, this.manager()); + } + + private NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl wrapNotificationHubNamespaceSharedAccessAuthorizationRuleResourceModel(SharedAccessAuthorizationRuleResourceInner inner) { + return new NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + + private Observable getSharedAccessAuthorizationRuleResourceInnerUsingNotificationHubsInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String namespaceName = IdParsingUtils.getValueFromIdByName(id, "namespaces"); + String notificationHubName = IdParsingUtils.getValueFromIdByName(id, "notificationHubs"); + String authorizationRuleName = IdParsingUtils.getValueFromIdByName(id, "AuthorizationRules"); + NotificationHubsInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName); + } + + @Override + public Observable checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + NotificationHubsInner client = this.inner(); + return client.checkAvailabilityAsync(resourceGroupName, namespaceName, parameters) + .map(new Func1() { + @Override + public CheckAvailabilityResult call(CheckAvailabilityResultInner inner) { + return new CheckAvailabilityResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName) + .map(new Func1() { + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return wrapNotificationHubNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + } + }); + } + + @Override + public Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.listAuthorizationRulesAsync(resourceGroupName, namespaceName, notificationHubName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return wrapNotificationHubNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + } + }); + } + + @Override + public Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toCompletable(); + } + + @Override + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.listKeysAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + + @Override + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.regenerateKeysAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsInner.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsInner.java new file mode 100644 index 000000000000..63c9342c8e11 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsInner.java @@ -0,0 +1,1687 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.PolicykeyResource; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in NotificationHubs. + */ +public class NotificationHubsInner { + /** The Retrofit service to perform REST calls. */ + private NotificationHubsService service; + /** The service client containing this operation class. */ + private NotificationHubsManagementClientImpl client; + + /** + * Initializes an instance of NotificationHubsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public NotificationHubsInner(Retrofit retrofit, NotificationHubsManagementClientImpl client) { + this.service = retrofit.create(NotificationHubsService.class); + this.client = client; + } + + /** + * The interface defining all the services for NotificationHubs to be + * used by Retrofit to perform actually REST calls. + */ + interface NotificationHubsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubs checkAvailability" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability") + Observable> checkAvailability(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body CheckAvailabilityParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") + Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Body NotificationHubCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") + Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs createOrUpdateAuthorizationRule" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}") + Observable> createOrUpdateAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Body SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs deleteAuthorizationRule" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", method = "DELETE", hasBody = true) + Observable> deleteAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs getAuthorizationRule" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}") + Observable> getAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs") + Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs listAuthorizationRules" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules") + Observable> listAuthorizationRules(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs listKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys") + Observable> listKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs regenerateKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys") + Observable> regenerateKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body PolicykeyResource parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubs getPnsCredentials" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials") + Observable> getPnsCredentials(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2016_03_01.NotificationHubs listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.notificationhubs.v2016_03_01.NotificationHubs listAuthorizationRulesNext" }) + @GET + Observable> listAuthorizationRulesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CheckAvailabilityResultInner object if successful. + */ + public CheckAvailabilityResultInner checkAvailability(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).toBlocking().single().body(); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters), serviceCallback); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResultInner object + */ + public Observable checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1, CheckAvailabilityResultInner>() { + @Override + public CheckAvailabilityResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResultInner object + */ + public Observable> checkAvailabilityWithServiceResponseAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.checkAvailability(resourceGroupName, namespaceName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = checkAvailabilityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse checkAvailabilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner createOrUpdate(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).toBlocking().single().body(); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters), serviceCallback); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdate(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String namespaceName, String notificationHubName) { + deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner get(String resourceGroupName, String namespaceName, String notificationHubName) { + return getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters).toBlocking().single().body(); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param parameters The shared access authorization rule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters), serviceCallback); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param parameters The shared access authorization rule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> createOrUpdateAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner getAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> getAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NotificationHubResourceInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String namespaceName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String namespaceName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, namespaceName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String namespaceName) { + return listWithServiceResponseAsync(resourceGroupName, namespaceName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String namespaceName) { + return listSinglePageAsync(resourceGroupName, namespaceName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NotificationHubResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRules(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + ServiceResponse> response = listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + return listAuthorizationRulesWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesWithServiceResponseAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + return listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name + ServiceResponse> * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesSinglePageAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listAuthorizationRules(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner listKeys(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> listKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String policyKey = null; + PolicykeyResource parameters = new PolicykeyResource(); + parameters.withPolicyKey(null); + return service.regenerateKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, String policyKey) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, policyKey).toBlocking().single().body(); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, String policyKey, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, policyKey), serviceCallback); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, String policyKey) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, policyKey).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, String policyKey) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + PolicykeyResource parameters = new PolicykeyResource(); + parameters.withPolicyKey(policyKey); + return service.regenerateKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse regenerateKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PnsCredentialsResourceInner object if successful. + */ + public PnsCredentialsResourceInner getPnsCredentials(String resourceGroupName, String namespaceName, String notificationHubName) { + return getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PnsCredentialsResourceInner object + */ + public Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, PnsCredentialsResourceInner>() { + @Override + public PnsCredentialsResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PnsCredentialsResourceInner object + */ + public Observable> getPnsCredentialsWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getPnsCredentials(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getPnsCredentialsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getPnsCredentialsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NotificationHubResourceInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NotificationHubResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRulesNext(final String nextPageLink) { + ServiceResponse> response = listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesNextAsync(final String nextPageLink) { + return listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesNextWithServiceResponseAsync(final String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listAuthorizationRulesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsManagementClientImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsManagementClientImpl.java new file mode 100644 index 000000000000..7972c9754f23 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsManagementClientImpl.java @@ -0,0 +1,210 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the NotificationHubsManagementClientImpl class. + */ +public class NotificationHubsManagementClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */ + private String subscriptionId; + + /** + * Gets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** Client Api Version. */ + private String apiVersion; + + /** + * Gets Client Api Version. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** The preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets The preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets The preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The NamespacesInner object to access its operations. + */ + private NamespacesInner namespaces; + + /** + * Gets the NamespacesInner object to access its operations. + * @return the NamespacesInner object. + */ + public NamespacesInner namespaces() { + return this.namespaces; + } + + /** + * The NotificationHubsInner object to access its operations. + */ + private NotificationHubsInner notificationHubs; + + /** + * Gets the NotificationHubsInner object to access its operations. + * @return the NotificationHubsInner object. + */ + public NotificationHubsInner notificationHubs() { + return this.notificationHubs; + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param credentials the management credentials for Azure + */ + public NotificationHubsManagementClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public NotificationHubsManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public NotificationHubsManagementClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2016-03-01"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.namespaces = new NamespacesInner(restClient().retrofit(), this); + this.notificationHubs = new NotificationHubsInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "NotificationHubsManagementClient", "2016-03-01"); + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsManager.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsManager.java new file mode 100644 index 000000000000..921c4a7bd31f --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/NotificationHubsManager.java @@ -0,0 +1,111 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Namespaces; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.NotificationHubs; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure NotificationHubs resource management. + */ +public final class NotificationHubsManager extends ManagerCore { + private Namespaces namespaces; + private NotificationHubs notificationHubs; + /** + * Get a Configurable instance that can be used to create NotificationHubsManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new NotificationHubsManager.ConfigurableImpl(); + } + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the NotificationHubsManager + */ + public static NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new NotificationHubsManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the NotificationHubsManager + */ + public static NotificationHubsManager authenticate(RestClient restClient, String subscriptionId) { + return new NotificationHubsManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing NotificationHubs management API entry points that work across subscriptions + */ + NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Namespaces. + */ + public Namespaces namespaces() { + if (this.namespaces == null) { + this.namespaces = new NamespacesImpl(this); + } + return this.namespaces; + } + + /** + * @return Entry point to manage NotificationHubs. + */ + public NotificationHubs notificationHubs() { + if (this.notificationHubs == null) { + this.notificationHubs = new NotificationHubsImpl(this); + } + return this.notificationHubs; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return NotificationHubsManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private NotificationHubsManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new NotificationHubsManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PageImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PageImpl.java new file mode 100644 index 000000000000..ebf3d7afd239 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PageImpl.java @@ -0,0 +1,75 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("nextLink") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PnsCredentialsResourceImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PnsCredentialsResourceImpl.java new file mode 100644 index 000000000000..2bd2ea0ccf57 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PnsCredentialsResourceImpl.java @@ -0,0 +1,94 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2016_03_01.PnsCredentialsResource; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.AdmCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.GcmCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import java.util.Map; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.WnsCredential; + +class PnsCredentialsResourceImpl extends WrapperImpl implements PnsCredentialsResource { + private final NotificationHubsManager manager; + PnsCredentialsResourceImpl(PnsCredentialsResourceInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public AdmCredential admCredential() { + return this.inner().admCredential(); + } + + @Override + public ApnsCredential apnsCredential() { + return this.inner().apnsCredential(); + } + + @Override + public BaiduCredential baiduCredential() { + return this.inner().baiduCredential(); + } + + @Override + public GcmCredential gcmCredential() { + return this.inner().gcmCredential(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public MpnsCredential mpnsCredential() { + return this.inner().mpnsCredential(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public WnsCredential wnsCredential() { + return this.inner().wnsCredential(); + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PnsCredentialsResourceInner.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PnsCredentialsResourceInner.java new file mode 100644 index 000000000000..4f18a221002e --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/PnsCredentialsResourceInner.java @@ -0,0 +1,209 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2016_03_01.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.WnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.GcmCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.AdmCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * Description of a NotificationHub PNS Credentials. + */ +@JsonFlatten +public class PnsCredentialsResourceInner extends Resource { + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.baiduCredential") + private BaiduCredential baiduCredential; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/ResourceListKeysImpl.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/ResourceListKeysImpl.java new file mode 100644 index 000000000000..cd2b82a2f964 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/ResourceListKeysImpl.java @@ -0,0 +1,51 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2016_03_01.ResourceListKeys; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ResourceListKeysImpl extends WrapperImpl implements ResourceListKeys { + private final NotificationHubsManager manager; + ResourceListKeysImpl(ResourceListKeysInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public String keyName() { + return this.inner().keyName(); + } + + @Override + public String primaryConnectionString() { + return this.inner().primaryConnectionString(); + } + + @Override + public String primaryKey() { + return this.inner().primaryKey(); + } + + @Override + public String secondaryConnectionString() { + return this.inner().secondaryConnectionString(); + } + + @Override + public String secondaryKey() { + return this.inner().secondaryKey(); + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/ResourceListKeysInner.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/ResourceListKeysInner.java new file mode 100644 index 000000000000..a9d2e00f22b1 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/ResourceListKeysInner.java @@ -0,0 +1,147 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Namespace/NotificationHub Connection String. + */ +public class ResourceListKeysInner { + /** + * PrimaryConnectionString of the AuthorizationRule. + */ + @JsonProperty(value = "primaryConnectionString") + private String primaryConnectionString; + + /** + * SecondaryConnectionString of the created AuthorizationRule. + */ + @JsonProperty(value = "secondaryConnectionString") + private String secondaryConnectionString; + + /** + * PrimaryKey of the created AuthorizationRule. + */ + @JsonProperty(value = "primaryKey") + private String primaryKey; + + /** + * SecondaryKey of the created AuthorizationRule. + */ + @JsonProperty(value = "secondaryKey") + private String secondaryKey; + + /** + * KeyName of the created AuthorizationRule. + */ + @JsonProperty(value = "keyName") + private String keyName; + + /** + * Get primaryConnectionString of the AuthorizationRule. + * + * @return the primaryConnectionString value + */ + public String primaryConnectionString() { + return this.primaryConnectionString; + } + + /** + * Set primaryConnectionString of the AuthorizationRule. + * + * @param primaryConnectionString the primaryConnectionString value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withPrimaryConnectionString(String primaryConnectionString) { + this.primaryConnectionString = primaryConnectionString; + return this; + } + + /** + * Get secondaryConnectionString of the created AuthorizationRule. + * + * @return the secondaryConnectionString value + */ + public String secondaryConnectionString() { + return this.secondaryConnectionString; + } + + /** + * Set secondaryConnectionString of the created AuthorizationRule. + * + * @param secondaryConnectionString the secondaryConnectionString value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withSecondaryConnectionString(String secondaryConnectionString) { + this.secondaryConnectionString = secondaryConnectionString; + return this; + } + + /** + * Get primaryKey of the created AuthorizationRule. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Set primaryKey of the created AuthorizationRule. + * + * @param primaryKey the primaryKey value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withPrimaryKey(String primaryKey) { + this.primaryKey = primaryKey; + return this; + } + + /** + * Get secondaryKey of the created AuthorizationRule. + * + * @return the secondaryKey value + */ + public String secondaryKey() { + return this.secondaryKey; + } + + /** + * Set secondaryKey of the created AuthorizationRule. + * + * @param secondaryKey the secondaryKey value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withSecondaryKey(String secondaryKey) { + this.secondaryKey = secondaryKey; + return this; + } + + /** + * Get keyName of the created AuthorizationRule. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Set keyName of the created AuthorizationRule. + * + * @param keyName the keyName value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withKeyName(String keyName) { + this.keyName = keyName; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/SharedAccessAuthorizationRuleResourceInner.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/SharedAccessAuthorizationRuleResourceInner.java new file mode 100644 index 000000000000..362162a38cfd --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/SharedAccessAuthorizationRuleResourceInner.java @@ -0,0 +1,75 @@ +/** + * 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.management.notificationhubs.v2016_03_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.AccessRights; +import com.microsoft.azure.management.notificationhubs.v2016_03_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * Description of a Namespace AuthorizationRules. + */ +@JsonFlatten +public class SharedAccessAuthorizationRuleResourceInner extends Resource { + /** + * The rights associated with the rule. + */ + @JsonProperty(value = "properties.rights") + private List rights; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the rights associated with the rule. + * + * @return the rights value + */ + public List rights() { + return this.rights; + } + + /** + * Set the rights associated with the rule. + * + * @param rights the rights value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withRights(List rights) { + this.rights = rights; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/package-info.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/package-info.java new file mode 100644 index 000000000000..ba4fec4fb5b7 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for NotificationHubsManagementClient. + * Azure NotificationHub client. + */ +package com.microsoft.azure.management.notificationhubs.v2016_03_01.implementation; diff --git a/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/package-info.java b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/package-info.java new file mode 100644 index 000000000000..a576a3c99f44 --- /dev/null +++ b/notificationhubs/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2016_03_01/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for NotificationHubsManagementClient. + * Azure NotificationHub client. + */ +package com.microsoft.azure.management.notificationhubs.v2016_03_01; diff --git a/notificationhubs/resource-manager/v2017_04_01/pom.xml b/notificationhubs/resource-manager/v2017_04_01/pom.xml new file mode 100644 index 000000000000..58b7afc55e2c --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/pom.xml @@ -0,0 +1,133 @@ + + + 4.0.0 + com.microsoft.azure.notificationhubs.v2017_04_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-notificationhubs + 1.0.0-beta + jar + Microsoft Azure SDK for NotificationHubs Management + This package contains Microsoft NotificationHubs Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/AccessRights.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/AccessRights.java new file mode 100644 index 000000000000..1fd290f292d3 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/AccessRights.java @@ -0,0 +1,56 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AccessRights. + */ +public enum AccessRights { + /** Enum value Manage. */ + MANAGE("Manage"), + + /** Enum value Send. */ + SEND("Send"), + + /** Enum value Listen. */ + LISTEN("Listen"); + + /** The actual serialized value for a AccessRights instance. */ + private String value; + + AccessRights(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AccessRights instance. + * + * @param value the serialized value to parse. + * @return the parsed AccessRights object, or null if unable to parse. + */ + @JsonCreator + public static AccessRights fromString(String value) { + AccessRights[] items = AccessRights.values(); + for (AccessRights item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/AdmCredential.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/AdmCredential.java new file mode 100644 index 000000000000..5ba7d24ac9ea --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/AdmCredential.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub AdmCredential. + */ +@JsonFlatten +public class AdmCredential { + /** + * The client identifier. + */ + @JsonProperty(value = "properties.clientId") + private String clientId; + + /** + * The credential secret access key. + */ + @JsonProperty(value = "properties.clientSecret") + private String clientSecret; + + /** + * The URL of the authorization token. + */ + @JsonProperty(value = "properties.authTokenUrl") + private String authTokenUrl; + + /** + * Get the client identifier. + * + * @return the clientId value + */ + public String clientId() { + return this.clientId; + } + + /** + * Set the client identifier. + * + * @param clientId the clientId value to set + * @return the AdmCredential object itself. + */ + public AdmCredential withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the credential secret access key. + * + * @return the clientSecret value + */ + public String clientSecret() { + return this.clientSecret; + } + + /** + * Set the credential secret access key. + * + * @param clientSecret the clientSecret value to set + * @return the AdmCredential object itself. + */ + public AdmCredential withClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the URL of the authorization token. + * + * @return the authTokenUrl value + */ + public String authTokenUrl() { + return this.authTokenUrl; + } + + /** + * Set the URL of the authorization token. + * + * @param authTokenUrl the authTokenUrl value to set + * @return the AdmCredential object itself. + */ + public AdmCredential withAuthTokenUrl(String authTokenUrl) { + this.authTokenUrl = authTokenUrl; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ApnsCredential.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ApnsCredential.java new file mode 100644 index 000000000000..5b7a2717f93c --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ApnsCredential.java @@ -0,0 +1,229 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub ApnsCredential. + */ +@JsonFlatten +public class ApnsCredential { + /** + * The APNS certificate. + */ + @JsonProperty(value = "properties.apnsCertificate") + private String apnsCertificate; + + /** + * The certificate key. + */ + @JsonProperty(value = "properties.certificateKey") + private String certificateKey; + + /** + * The endpoint of this credential. + */ + @JsonProperty(value = "properties.endpoint") + private String endpoint; + + /** + * The Apns certificate Thumbprint. + */ + @JsonProperty(value = "properties.thumbprint") + private String thumbprint; + + /** + * A 10-character key identifier (kid) key, obtained from your developer + * account. + */ + @JsonProperty(value = "properties.keyId") + private String keyId; + + /** + * The name of the application. + */ + @JsonProperty(value = "properties.appName") + private String appName; + + /** + * The issuer (iss) registered claim key, whose value is your 10-character + * Team ID, obtained from your developer account. + */ + @JsonProperty(value = "properties.appId") + private String appId; + + /** + * Provider Authentication Token, obtained through your developer account. + */ + @JsonProperty(value = "properties.token") + private String token; + + /** + * Get the APNS certificate. + * + * @return the apnsCertificate value + */ + public String apnsCertificate() { + return this.apnsCertificate; + } + + /** + * Set the APNS certificate. + * + * @param apnsCertificate the apnsCertificate value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withApnsCertificate(String apnsCertificate) { + this.apnsCertificate = apnsCertificate; + return this; + } + + /** + * Get the certificate key. + * + * @return the certificateKey value + */ + public String certificateKey() { + return this.certificateKey; + } + + /** + * Set the certificate key. + * + * @param certificateKey the certificateKey value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + return this; + } + + /** + * Get the endpoint of this credential. + * + * @return the endpoint value + */ + public String endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of this credential. + * + * @param endpoint the endpoint value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withEndpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the Apns certificate Thumbprint. + * + * @return the thumbprint value + */ + public String thumbprint() { + return this.thumbprint; + } + + /** + * Set the Apns certificate Thumbprint. + * + * @param thumbprint the thumbprint value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withThumbprint(String thumbprint) { + this.thumbprint = thumbprint; + return this; + } + + /** + * Get a 10-character key identifier (kid) key, obtained from your developer account. + * + * @return the keyId value + */ + public String keyId() { + return this.keyId; + } + + /** + * Set a 10-character key identifier (kid) key, obtained from your developer account. + * + * @param keyId the keyId value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withKeyId(String keyId) { + this.keyId = keyId; + return this; + } + + /** + * Get the name of the application. + * + * @return the appName value + */ + public String appName() { + return this.appName; + } + + /** + * Set the name of the application. + * + * @param appName the appName value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * Get the issuer (iss) registered claim key, whose value is your 10-character Team ID, obtained from your developer account. + * + * @return the appId value + */ + public String appId() { + return this.appId; + } + + /** + * Set the issuer (iss) registered claim key, whose value is your 10-character Team ID, obtained from your developer account. + * + * @param appId the appId value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * Get provider Authentication Token, obtained through your developer account. + * + * @return the token value + */ + public String token() { + return this.token; + } + + /** + * Set provider Authentication Token, obtained through your developer account. + * + * @param token the token value to set + * @return the ApnsCredential object itself. + */ + public ApnsCredential withToken(String token) { + this.token = token; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/BaiduCredential.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/BaiduCredential.java new file mode 100644 index 000000000000..740908f33b46 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/BaiduCredential.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub BaiduCredential. + */ +@JsonFlatten +public class BaiduCredential { + /** + * Baidu Api Key. + */ + @JsonProperty(value = "properties.baiduApiKey") + private String baiduApiKey; + + /** + * Baidu Endpoint. + */ + @JsonProperty(value = "properties.baiduEndPoint") + private String baiduEndPoint; + + /** + * Baidu Secret Key. + */ + @JsonProperty(value = "properties.baiduSecretKey") + private String baiduSecretKey; + + /** + * Get baidu Api Key. + * + * @return the baiduApiKey value + */ + public String baiduApiKey() { + return this.baiduApiKey; + } + + /** + * Set baidu Api Key. + * + * @param baiduApiKey the baiduApiKey value to set + * @return the BaiduCredential object itself. + */ + public BaiduCredential withBaiduApiKey(String baiduApiKey) { + this.baiduApiKey = baiduApiKey; + return this; + } + + /** + * Get baidu Endpoint. + * + * @return the baiduEndPoint value + */ + public String baiduEndPoint() { + return this.baiduEndPoint; + } + + /** + * Set baidu Endpoint. + * + * @param baiduEndPoint the baiduEndPoint value to set + * @return the BaiduCredential object itself. + */ + public BaiduCredential withBaiduEndPoint(String baiduEndPoint) { + this.baiduEndPoint = baiduEndPoint; + return this; + } + + /** + * Get baidu Secret Key. + * + * @return the baiduSecretKey value + */ + public String baiduSecretKey() { + return this.baiduSecretKey; + } + + /** + * Set baidu Secret Key. + * + * @param baiduSecretKey the baiduSecretKey value to set + * @return the BaiduCredential object itself. + */ + public BaiduCredential withBaiduSecretKey(String baiduSecretKey) { + this.baiduSecretKey = baiduSecretKey; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/CheckAvailabilityParameters.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/CheckAvailabilityParameters.java new file mode 100644 index 000000000000..d2cb25f35f04 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/CheckAvailabilityParameters.java @@ -0,0 +1,180 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the Check Name Availability for Namespace and + * NotificationHubs. + */ +public class CheckAvailabilityParameters { + /** + * Resource Id. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /** + * Resource name. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * Resource type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Resource location. + */ + @JsonProperty(value = "location") + private String location; + + /** + * Resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * True if the name is available and can be used to create new + * Namespace/NotificationHub. Otherwise false. + */ + @JsonProperty(value = "isAvailiable") + private Boolean isAvailiable; + + /** + * Get resource Id. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Get resource name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set resource name. + * + * @param name the name value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withName(String name) { + this.name = name; + return this; + } + + /** + * Get resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get resource location. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set resource location. + * + * @param location the location value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set resource tags. + * + * @param tags the tags value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + + /** + * Get true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @return the isAvailiable value + */ + public Boolean isAvailiable() { + return this.isAvailiable; + } + + /** + * Set true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @param isAvailiable the isAvailiable value to set + * @return the CheckAvailabilityParameters object itself. + */ + public CheckAvailabilityParameters withIsAvailiable(Boolean isAvailiable) { + this.isAvailiable = isAvailiable; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/CheckAvailabilityResult.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/CheckAvailabilityResult.java new file mode 100644 index 000000000000..10bedc6297b9 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/CheckAvailabilityResult.java @@ -0,0 +1,56 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.CheckAvailabilityResultInner; +import java.util.Map; + +/** + * Type representing CheckAvailabilityResult. + */ +public interface CheckAvailabilityResult extends HasInner, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the isAvailiable value. + */ + Boolean isAvailiable(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/DebugSendResponse.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/DebugSendResponse.java new file mode 100644 index 000000000000..74c36d7d152b --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/DebugSendResponse.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.DebugSendResponseInner; +import java.util.Map; + +/** + * Type representing DebugSendResponse. + */ +public interface DebugSendResponse extends HasInner, HasManager { + /** + * @return the failure value. + */ + Double failure(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the results value. + */ + Object results(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the success value. + */ + Double success(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ErrorResponse.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ErrorResponse.java new file mode 100644 index 000000000000..bfc46084a8a5 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ErrorResponse.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error reponse indicates NotificationHubs service is not able to process the + * incoming request. The reason is provided in the error message. + */ +public class ErrorResponse { + /** + * Error code. + */ + @JsonProperty(value = "code") + private String code; + + /** + * Error message indicating why the operation failed. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set error code. + * + * @param code the code value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * Get error message indicating why the operation failed. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set error message indicating why the operation failed. + * + * @param message the message value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ErrorResponseException.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ErrorResponseException.java new file mode 100644 index 000000000000..e88744505309 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ErrorResponseException.java @@ -0,0 +1,44 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ +public class ErrorResponseException extends RestException { + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorResponseException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorResponseException(final String message, final Response response, final ErrorResponse body) { + super(message, response, body); + } + + @Override + public ErrorResponse body() { + return (ErrorResponse) super.body(); + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/GcmCredential.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/GcmCredential.java new file mode 100644 index 000000000000..db1271e4f1af --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/GcmCredential.java @@ -0,0 +1,71 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub GcmCredential. + */ +@JsonFlatten +public class GcmCredential { + /** + * The GCM endpoint. + */ + @JsonProperty(value = "properties.gcmEndpoint") + private String gcmEndpoint; + + /** + * The Google API key. + */ + @JsonProperty(value = "properties.googleApiKey") + private String googleApiKey; + + /** + * Get the GCM endpoint. + * + * @return the gcmEndpoint value + */ + public String gcmEndpoint() { + return this.gcmEndpoint; + } + + /** + * Set the GCM endpoint. + * + * @param gcmEndpoint the gcmEndpoint value to set + * @return the GcmCredential object itself. + */ + public GcmCredential withGcmEndpoint(String gcmEndpoint) { + this.gcmEndpoint = gcmEndpoint; + return this; + } + + /** + * Get the Google API key. + * + * @return the googleApiKey value + */ + public String googleApiKey() { + return this.googleApiKey; + } + + /** + * Set the Google API key. + * + * @param googleApiKey the googleApiKey value to set + * @return the GcmCredential object itself. + */ + public GcmCredential withGoogleApiKey(String googleApiKey) { + this.googleApiKey = googleApiKey; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/MpnsCredential.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/MpnsCredential.java new file mode 100644 index 000000000000..4ecac2bceeb2 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/MpnsCredential.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub MpnsCredential. + */ +@JsonFlatten +public class MpnsCredential { + /** + * The MPNS certificate. + */ + @JsonProperty(value = "properties.mpnsCertificate") + private String mpnsCertificate; + + /** + * The certificate key for this credential. + */ + @JsonProperty(value = "properties.certificateKey") + private String certificateKey; + + /** + * The Mpns certificate Thumbprint. + */ + @JsonProperty(value = "properties.thumbprint") + private String thumbprint; + + /** + * Get the MPNS certificate. + * + * @return the mpnsCertificate value + */ + public String mpnsCertificate() { + return this.mpnsCertificate; + } + + /** + * Set the MPNS certificate. + * + * @param mpnsCertificate the mpnsCertificate value to set + * @return the MpnsCredential object itself. + */ + public MpnsCredential withMpnsCertificate(String mpnsCertificate) { + this.mpnsCertificate = mpnsCertificate; + return this; + } + + /** + * Get the certificate key for this credential. + * + * @return the certificateKey value + */ + public String certificateKey() { + return this.certificateKey; + } + + /** + * Set the certificate key for this credential. + * + * @param certificateKey the certificateKey value to set + * @return the MpnsCredential object itself. + */ + public MpnsCredential withCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + return this; + } + + /** + * Get the Mpns certificate Thumbprint. + * + * @return the thumbprint value + */ + public String thumbprint() { + return this.thumbprint; + } + + /** + * Set the Mpns certificate Thumbprint. + * + * @param thumbprint the thumbprint value to set + * @return the MpnsCredential object itself. + */ + public MpnsCredential withThumbprint(String thumbprint) { + this.thumbprint = thumbprint; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceCreateOrUpdateParameters.java new file mode 100644 index 000000000000..4202c237c265 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceCreateOrUpdateParameters.java @@ -0,0 +1,408 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Parameters supplied to the CreateOrUpdate Namespace operation. + */ +@JsonFlatten +@SkipParentValidation +public class NamespaceCreateOrUpdateParameters extends Resource { + /** + * The name of the namespace. + */ + @JsonProperty(value = "properties.name") + private String namespaceCreateOrUpdateParametersName; + + /** + * Provisioning state of the Namespace. + */ + @JsonProperty(value = "properties.provisioningState") + private String provisioningState; + + /** + * Specifies the targeted region in which the namespace should be created. + * It can be any of the following values: Australia EastAustralia + * SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central + * USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth + * EuropeWest Europe. + */ + @JsonProperty(value = "properties.region") + private String region; + + /** + * Identifier for Azure Insights metrics. + */ + @JsonProperty(value = "properties.metricId", access = JsonProperty.Access.WRITE_ONLY) + private String metricId; + + /** + * Status of the namespace. It can be any of these values:1 = + * Created/Active2 = Creating3 = Suspended4 = Deleting. + */ + @JsonProperty(value = "properties.status") + private String status; + + /** + * The time the namespace was created. + */ + @JsonProperty(value = "properties.createdAt") + private DateTime createdAt; + + /** + * The time the namespace was updated. + */ + @JsonProperty(value = "properties.updatedAt") + private DateTime updatedAt; + + /** + * Endpoint you can use to perform NotificationHub operations. + */ + @JsonProperty(value = "properties.serviceBusEndpoint") + private String serviceBusEndpoint; + + /** + * The Id of the Azure subscription associated with the namespace. + */ + @JsonProperty(value = "properties.subscriptionId") + private String subscriptionId; + + /** + * ScaleUnit where the namespace gets created. + */ + @JsonProperty(value = "properties.scaleUnit") + private String scaleUnit; + + /** + * Whether or not the namespace is currently enabled. + */ + @JsonProperty(value = "properties.enabled") + private Boolean enabled; + + /** + * Whether or not the namespace is set as Critical. + */ + @JsonProperty(value = "properties.critical") + private Boolean critical; + + /** + * Data center for the namespace. + */ + @JsonProperty(value = "properties.dataCenter") + private String dataCenter; + + /** + * The namespace type. Possible values include: 'Messaging', + * 'NotificationHub'. + */ + @JsonProperty(value = "properties.namespaceType") + private NamespaceType namespaceType; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the name of the namespace. + * + * @return the namespaceCreateOrUpdateParametersName value + */ + public String namespaceCreateOrUpdateParametersName() { + return this.namespaceCreateOrUpdateParametersName; + } + + /** + * Set the name of the namespace. + * + * @param namespaceCreateOrUpdateParametersName the namespaceCreateOrUpdateParametersName value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withNamespaceCreateOrUpdateParametersName(String namespaceCreateOrUpdateParametersName) { + this.namespaceCreateOrUpdateParametersName = namespaceCreateOrUpdateParametersName; + return this; + } + + /** + * Get provisioning state of the Namespace. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set provisioning state of the Namespace. + * + * @param provisioningState the provisioningState value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @return the region value + */ + public String region() { + return this.region; + } + + /** + * Set specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @param region the region value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withRegion(String region) { + this.region = region; + return this; + } + + /** + * Get identifier for Azure Insights metrics. + * + * @return the metricId value + */ + public String metricId() { + return this.metricId; + } + + /** + * Get status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @param status the status value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the time the namespace was created. + * + * @return the createdAt value + */ + public DateTime createdAt() { + return this.createdAt; + } + + /** + * Set the time the namespace was created. + * + * @param createdAt the createdAt value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withCreatedAt(DateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get the time the namespace was updated. + * + * @return the updatedAt value + */ + public DateTime updatedAt() { + return this.updatedAt; + } + + /** + * Set the time the namespace was updated. + * + * @param updatedAt the updatedAt value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withUpdatedAt(DateTime updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get endpoint you can use to perform NotificationHub operations. + * + * @return the serviceBusEndpoint value + */ + public String serviceBusEndpoint() { + return this.serviceBusEndpoint; + } + + /** + * Set endpoint you can use to perform NotificationHub operations. + * + * @param serviceBusEndpoint the serviceBusEndpoint value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withServiceBusEndpoint(String serviceBusEndpoint) { + this.serviceBusEndpoint = serviceBusEndpoint; + return this; + } + + /** + * Get the Id of the Azure subscription associated with the namespace. + * + * @return the subscriptionId value + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the Id of the Azure subscription associated with the namespace. + * + * @param subscriptionId the subscriptionId value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get scaleUnit where the namespace gets created. + * + * @return the scaleUnit value + */ + public String scaleUnit() { + return this.scaleUnit; + } + + /** + * Set scaleUnit where the namespace gets created. + * + * @param scaleUnit the scaleUnit value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withScaleUnit(String scaleUnit) { + this.scaleUnit = scaleUnit; + return this; + } + + /** + * Get whether or not the namespace is currently enabled. + * + * @return the enabled value + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set whether or not the namespace is currently enabled. + * + * @param enabled the enabled value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get whether or not the namespace is set as Critical. + * + * @return the critical value + */ + public Boolean critical() { + return this.critical; + } + + /** + * Set whether or not the namespace is set as Critical. + * + * @param critical the critical value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withCritical(Boolean critical) { + this.critical = critical; + return this; + } + + /** + * Get data center for the namespace. + * + * @return the dataCenter value + */ + public String dataCenter() { + return this.dataCenter; + } + + /** + * Set data center for the namespace. + * + * @param dataCenter the dataCenter value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withDataCenter(String dataCenter) { + this.dataCenter = dataCenter; + return this; + } + + /** + * Get the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @return the namespaceType value + */ + public NamespaceType namespaceType() { + return this.namespaceType; + } + + /** + * Set the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @param namespaceType the namespaceType value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withNamespaceType(NamespaceType namespaceType) { + this.namespaceType = namespaceType; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NamespaceCreateOrUpdateParameters object itself. + */ + public NamespaceCreateOrUpdateParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespacePatchParameters.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespacePatchParameters.java new file mode 100644 index 000000000000..c55bcea97eed --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespacePatchParameters.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2017_04_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the Patch Namespace operation. + */ +public class NamespacePatchParameters { + /** + * Resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set resource tags. + * + * @param tags the tags value to set + * @return the NamespacePatchParameters object itself. + */ + public NamespacePatchParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NamespacePatchParameters object itself. + */ + public NamespacePatchParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceResource.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceResource.java new file mode 100644 index 000000000000..a8c8db062487 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceResource.java @@ -0,0 +1,307 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import org.joda.time.DateTime; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NamespaceResourceInner; + +/** + * Type representing NamespaceResource. + */ +public interface NamespaceResource extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the createdAt value. + */ + DateTime createdAt(); + + /** + * @return the critical value. + */ + Boolean critical(); + + /** + * @return the dataCenter value. + */ + String dataCenter(); + + /** + * @return the enabled value. + */ + Boolean enabled(); + + /** + * @return the metricId value. + */ + String metricId(); + + /** + * @return the namespaceResourceName value. + */ + String namespaceResourceName(); + + /** + * @return the namespaceType value. + */ + NamespaceType namespaceType(); + + /** + * @return the provisioningState value. + */ + String provisioningState(); + + /** + * @return the scaleUnit value. + */ + String scaleUnit(); + + /** + * @return the serviceBusEndpoint value. + */ + String serviceBusEndpoint(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the status value. + */ + String status(); + + /** + * @return the subscriptionId value. + */ + String subscriptionId(); + + /** + * @return the updatedAt value. + */ + DateTime updatedAt(); + + /** + * The entirety of the NamespaceResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { + } + + /** + * Grouping of NamespaceResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NamespaceResource definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the NamespaceResource definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the namespaceresource definition allowing to specify CreatedAt. + */ + interface WithCreatedAt { + /** + * Specifies createdAt. + * @param createdAt The time the namespace was created + * @return the next definition stage + */ + WithCreate withCreatedAt(DateTime createdAt); + } + + /** + * The stage of the namespaceresource definition allowing to specify Critical. + */ + interface WithCritical { + /** + * Specifies critical. + * @param critical Whether or not the namespace is set as Critical + * @return the next definition stage + */ + WithCreate withCritical(Boolean critical); + } + + /** + * The stage of the namespaceresource definition allowing to specify DataCenter. + */ + interface WithDataCenter { + /** + * Specifies dataCenter. + * @param dataCenter Data center for the namespace + * @return the next definition stage + */ + WithCreate withDataCenter(String dataCenter); + } + + /** + * The stage of the namespaceresource definition allowing to specify Enabled. + */ + interface WithEnabled { + /** + * Specifies enabled. + * @param enabled Whether or not the namespace is currently enabled + * @return the next definition stage + */ + WithCreate withEnabled(Boolean enabled); + } + + /** + * The stage of the namespaceresource definition allowing to specify NamespaceCreateOrUpdateParametersName. + */ + interface WithNamespaceCreateOrUpdateParametersName { + /** + * Specifies namespaceCreateOrUpdateParametersName. + * @param namespaceCreateOrUpdateParametersName The name of the namespace + * @return the next definition stage + */ + WithCreate withNamespaceCreateOrUpdateParametersName(String namespaceCreateOrUpdateParametersName); + } + + /** + * The stage of the namespaceresource definition allowing to specify NamespaceType. + */ + interface WithNamespaceType { + /** + * Specifies namespaceType. + * @param namespaceType The namespace type. Possible values include: 'Messaging', 'NotificationHub' + * @return the next definition stage + */ + WithCreate withNamespaceType(NamespaceType namespaceType); + } + + /** + * The stage of the namespaceresource definition allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + * @param provisioningState Provisioning state of the Namespace + * @return the next definition stage + */ + WithCreate withProvisioningState(String provisioningState); + } + + /** + * The stage of the namespaceresource definition allowing to specify ScaleUnit. + */ + interface WithScaleUnit { + /** + * Specifies scaleUnit. + * @param scaleUnit ScaleUnit where the namespace gets created + * @return the next definition stage + */ + WithCreate withScaleUnit(String scaleUnit); + } + + /** + * The stage of the namespaceresource definition allowing to specify ServiceBusEndpoint. + */ + interface WithServiceBusEndpoint { + /** + * Specifies serviceBusEndpoint. + * @param serviceBusEndpoint Endpoint you can use to perform NotificationHub operations + * @return the next definition stage + */ + WithCreate withServiceBusEndpoint(String serviceBusEndpoint); + } + + /** + * The stage of the namespaceresource definition allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next definition stage + */ + WithCreate withSku(Sku sku); + } + + /** + * The stage of the namespaceresource definition allowing to specify Status. + */ + interface WithStatus { + /** + * Specifies status. + * @param status Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting + * @return the next definition stage + */ + WithCreate withStatus(String status); + } + + /** + * The stage of the namespaceresource definition allowing to specify SubscriptionId. + */ + interface WithSubscriptionId { + /** + * Specifies subscriptionId. + * @param subscriptionId The Id of the Azure subscription associated with the namespace + * @return the next definition stage + */ + WithCreate withSubscriptionId(String subscriptionId); + } + + /** + * The stage of the namespaceresource definition allowing to specify UpdatedAt. + */ + interface WithUpdatedAt { + /** + * Specifies updatedAt. + * @param updatedAt The time the namespace was updated + * @return the next definition stage + */ + WithCreate withUpdatedAt(DateTime updatedAt); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithCreatedAt, DefinitionStages.WithCritical, DefinitionStages.WithDataCenter, DefinitionStages.WithEnabled, DefinitionStages.WithNamespaceCreateOrUpdateParametersName, DefinitionStages.WithNamespaceType, DefinitionStages.WithProvisioningState, DefinitionStages.WithScaleUnit, DefinitionStages.WithServiceBusEndpoint, DefinitionStages.WithSku, DefinitionStages.WithStatus, DefinitionStages.WithSubscriptionId, DefinitionStages.WithUpdatedAt { + } + } + /** + * The template for a NamespaceResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithSku { + } + + /** + * Grouping of NamespaceResource update stages. + */ + interface UpdateStages { + /** + * The stage of the namespaceresource update allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next update stage + */ + Update withSku(Sku sku); + } + + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceSharedAccessAuthorizationRuleResource.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceSharedAccessAuthorizationRuleResource.java new file mode 100644 index 000000000000..d74a71890673 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceSharedAccessAuthorizationRuleResource.java @@ -0,0 +1,174 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.SharedAccessAuthorizationRuleResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import java.util.List; +import java.util.Map; + +/** + * Type representing NamespaceSharedAccessAuthorizationRuleResource. + */ +public interface NamespaceSharedAccessAuthorizationRuleResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the claimType value. + */ + String claimType(); + + /** + * @return the claimValue value. + */ + String claimValue(); + + /** + * @return the createdTime value. + */ + String createdTime(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the keyName value. + */ + String keyName(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the modifiedTime value. + */ + String modifiedTime(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the primaryKey value. + */ + String primaryKey(); + + /** + * @return the revision value. + */ + Integer revision(); + + /** + * @return the rights value. + */ + List rights(); + + /** + * @return the secondaryKey value. + */ + String secondaryKey(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the NamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of NamespaceSharedAccessAuthorizationRuleResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Blank extends WithNamespace { + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Namespace. + */ + interface WithNamespace { + /** + * Specifies resourceGroupName, namespaceName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @return the next definition stage + */ + WithProperties withExistingNamespace(String resourceGroupName, String namespaceName); + } + + /** + * The stage of the namespacesharedaccessauthorizationruleresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of the Namespace AuthorizationRules + * @return the next definition stage + */ + WithCreate withProperties(SharedAccessAuthorizationRuleProperties properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a NamespaceSharedAccessAuthorizationRuleResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithProperties { + } + + /** + * Grouping of NamespaceSharedAccessAuthorizationRuleResource update stages. + */ + interface UpdateStages { + /** + * The stage of the namespacesharedaccessauthorizationruleresource update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of the Namespace AuthorizationRules + * @return the next update stage + */ + Update withProperties(SharedAccessAuthorizationRuleProperties properties); + } + + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceType.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceType.java new file mode 100644 index 000000000000..b92f8f722d96 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NamespaceType.java @@ -0,0 +1,53 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for NamespaceType. + */ +public enum NamespaceType { + /** Enum value Messaging. */ + MESSAGING("Messaging"), + + /** Enum value NotificationHub. */ + NOTIFICATION_HUB("NotificationHub"); + + /** The actual serialized value for a NamespaceType instance. */ + private String value; + + NamespaceType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a NamespaceType instance. + * + * @param value the serialized value to parse. + * @return the parsed NamespaceType object, or null if unable to parse. + */ + @JsonCreator + public static NamespaceType fromString(String value) { + NamespaceType[] items = NamespaceType.values(); + for (NamespaceType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Namespaces.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Namespaces.java new file mode 100644 index 000000000000..fd3d1d54dee9 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Namespaces.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NamespacesInner; +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceSharedAccessAuthorizationRuleResource; +import rx.Completable; + +/** + * Type representing Namespaces. + */ +public interface Namespaces extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Begins definition for a new AuthorizationRule resource. + * @param name resource name. + * @return the first stage of the new AuthorizationRule definition. + */ + NamespaceSharedAccessAuthorizationRuleResource.DefinitionStages.Blank defineAuthorizationRule(String name); + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters); + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName); + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubCreateOrUpdateParameters.java new file mode 100644 index 000000000000..4b650872991d --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubCreateOrUpdateParameters.java @@ -0,0 +1,283 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Parameters supplied to the CreateOrUpdate NotificationHub operation. + */ +@JsonFlatten +@SkipParentValidation +public class NotificationHubCreateOrUpdateParameters extends Resource { + /** + * The NotificationHub name. + */ + @JsonProperty(value = "properties.name") + private String notificationHubCreateOrUpdateParametersName; + + /** + * The RegistrationTtl of the created NotificationHub. + */ + @JsonProperty(value = "properties.registrationTtl") + private String registrationTtl; + + /** + * The AuthorizationRules of the created NotificationHub. + */ + @JsonProperty(value = "properties.authorizationRules") + private List authorizationRules; + + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.baiduCredential") + private BaiduCredential baiduCredential; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the NotificationHub name. + * + * @return the notificationHubCreateOrUpdateParametersName value + */ + public String notificationHubCreateOrUpdateParametersName() { + return this.notificationHubCreateOrUpdateParametersName; + } + + /** + * Set the NotificationHub name. + * + * @param notificationHubCreateOrUpdateParametersName the notificationHubCreateOrUpdateParametersName value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withNotificationHubCreateOrUpdateParametersName(String notificationHubCreateOrUpdateParametersName) { + this.notificationHubCreateOrUpdateParametersName = notificationHubCreateOrUpdateParametersName; + return this; + } + + /** + * Get the RegistrationTtl of the created NotificationHub. + * + * @return the registrationTtl value + */ + public String registrationTtl() { + return this.registrationTtl; + } + + /** + * Set the RegistrationTtl of the created NotificationHub. + * + * @param registrationTtl the registrationTtl value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withRegistrationTtl(String registrationTtl) { + this.registrationTtl = registrationTtl; + return this; + } + + /** + * Get the AuthorizationRules of the created NotificationHub. + * + * @return the authorizationRules value + */ + public List authorizationRules() { + return this.authorizationRules; + } + + /** + * Set the AuthorizationRules of the created NotificationHub. + * + * @param authorizationRules the authorizationRules value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withAuthorizationRules(List authorizationRules) { + this.authorizationRules = authorizationRules; + return this; + } + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NotificationHubCreateOrUpdateParameters object itself. + */ + public NotificationHubCreateOrUpdateParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java new file mode 100644 index 000000000000..652b04f25642 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubNamespaceSharedAccessAuthorizationRuleResource.java @@ -0,0 +1,175 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.SharedAccessAuthorizationRuleResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import java.util.List; +import java.util.Map; + +/** + * Type representing NotificationHubNamespaceSharedAccessAuthorizationRuleResource. + */ +public interface NotificationHubNamespaceSharedAccessAuthorizationRuleResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the claimType value. + */ + String claimType(); + + /** + * @return the claimValue value. + */ + String claimValue(); + + /** + * @return the createdTime value. + */ + String createdTime(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the keyName value. + */ + String keyName(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the modifiedTime value. + */ + String modifiedTime(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the primaryKey value. + */ + String primaryKey(); + + /** + * @return the revision value. + */ + Integer revision(); + + /** + * @return the rights value. + */ + List rights(); + + /** + * @return the secondaryKey value. + */ + String secondaryKey(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNotificationHub, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NotificationHubNamespaceSharedAccessAuthorizationRuleResource definition. + */ + interface Blank extends WithNotificationHub { + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify NotificationHub. + */ + interface WithNotificationHub { + /** + * Specifies resourceGroupName, namespaceName, notificationHubName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name + * @return the next definition stage + */ + WithProperties withExistingNotificationHub(String resourceGroupName, String namespaceName, String notificationHubName); + } + + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of the Namespace AuthorizationRules + * @return the next definition stage + */ + WithCreate withProperties(SharedAccessAuthorizationRuleProperties properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a NotificationHubNamespaceSharedAccessAuthorizationRuleResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithProperties { + } + + /** + * Grouping of NotificationHubNamespaceSharedAccessAuthorizationRuleResource update stages. + */ + interface UpdateStages { + /** + * The stage of the notificationhubnamespacesharedaccessauthorizationruleresource update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of the Namespace AuthorizationRules + * @return the next update stage + */ + Update withProperties(SharedAccessAuthorizationRuleProperties properties); + } + + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubPatchParameters.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubPatchParameters.java new file mode 100644 index 000000000000..fa681ec14550 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubPatchParameters.java @@ -0,0 +1,283 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Parameters supplied to the patch NotificationHub operation. + */ +@JsonFlatten +@SkipParentValidation +public class NotificationHubPatchParameters extends Resource { + /** + * The NotificationHub name. + */ + @JsonProperty(value = "properties.name") + private String notificationHubPatchParametersName; + + /** + * The RegistrationTtl of the created NotificationHub. + */ + @JsonProperty(value = "properties.registrationTtl") + private String registrationTtl; + + /** + * The AuthorizationRules of the created NotificationHub. + */ + @JsonProperty(value = "properties.authorizationRules") + private List authorizationRules; + + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.baiduCredential") + private BaiduCredential baiduCredential; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the NotificationHub name. + * + * @return the notificationHubPatchParametersName value + */ + public String notificationHubPatchParametersName() { + return this.notificationHubPatchParametersName; + } + + /** + * Set the NotificationHub name. + * + * @param notificationHubPatchParametersName the notificationHubPatchParametersName value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withNotificationHubPatchParametersName(String notificationHubPatchParametersName) { + this.notificationHubPatchParametersName = notificationHubPatchParametersName; + return this; + } + + /** + * Get the RegistrationTtl of the created NotificationHub. + * + * @return the registrationTtl value + */ + public String registrationTtl() { + return this.registrationTtl; + } + + /** + * Set the RegistrationTtl of the created NotificationHub. + * + * @param registrationTtl the registrationTtl value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withRegistrationTtl(String registrationTtl) { + this.registrationTtl = registrationTtl; + return this; + } + + /** + * Get the AuthorizationRules of the created NotificationHub. + * + * @return the authorizationRules value + */ + public List authorizationRules() { + return this.authorizationRules; + } + + /** + * Set the AuthorizationRules of the created NotificationHub. + * + * @param authorizationRules the authorizationRules value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withAuthorizationRules(List authorizationRules) { + this.authorizationRules = authorizationRules; + return this; + } + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NotificationHubPatchParameters object itself. + */ + public NotificationHubPatchParameters withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubResource.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubResource.java new file mode 100644 index 000000000000..fce97833a7b5 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubResource.java @@ -0,0 +1,438 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import java.util.Map; +import java.util.List; + +/** + * Type representing NotificationHubResource. + */ +public interface NotificationHubResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the admCredential value. + */ + AdmCredential admCredential(); + + /** + * @return the apnsCredential value. + */ + ApnsCredential apnsCredential(); + + /** + * @return the authorizationRules value. + */ + List authorizationRules(); + + /** + * @return the baiduCredential value. + */ + BaiduCredential baiduCredential(); + + /** + * @return the gcmCredential value. + */ + GcmCredential gcmCredential(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the mpnsCredential value. + */ + MpnsCredential mpnsCredential(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the notificationHubResourceName value. + */ + String notificationHubResourceName(); + + /** + * @return the registrationTtl value. + */ + String registrationTtl(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * @return the wnsCredential value. + */ + WnsCredential wnsCredential(); + + /** + * The entirety of the NotificationHubResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithCreate { + } + + /** + * Grouping of NotificationHubResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a NotificationHubResource definition. + */ + interface Blank extends WithNamespace { + } + + /** + * The stage of the notificationhubresource definition allowing to specify Namespace. + */ + interface WithNamespace { + /** + * Specifies resourceGroupName, namespaceName. + * @param resourceGroupName The name of the resource group + * @param namespaceName The namespace name + * @return the next definition stage + */ + WithCreate withExistingNamespace(String resourceGroupName, String namespaceName); + } + + /** + * The stage of the notificationhubresource definition allowing to specify AdmCredential. + */ + interface WithAdmCredential { + /** + * Specifies admCredential. + * @param admCredential The AdmCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withAdmCredential(AdmCredential admCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify ApnsCredential. + */ + interface WithApnsCredential { + /** + * Specifies apnsCredential. + * @param apnsCredential The ApnsCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withApnsCredential(ApnsCredential apnsCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify AuthorizationRules. + */ + interface WithAuthorizationRules { + /** + * Specifies authorizationRules. + * @param authorizationRules The AuthorizationRules of the created NotificationHub + * @return the next definition stage + */ + WithCreate withAuthorizationRules(List authorizationRules); + } + + /** + * The stage of the notificationhubresource definition allowing to specify BaiduCredential. + */ + interface WithBaiduCredential { + /** + * Specifies baiduCredential. + * @param baiduCredential The BaiduCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withBaiduCredential(BaiduCredential baiduCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify GcmCredential. + */ + interface WithGcmCredential { + /** + * Specifies gcmCredential. + * @param gcmCredential The GcmCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withGcmCredential(GcmCredential gcmCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Resource location + * @return the next definition stage + */ + WithCreate withLocation(String location); + } + + /** + * The stage of the notificationhubresource definition allowing to specify MpnsCredential. + */ + interface WithMpnsCredential { + /** + * Specifies mpnsCredential. + * @param mpnsCredential The MpnsCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withMpnsCredential(MpnsCredential mpnsCredential); + } + + /** + * The stage of the notificationhubresource definition allowing to specify NotificationHubCreateOrUpdateParametersName. + */ + interface WithNotificationHubCreateOrUpdateParametersName { + /** + * Specifies notificationHubCreateOrUpdateParametersName. + * @param notificationHubCreateOrUpdateParametersName The NotificationHub name + * @return the next definition stage + */ + WithCreate withNotificationHubCreateOrUpdateParametersName(String notificationHubCreateOrUpdateParametersName); + } + + /** + * The stage of the notificationhubresource definition allowing to specify RegistrationTtl. + */ + interface WithRegistrationTtl { + /** + * Specifies registrationTtl. + * @param registrationTtl The RegistrationTtl of the created NotificationHub + * @return the next definition stage + */ + WithCreate withRegistrationTtl(String registrationTtl); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next definition stage + */ + WithCreate withSku(Sku sku); + } + + /** + * The stage of the notificationhubresource definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Resource tags + * @return the next definition stage + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the notificationhubresource definition allowing to specify WnsCredential. + */ + interface WithWnsCredential { + /** + * Specifies wnsCredential. + * @param wnsCredential The WnsCredential of the created NotificationHub + * @return the next definition stage + */ + WithCreate withWnsCredential(WnsCredential wnsCredential); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithAdmCredential, DefinitionStages.WithApnsCredential, DefinitionStages.WithAuthorizationRules, DefinitionStages.WithBaiduCredential, DefinitionStages.WithGcmCredential, DefinitionStages.WithLocation, DefinitionStages.WithMpnsCredential, DefinitionStages.WithNotificationHubCreateOrUpdateParametersName, DefinitionStages.WithRegistrationTtl, DefinitionStages.WithSku, DefinitionStages.WithTags, DefinitionStages.WithWnsCredential { + } + } + /** + * The template for a NotificationHubResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithAdmCredential, UpdateStages.WithApnsCredential, UpdateStages.WithAuthorizationRules, UpdateStages.WithBaiduCredential, UpdateStages.WithGcmCredential, UpdateStages.WithLocation, UpdateStages.WithMpnsCredential, UpdateStages.WithNotificationHubPatchParametersName, UpdateStages.WithRegistrationTtl, UpdateStages.WithSku, UpdateStages.WithTags, UpdateStages.WithWnsCredential { + } + + /** + * Grouping of NotificationHubResource update stages. + */ + interface UpdateStages { + /** + * The stage of the notificationhubresource update allowing to specify AdmCredential. + */ + interface WithAdmCredential { + /** + * Specifies admCredential. + * @param admCredential The AdmCredential of the created NotificationHub + * @return the next update stage + */ + Update withAdmCredential(AdmCredential admCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify ApnsCredential. + */ + interface WithApnsCredential { + /** + * Specifies apnsCredential. + * @param apnsCredential The ApnsCredential of the created NotificationHub + * @return the next update stage + */ + Update withApnsCredential(ApnsCredential apnsCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify AuthorizationRules. + */ + interface WithAuthorizationRules { + /** + * Specifies authorizationRules. + * @param authorizationRules The AuthorizationRules of the created NotificationHub + * @return the next update stage + */ + Update withAuthorizationRules(List authorizationRules); + } + + /** + * The stage of the notificationhubresource update allowing to specify BaiduCredential. + */ + interface WithBaiduCredential { + /** + * Specifies baiduCredential. + * @param baiduCredential The BaiduCredential of the created NotificationHub + * @return the next update stage + */ + Update withBaiduCredential(BaiduCredential baiduCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify GcmCredential. + */ + interface WithGcmCredential { + /** + * Specifies gcmCredential. + * @param gcmCredential The GcmCredential of the created NotificationHub + * @return the next update stage + */ + Update withGcmCredential(GcmCredential gcmCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location Resource location + * @return the next update stage + */ + Update withLocation(String location); + } + + /** + * The stage of the notificationhubresource update allowing to specify MpnsCredential. + */ + interface WithMpnsCredential { + /** + * Specifies mpnsCredential. + * @param mpnsCredential The MpnsCredential of the created NotificationHub + * @return the next update stage + */ + Update withMpnsCredential(MpnsCredential mpnsCredential); + } + + /** + * The stage of the notificationhubresource update allowing to specify NotificationHubPatchParametersName. + */ + interface WithNotificationHubPatchParametersName { + /** + * Specifies notificationHubPatchParametersName. + * @param notificationHubPatchParametersName The NotificationHub name + * @return the next update stage + */ + Update withNotificationHubPatchParametersName(String notificationHubPatchParametersName); + } + + /** + * The stage of the notificationhubresource update allowing to specify RegistrationTtl. + */ + interface WithRegistrationTtl { + /** + * Specifies registrationTtl. + * @param registrationTtl The RegistrationTtl of the created NotificationHub + * @return the next update stage + */ + Update withRegistrationTtl(String registrationTtl); + } + + /** + * The stage of the notificationhubresource update allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + * @param sku The sku of the created namespace + * @return the next update stage + */ + Update withSku(Sku sku); + } + + /** + * The stage of the notificationhubresource update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags Resource tags + * @return the next update stage + */ + Update withTags(Map tags); + } + + /** + * The stage of the notificationhubresource update allowing to specify WnsCredential. + */ + interface WithWnsCredential { + /** + * Specifies wnsCredential. + * @param wnsCredential The WnsCredential of the created NotificationHub + * @return the next update stage + */ + Update withWnsCredential(WnsCredential wnsCredential); + } + + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubs.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubs.java new file mode 100644 index 000000000000..51d606c6e058 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/NotificationHubs.java @@ -0,0 +1,153 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsInner; +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubNamespaceSharedAccessAuthorizationRuleResource; + +/** + * Type representing NotificationHubs. + */ +public interface NotificationHubs extends SupportsCreating, HasInner { + /** + * Begins definition for a new AuthorizationRule resource. + * @param name resource name. + * @return the first stage of the new AuthorizationRule definition. + */ + NotificationHubNamespaceSharedAccessAuthorizationRuleResource.DefinitionStages.Blank defineAuthorizationRule(String name); + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(final String resourceGroupName, final String namespaceName); + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName); + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkNotificationHubAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters); + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName); + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Operation.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Operation.java new file mode 100644 index 000000000000..1e307ad4c8e1 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Operation.java @@ -0,0 +1,30 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.OperationInner; + +/** + * Type representing Operation. + */ +public interface Operation extends HasInner, HasManager { + /** + * @return the display value. + */ + OperationDisplay display(); + + /** + * @return the name value. + */ + String name(); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/OperationDisplay.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/OperationDisplay.java new file mode 100644 index 000000000000..a47508a273b3 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/OperationDisplay.java @@ -0,0 +1,62 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The object that represents the operation. + */ +public class OperationDisplay { + /** + * Service provider: Microsoft.NotificationHubs. + */ + @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) + private String provider; + + /** + * Resource on which the operation is performed: Invoice, etc. + */ + @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) + private String resource; + + /** + * Operation type: Read, write, delete, etc. + */ + @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) + private String operation; + + /** + * Get service provider: Microsoft.NotificationHubs. + * + * @return the provider value + */ + public String provider() { + return this.provider; + } + + /** + * Get resource on which the operation is performed: Invoice, etc. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Get operation type: Read, write, delete, etc. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Operations.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Operations.java new file mode 100644 index 000000000000..41e85133e61c --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Operations.java @@ -0,0 +1,27 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.OperationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Operations. + */ +public interface Operations extends HasInner { + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/PnsCredentialsResource.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/PnsCredentialsResource.java new file mode 100644 index 000000000000..c76c04da4bcd --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/PnsCredentialsResource.java @@ -0,0 +1,81 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.PnsCredentialsResourceInner; +import java.util.Map; + +/** + * Type representing PnsCredentialsResource. + */ +public interface PnsCredentialsResource extends HasInner, HasManager { + /** + * @return the admCredential value. + */ + AdmCredential admCredential(); + + /** + * @return the apnsCredential value. + */ + ApnsCredential apnsCredential(); + + /** + * @return the baiduCredential value. + */ + BaiduCredential baiduCredential(); + + /** + * @return the gcmCredential value. + */ + GcmCredential gcmCredential(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the mpnsCredential value. + */ + MpnsCredential mpnsCredential(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * @return the wnsCredential value. + */ + WnsCredential wnsCredential(); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/PolicykeyResource.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/PolicykeyResource.java new file mode 100644 index 000000000000..b479554bb73e --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/PolicykeyResource.java @@ -0,0 +1,45 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Namespace/NotificationHub Regenerate Keys. + */ +public class PolicykeyResource { + /** + * Name of the key that has to be regenerated for the + * Namespace/Notification Hub Authorization Rule. The value can be Primary + * Key/Secondary Key. + */ + @JsonProperty(value = "policyKey") + private String policyKey; + + /** + * Get name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * + * @return the policyKey value + */ + public String policyKey() { + return this.policyKey; + } + + /** + * Set name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * + * @param policyKey the policyKey value to set + * @return the PolicykeyResource object itself. + */ + public PolicykeyResource withPolicyKey(String policyKey) { + this.policyKey = policyKey; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ResourceListKeys.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ResourceListKeys.java new file mode 100644 index 000000000000..cd1aa122ef72 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/ResourceListKeys.java @@ -0,0 +1,45 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.ResourceListKeysInner; + +/** + * Type representing ResourceListKeys. + */ +public interface ResourceListKeys extends HasInner, HasManager { + /** + * @return the keyName value. + */ + String keyName(); + + /** + * @return the primaryConnectionString value. + */ + String primaryConnectionString(); + + /** + * @return the primaryKey value. + */ + String primaryKey(); + + /** + * @return the secondaryConnectionString value. + */ + String secondaryConnectionString(); + + /** + * @return the secondaryKey value. + */ + String secondaryKey(); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java new file mode 100644 index 000000000000..f62d24203035 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java @@ -0,0 +1,43 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. + */ +public class SharedAccessAuthorizationRuleCreateOrUpdateParameters { + /** + * Properties of the Namespace AuthorizationRules. + */ + @JsonProperty(value = "properties", required = true) + private SharedAccessAuthorizationRuleProperties properties; + + /** + * Get properties of the Namespace AuthorizationRules. + * + * @return the properties value + */ + public SharedAccessAuthorizationRuleProperties properties() { + return this.properties; + } + + /** + * Set properties of the Namespace AuthorizationRules. + * + * @param properties the properties value to set + * @return the SharedAccessAuthorizationRuleCreateOrUpdateParameters object itself. + */ + public SharedAccessAuthorizationRuleCreateOrUpdateParameters withProperties(SharedAccessAuthorizationRuleProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleListResult.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleListResult.java new file mode 100644 index 000000000000..7f990c5ce3c8 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleListResult.java @@ -0,0 +1,32 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.NotificationHubsManager; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.SharedAccessAuthorizationRuleListResultInner; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation.SharedAccessAuthorizationRuleResourceInner; +import java.util.List; + +/** + * Type representing SharedAccessAuthorizationRuleListResult. + */ +public interface SharedAccessAuthorizationRuleListResult extends HasInner, HasManager { + /** + * @return the nextLink value. + */ + String nextLink(); + + /** + * @return the value value. + */ + List value(); + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleProperties.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleProperties.java new file mode 100644 index 000000000000..d3a3186448b2 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SharedAccessAuthorizationRuleProperties.java @@ -0,0 +1,166 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SharedAccessAuthorizationRule properties. + */ +public class SharedAccessAuthorizationRuleProperties { + /** + * The rights associated with the rule. + */ + @JsonProperty(value = "rights") + private List rights; + + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS + * token. + */ + @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY) + private String primaryKey; + + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS + * token. + */ + @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY) + private String secondaryKey; + + /** + * A string that describes the authorization rule. + */ + @JsonProperty(value = "keyName", access = JsonProperty.Access.WRITE_ONLY) + private String keyName; + + /** + * A string that describes the claim type. + */ + @JsonProperty(value = "claimType", access = JsonProperty.Access.WRITE_ONLY) + private String claimType; + + /** + * A string that describes the claim value. + */ + @JsonProperty(value = "claimValue", access = JsonProperty.Access.WRITE_ONLY) + private String claimValue; + + /** + * The last modified time for this rule. + */ + @JsonProperty(value = "modifiedTime", access = JsonProperty.Access.WRITE_ONLY) + private String modifiedTime; + + /** + * The created time for this rule. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private String createdTime; + + /** + * The revision number for the rule. + */ + @JsonProperty(value = "revision", access = JsonProperty.Access.WRITE_ONLY) + private Integer revision; + + /** + * Get the rights associated with the rule. + * + * @return the rights value + */ + public List rights() { + return this.rights; + } + + /** + * Set the rights associated with the rule. + * + * @param rights the rights value to set + * @return the SharedAccessAuthorizationRuleProperties object itself. + */ + public SharedAccessAuthorizationRuleProperties withRights(List rights) { + this.rights = rights; + return this; + } + + /** + * Get a base64-encoded 256-bit primary key for signing and validating the SAS token. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Get a base64-encoded 256-bit primary key for signing and validating the SAS token. + * + * @return the secondaryKey value + */ + public String secondaryKey() { + return this.secondaryKey; + } + + /** + * Get a string that describes the authorization rule. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Get a string that describes the claim type. + * + * @return the claimType value + */ + public String claimType() { + return this.claimType; + } + + /** + * Get a string that describes the claim value. + * + * @return the claimValue value + */ + public String claimValue() { + return this.claimValue; + } + + /** + * Get the last modified time for this rule. + * + * @return the modifiedTime value + */ + public String modifiedTime() { + return this.modifiedTime; + } + + /** + * Get the created time for this rule. + * + * @return the createdTime value + */ + public String createdTime() { + return this.createdTime; + } + + /** + * Get the revision number for the rule. + * + * @return the revision value + */ + public Integer revision() { + return this.revision; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Sku.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Sku.java new file mode 100644 index 000000000000..2c8558fa3c70 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/Sku.java @@ -0,0 +1,148 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Sku description for a namespace. + */ +public class Sku { + /** + * Name of the notification hub sku. Possible values include: 'Free', + * 'Basic', 'Standard'. + */ + @JsonProperty(value = "name", required = true) + private SkuName name; + + /** + * The tier of particular sku. + */ + @JsonProperty(value = "tier") + private String tier; + + /** + * The Sku size. + */ + @JsonProperty(value = "size") + private String size; + + /** + * The Sku Family. + */ + @JsonProperty(value = "family") + private String family; + + /** + * The capacity of the resource. + */ + @JsonProperty(value = "capacity") + private Integer capacity; + + /** + * Get name of the notification hub sku. Possible values include: 'Free', 'Basic', 'Standard'. + * + * @return the name value + */ + public SkuName name() { + return this.name; + } + + /** + * Set name of the notification hub sku. Possible values include: 'Free', 'Basic', 'Standard'. + * + * @param name the name value to set + * @return the Sku object itself. + */ + public Sku withName(SkuName name) { + this.name = name; + return this; + } + + /** + * Get the tier of particular sku. + * + * @return the tier value + */ + public String tier() { + return this.tier; + } + + /** + * Set the tier of particular sku. + * + * @param tier the tier value to set + * @return the Sku object itself. + */ + public Sku withTier(String tier) { + this.tier = tier; + return this; + } + + /** + * Get the Sku size. + * + * @return the size value + */ + public String size() { + return this.size; + } + + /** + * Set the Sku size. + * + * @param size the size value to set + * @return the Sku object itself. + */ + public Sku withSize(String size) { + this.size = size; + return this; + } + + /** + * Get the Sku Family. + * + * @return the family value + */ + public String family() { + return this.family; + } + + /** + * Set the Sku Family. + * + * @param family the family value to set + * @return the Sku object itself. + */ + public Sku withFamily(String family) { + this.family = family; + return this; + } + + /** + * Get the capacity of the resource. + * + * @return the capacity value + */ + public Integer capacity() { + return this.capacity; + } + + /** + * Set the capacity of the resource. + * + * @param capacity the capacity value to set + * @return the Sku object itself. + */ + public Sku withCapacity(Integer capacity) { + this.capacity = capacity; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SkuName.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SkuName.java new file mode 100644 index 000000000000..8bbe95bb6cad --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/SkuName.java @@ -0,0 +1,44 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SkuName. + */ +public final class SkuName extends ExpandableStringEnum { + /** Static value Free for SkuName. */ + public static final SkuName FREE = fromString("Free"); + + /** Static value Basic for SkuName. */ + public static final SkuName BASIC = fromString("Basic"); + + /** Static value Standard for SkuName. */ + public static final SkuName STANDARD = fromString("Standard"); + + /** + * Creates or finds a SkuName from its string representation. + * @param name a name to look for + * @return the corresponding SkuName + */ + @JsonCreator + public static SkuName fromString(String name) { + return fromString(name, SkuName.class); + } + + /** + * @return known SkuName values + */ + public static Collection values() { + return values(SkuName.class); + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/WnsCredential.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/WnsCredential.java new file mode 100644 index 000000000000..8c091a650cd8 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/WnsCredential.java @@ -0,0 +1,97 @@ +/** + * 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.management.notificationhubs.v2017_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Description of a NotificationHub WnsCredential. + */ +@JsonFlatten +public class WnsCredential { + /** + * The package ID for this credential. + */ + @JsonProperty(value = "properties.packageSid") + private String packageSid; + + /** + * The secret key. + */ + @JsonProperty(value = "properties.secretKey") + private String secretKey; + + /** + * The Windows Live endpoint. + */ + @JsonProperty(value = "properties.windowsLiveEndpoint") + private String windowsLiveEndpoint; + + /** + * Get the package ID for this credential. + * + * @return the packageSid value + */ + public String packageSid() { + return this.packageSid; + } + + /** + * Set the package ID for this credential. + * + * @param packageSid the packageSid value to set + * @return the WnsCredential object itself. + */ + public WnsCredential withPackageSid(String packageSid) { + this.packageSid = packageSid; + return this; + } + + /** + * Get the secret key. + * + * @return the secretKey value + */ + public String secretKey() { + return this.secretKey; + } + + /** + * Set the secret key. + * + * @param secretKey the secretKey value to set + * @return the WnsCredential object itself. + */ + public WnsCredential withSecretKey(String secretKey) { + this.secretKey = secretKey; + return this; + } + + /** + * Get the Windows Live endpoint. + * + * @return the windowsLiveEndpoint value + */ + public String windowsLiveEndpoint() { + return this.windowsLiveEndpoint; + } + + /** + * Set the Windows Live endpoint. + * + * @param windowsLiveEndpoint the windowsLiveEndpoint value to set + * @return the WnsCredential object itself. + */ + public WnsCredential withWindowsLiveEndpoint(String windowsLiveEndpoint) { + this.windowsLiveEndpoint = windowsLiveEndpoint; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/CheckAvailabilityResultImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/CheckAvailabilityResultImpl.java new file mode 100644 index 000000000000..cc58a6632e4a --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/CheckAvailabilityResultImpl.java @@ -0,0 +1,63 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.CheckAvailabilityResult; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import java.util.Map; + +class CheckAvailabilityResultImpl extends WrapperImpl implements CheckAvailabilityResult { + private final NotificationHubsManager manager; + CheckAvailabilityResultImpl(CheckAvailabilityResultInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public Boolean isAvailiable() { + return this.inner().isAvailiable(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/CheckAvailabilityResultInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/CheckAvailabilityResultInner.java new file mode 100644 index 000000000000..1080a649ee40 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/CheckAvailabilityResultInner.java @@ -0,0 +1,74 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Description of a CheckAvailibility resource. + */ +@SkipParentValidation +public class CheckAvailabilityResultInner extends Resource { + /** + * True if the name is available and can be used to create new + * Namespace/NotificationHub. Otherwise false. + */ + @JsonProperty(value = "isAvailiable") + private Boolean isAvailiable; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @return the isAvailiable value + */ + public Boolean isAvailiable() { + return this.isAvailiable; + } + + /** + * Set true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @param isAvailiable the isAvailiable value to set + * @return the CheckAvailabilityResultInner object itself. + */ + public CheckAvailabilityResultInner withIsAvailiable(Boolean isAvailiable) { + this.isAvailiable = isAvailiable; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the CheckAvailabilityResultInner object itself. + */ + public CheckAvailabilityResultInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/DebugSendResponseImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/DebugSendResponseImpl.java new file mode 100644 index 000000000000..f23e9e9cf239 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/DebugSendResponseImpl.java @@ -0,0 +1,73 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.DebugSendResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import java.util.Map; + +class DebugSendResponseImpl extends WrapperImpl implements DebugSendResponse { + private final NotificationHubsManager manager; + DebugSendResponseImpl(DebugSendResponseInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Double failure() { + return this.inner().failure(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Object results() { + return this.inner().results(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Double success() { + return this.inner().success(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/DebugSendResponseInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/DebugSendResponseInner.java new file mode 100644 index 000000000000..540ed0253930 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/DebugSendResponseInner.java @@ -0,0 +1,127 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Description of a NotificationHub Resource. + */ +@JsonFlatten +@SkipParentValidation +public class DebugSendResponseInner extends Resource { + /** + * successful send. + */ + @JsonProperty(value = "properties.success") + private Double success; + + /** + * send failure. + */ + @JsonProperty(value = "properties.failure") + private Double failure; + + /** + * actual failure description. + */ + @JsonProperty(value = "properties.results") + private Object results; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get successful send. + * + * @return the success value + */ + public Double success() { + return this.success; + } + + /** + * Set successful send. + * + * @param success the success value to set + * @return the DebugSendResponseInner object itself. + */ + public DebugSendResponseInner withSuccess(Double success) { + this.success = success; + return this; + } + + /** + * Get send failure. + * + * @return the failure value + */ + public Double failure() { + return this.failure; + } + + /** + * Set send failure. + * + * @param failure the failure value to set + * @return the DebugSendResponseInner object itself. + */ + public DebugSendResponseInner withFailure(Double failure) { + this.failure = failure; + return this; + } + + /** + * Get actual failure description. + * + * @return the results value + */ + public Object results() { + return this.results; + } + + /** + * Set actual failure description. + * + * @param results the results value to set + * @return the DebugSendResponseInner object itself. + */ + public DebugSendResponseInner withResults(Object results) { + this.results = results; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the DebugSendResponseInner object itself. + */ + public DebugSendResponseInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/IdParsingUtils.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/IdParsingUtils.java new file mode 100644 index 000000000000..d4aa4aeb65c5 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/IdParsingUtils.java @@ -0,0 +1,57 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; +import java.util.Arrays; +import java.util.Iterator; + +class IdParsingUtils { + public static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + public static String getValueFromIdByPosition(String id, int pos) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + int index = 0; + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (index == pos) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + index++; + } + return null; + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceResourceImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceResourceImpl.java new file mode 100644 index 000000000000..78651650e8c5 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceResourceImpl.java @@ -0,0 +1,228 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceResource; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespacePatchParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceCreateOrUpdateParameters; +import org.joda.time.DateTime; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceType; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import rx.functions.Func1; + +class NamespaceResourceImpl extends GroupableResourceCoreImpl implements NamespaceResource, NamespaceResource.Definition, NamespaceResource.Update { + private NamespaceCreateOrUpdateParameters createParameter; + private NamespacePatchParameters updateParameter; + NamespaceResourceImpl(String name, NamespaceResourceInner inner, NotificationHubsManager manager) { + super(name, inner, manager); + this.createParameter = new NamespaceCreateOrUpdateParameters(); + this.updateParameter = new NamespacePatchParameters(); + } + + @Override + public Observable createResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + this.createParameter.withLocation(inner().location()); + this.createParameter.withTags(inner().getTags()); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.createParameter) + .map(new Func1() { + @Override + public NamespaceResourceInner call(NamespaceResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.patchAsync(this.resourceGroupName(), this.name(), this.updateParameter) + .map(new Func1() { + @Override + public NamespaceResourceInner call(NamespaceResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createParameter = new NamespaceCreateOrUpdateParameters(); + this.updateParameter = new NamespacePatchParameters(); + } + + @Override + public DateTime createdAt() { + return this.inner().createdAt(); + } + + @Override + public Boolean critical() { + return this.inner().critical(); + } + + @Override + public String dataCenter() { + return this.inner().dataCenter(); + } + + @Override + public Boolean enabled() { + return this.inner().enabled(); + } + + @Override + public String metricId() { + return this.inner().metricId(); + } + + @Override + public String namespaceResourceName() { + return this.inner().namespaceResourceName(); + } + + @Override + public NamespaceType namespaceType() { + return this.inner().namespaceType(); + } + + @Override + public String provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public String scaleUnit() { + return this.inner().scaleUnit(); + } + + @Override + public String serviceBusEndpoint() { + return this.inner().serviceBusEndpoint(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public String status() { + return this.inner().status(); + } + + @Override + public String subscriptionId() { + return this.inner().subscriptionId(); + } + + @Override + public DateTime updatedAt() { + return this.inner().updatedAt(); + } + + @Override + public NamespaceResourceImpl withCreatedAt(DateTime createdAt) { + this.createParameter.withCreatedAt(createdAt); + return this; + } + + @Override + public NamespaceResourceImpl withCritical(Boolean critical) { + this.createParameter.withCritical(critical); + return this; + } + + @Override + public NamespaceResourceImpl withDataCenter(String dataCenter) { + this.createParameter.withDataCenter(dataCenter); + return this; + } + + @Override + public NamespaceResourceImpl withEnabled(Boolean enabled) { + this.createParameter.withEnabled(enabled); + return this; + } + + @Override + public NamespaceResourceImpl withNamespaceCreateOrUpdateParametersName(String namespaceCreateOrUpdateParametersName) { + this.createParameter.withNamespaceCreateOrUpdateParametersName(namespaceCreateOrUpdateParametersName); + return this; + } + + @Override + public NamespaceResourceImpl withNamespaceType(NamespaceType namespaceType) { + this.createParameter.withNamespaceType(namespaceType); + return this; + } + + @Override + public NamespaceResourceImpl withProvisioningState(String provisioningState) { + this.createParameter.withProvisioningState(provisioningState); + return this; + } + + @Override + public NamespaceResourceImpl withScaleUnit(String scaleUnit) { + this.createParameter.withScaleUnit(scaleUnit); + return this; + } + + @Override + public NamespaceResourceImpl withServiceBusEndpoint(String serviceBusEndpoint) { + this.createParameter.withServiceBusEndpoint(serviceBusEndpoint); + return this; + } + + @Override + public NamespaceResourceImpl withStatus(String status) { + this.createParameter.withStatus(status); + return this; + } + + @Override + public NamespaceResourceImpl withSubscriptionId(String subscriptionId) { + this.createParameter.withSubscriptionId(subscriptionId); + return this; + } + + @Override + public NamespaceResourceImpl withUpdatedAt(DateTime updatedAt) { + this.createParameter.withUpdatedAt(updatedAt); + return this; + } + + @Override + public NamespaceResourceImpl withSku(Sku sku) { + if (isInCreateMode()) { + this.createParameter.withSku(sku); + } else { + this.updateParameter.withSku(sku); + } + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceResourceInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceResourceInner.java new file mode 100644 index 000000000000..a7e015a1611c --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceResourceInner.java @@ -0,0 +1,410 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import org.joda.time.DateTime; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceType; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Description of a Namespace resource. + */ +@JsonFlatten +@SkipParentValidation +public class NamespaceResourceInner extends Resource { + /** + * The name of the namespace. + */ + @JsonProperty(value = "properties.name") + private String namespaceResourceName; + + /** + * Provisioning state of the Namespace. + */ + @JsonProperty(value = "properties.provisioningState") + private String provisioningState; + + /** + * Specifies the targeted region in which the namespace should be created. + * It can be any of the following values: Australia EastAustralia + * SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central + * USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth + * EuropeWest Europe. + */ + @JsonProperty(value = "properties.region") + private String region; + + /** + * Identifier for Azure Insights metrics. + */ + @JsonProperty(value = "properties.metricId", access = JsonProperty.Access.WRITE_ONLY) + private String metricId; + + /** + * Status of the namespace. It can be any of these values:1 = + * Created/Active2 = Creating3 = Suspended4 = Deleting. + */ + @JsonProperty(value = "properties.status") + private String status; + + /** + * The time the namespace was created. + */ + @JsonProperty(value = "properties.createdAt") + private DateTime createdAt; + + /** + * The time the namespace was updated. + */ + @JsonProperty(value = "properties.updatedAt") + private DateTime updatedAt; + + /** + * Endpoint you can use to perform NotificationHub operations. + */ + @JsonProperty(value = "properties.serviceBusEndpoint") + private String serviceBusEndpoint; + + /** + * The Id of the Azure subscription associated with the namespace. + */ + @JsonProperty(value = "properties.subscriptionId") + private String subscriptionId; + + /** + * ScaleUnit where the namespace gets created. + */ + @JsonProperty(value = "properties.scaleUnit") + private String scaleUnit; + + /** + * Whether or not the namespace is currently enabled. + */ + @JsonProperty(value = "properties.enabled") + private Boolean enabled; + + /** + * Whether or not the namespace is set as Critical. + */ + @JsonProperty(value = "properties.critical") + private Boolean critical; + + /** + * Data center for the namespace. + */ + @JsonProperty(value = "properties.dataCenter") + private String dataCenter; + + /** + * The namespace type. Possible values include: 'Messaging', + * 'NotificationHub'. + */ + @JsonProperty(value = "properties.namespaceType") + private NamespaceType namespaceType; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the name of the namespace. + * + * @return the namespaceResourceName value + */ + public String namespaceResourceName() { + return this.namespaceResourceName; + } + + /** + * Set the name of the namespace. + * + * @param namespaceResourceName the namespaceResourceName value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withNamespaceResourceName(String namespaceResourceName) { + this.namespaceResourceName = namespaceResourceName; + return this; + } + + /** + * Get provisioning state of the Namespace. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set provisioning state of the Namespace. + * + * @param provisioningState the provisioningState value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @return the region value + */ + public String region() { + return this.region; + } + + /** + * Set specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe. + * + * @param region the region value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withRegion(String region) { + this.region = region; + return this; + } + + /** + * Get identifier for Azure Insights metrics. + * + * @return the metricId value + */ + public String metricId() { + return this.metricId; + } + + /** + * Get status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. + * + * @param status the status value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the time the namespace was created. + * + * @return the createdAt value + */ + public DateTime createdAt() { + return this.createdAt; + } + + /** + * Set the time the namespace was created. + * + * @param createdAt the createdAt value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withCreatedAt(DateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get the time the namespace was updated. + * + * @return the updatedAt value + */ + public DateTime updatedAt() { + return this.updatedAt; + } + + /** + * Set the time the namespace was updated. + * + * @param updatedAt the updatedAt value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withUpdatedAt(DateTime updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get endpoint you can use to perform NotificationHub operations. + * + * @return the serviceBusEndpoint value + */ + public String serviceBusEndpoint() { + return this.serviceBusEndpoint; + } + + /** + * Set endpoint you can use to perform NotificationHub operations. + * + * @param serviceBusEndpoint the serviceBusEndpoint value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withServiceBusEndpoint(String serviceBusEndpoint) { + this.serviceBusEndpoint = serviceBusEndpoint; + return this; + } + + /** + * Get the Id of the Azure subscription associated with the namespace. + * + * @return the subscriptionId value + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the Id of the Azure subscription associated with the namespace. + * + * @param subscriptionId the subscriptionId value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get scaleUnit where the namespace gets created. + * + * @return the scaleUnit value + */ + public String scaleUnit() { + return this.scaleUnit; + } + + /** + * Set scaleUnit where the namespace gets created. + * + * @param scaleUnit the scaleUnit value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withScaleUnit(String scaleUnit) { + this.scaleUnit = scaleUnit; + return this; + } + + /** + * Get whether or not the namespace is currently enabled. + * + * @return the enabled value + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set whether or not the namespace is currently enabled. + * + * @param enabled the enabled value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get whether or not the namespace is set as Critical. + * + * @return the critical value + */ + public Boolean critical() { + return this.critical; + } + + /** + * Set whether or not the namespace is set as Critical. + * + * @param critical the critical value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withCritical(Boolean critical) { + this.critical = critical; + return this; + } + + /** + * Get data center for the namespace. + * + * @return the dataCenter value + */ + public String dataCenter() { + return this.dataCenter; + } + + /** + * Set data center for the namespace. + * + * @param dataCenter the dataCenter value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withDataCenter(String dataCenter) { + this.dataCenter = dataCenter; + return this; + } + + /** + * Get the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @return the namespaceType value + */ + public NamespaceType namespaceType() { + return this.namespaceType; + } + + /** + * Set the namespace type. Possible values include: 'Messaging', 'NotificationHub'. + * + * @param namespaceType the namespaceType value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withNamespaceType(NamespaceType namespaceType) { + this.namespaceType = namespaceType; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NamespaceResourceInner object itself. + */ + public NamespaceResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java new file mode 100644 index 000000000000..28d5772bca46 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespaceSharedAccessAuthorizationRuleResourceImpl.java @@ -0,0 +1,194 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleProperties; +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.AccessRights; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import java.util.Map; +import rx.functions.Func1; + +class NamespaceSharedAccessAuthorizationRuleResourceImpl extends CreatableUpdatableImpl implements NamespaceSharedAccessAuthorizationRuleResource, NamespaceSharedAccessAuthorizationRuleResource.Definition, NamespaceSharedAccessAuthorizationRuleResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String authorizationRuleName; + private SharedAccessAuthorizationRuleProperties cproperties; + private SharedAccessAuthorizationRuleProperties uproperties; + + NamespaceSharedAccessAuthorizationRuleResourceImpl(String name, NotificationHubsManager manager) { + super(name, new SharedAccessAuthorizationRuleResourceInner()); + this.manager = manager; + // Set resource name + this.authorizationRuleName = name; + // + this.cproperties = new SharedAccessAuthorizationRuleProperties(); + this.uproperties = new SharedAccessAuthorizationRuleProperties(); + } + + NamespaceSharedAccessAuthorizationRuleResourceImpl(SharedAccessAuthorizationRuleResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.authorizationRuleName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.authorizationRuleName = IdParsingUtils.getValueFromIdByName(inner.id(), "AuthorizationRules"); + // + this.cproperties = new SharedAccessAuthorizationRuleProperties(); + this.uproperties = new SharedAccessAuthorizationRuleProperties(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.authorizationRuleName, this.cproperties) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.authorizationRuleName, this.uproperties) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NamespacesInner client = this.manager().inner().namespaces(); + return client.getAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.authorizationRuleName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.cproperties = new SharedAccessAuthorizationRuleProperties(); + this.uproperties = new SharedAccessAuthorizationRuleProperties(); + } + + @Override + public String claimType() { + return this.inner().claimType(); + } + + @Override + public String claimValue() { + return this.inner().claimValue(); + } + + @Override + public String createdTime() { + return this.inner().createdTime(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String keyName() { + return this.inner().keyName(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String modifiedTime() { + return this.inner().modifiedTime(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String primaryKey() { + return this.inner().primaryKey(); + } + + @Override + public Integer revision() { + return this.inner().revision(); + } + + @Override + public List rights() { + return this.inner().rights(); + } + + @Override + public String secondaryKey() { + return this.inner().secondaryKey(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withExistingNamespace(String resourceGroupName, String namespaceName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + return this; + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl withProperties(SharedAccessAuthorizationRuleProperties properties) { + if (isInCreateMode()) { + this.cproperties = properties; + } else { + this.uproperties = properties; + } + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespacesImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespacesImpl.java new file mode 100644 index 000000000000..08561e14e2fe --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespacesImpl.java @@ -0,0 +1,236 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Namespaces; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceResource; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.CheckAvailabilityResult; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleListResult; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.ResourceListKeys; + +class NamespacesImpl extends GroupableResourcesCoreImpl implements Namespaces { + protected NamespacesImpl(NotificationHubsManager manager) { + super(manager.inner().namespaces(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + NamespacesInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + NamespacesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + NamespacesInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + NamespacesInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceResource call(NamespaceResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + NamespacesInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + NamespacesInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceResource call(NamespaceResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public NamespaceResourceImpl define(String name) { + return wrapModel(name); + } + + @Override + public Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters) { + NamespacesInner client = this.inner(); + return client.checkAvailabilityAsync(parameters) + .map(new Func1() { + @Override + public CheckAvailabilityResult call(CheckAvailabilityResultInner inner) { + return new CheckAvailabilityResultImpl(inner, manager()); + } + }); + } + + @Override + protected NamespaceResourceImpl wrapModel(NamespaceResourceInner inner) { + return new NamespaceResourceImpl(inner.name(), inner, manager()); + } + + @Override + protected NamespaceResourceImpl wrapModel(String name) { + return new NamespaceResourceImpl(name, new NamespaceResourceInner(), this.manager()); + } + + @Override + public NamespaceSharedAccessAuthorizationRuleResourceImpl defineAuthorizationRule(String name) { + return wrapAuthorizationRuleModel(name); + } + + private NamespaceSharedAccessAuthorizationRuleResourceImpl wrapAuthorizationRuleModel(String name) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(name, this.manager()); + } + + private NamespaceSharedAccessAuthorizationRuleResourceImpl wrapNamespaceSharedAccessAuthorizationRuleResourceModel(SharedAccessAuthorizationRuleResourceInner inner) { + return new NamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + + private Observable getSharedAccessAuthorizationRuleResourceInnerUsingNamespacesInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String namespaceName = IdParsingUtils.getValueFromIdByName(id, "namespaces"); + String authorizationRuleName = IdParsingUtils.getValueFromIdByName(id, "AuthorizationRules"); + NamespacesInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName); + } + + @Override + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName) + .map(new Func1() { + @Override + public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return wrapNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + } + }); + } + + @Override + public Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName) { + NamespacesInner client = this.inner(); + return client.listAuthorizationRulesAsync(resourceGroupName, namespaceName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return wrapNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + } + }); + } + + @Override + public Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName).toCompletable(); + } + + @Override + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.listKeysAsync(resourceGroupName, namespaceName, authorizationRuleName) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleListResult call(SharedAccessAuthorizationRuleListResultInner inner) { + return new SharedAccessAuthorizationRuleListResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + NamespacesInner client = this.inner(); + return client.regenerateKeysAsync(resourceGroupName, namespaceName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespacesInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespacesInner.java new file mode 100644 index 000000000000..19656b77575a --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NamespacesInner.java @@ -0,0 +1,1903 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespaceCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NamespacePatchParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.PolicykeyResource; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleProperties; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Namespaces. + */ +public class NamespacesInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private NamespacesService service; + /** The service client containing this operation class. */ + private NotificationHubsManagementClientImpl client; + + /** + * Initializes an instance of NamespacesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public NamespacesInner(Retrofit retrofit, NotificationHubsManagementClientImpl client) { + this.service = retrofit.create(NamespacesService.class); + this.client = client; + } + + /** + * The interface defining all the services for Namespaces to be + * used by Retrofit to perform actually REST calls. + */ + interface NamespacesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2017_04_01.Namespaces checkAvailability" }) + @POST("subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability") + Observable> checkAvailability(@Path("subscriptionId") String subscriptionId, @Body CheckAvailabilityParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}") + Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body NamespaceCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces patch" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}") + Observable> patch(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body NamespacePatchParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}") + Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces createOrUpdateAuthorizationRule" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}") + Observable> createOrUpdateAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2017_04_01.Namespaces deleteAuthorizationRule" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", method = "DELETE", hasBody = true) + Observable> deleteAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces getAuthorizationRule" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}") + Observable> getAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces") + Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces listAuthorizationRules" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules") + Observable> listAuthorizationRules(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces listKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys") + Observable> listKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Namespaces regenerateKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys") + Observable> regenerateKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body PolicykeyResource parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2017_04_01.Namespaces listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @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.management.notificationhubs.v2017_04_01.Namespaces listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.notificationhubs.v2017_04_01.Namespaces listAuthorizationRulesNext" }) + @GET + Observable> listAuthorizationRulesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CheckAvailabilityResultInner object if successful. + */ + public CheckAvailabilityResultInner checkAvailability(CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(parameters).toBlocking().single().body(); + } + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkAvailabilityAsync(CheckAvailabilityParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkAvailabilityWithServiceResponseAsync(parameters), serviceCallback); + } + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResultInner object + */ + public Observable checkAvailabilityAsync(CheckAvailabilityParameters parameters) { + return checkAvailabilityWithServiceResponseAsync(parameters).map(new Func1, CheckAvailabilityResultInner>() { + @Override + public CheckAvailabilityResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. + * + * @param parameters The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResultInner object + */ + public Observable> checkAvailabilityWithServiceResponseAsync(CheckAvailabilityParameters parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.checkAvailability(this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = checkAvailabilityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse checkAvailabilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NamespaceResourceInner object if successful. + */ + public NamespaceResourceInner createOrUpdate(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).toBlocking().single().body(); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters), serviceCallback); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1, NamespaceResourceInner>() { + @Override + public NamespaceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to create a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String namespaceName, NamespaceCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdate(resourceGroupName, namespaceName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Patches the existing namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to patch a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NamespaceResourceInner object if successful. + */ + public NamespaceResourceInner patch(String resourceGroupName, String namespaceName, NamespacePatchParameters parameters) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).toBlocking().single().body(); + } + + /** + * Patches the existing namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to patch a Namespace Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture patchAsync(String resourceGroupName, String namespaceName, NamespacePatchParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(patchWithServiceResponseAsync(resourceGroupName, namespaceName, parameters), serviceCallback); + } + + /** + * Patches the existing namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to patch a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable patchAsync(String resourceGroupName, String namespaceName, NamespacePatchParameters parameters) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1, NamespaceResourceInner>() { + @Override + public NamespaceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patches the existing namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters Parameters supplied to patch a Namespace Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable> patchWithServiceResponseAsync(String resourceGroupName, String namespaceName, NamespacePatchParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.patch(resourceGroupName, namespaceName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = patchDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse patchDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String namespaceName) { + deleteWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().last().body(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String namespaceName) { + return deleteWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String namespaceName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().single().body(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String namespaceName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NamespaceResourceInner object if successful. + */ + public NamespaceResourceInner getByResourceGroup(String resourceGroupName, String namespaceName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName).toBlocking().single().body(); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String namespaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName), serviceCallback); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String namespaceName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, namespaceName).map(new Func1, NamespaceResourceInner>() { + @Override + public NamespaceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Returns the description for the specified namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NamespaceResourceInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param properties Properties of the Namespace AuthorizationRules. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, properties).toBlocking().single().body(); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param properties Properties of the Namespace AuthorizationRules. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, properties), serviceCallback); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param properties Properties of the Namespace AuthorizationRules. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, properties).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates an authorization rule for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Aauthorization Rule Name. + * @param properties Properties of the Namespace AuthorizationRules. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> createOrUpdateAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + parameters.withProperties(properties); + return service.createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName) { + deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a namespace authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner getAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets an authorization rule for a namespace by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param authorizationRuleName Authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> getAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRules(final String resourceGroupName, final String namespaceName) { + ServiceResponse> response = listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName) { + return listAuthorizationRulesWithServiceResponseAsync(resourceGroupName, namespaceName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesWithServiceResponseAsync(final String resourceGroupName, final String namespaceName) { + return listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesSinglePageAsync(final String resourceGroupName, final String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listAuthorizationRules(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleListResultInner object if successful. + */ + public SharedAccessAuthorizationRuleListResultInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleListResultInner object + */ + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, SharedAccessAuthorizationRuleListResultInner>() { + @Override + public SharedAccessAuthorizationRuleListResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleListResultInner object + */ + public Observable> listKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listKeys(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName), serviceCallback); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String policyKey = null; + PolicykeyResource parameters = new PolicykeyResource(); + parameters.withPolicyKey(null); + return service.regenerateKeys(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, policyKey).toBlocking().single().body(); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, policyKey), serviceCallback); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, policyKey).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param authorizationRuleName The connection string of the namespace for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + PolicykeyResource parameters = new PolicykeyResource(); + parameters.withPolicyKey(policyKey); + return service.regenerateKeys(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse regenerateKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the available namespaces within a resourceGroup. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NamespaceResourceInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NamespaceResourceInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NamespaceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRulesNext(final String nextPageLink) { + ServiceResponse> response = listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesNextAsync(final String nextPageLink) { + return listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesNextWithServiceResponseAsync(final String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a namespace. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listAuthorizationRulesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java new file mode 100644 index 000000000000..e72860347a04 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl.java @@ -0,0 +1,197 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubNamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleProperties; +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.AccessRights; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import java.util.Map; +import rx.functions.Func1; + +class NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl extends CreatableUpdatableImpl implements NotificationHubNamespaceSharedAccessAuthorizationRuleResource, NotificationHubNamespaceSharedAccessAuthorizationRuleResource.Definition, NotificationHubNamespaceSharedAccessAuthorizationRuleResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String notificationHubName; + private String authorizationRuleName; + private SharedAccessAuthorizationRuleProperties cproperties; + private SharedAccessAuthorizationRuleProperties uproperties; + + NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(String name, NotificationHubsManager manager) { + super(name, new SharedAccessAuthorizationRuleResourceInner()); + this.manager = manager; + // Set resource name + this.authorizationRuleName = name; + // + this.cproperties = new SharedAccessAuthorizationRuleProperties(); + this.uproperties = new SharedAccessAuthorizationRuleProperties(); + } + + NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(SharedAccessAuthorizationRuleResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.authorizationRuleName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.notificationHubName = IdParsingUtils.getValueFromIdByName(inner.id(), "notificationHubs"); + this.authorizationRuleName = IdParsingUtils.getValueFromIdByName(inner.id(), "AuthorizationRules"); + // + this.cproperties = new SharedAccessAuthorizationRuleProperties(); + this.uproperties = new SharedAccessAuthorizationRuleProperties(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.authorizationRuleName, this.cproperties) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.authorizationRuleName, this.uproperties) + .map(new Func1() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(SharedAccessAuthorizationRuleResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.getAuthorizationRuleAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.authorizationRuleName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.cproperties = new SharedAccessAuthorizationRuleProperties(); + this.uproperties = new SharedAccessAuthorizationRuleProperties(); + } + + @Override + public String claimType() { + return this.inner().claimType(); + } + + @Override + public String claimValue() { + return this.inner().claimValue(); + } + + @Override + public String createdTime() { + return this.inner().createdTime(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String keyName() { + return this.inner().keyName(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String modifiedTime() { + return this.inner().modifiedTime(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String primaryKey() { + return this.inner().primaryKey(); + } + + @Override + public Integer revision() { + return this.inner().revision(); + } + + @Override + public List rights() { + return this.inner().rights(); + } + + @Override + public String secondaryKey() { + return this.inner().secondaryKey(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withExistingNotificationHub(String resourceGroupName, String namespaceName, String notificationHubName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + this.notificationHubName = notificationHubName; + return this; + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl withProperties(SharedAccessAuthorizationRuleProperties properties) { + if (isInCreateMode()) { + this.cproperties = properties; + } else { + this.uproperties = properties; + } + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubResourceImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubResourceImpl.java new file mode 100644 index 000000000000..e799705869e7 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubResourceImpl.java @@ -0,0 +1,313 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubPatchParameters; +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.AdmCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleProperties; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.GcmCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.WnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import rx.functions.Func1; + +class NotificationHubResourceImpl extends CreatableUpdatableImpl implements NotificationHubResource, NotificationHubResource.Definition, NotificationHubResource.Update { + private final NotificationHubsManager manager; + private String resourceGroupName; + private String namespaceName; + private String notificationHubName; + private NotificationHubCreateOrUpdateParameters createParameter; + private NotificationHubPatchParameters updateParameter; + + NotificationHubResourceImpl(String name, NotificationHubsManager manager) { + super(name, new NotificationHubResourceInner()); + this.manager = manager; + // Set resource name + this.notificationHubName = name; + // + this.createParameter = new NotificationHubCreateOrUpdateParameters(); + this.updateParameter = new NotificationHubPatchParameters(); + } + + NotificationHubResourceImpl(NotificationHubResourceInner inner, NotificationHubsManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.notificationHubName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces"); + this.notificationHubName = IdParsingUtils.getValueFromIdByName(inner.id(), "notificationHubs"); + // + this.createParameter = new NotificationHubCreateOrUpdateParameters(); + this.updateParameter = new NotificationHubPatchParameters(); + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.createOrUpdateAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.createParameter) + .map(new Func1() { + @Override + public NotificationHubResourceInner call(NotificationHubResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.patchAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName, this.updateParameter) + .map(new Func1() { + @Override + public NotificationHubResourceInner call(NotificationHubResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + NotificationHubsInner client = this.manager().inner().notificationHubs(); + return client.getAsync(this.resourceGroupName, this.namespaceName, this.notificationHubName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createParameter = new NotificationHubCreateOrUpdateParameters(); + this.updateParameter = new NotificationHubPatchParameters(); + } + + @Override + public AdmCredential admCredential() { + return this.inner().admCredential(); + } + + @Override + public ApnsCredential apnsCredential() { + return this.inner().apnsCredential(); + } + + @Override + public List authorizationRules() { + return this.inner().authorizationRules(); + } + + @Override + public BaiduCredential baiduCredential() { + return this.inner().baiduCredential(); + } + + @Override + public GcmCredential gcmCredential() { + return this.inner().gcmCredential(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public MpnsCredential mpnsCredential() { + return this.inner().mpnsCredential(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String notificationHubResourceName() { + return this.inner().notificationHubResourceName(); + } + + @Override + public String registrationTtl() { + return this.inner().registrationTtl(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public WnsCredential wnsCredential() { + return this.inner().wnsCredential(); + } + + @Override + public NotificationHubResourceImpl withExistingNamespace(String resourceGroupName, String namespaceName) { + this.resourceGroupName = resourceGroupName; + this.namespaceName = namespaceName; + return this; + } + + @Override + public NotificationHubResourceImpl withNotificationHubCreateOrUpdateParametersName(String notificationHubCreateOrUpdateParametersName) { + this.createParameter.withNotificationHubCreateOrUpdateParametersName(notificationHubCreateOrUpdateParametersName); + return this; + } + + @Override + public NotificationHubResourceImpl withNotificationHubPatchParametersName(String notificationHubPatchParametersName) { + this.updateParameter.withNotificationHubPatchParametersName(notificationHubPatchParametersName); + return this; + } + + @Override + public NotificationHubResourceImpl withAdmCredential(AdmCredential admCredential) { + if (isInCreateMode()) { + this.createParameter.withAdmCredential(admCredential); + } else { + this.updateParameter.withAdmCredential(admCredential); + } + return this; + } + + @Override + public NotificationHubResourceImpl withApnsCredential(ApnsCredential apnsCredential) { + if (isInCreateMode()) { + this.createParameter.withApnsCredential(apnsCredential); + } else { + this.updateParameter.withApnsCredential(apnsCredential); + } + return this; + } + + @Override + public NotificationHubResourceImpl withAuthorizationRules(List authorizationRules) { + if (isInCreateMode()) { + this.createParameter.withAuthorizationRules(authorizationRules); + } else { + this.updateParameter.withAuthorizationRules(authorizationRules); + } + return this; + } + + @Override + public NotificationHubResourceImpl withBaiduCredential(BaiduCredential baiduCredential) { + if (isInCreateMode()) { + this.createParameter.withBaiduCredential(baiduCredential); + } else { + this.updateParameter.withBaiduCredential(baiduCredential); + } + return this; + } + + @Override + public NotificationHubResourceImpl withGcmCredential(GcmCredential gcmCredential) { + if (isInCreateMode()) { + this.createParameter.withGcmCredential(gcmCredential); + } else { + this.updateParameter.withGcmCredential(gcmCredential); + } + return this; + } + + @Override + public NotificationHubResourceImpl withLocation(String location) { + if (isInCreateMode()) { + this.createParameter.withLocation(location); + } else { + this.updateParameter.withLocation(location); + } + return this; + } + + @Override + public NotificationHubResourceImpl withMpnsCredential(MpnsCredential mpnsCredential) { + if (isInCreateMode()) { + this.createParameter.withMpnsCredential(mpnsCredential); + } else { + this.updateParameter.withMpnsCredential(mpnsCredential); + } + return this; + } + + @Override + public NotificationHubResourceImpl withRegistrationTtl(String registrationTtl) { + if (isInCreateMode()) { + this.createParameter.withRegistrationTtl(registrationTtl); + } else { + this.updateParameter.withRegistrationTtl(registrationTtl); + } + return this; + } + + @Override + public NotificationHubResourceImpl withSku(Sku sku) { + if (isInCreateMode()) { + this.createParameter.withSku(sku); + } else { + this.updateParameter.withSku(sku); + } + return this; + } + + @Override + public NotificationHubResourceImpl withTags(Map tags) { + if (isInCreateMode()) { + this.createParameter.withTags(tags); + } else { + this.updateParameter.withTags(tags); + } + return this; + } + + @Override + public NotificationHubResourceImpl withWnsCredential(WnsCredential wnsCredential) { + if (isInCreateMode()) { + this.createParameter.withWnsCredential(wnsCredential); + } else { + this.updateParameter.withWnsCredential(wnsCredential); + } + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubResourceInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubResourceInner.java new file mode 100644 index 000000000000..13ca3a15d956 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubResourceInner.java @@ -0,0 +1,291 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleProperties; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.WnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.GcmCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.AdmCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Description of a NotificationHub Resource. + */ +@JsonFlatten +@SkipParentValidation +public class NotificationHubResourceInner extends Resource { + /** + * The NotificationHub name. + */ + @JsonProperty(value = "properties.name") + private String notificationHubResourceName; + + /** + * The RegistrationTtl of the created NotificationHub. + */ + @JsonProperty(value = "properties.registrationTtl") + private String registrationTtl; + + /** + * The AuthorizationRules of the created NotificationHub. + */ + @JsonProperty(value = "properties.authorizationRules") + private List authorizationRules; + + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.baiduCredential") + private BaiduCredential baiduCredential; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the NotificationHub name. + * + * @return the notificationHubResourceName value + */ + public String notificationHubResourceName() { + return this.notificationHubResourceName; + } + + /** + * Set the NotificationHub name. + * + * @param notificationHubResourceName the notificationHubResourceName value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withNotificationHubResourceName(String notificationHubResourceName) { + this.notificationHubResourceName = notificationHubResourceName; + return this; + } + + /** + * Get the RegistrationTtl of the created NotificationHub. + * + * @return the registrationTtl value + */ + public String registrationTtl() { + return this.registrationTtl; + } + + /** + * Set the RegistrationTtl of the created NotificationHub. + * + * @param registrationTtl the registrationTtl value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withRegistrationTtl(String registrationTtl) { + this.registrationTtl = registrationTtl; + return this; + } + + /** + * Get the AuthorizationRules of the created NotificationHub. + * + * @return the authorizationRules value + */ + public List authorizationRules() { + return this.authorizationRules; + } + + /** + * Set the AuthorizationRules of the created NotificationHub. + * + * @param authorizationRules the authorizationRules value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withAuthorizationRules(List authorizationRules) { + this.authorizationRules = authorizationRules; + return this; + } + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NotificationHubResourceInner object itself. + */ + public NotificationHubResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsImpl.java new file mode 100644 index 000000000000..f288f15a3855 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsImpl.java @@ -0,0 +1,205 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubs; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.DebugSendResponse; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.PnsCredentialsResource; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubResource; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.CheckAvailabilityResult; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubNamespaceSharedAccessAuthorizationRuleResource; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.ResourceListKeys; + +class NotificationHubsImpl extends WrapperImpl implements NotificationHubs { + private final NotificationHubsManager manager; + + NotificationHubsImpl(NotificationHubsManager manager) { + super(manager.inner().notificationHubs()); + this.manager = manager; + } + + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public NotificationHubResourceImpl define(String name) { + return wrapModel(name); + } + + private NotificationHubResourceImpl wrapModel(NotificationHubResourceInner inner) { + return new NotificationHubResourceImpl(inner, manager()); + } + + private NotificationHubResourceImpl wrapModel(String name) { + return new NotificationHubResourceImpl(name, this.manager()); + } + + @Override + public Observable debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.debugSendAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1() { + @Override + public DebugSendResponse call(DebugSendResponseInner inner) { + return new DebugSendResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.getPnsCredentialsAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1() { + @Override + public PnsCredentialsResource call(PnsCredentialsResourceInner inner) { + return new PnsCredentialsResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAsync(final String resourceGroupName, final String namespaceName) { + NotificationHubsInner client = this.inner(); + return client.listAsync(resourceGroupName, namespaceName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NotificationHubResource call(NotificationHubResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.getAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1() { + @Override + public NotificationHubResource call(NotificationHubResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, namespaceName, notificationHubName).toCompletable(); + } + + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl defineAuthorizationRule(String name) { + return wrapAuthorizationRuleModel(name); + } + + private NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl wrapAuthorizationRuleModel(String name) { + return new NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(name, this.manager()); + } + + private NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl wrapNotificationHubNamespaceSharedAccessAuthorizationRuleResourceModel(SharedAccessAuthorizationRuleResourceInner inner) { + return new NotificationHubNamespaceSharedAccessAuthorizationRuleResourceImpl(inner, manager()); + } + + private Observable getSharedAccessAuthorizationRuleResourceInnerUsingNotificationHubsInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String namespaceName = IdParsingUtils.getValueFromIdByName(id, "namespaces"); + String notificationHubName = IdParsingUtils.getValueFromIdByName(id, "notificationHubs"); + String authorizationRuleName = IdParsingUtils.getValueFromIdByName(id, "AuthorizationRules"); + NotificationHubsInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName); + } + + @Override + public Observable checkNotificationHubAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + NotificationHubsInner client = this.inner(); + return client.checkNotificationHubAvailabilityAsync(resourceGroupName, namespaceName, parameters) + .map(new Func1() { + @Override + public CheckAvailabilityResult call(CheckAvailabilityResultInner inner) { + return new CheckAvailabilityResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName) + .map(new Func1() { + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return wrapNotificationHubNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + } + }); + } + + @Override + public Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + NotificationHubsInner client = this.inner(); + return client.listAuthorizationRulesAsync(resourceGroupName, namespaceName, notificationHubName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public NotificationHubNamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { + return wrapNotificationHubNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + } + }); + } + + @Override + public Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toCompletable(); + } + + @Override + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.listKeysAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + + @Override + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + NotificationHubsInner client = this.inner(); + return client.regenerateKeysAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName) + .map(new Func1() { + @Override + public ResourceListKeys call(ResourceListKeysInner inner) { + return new ResourceListKeysImpl(inner, manager()); + } + }); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsInner.java new file mode 100644 index 000000000000..826ec8ddc570 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsInner.java @@ -0,0 +1,2069 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.CheckAvailabilityParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubPatchParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.PolicykeyResource; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleCreateOrUpdateParameters; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleProperties; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in NotificationHubs. + */ +public class NotificationHubsInner { + /** The Retrofit service to perform REST calls. */ + private NotificationHubsService service; + /** The service client containing this operation class. */ + private NotificationHubsManagementClientImpl client; + + /** + * Initializes an instance of NotificationHubsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public NotificationHubsInner(Retrofit retrofit, NotificationHubsManagementClientImpl client) { + this.service = retrofit.create(NotificationHubsService.class); + this.client = client; + } + + /** + * The interface defining all the services for NotificationHubs to be + * used by Retrofit to perform actually REST calls. + */ + interface NotificationHubsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubs checkNotificationHubAvailability" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability") + Observable> checkNotificationHubAvailability(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body CheckAvailabilityParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") + Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Body NotificationHubCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs patch" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") + Observable> patch(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Body NotificationHubPatchParameters parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") + Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs debugSend" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend") + Observable> debugSend(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Body Object parameters, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs createOrUpdateAuthorizationRule" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}") + Observable> createOrUpdateAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubs deleteAuthorizationRule" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", method = "DELETE", hasBody = true) + Observable> deleteAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs getAuthorizationRule" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}") + Observable> getAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs") + Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs listAuthorizationRules" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules") + Observable> listAuthorizationRules(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs listKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys") + Observable> listKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs regenerateKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys") + Observable> regenerateKeys(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body PolicykeyResource parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubs getPnsCredentials" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials") + Observable> getPnsCredentials(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.NotificationHubs listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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.management.notificationhubs.v2017_04_01.NotificationHubs listAuthorizationRulesNext" }) + @GET + Observable> listAuthorizationRulesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CheckAvailabilityResultInner object if successful. + */ + public CheckAvailabilityResultInner checkNotificationHubAvailability(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + return checkNotificationHubAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).toBlocking().single().body(); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkNotificationHubAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkNotificationHubAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters), serviceCallback); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResultInner object + */ + public Observable checkNotificationHubAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + return checkNotificationHubAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1, CheckAvailabilityResultInner>() { + @Override + public CheckAvailabilityResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Checks the availability of the given notificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param parameters The notificationHub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckAvailabilityResultInner object + */ + public Observable> checkNotificationHubAvailabilityWithServiceResponseAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.checkNotificationHubAvailability(resourceGroupName, namespaceName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = checkNotificationHubAvailabilityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse checkNotificationHubAvailabilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner createOrUpdate(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).toBlocking().single().body(); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters), serviceCallback); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Update a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubCreateOrUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createOrUpdate(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner patch(String resourceGroupName, String namespaceName, String notificationHubName) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture patchAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable patchAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> patchWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final NotificationHubPatchParameters parameters = null; + return service.patch(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = patchDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to patch a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner patch(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubPatchParameters parameters) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).toBlocking().single().body(); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to patch a NotificationHub Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture patchAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubPatchParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters), serviceCallback); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to patch a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable patchAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubPatchParameters parameters) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to patch a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> patchWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubPatchParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.patch(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = patchDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse patchDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String namespaceName, String notificationHubName) { + deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a notification hub associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner get(String resourceGroupName, String namespaceName, String notificationHubName) { + return getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable getAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return getWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DebugSendResponseInner object if successful. + */ + public DebugSendResponseInner debugSend(String resourceGroupName, String namespaceName, String notificationHubName) { + return debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DebugSendResponseInner object + */ + public Observable debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, DebugSendResponseInner>() { + @Override + public DebugSendResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DebugSendResponseInner object + */ + public Observable> debugSendWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Object parameters = null; + return service.debugSend(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = debugSendDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Debug send parameters + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DebugSendResponseInner object if successful. + */ + public DebugSendResponseInner debugSend(String resourceGroupName, String namespaceName, String notificationHubName, Object parameters) { + return debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).toBlocking().single().body(); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Debug send parameters + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName, Object parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters), serviceCallback); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Debug send parameters + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DebugSendResponseInner object + */ + public Observable debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName, Object parameters) { + return debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).map(new Func1, DebugSendResponseInner>() { + @Override + public DebugSendResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Debug send parameters + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DebugSendResponseInner object + */ + public Observable> debugSendWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, Object parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.debugSend(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = debugSendDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse debugSendDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param properties Properties of the Namespace AuthorizationRules. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, properties).toBlocking().single().body(); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param properties Properties of the Namespace AuthorizationRules. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, properties), serviceCallback); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param properties Properties of the Namespace AuthorizationRules. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties) { + return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, properties).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates/Updates an authorization rule for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param properties Properties of the Namespace AuthorizationRules. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> createOrUpdateAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters = new SharedAccessAuthorizationRuleCreateOrUpdateParameters(); + parameters.withProperties(properties); + return service.createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return deleteAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a notificationHub authorization rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName Authorization Rule Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SharedAccessAuthorizationRuleResourceInner object if successful. + */ + public SharedAccessAuthorizationRuleResourceInner getAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return getAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, SharedAccessAuthorizationRuleResourceInner>() { + @Override + public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets an authorization rule for a NotificationHub by name. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param authorizationRuleName authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SharedAccessAuthorizationRuleResourceInner object + */ + public Observable> getAuthorizationRuleWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getAuthorizationRuleDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getAuthorizationRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NotificationHubResourceInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String namespaceName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String namespaceName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, namespaceName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String namespaceName) { + return listWithServiceResponseAsync(resourceGroupName, namespaceName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String namespaceName) { + return listSinglePageAsync(resourceGroupName, namespaceName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NotificationHubResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String namespaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(resourceGroupName, namespaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRules(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + ServiceResponse> response = listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + return listAuthorizationRulesWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesWithServiceResponseAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + return listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, notificationHubName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + ServiceResponse> * @param resourceGroupName The name of the resource group. + ServiceResponse> * @param namespaceName The namespace name + ServiceResponse> * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesSinglePageAsync(final String resourceGroupName, final String namespaceName, final String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listAuthorizationRules(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner listKeys(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable listKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return listKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> listKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).toBlocking().single().body(); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName), serviceCallback); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String policyKey = null; + PolicykeyResource parameters = new PolicykeyResource(); + parameters.withPolicyKey(null); + return service.regenerateKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceListKeysInner object if successful. + */ + public ResourceListKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, String policyKey) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, policyKey).toBlocking().single().body(); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, String policyKey, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, policyKey), serviceCallback); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, String policyKey) { + return regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, policyKey).map(new Func1, ResourceListKeysInner>() { + @Override + public ResourceListKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param authorizationRuleName The connection string of the NotificationHub for the specified authorizationRule. + * @param policyKey Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceListKeysInner object + */ + public Observable> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, String policyKey) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (authorizationRuleName == null) { + throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + PolicykeyResource parameters = new PolicykeyResource(); + parameters.withPolicyKey(policyKey); + return service.regenerateKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse regenerateKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PnsCredentialsResourceInner object if successful. + */ + public PnsCredentialsResourceInner getPnsCredentials(String resourceGroupName, String namespaceName, String notificationHubName) { + return getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PnsCredentialsResourceInner object + */ + public Observable getPnsCredentialsAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return getPnsCredentialsWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, PnsCredentialsResourceInner>() { + @Override + public PnsCredentialsResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the PNS Credentials associated with a notification hub . + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PnsCredentialsResourceInner object + */ + public Observable> getPnsCredentialsWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getPnsCredentials(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getPnsCredentialsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getPnsCredentialsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<NotificationHubResourceInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<NotificationHubResourceInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists the notification hubs associated with a namespace. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<NotificationHubResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object if successful. + */ + public PagedList listAuthorizationRulesNext(final String nextPageLink) { + ServiceResponse> response = listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAuthorizationRulesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listAuthorizationRulesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable> listAuthorizationRulesNextAsync(final String nextPageLink) { + return listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SharedAccessAuthorizationRuleResourceInner> object + */ + public Observable>> listAuthorizationRulesNextWithServiceResponseAsync(final String nextPageLink) { + return listAuthorizationRulesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listAuthorizationRulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the authorization rules for a NotificationHub. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SharedAccessAuthorizationRuleResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listAuthorizationRulesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listAuthorizationRulesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listAuthorizationRulesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listAuthorizationRulesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsManagementClientImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsManagementClientImpl.java new file mode 100644 index 000000000000..dbd5f3e14829 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsManagementClientImpl.java @@ -0,0 +1,224 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the NotificationHubsManagementClientImpl class. + */ +public class NotificationHubsManagementClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */ + private String subscriptionId; + + /** + * Gets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** Client Api Version. */ + private String apiVersion; + + /** + * Gets Client Api Version. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** The preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets The preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets The preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public NotificationHubsManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The OperationsInner object to access its operations. + */ + private OperationsInner operations; + + /** + * Gets the OperationsInner object to access its operations. + * @return the OperationsInner object. + */ + public OperationsInner operations() { + return this.operations; + } + + /** + * The NamespacesInner object to access its operations. + */ + private NamespacesInner namespaces; + + /** + * Gets the NamespacesInner object to access its operations. + * @return the NamespacesInner object. + */ + public NamespacesInner namespaces() { + return this.namespaces; + } + + /** + * The NotificationHubsInner object to access its operations. + */ + private NotificationHubsInner notificationHubs; + + /** + * Gets the NotificationHubsInner object to access its operations. + * @return the NotificationHubsInner object. + */ + public NotificationHubsInner notificationHubs() { + return this.notificationHubs; + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param credentials the management credentials for Azure + */ + public NotificationHubsManagementClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public NotificationHubsManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of NotificationHubsManagementClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public NotificationHubsManagementClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2017-04-01"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.operations = new OperationsInner(restClient().retrofit(), this); + this.namespaces = new NamespacesInner(restClient().retrofit(), this); + this.notificationHubs = new NotificationHubsInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "NotificationHubsManagementClient", "2017-04-01"); + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsManager.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsManager.java new file mode 100644 index 000000000000..2e9200f1823d --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsManager.java @@ -0,0 +1,123 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Operations; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Namespaces; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.NotificationHubs; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure NotificationHubs resource management. + */ +public final class NotificationHubsManager extends ManagerCore { + private Operations operations; + private Namespaces namespaces; + private NotificationHubs notificationHubs; + /** + * Get a Configurable instance that can be used to create NotificationHubsManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new NotificationHubsManager.ConfigurableImpl(); + } + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the NotificationHubsManager + */ + public static NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new NotificationHubsManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the NotificationHubsManager + */ + public static NotificationHubsManager authenticate(RestClient restClient, String subscriptionId) { + return new NotificationHubsManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of NotificationHubsManager that exposes NotificationHubs management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing NotificationHubs management API entry points that work across subscriptions + */ + NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(this); + } + return this.operations; + } + + /** + * @return Entry point to manage Namespaces. + */ + public Namespaces namespaces() { + if (this.namespaces == null) { + this.namespaces = new NamespacesImpl(this); + } + return this.namespaces; + } + + /** + * @return Entry point to manage NotificationHubs. + */ + public NotificationHubs notificationHubs() { + if (this.notificationHubs == null) { + this.notificationHubs = new NotificationHubsImpl(this); + } + return this.notificationHubs; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public NotificationHubsManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return NotificationHubsManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private NotificationHubsManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new NotificationHubsManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationImpl.java new file mode 100644 index 000000000000..56f9a28ce994 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationImpl.java @@ -0,0 +1,37 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Operation; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.OperationDisplay; + +class OperationImpl extends WrapperImpl implements Operation { + private final NotificationHubsManager manager; + OperationImpl(OperationInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public OperationDisplay display() { + return this.inner().display(); + } + + @Override + public String name() { + return this.inner().name(); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationInner.java new file mode 100644 index 000000000000..f1c4a0f2b8d5 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationInner.java @@ -0,0 +1,59 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.OperationDisplay; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A NotificationHubs REST API operation. + */ +public class OperationInner { + /** + * Operation name: {provider}/{resource}/{operation}. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The object that represents the operation. + */ + @JsonProperty(value = "display") + private OperationDisplay display; + + /** + * Get operation name: {provider}/{resource}/{operation}. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the object that represents the operation. + * + * @return the display value + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Set the object that represents the operation. + * + * @param display the display value to set + * @return the OperationInner object itself. + */ + public OperationInner withDisplay(OperationDisplay display) { + this.display = display; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationsImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationsImpl.java new file mode 100644 index 000000000000..1288932250d7 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationsImpl.java @@ -0,0 +1,49 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Operations; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Operation; + +class OperationsImpl extends WrapperImpl implements Operations { + private final NotificationHubsManager manager; + + OperationsImpl(NotificationHubsManager manager) { + super(manager.inner().operations()); + this.manager = manager; + } + + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public Observable listAsync() { + OperationsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Operation call(OperationInner inner) { + return new OperationImpl(inner, manager()); + } + }); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationsInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationsInner.java new file mode 100644 index 000000000000..8373138dd537 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/OperationsInner.java @@ -0,0 +1,283 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Operations. + */ +public class OperationsInner { + /** The Retrofit service to perform REST calls. */ + private OperationsService service; + /** The service client containing this operation class. */ + private NotificationHubsManagementClientImpl client; + + /** + * Initializes an instance of OperationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public OperationsInner(Retrofit retrofit, NotificationHubsManagementClientImpl client) { + this.service = retrofit.create(OperationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Operations to be + * used by Retrofit to perform actually REST calls. + */ + interface OperationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.v2017_04_01.Operations list" }) + @GET("providers/Microsoft.NotificationHubs/operations") + Observable> list(@Query("api-version") String apiVersion, @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.management.notificationhubs.v2017_04_01.Operations listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<OperationInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<OperationInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all of the available NotificationHubs REST API operations. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PageImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PageImpl.java new file mode 100644 index 000000000000..a1234b05e73d --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PageImpl.java @@ -0,0 +1,75 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("nextLink") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PnsCredentialsResourceImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PnsCredentialsResourceImpl.java new file mode 100644 index 000000000000..81e1e1576e9e --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PnsCredentialsResourceImpl.java @@ -0,0 +1,94 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.PnsCredentialsResource; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.AdmCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.GcmCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import java.util.Map; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.WnsCredential; + +class PnsCredentialsResourceImpl extends WrapperImpl implements PnsCredentialsResource { + private final NotificationHubsManager manager; + PnsCredentialsResourceImpl(PnsCredentialsResourceInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public AdmCredential admCredential() { + return this.inner().admCredential(); + } + + @Override + public ApnsCredential apnsCredential() { + return this.inner().apnsCredential(); + } + + @Override + public BaiduCredential baiduCredential() { + return this.inner().baiduCredential(); + } + + @Override + public GcmCredential gcmCredential() { + return this.inner().gcmCredential(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public MpnsCredential mpnsCredential() { + return this.inner().mpnsCredential(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Sku sku() { + return this.inner().sku(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public WnsCredential wnsCredential() { + return this.inner().wnsCredential(); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PnsCredentialsResourceInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PnsCredentialsResourceInner.java new file mode 100644 index 000000000000..b26f39f4f08b --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/PnsCredentialsResourceInner.java @@ -0,0 +1,211 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.WnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.GcmCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.AdmCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Description of a NotificationHub PNS Credentials. + */ +@JsonFlatten +@SkipParentValidation +public class PnsCredentialsResourceInner extends Resource { + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.baiduCredential") + private BaiduCredential baiduCredential; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the PnsCredentialsResourceInner object itself. + */ + public PnsCredentialsResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/ResourceListKeysImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/ResourceListKeysImpl.java new file mode 100644 index 000000000000..468ba39610d8 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/ResourceListKeysImpl.java @@ -0,0 +1,51 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.ResourceListKeys; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ResourceListKeysImpl extends WrapperImpl implements ResourceListKeys { + private final NotificationHubsManager manager; + ResourceListKeysImpl(ResourceListKeysInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public String keyName() { + return this.inner().keyName(); + } + + @Override + public String primaryConnectionString() { + return this.inner().primaryConnectionString(); + } + + @Override + public String primaryKey() { + return this.inner().primaryKey(); + } + + @Override + public String secondaryConnectionString() { + return this.inner().secondaryConnectionString(); + } + + @Override + public String secondaryKey() { + return this.inner().secondaryKey(); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/ResourceListKeysInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/ResourceListKeysInner.java new file mode 100644 index 000000000000..8c997229f3ca --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/ResourceListKeysInner.java @@ -0,0 +1,147 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Namespace/NotificationHub Connection String. + */ +public class ResourceListKeysInner { + /** + * PrimaryConnectionString of the AuthorizationRule. + */ + @JsonProperty(value = "primaryConnectionString") + private String primaryConnectionString; + + /** + * SecondaryConnectionString of the created AuthorizationRule. + */ + @JsonProperty(value = "secondaryConnectionString") + private String secondaryConnectionString; + + /** + * PrimaryKey of the created AuthorizationRule. + */ + @JsonProperty(value = "primaryKey") + private String primaryKey; + + /** + * SecondaryKey of the created AuthorizationRule. + */ + @JsonProperty(value = "secondaryKey") + private String secondaryKey; + + /** + * KeyName of the created AuthorizationRule. + */ + @JsonProperty(value = "keyName") + private String keyName; + + /** + * Get primaryConnectionString of the AuthorizationRule. + * + * @return the primaryConnectionString value + */ + public String primaryConnectionString() { + return this.primaryConnectionString; + } + + /** + * Set primaryConnectionString of the AuthorizationRule. + * + * @param primaryConnectionString the primaryConnectionString value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withPrimaryConnectionString(String primaryConnectionString) { + this.primaryConnectionString = primaryConnectionString; + return this; + } + + /** + * Get secondaryConnectionString of the created AuthorizationRule. + * + * @return the secondaryConnectionString value + */ + public String secondaryConnectionString() { + return this.secondaryConnectionString; + } + + /** + * Set secondaryConnectionString of the created AuthorizationRule. + * + * @param secondaryConnectionString the secondaryConnectionString value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withSecondaryConnectionString(String secondaryConnectionString) { + this.secondaryConnectionString = secondaryConnectionString; + return this; + } + + /** + * Get primaryKey of the created AuthorizationRule. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Set primaryKey of the created AuthorizationRule. + * + * @param primaryKey the primaryKey value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withPrimaryKey(String primaryKey) { + this.primaryKey = primaryKey; + return this; + } + + /** + * Get secondaryKey of the created AuthorizationRule. + * + * @return the secondaryKey value + */ + public String secondaryKey() { + return this.secondaryKey; + } + + /** + * Set secondaryKey of the created AuthorizationRule. + * + * @param secondaryKey the secondaryKey value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withSecondaryKey(String secondaryKey) { + this.secondaryKey = secondaryKey; + return this; + } + + /** + * Get keyName of the created AuthorizationRule. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Set keyName of the created AuthorizationRule. + * + * @param keyName the keyName value to set + * @return the ResourceListKeysInner object itself. + */ + public ResourceListKeysInner withKeyName(String keyName) { + this.keyName = keyName; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleListResultImpl.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleListResultImpl.java new file mode 100644 index 000000000000..7f3ab68a7e7a --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleListResultImpl.java @@ -0,0 +1,37 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import com.microsoft.azure.management.notificationhubs.v2017_04_01.SharedAccessAuthorizationRuleListResult; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; + +class SharedAccessAuthorizationRuleListResultImpl extends WrapperImpl implements SharedAccessAuthorizationRuleListResult { + private final NotificationHubsManager manager; + SharedAccessAuthorizationRuleListResultImpl(SharedAccessAuthorizationRuleListResultInner inner, NotificationHubsManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public NotificationHubsManager manager() { + return this.manager; + } + + @Override + public String nextLink() { + return this.inner().nextLink(); + } + + @Override + public List value() { + return this.inner().value(); + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleListResultInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleListResultInner.java new file mode 100644 index 000000000000..9e0003fd99bd --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleListResultInner.java @@ -0,0 +1,71 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The response of the List Namespace operation. + */ +public class SharedAccessAuthorizationRuleListResultInner { + /** + * Result of the List AuthorizationRules operation. + */ + @JsonProperty(value = "value") + private List value; + + /** + * Link to the next set of results. Not empty if Value contains incomplete + * list of AuthorizationRules. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get result of the List AuthorizationRules operation. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set result of the List AuthorizationRules operation. + * + * @param value the value value to set + * @return the SharedAccessAuthorizationRuleListResultInner object itself. + */ + public SharedAccessAuthorizationRuleListResultInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get link to the next set of results. Not empty if Value contains incomplete list of AuthorizationRules. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set link to the next set of results. Not empty if Value contains incomplete list of AuthorizationRules. + * + * @param nextLink the nextLink value to set + * @return the SharedAccessAuthorizationRuleListResultInner object itself. + */ + public SharedAccessAuthorizationRuleListResultInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleResourceInner.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleResourceInner.java new file mode 100644 index 000000000000..1541fd0842e4 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/SharedAccessAuthorizationRuleResourceInner.java @@ -0,0 +1,199 @@ +/** + * 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.management.notificationhubs.v2017_04_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.AccessRights; +import com.microsoft.azure.management.notificationhubs.v2017_04_01.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Description of a Namespace AuthorizationRules. + */ +@JsonFlatten +@SkipParentValidation +public class SharedAccessAuthorizationRuleResourceInner extends Resource { + /** + * The rights associated with the rule. + */ + @JsonProperty(value = "properties.rights") + private List rights; + + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS + * token. + */ + @JsonProperty(value = "properties.primaryKey", access = JsonProperty.Access.WRITE_ONLY) + private String primaryKey; + + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS + * token. + */ + @JsonProperty(value = "properties.secondaryKey", access = JsonProperty.Access.WRITE_ONLY) + private String secondaryKey; + + /** + * A string that describes the authorization rule. + */ + @JsonProperty(value = "properties.keyName", access = JsonProperty.Access.WRITE_ONLY) + private String keyName; + + /** + * A string that describes the claim type. + */ + @JsonProperty(value = "properties.claimType", access = JsonProperty.Access.WRITE_ONLY) + private String claimType; + + /** + * A string that describes the claim value. + */ + @JsonProperty(value = "properties.claimValue", access = JsonProperty.Access.WRITE_ONLY) + private String claimValue; + + /** + * The last modified time for this rule. + */ + @JsonProperty(value = "properties.modifiedTime", access = JsonProperty.Access.WRITE_ONLY) + private String modifiedTime; + + /** + * The created time for this rule. + */ + @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) + private String createdTime; + + /** + * The revision number for the rule. + */ + @JsonProperty(value = "properties.revision", access = JsonProperty.Access.WRITE_ONLY) + private Integer revision; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the rights associated with the rule. + * + * @return the rights value + */ + public List rights() { + return this.rights; + } + + /** + * Set the rights associated with the rule. + * + * @param rights the rights value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withRights(List rights) { + this.rights = rights; + return this; + } + + /** + * Get a base64-encoded 256-bit primary key for signing and validating the SAS token. + * + * @return the primaryKey value + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Get a base64-encoded 256-bit primary key for signing and validating the SAS token. + * + * @return the secondaryKey value + */ + public String secondaryKey() { + return this.secondaryKey; + } + + /** + * Get a string that describes the authorization rule. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Get a string that describes the claim type. + * + * @return the claimType value + */ + public String claimType() { + return this.claimType; + } + + /** + * Get a string that describes the claim value. + * + * @return the claimValue value + */ + public String claimValue() { + return this.claimValue; + } + + /** + * Get the last modified time for this rule. + * + * @return the modifiedTime value + */ + public String modifiedTime() { + return this.modifiedTime; + } + + /** + * Get the created time for this rule. + * + * @return the createdTime value + */ + public String createdTime() { + return this.createdTime; + } + + /** + * Get the revision number for the rule. + * + * @return the revision value + */ + public Integer revision() { + return this.revision; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the SharedAccessAuthorizationRuleResourceInner object itself. + */ + public SharedAccessAuthorizationRuleResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/package-info.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/package-info.java new file mode 100644 index 000000000000..b105be980c7e --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for NotificationHubsManagementClient. + * Azure NotificationHub client. + */ +package com.microsoft.azure.management.notificationhubs.v2017_04_01.implementation; diff --git a/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/package-info.java b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/package-info.java new file mode 100644 index 000000000000..435ec812f8c1 --- /dev/null +++ b/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for NotificationHubsManagementClient. + * Azure NotificationHub client. + */ +package com.microsoft.azure.management.notificationhubs.v2017_04_01;