From 68ab0cd1e25d8363be206b463e2b5a3abe866e71 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 6 Nov 2023 13:33:13 +0000 Subject: [PATCH] CodeGen from PR 26570 in Azure/azure-rest-api-specs Merge e760b946255e43aff5be793e51a0d465fce3b53f into ec238f30bd6d4a0681b691908fe00b54868467de --- .../azure-resourcemanager-nginx/CHANGELOG.md | 4 +- .../azure-resourcemanager-nginx/README.md | 31 ++- .../azure-resourcemanager-nginx/SAMPLE.md | 85 +++---- sdk/nginx/azure-resourcemanager-nginx/pom.xml | 11 +- .../resourcemanager/nginx/NginxManager.java | 8 +- .../nginx/fluent/CertificatesClient.java | 52 ++-- .../nginx/fluent/ConfigurationsClient.java | 76 +++--- .../nginx/fluent/DeploymentsClient.java | 68 ++--- .../nginx/fluent/OperationsClient.java | 4 +- .../fluent/models/NginxCertificateInner.java | 41 +-- .../models/NginxConfigurationInner.java | 41 +-- .../CertificatesClientImpl.java | 165 ++++++------ .../ConfigurationsClientImpl.java | 237 +++++++++--------- .../implementation/DeploymentsClientImpl.java | 219 ++++++++-------- .../implementation/NginxCertificateImpl.java | 24 +- .../NginxConfigurationImpl.java | 24 +- .../NginxManagementClientBuilder.java | 2 +- .../NginxManagementClientImpl.java | 2 +- .../implementation/OperationsClientImpl.java | 14 +- .../nginx/implementation/Utils.java | 22 +- .../nginx/models/Certificates.java | 40 +-- .../nginx/models/Configurations.java | 48 ++-- .../nginx/models/Deployments.java | 40 +-- .../nginx/models/IdentityType.java | 9 + .../nginx/models/NginxCertificate.java | 85 +++---- .../nginx/models/NginxConfiguration.java | 85 +++---- .../models/NginxConfigurationPackage.java | 27 ++ .../nginx/models/NginxDeployment.java | 14 ++ .../models/NginxDeploymentProperties.java | 58 +++++ .../NginxDeploymentScalingProperties.java | 50 ++++ .../NginxDeploymentUpdateProperties.java | 58 +++++ .../models/NginxDeploymentUserProfile.java | 53 ++++ .../NginxPrivateIpAllocationMethod.java | 9 + .../nginx/models/Operations.java | 4 +- .../nginx/models/ProvisioningState.java | 9 + .../proxy-config.json | 1 + .../reflect-config.json | 156 ++++++++++++ .../CertificatesCreateOrUpdateSamples.java | 3 +- .../generated/CertificatesDeleteSamples.java | 6 +- .../generated/CertificatesGetSamples.java | 8 +- .../generated/CertificatesListSamples.java | 6 +- .../ConfigurationsCreateOrUpdateSamples.java | 3 +- .../ConfigurationsDeleteSamples.java | 6 +- .../generated/ConfigurationsGetSamples.java | 8 +- .../generated/ConfigurationsListSamples.java | 6 +- .../DeploymentsCreateOrUpdateSamples.java | 2 +- .../generated/DeploymentsDeleteSamples.java | 6 +- .../DeploymentsGetByResourceGroupSamples.java | 8 +- ...DeploymentsListByResourceGroupSamples.java | 6 +- .../generated/DeploymentsListSamples.java | 6 +- .../generated/DeploymentsUpdateSamples.java | 5 +- .../generated/OperationsListSamples.java | 6 +- .../CertificatesDeleteMockTests.java | 62 ----- ...ConfigurationsCreateOrUpdateMockTests.java | 98 -------- .../ConfigurationsDeleteMockTests.java | 62 ----- .../ConfigurationsListMockTests.java | 72 ------ .../DeploymentsCreateOrUpdateMockTests.java | 105 -------- .../generated/DeploymentsDeleteMockTests.java | 62 ----- ...ploymentsListByResourceGroupMockTests.java | 74 ------ .../generated/DeploymentsListMockTests.java | 74 ------ .../generated/IdentityPropertiesTests.java | 48 ---- .../NginxConfigurationFileTests.java | 31 --- .../NginxConfigurationInnerTests.java | 84 ------- .../NginxConfigurationListResponseTests.java | 88 ------- .../NginxConfigurationPackageTests.java | 26 -- .../NginxConfigurationPropertiesTests.java | 58 ----- .../generated/NginxDeploymentInnerTests.java | 83 ------ .../NginxDeploymentListResponseTests.java | 123 --------- .../NginxDeploymentPropertiesTests.java | 58 ----- .../NginxDeploymentUpdateParametersTests.java | 73 ------ .../NginxDeploymentUpdatePropertiesTests.java | 43 ---- .../NginxFrontendIpConfigurationTests.java | 61 ----- .../nginx/generated/NginxLoggingTests.java | 34 --- ...inxNetworkInterfaceConfigurationTests.java | 26 -- .../generated/NginxNetworkProfileTests.java | 74 ------ .../generated/NginxPrivateIpAddressTests.java | 38 --- .../generated/NginxPublicIpAddressTests.java | 26 -- .../generated/NginxStorageAccountTests.java | 31 --- .../generated/OperationDisplayTests.java | 40 --- .../generated/OperationListResultTests.java | 58 ----- .../generated/OperationResultInnerTests.java | 49 ---- .../generated/OperationsListMockTests.java | 73 ------ .../nginx/generated/ResourceSkuTests.java | 25 -- .../UserIdentityPropertiesTests.java | 25 -- 84 files changed, 1159 insertions(+), 2686 deletions(-) create mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentScalingProperties.java create mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUserProfile.java create mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-nginx/proxy-config.json create mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-nginx/reflect-config.json delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/CertificatesDeleteMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsCreateOrUpdateMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsDeleteMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsListMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsCreateOrUpdateMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsDeleteMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsListByResourceGroupMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsListMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/IdentityPropertiesTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationFileTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationInnerTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationListResponseTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationPackageTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationPropertiesTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentInnerTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentListResponseTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentPropertiesTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentUpdateParametersTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentUpdatePropertiesTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxFrontendIpConfigurationTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxLoggingTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxNetworkInterfaceConfigurationTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxNetworkProfileTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxPrivateIpAddressTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxPublicIpAddressTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxStorageAccountTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationDisplayTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationListResultTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationResultInnerTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationsListMockTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ResourceSkuTests.java delete mode 100644 sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/UserIdentityPropertiesTests.java diff --git a/sdk/nginx/azure-resourcemanager-nginx/CHANGELOG.md b/sdk/nginx/azure-resourcemanager-nginx/CHANGELOG.md index 65349e1b4cea..cc24197e91e7 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/CHANGELOG.md +++ b/sdk/nginx/azure-resourcemanager-nginx/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2023-11-06) + +- Azure Resource Manager Nginx client library for Java. This package contains Microsoft Azure SDK for Nginx Management SDK. Package tag package-2023-04-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/nginx/azure-resourcemanager-nginx/README.md b/sdk/nginx/azure-resourcemanager-nginx/README.md index 70657cb2732c..d24dcf1f33b5 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/README.md +++ b/sdk/nginx/azure-resourcemanager-nginx/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Nginx client library for Java. -This package contains Microsoft Azure SDK for Nginx Management SDK. Package tag package-2022-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for Nginx Management SDK. Package tag package-2023-04-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-nginx - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. -[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. - `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -83,20 +83,25 @@ See [API design][design] for general introduction on design and key concepts on ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS [docs]: https://azure.github.io/azure-sdk-for-java/ -[jdk]: https://docs.microsoft.com/java/azure/jdk/ +[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fnginx%2Fazure-resourcemanager-nginx%2FREADME.png) diff --git a/sdk/nginx/azure-resourcemanager-nginx/SAMPLE.md b/sdk/nginx/azure-resourcemanager-nginx/SAMPLE.md index ea776a54b5ed..5d8ec1a07b6c 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/SAMPLE.md +++ b/sdk/nginx/azure-resourcemanager-nginx/SAMPLE.md @@ -33,7 +33,7 @@ /** Samples for Certificates CreateOrUpdate. */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Certificates_CreateOrUpdate.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_CreateOrUpdate.json */ /** * Sample code: Certificates_CreateOrUpdate. @@ -44,7 +44,6 @@ public final class CertificatesCreateOrUpdateSamples { manager .certificates() .define("default") - .withRegion((String) null) .withExistingNginxDeployment("myResourceGroup", "myDeployment") .create(); } @@ -54,12 +53,10 @@ public final class CertificatesCreateOrUpdateSamples { ### Certificates_Delete ```java -import com.azure.core.util.Context; - /** Samples for Certificates Delete. */ public final class CertificatesDeleteSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Certificates_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_Delete.json */ /** * Sample code: Certificates_Delete. @@ -67,7 +64,7 @@ public final class CertificatesDeleteSamples { * @param manager Entry point to NginxManager. */ public static void certificatesDelete(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.certificates().delete("myResourceGroup", "myDeployment", "default", Context.NONE); + manager.certificates().delete("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE); } } ``` @@ -75,12 +72,10 @@ public final class CertificatesDeleteSamples { ### Certificates_Get ```java -import com.azure.core.util.Context; - /** Samples for Certificates Get. */ public final class CertificatesGetSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Certificates_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_Get.json */ /** * Sample code: Certificates_Get. @@ -88,7 +83,9 @@ public final class CertificatesGetSamples { * @param manager Entry point to NginxManager. */ public static void certificatesGet(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.certificates().getWithResponse("myResourceGroup", "myDeployment", "default", Context.NONE); + manager + .certificates() + .getWithResponse("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE); } } ``` @@ -96,12 +93,10 @@ public final class CertificatesGetSamples { ### Certificates_List ```java -import com.azure.core.util.Context; - /** Samples for Certificates List. */ public final class CertificatesListSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Certificates_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_List.json */ /** * Sample code: Certificates_List. @@ -109,7 +104,7 @@ public final class CertificatesListSamples { * @param manager Entry point to NginxManager. */ public static void certificatesList(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.certificates().list("myResourceGroup", "myDeployment", Context.NONE); + manager.certificates().list("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE); } } ``` @@ -120,7 +115,7 @@ public final class CertificatesListSamples { /** Samples for Configurations CreateOrUpdate. */ public final class ConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Configurations_CreateOrUpdate.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_CreateOrUpdate.json */ /** * Sample code: Configurations_CreateOrUpdate. @@ -131,7 +126,6 @@ public final class ConfigurationsCreateOrUpdateSamples { manager .configurations() .define("default") - .withRegion((String) null) .withExistingNginxDeployment("myResourceGroup", "myDeployment") .create(); } @@ -141,12 +135,10 @@ public final class ConfigurationsCreateOrUpdateSamples { ### Configurations_Delete ```java -import com.azure.core.util.Context; - /** Samples for Configurations Delete. */ public final class ConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Configurations_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_Delete.json */ /** * Sample code: Configurations_Delete. @@ -154,7 +146,7 @@ public final class ConfigurationsDeleteSamples { * @param manager Entry point to NginxManager. */ public static void configurationsDelete(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.configurations().delete("myResourceGroup", "myDeployment", "default", Context.NONE); + manager.configurations().delete("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE); } } ``` @@ -162,12 +154,10 @@ public final class ConfigurationsDeleteSamples { ### Configurations_Get ```java -import com.azure.core.util.Context; - /** Samples for Configurations Get. */ public final class ConfigurationsGetSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Configurations_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_Get.json */ /** * Sample code: Configurations_Get. @@ -175,7 +165,9 @@ public final class ConfigurationsGetSamples { * @param manager Entry point to NginxManager. */ public static void configurationsGet(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.configurations().getWithResponse("myResourceGroup", "myDeployment", "default", Context.NONE); + manager + .configurations() + .getWithResponse("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE); } } ``` @@ -183,12 +175,10 @@ public final class ConfigurationsGetSamples { ### Configurations_List ```java -import com.azure.core.util.Context; - /** Samples for Configurations List. */ public final class ConfigurationsListSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Configurations_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_List.json */ /** * Sample code: Configurations_List. @@ -196,7 +186,7 @@ public final class ConfigurationsListSamples { * @param manager Entry point to NginxManager. */ public static void configurationsList(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.configurations().list("myResourceGroup", "myDeployment", Context.NONE); + manager.configurations().list("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE); } } ``` @@ -207,7 +197,7 @@ public final class ConfigurationsListSamples { /** Samples for Deployments CreateOrUpdate. */ public final class DeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Deployments_Create.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Create.json */ /** * Sample code: Deployments_Create. @@ -228,12 +218,10 @@ public final class DeploymentsCreateOrUpdateSamples { ### Deployments_Delete ```java -import com.azure.core.util.Context; - /** Samples for Deployments Delete. */ public final class DeploymentsDeleteSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Deployments_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Delete.json */ /** * Sample code: Deployments_Delete. @@ -241,7 +229,7 @@ public final class DeploymentsDeleteSamples { * @param manager Entry point to NginxManager. */ public static void deploymentsDelete(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.deployments().delete("myResourceGroup", "myDeployment", Context.NONE); + manager.deployments().delete("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE); } } ``` @@ -249,12 +237,10 @@ public final class DeploymentsDeleteSamples { ### Deployments_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for Deployments GetByResourceGroup. */ public final class DeploymentsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Deployments_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Get.json */ /** * Sample code: Deployments_Get. @@ -262,7 +248,9 @@ public final class DeploymentsGetByResourceGroupSamples { * @param manager Entry point to NginxManager. */ public static void deploymentsGet(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.deployments().getByResourceGroupWithResponse("myResourceGroup", "myDeployment", Context.NONE); + manager + .deployments() + .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE); } } ``` @@ -270,12 +258,10 @@ public final class DeploymentsGetByResourceGroupSamples { ### Deployments_List ```java -import com.azure.core.util.Context; - /** Samples for Deployments List. */ public final class DeploymentsListSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Deployments_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_List.json */ /** * Sample code: Deployments_List. @@ -283,7 +269,7 @@ public final class DeploymentsListSamples { * @param manager Entry point to NginxManager. */ public static void deploymentsList(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.deployments().list(Context.NONE); + manager.deployments().list(com.azure.core.util.Context.NONE); } } ``` @@ -291,12 +277,10 @@ public final class DeploymentsListSamples { ### Deployments_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for Deployments ListByResourceGroup. */ public final class DeploymentsListByResourceGroupSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Deployments_ListByResourceGroup.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_ListByResourceGroup.json */ /** * Sample code: Deployments_ListByResourceGroup. @@ -304,7 +288,7 @@ public final class DeploymentsListByResourceGroupSamples { * @param manager Entry point to NginxManager. */ public static void deploymentsListByResourceGroup(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.deployments().listByResourceGroup("myResourceGroup", Context.NONE); + manager.deployments().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE); } } ``` @@ -312,13 +296,12 @@ public final class DeploymentsListByResourceGroupSamples { ### Deployments_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.nginx.models.NginxDeployment; /** Samples for Deployments Update. */ public final class DeploymentsUpdateSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Deployments_Update.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Update.json */ /** * Sample code: Deployments_Update. @@ -329,7 +312,7 @@ public final class DeploymentsUpdateSamples { NginxDeployment resource = manager .deployments() - .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE) .getValue(); resource.update().apply(); } @@ -339,12 +322,10 @@ public final class DeploymentsUpdateSamples { ### Operations_List ```java -import com.azure.core.util.Context; - /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2022-08-01/examples/Operations_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Operations_List.json */ /** * Sample code: Operations_List. @@ -352,7 +333,7 @@ public final class OperationsListSamples { * @param manager Entry point to NginxManager. */ public static void operationsList(com.azure.resourcemanager.nginx.NginxManager manager) { - manager.operations().list(Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } ``` diff --git a/sdk/nginx/azure-resourcemanager-nginx/pom.xml b/sdk/nginx/azure-resourcemanager-nginx/pom.xml index 579fd9894bc8..86efd087f36a 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/pom.xml +++ b/sdk/nginx/azure-resourcemanager-nginx/pom.xml @@ -1,3 +1,8 @@ + 4.0.0 @@ -13,7 +18,7 @@ jar Microsoft Azure SDK for Nginx Management - This package contains Microsoft Azure SDK for Nginx Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2022-08-01. + This package contains Microsoft Azure SDK for Nginx Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-04-01. https://github.com/Azure/azure-sdk-for-java @@ -38,7 +43,9 @@ UTF-8 - true + 0 + 0 + true diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/NginxManager.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/NginxManager.java index 52af7dcaf167..44a67f73041a 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/NginxManager.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/NginxManager.java @@ -215,7 +215,7 @@ public NginxManager authenticate(TokenCredential credential, AzureProfile profil .append("-") .append("com.azure.resourcemanager.nginx") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -321,8 +321,10 @@ public Operations operations() { } /** - * @return Wrapped service client NginxManagementClient providing direct access to the underlying auto-generated API - * implementation, based on Azure REST API. + * Gets wrapped service client NginxManagementClient providing direct access to the underlying auto-generated API + * implementation, based on Azure REST API. + * + * @return Wrapped service client NginxManagementClient. */ public NginxManagementClient serviceClient() { return this.clientObject; diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/CertificatesClient.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/CertificatesClient.java index e192b6921476..23157a6b6337 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/CertificatesClient.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/CertificatesClient.java @@ -16,40 +16,40 @@ /** An instance of this class provides access to all the operations defined in CertificatesClient. */ public interface CertificatesClient { /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment along with {@link Response}. + * @return a certificate of given NGINX deployment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( String resourceGroupName, String deploymentName, String certificateName, Context context); /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment. + * @return a certificate of given NGINX deployment. */ @ServiceMethod(returns = ReturnType.SINGLE) NginxCertificateInner get(String resourceGroupName, String deploymentName, String certificateName); /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -61,10 +61,10 @@ SyncPoller, NginxCertificateInner> beginCreate String resourceGroupName, String deploymentName, String certificateName); /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @param context The context to associate with this operation. @@ -82,10 +82,10 @@ SyncPoller, NginxCertificateInner> beginCreate Context context); /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -96,10 +96,10 @@ SyncPoller, NginxCertificateInner> beginCreate NginxCertificateInner createOrUpdate(String resourceGroupName, String deploymentName, String certificateName); /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @param context The context to associate with this operation. @@ -117,10 +117,10 @@ NginxCertificateInner createOrUpdate( Context context); /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -132,10 +132,10 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, String certificateName); /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -148,10 +148,10 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, String certificateName, Context context); /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -161,10 +161,10 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String deploymentName, String certificateName); /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -175,10 +175,10 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String deploymentName, String certificateName, Context context); /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -188,10 +188,10 @@ SyncPoller, Void> beginDelete( PagedIterable list(String resourceGroupName, String deploymentName); /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/ConfigurationsClient.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/ConfigurationsClient.java index fcead63a4bf6..efec5b96af94 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/ConfigurationsClient.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/ConfigurationsClient.java @@ -16,10 +16,10 @@ /** An instance of this class provides access to all the operations defined in ConfigurationsClient. */ public interface ConfigurationsClient { /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -29,10 +29,10 @@ public interface ConfigurationsClient { PagedIterable list(String resourceGroupName, String deploymentName); /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -43,44 +43,44 @@ public interface ConfigurationsClient { PagedIterable list(String resourceGroupName, String deploymentName, Context context); /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment along with {@link Response}. + * @return the NGINX configuration of given NGINX deployment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( String resourceGroupName, String deploymentName, String configurationName, Context context); /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment. + * @return the NGINX configuration of given NGINX deployment. */ @ServiceMethod(returns = ReturnType.SINGLE) NginxConfigurationInner get(String resourceGroupName, String deploymentName, String configurationName); /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -91,13 +91,13 @@ SyncPoller, NginxConfigurationInner> beginCr String resourceGroupName, String deploymentName, String configurationName); /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -113,12 +113,12 @@ SyncPoller, NginxConfigurationInner> beginCr Context context); /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -128,13 +128,13 @@ SyncPoller, NginxConfigurationInner> beginCr NginxConfigurationInner createOrUpdate(String resourceGroupName, String deploymentName, String configurationName); /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -150,12 +150,12 @@ NginxConfigurationInner createOrUpdate( Context context); /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -166,12 +166,12 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, String configurationName); /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -183,12 +183,12 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, String configurationName, Context context); /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -197,12 +197,12 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String deploymentName, String configurationName); /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/DeploymentsClient.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/DeploymentsClient.java index 7501fa801b7c..c5224ece32d2 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/DeploymentsClient.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/DeploymentsClient.java @@ -17,38 +17,38 @@ /** An instance of this class provides access to all the operations defined in DeploymentsClient. */ public interface DeploymentsClient { /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment along with {@link Response}. + * @return the NGINX deployment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( String resourceGroupName, String deploymentName, Context context); /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment. + * @return the NGINX deployment. */ @ServiceMethod(returns = ReturnType.SINGLE) NginxDeploymentInner getByResourceGroup(String resourceGroupName, String deploymentName); /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -59,10 +59,10 @@ SyncPoller, NginxDeploymentInner> beginCreateOr String resourceGroupName, String deploymentName); /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -75,10 +75,10 @@ SyncPoller, NginxDeploymentInner> beginCreateOr String resourceGroupName, String deploymentName, NginxDeploymentInner body, Context context); /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -88,10 +88,10 @@ SyncPoller, NginxDeploymentInner> beginCreateOr NginxDeploymentInner createOrUpdate(String resourceGroupName, String deploymentName); /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -104,10 +104,10 @@ NginxDeploymentInner createOrUpdate( String resourceGroupName, String deploymentName, NginxDeploymentInner body, Context context); /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -118,10 +118,10 @@ SyncPoller, NginxDeploymentInner> beginUpdate( String resourceGroupName, String deploymentName); /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,10 +134,10 @@ SyncPoller, NginxDeploymentInner> beginUpdate( String resourceGroupName, String deploymentName, NginxDeploymentUpdateParameters body, Context context); /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -147,10 +147,10 @@ SyncPoller, NginxDeploymentInner> beginUpdate( NginxDeploymentInner update(String resourceGroupName, String deploymentName); /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -163,10 +163,10 @@ NginxDeploymentInner update( String resourceGroupName, String deploymentName, NginxDeploymentUpdateParameters body, Context context); /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -176,10 +176,10 @@ NginxDeploymentInner update( SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName); /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -190,10 +190,10 @@ NginxDeploymentInner update( SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName, Context context); /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -202,10 +202,10 @@ NginxDeploymentInner update( void delete(String resourceGroupName, String deploymentName); /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -215,7 +215,7 @@ NginxDeploymentInner update( void delete(String resourceGroupName, String deploymentName, Context context); /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -225,7 +225,7 @@ NginxDeploymentInner update( PagedIterable list(); /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -237,7 +237,7 @@ NginxDeploymentInner update( PagedIterable list(Context context); /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -249,7 +249,7 @@ NginxDeploymentInner update( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/OperationsClient.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/OperationsClient.java index 5ae855bc0fc8..90a8d885454d 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/OperationsClient.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/OperationsClient.java @@ -13,7 +13,7 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public interface OperationsClient { /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -24,7 +24,7 @@ public interface OperationsClient { PagedIterable list(); /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxCertificateInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxCertificateInner.java index 6f30a3f9030d..30aa75c96a9a 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxCertificateInner.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxCertificateInner.java @@ -5,21 +5,26 @@ package com.azure.resourcemanager.nginx.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; +import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.resourcemanager.nginx.models.NginxCertificateProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; /** The NginxCertificate model. */ @Fluent -public final class NginxCertificateInner extends Resource { +public final class NginxCertificateInner extends ProxyResource { /* * The properties property. */ @JsonProperty(value = "properties") private NginxCertificateProperties properties; + /* + * The location property. + */ + @JsonProperty(value = "location") + private String location; + /* * Metadata pertaining to creation and last modification of the resource. */ @@ -51,26 +56,32 @@ public NginxCertificateInner withProperties(NginxCertificateProperties propertie } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the location property: The location property. * - * @return the systemData value. + * @return the location value. */ - public SystemData systemData() { - return this.systemData; + public String location() { + return this.location; } - /** {@inheritDoc} */ - @Override + /** + * Set the location property: The location property. + * + * @param location the location value to set. + * @return the NginxCertificateInner object itself. + */ public NginxCertificateInner withLocation(String location) { - super.withLocation(location); + this.location = location; return this; } - /** {@inheritDoc} */ - @Override - public NginxCertificateInner withTags(Map tags) { - super.withTags(tags); - return this; + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; } /** diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxConfigurationInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxConfigurationInner.java index baa62833174d..103f46f36e1c 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxConfigurationInner.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxConfigurationInner.java @@ -5,21 +5,26 @@ package com.azure.resourcemanager.nginx.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; +import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.resourcemanager.nginx.models.NginxConfigurationProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; /** The NginxConfiguration model. */ @Fluent -public final class NginxConfigurationInner extends Resource { +public final class NginxConfigurationInner extends ProxyResource { /* * The properties property. */ @JsonProperty(value = "properties") private NginxConfigurationProperties properties; + /* + * The location property. + */ + @JsonProperty(value = "location") + private String location; + /* * Metadata pertaining to creation and last modification of the resource. */ @@ -51,26 +56,32 @@ public NginxConfigurationInner withProperties(NginxConfigurationProperties prope } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the location property: The location property. * - * @return the systemData value. + * @return the location value. */ - public SystemData systemData() { - return this.systemData; + public String location() { + return this.location; } - /** {@inheritDoc} */ - @Override + /** + * Set the location property: The location property. + * + * @param location the location value to set. + * @return the NginxConfigurationInner object itself. + */ public NginxConfigurationInner withLocation(String location) { - super.withLocation(location); + this.location = location; return this; } - /** {@inheritDoc} */ - @Override - public NginxConfigurationInner withTags(Map tags) { - super.withTags(tags); - return this; + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; } /** diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/CertificatesClientImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/CertificatesClientImpl.java index 96a806995750..ae0442a2749b 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/CertificatesClientImpl.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/CertificatesClientImpl.java @@ -63,11 +63,10 @@ public final class CertificatesClientImpl implements CertificatesClient { */ @Host("{$host}") @ServiceInterface(name = "NginxManagementClien") - private interface CertificatesService { + public interface CertificatesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}/certificates/{certificateName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -82,8 +81,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}/certificates/{certificateName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -99,8 +97,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}/certificates/{certificateName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -115,8 +112,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}/certificates") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -140,15 +136,15 @@ Mono> listNext( } /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment along with {@link Response} on successful completion of {@link + * @return a certificate of given NGINX deployment along with {@link Response} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -195,16 +191,16 @@ private Mono> getWithResponseAsync( } /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment along with {@link Response} on successful completion of {@link + * @return a certificate of given NGINX deployment along with {@link Response} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -248,15 +244,15 @@ private Mono> getWithResponseAsync( } /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment on successful completion of {@link Mono}. + * @return a certificate of given NGINX deployment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -266,16 +262,16 @@ private Mono getAsync( } /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment along with {@link Response}. + * @return a certificate of given NGINX deployment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -284,15 +280,15 @@ public Response getWithResponse( } /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment. + * @return a certificate of given NGINX deployment. */ @ServiceMethod(returns = ReturnType.SINGLE) public NginxCertificateInner get(String resourceGroupName, String deploymentName, String certificateName) { @@ -300,10 +296,10 @@ public NginxCertificateInner get(String resourceGroupName, String deploymentName } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -359,10 +355,10 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @param context The context to associate with this operation. @@ -420,10 +416,10 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -447,10 +443,10 @@ private PollerFlux, NginxCertificateInner> beg } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -474,10 +470,10 @@ private PollerFlux, NginxCertificateInner> beg } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @param context The context to associate with this operation. @@ -503,10 +499,10 @@ private PollerFlux, NginxCertificateInner> beg } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -517,14 +513,14 @@ private PollerFlux, NginxCertificateInner> beg public SyncPoller, NginxCertificateInner> beginCreateOrUpdate( String resourceGroupName, String deploymentName, String certificateName) { final NginxCertificateInner body = null; - return beginCreateOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body).getSyncPoller(); } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @param context The context to associate with this operation. @@ -540,15 +536,16 @@ public SyncPoller, NginxCertificateInner> begi String certificateName, NginxCertificateInner body, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body, context) + return this + .beginCreateOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body, context) .getSyncPoller(); } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -565,10 +562,10 @@ private Mono createOrUpdateAsync( } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -585,10 +582,10 @@ private Mono createOrUpdateAsync( } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @param context The context to associate with this operation. @@ -610,10 +607,10 @@ private Mono createOrUpdateAsync( } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -628,10 +625,10 @@ public NginxCertificateInner createOrUpdate( } /** - * Create or update the Nginx certificates for given Nginx deployment. + * Create or update the NGINX certificates for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param body The certificate. * @param context The context to associate with this operation. @@ -651,10 +648,10 @@ public NginxCertificateInner createOrUpdate( } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -705,10 +702,10 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -757,10 +754,10 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -779,10 +776,10 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -802,10 +799,10 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -815,14 +812,14 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, String certificateName) { - return beginDeleteAsync(resourceGroupName, deploymentName, certificateName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, deploymentName, certificateName).getSyncPoller(); } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -833,14 +830,14 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, String certificateName, Context context) { - return beginDeleteAsync(resourceGroupName, deploymentName, certificateName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, deploymentName, certificateName, context).getSyncPoller(); } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -855,10 +852,10 @@ private Mono deleteAsync(String resourceGroupName, String deploymentName, } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -875,10 +872,10 @@ private Mono deleteAsync( } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -890,10 +887,10 @@ public void delete(String resourceGroupName, String deploymentName, String certi } /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -906,10 +903,10 @@ public void delete(String resourceGroupName, String deploymentName, String certi } /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -963,10 +960,10 @@ private Mono> listSinglePageAsync( } /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1018,10 +1015,10 @@ private Mono> listSinglePageAsync( } /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1035,10 +1032,10 @@ private PagedFlux listAsync(String resourceGroupName, Str } /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1054,10 +1051,10 @@ private PagedFlux listAsync( } /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1069,10 +1066,10 @@ public PagedIterable list(String resourceGroupName, Strin } /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/ConfigurationsClientImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/ConfigurationsClientImpl.java index 4777108c0128..b3f7fcd65256 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/ConfigurationsClientImpl.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/ConfigurationsClientImpl.java @@ -63,11 +63,10 @@ public final class ConfigurationsClientImpl implements ConfigurationsClient { */ @Host("{$host}") @ServiceInterface(name = "NginxManagementClien") - private interface ConfigurationsService { + public interface ConfigurationsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}/configurations") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -81,8 +80,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}/configurations/{configurationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -97,8 +95,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}/configurations/{configurationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -114,8 +111,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}/configurations/{configurationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -140,10 +136,10 @@ Mono> listNext( } /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -197,10 +193,10 @@ private Mono> listSinglePageAsync( } /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -252,10 +248,10 @@ private Mono> listSinglePageAsync( } /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -269,10 +265,10 @@ private PagedFlux listAsync(String resourceGroupName, S } /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -288,10 +284,10 @@ private PagedFlux listAsync( } /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -303,10 +299,10 @@ public PagedIterable list(String resourceGroupName, Str } /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -320,16 +316,16 @@ public PagedIterable list( } /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment along with {@link Response} on successful completion of + * @return the NGINX configuration of given NGINX deployment along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -376,17 +372,17 @@ private Mono> getWithResponseAsync( } /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment along with {@link Response} on successful completion of + * @return the NGINX configuration of given NGINX deployment along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -430,16 +426,16 @@ private Mono> getWithResponseAsync( } /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment on successful completion of {@link Mono}. + * @return the NGINX configuration of given NGINX deployment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -449,17 +445,17 @@ private Mono getAsync( } /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment along with {@link Response}. + * @return the NGINX configuration of given NGINX deployment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -468,16 +464,16 @@ public Response getWithResponse( } /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment. + * @return the NGINX configuration of given NGINX deployment. */ @ServiceMethod(returns = ReturnType.SINGLE) public NginxConfigurationInner get(String resourceGroupName, String deploymentName, String configurationName) { @@ -485,13 +481,13 @@ public NginxConfigurationInner get(String resourceGroupName, String deploymentNa } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -545,13 +541,13 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -607,13 +603,13 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -635,12 +631,12 @@ private PollerFlux, NginxConfigurationInner> } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -663,13 +659,13 @@ private PollerFlux, NginxConfigurationInner> } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -697,12 +693,12 @@ private PollerFlux, NginxConfigurationInner> } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -712,17 +708,19 @@ private PollerFlux, NginxConfigurationInner> public SyncPoller, NginxConfigurationInner> beginCreateOrUpdate( String resourceGroupName, String deploymentName, String configurationName) { final NginxConfigurationInner body = null; - return beginCreateOrUpdateAsync(resourceGroupName, deploymentName, configurationName, body).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, deploymentName, configurationName, body) + .getSyncPoller(); } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -736,18 +734,19 @@ public SyncPoller, NginxConfigurationInner> String configurationName, NginxConfigurationInner body, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, deploymentName, configurationName, body, context) + return this + .beginCreateOrUpdateAsync(resourceGroupName, deploymentName, configurationName, body, context) .getSyncPoller(); } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -762,12 +761,12 @@ private Mono createOrUpdateAsync( } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -783,13 +782,13 @@ private Mono createOrUpdateAsync( } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -809,12 +808,12 @@ private Mono createOrUpdateAsync( } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -828,13 +827,13 @@ public NginxConfigurationInner createOrUpdate( } /** - * Create or update the Nginx configuration for given Nginx deployment. + * Create or update the NGINX configuration for given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. - * @param body The Nginx configuration. + * NGINX conf. + * @param body The NGINX configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -852,12 +851,12 @@ public NginxConfigurationInner createOrUpdate( } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -907,12 +906,12 @@ private Mono>> deleteWithResponseAsync( } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -960,12 +959,12 @@ private Mono>> deleteWithResponseAsync( } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -983,12 +982,12 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1007,12 +1006,12 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1021,16 +1020,16 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, String configurationName) { - return beginDeleteAsync(resourceGroupName, deploymentName, configurationName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, deploymentName, configurationName).getSyncPoller(); } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1040,16 +1039,16 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, String configurationName, Context context) { - return beginDeleteAsync(resourceGroupName, deploymentName, configurationName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, deploymentName, configurationName, context).getSyncPoller(); } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1063,12 +1062,12 @@ private Mono deleteAsync(String resourceGroupName, String deploymentName, } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1084,12 +1083,12 @@ private Mono deleteAsync( } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1100,12 +1099,12 @@ public void delete(String resourceGroupName, String deploymentName, String confi } /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/DeploymentsClientImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/DeploymentsClientImpl.java index de3b1dcc6641..5e58b10171da 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/DeploymentsClientImpl.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/DeploymentsClientImpl.java @@ -65,11 +65,10 @@ public final class DeploymentsClientImpl implements DeploymentsClient { */ @Host("{$host}") @ServiceInterface(name = "NginxManagementClien") - private interface DeploymentsService { + public interface DeploymentsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -83,8 +82,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -99,8 +97,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -115,8 +112,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments/{deploymentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -141,8 +137,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus" - + "/nginxDeployments") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -175,14 +170,14 @@ Mono> listByResourceGroupNext( } /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment along with {@link Response} on successful completion of {@link Mono}. + * @return the NGINX deployment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -223,15 +218,15 @@ private Mono> getByResourceGroupWithResponseAsync } /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment along with {@link Response} on successful completion of {@link Mono}. + * @return the NGINX deployment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -269,14 +264,14 @@ private Mono> getByResourceGroupWithResponseAsync } /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment on successful completion of {@link Mono}. + * @return the NGINX deployment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String deploymentName) { @@ -285,15 +280,15 @@ private Mono getByResourceGroupAsync(String resourceGroupN } /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment along with {@link Response}. + * @return the NGINX deployment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -302,14 +297,14 @@ public Response getByResourceGroupWithResponse( } /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment. + * @return the NGINX deployment. */ @ServiceMethod(returns = ReturnType.SINGLE) public NginxDeploymentInner getByResourceGroup(String resourceGroupName, String deploymentName) { @@ -317,10 +312,10 @@ public NginxDeploymentInner getByResourceGroup(String resourceGroupName, String } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -370,10 +365,10 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -421,10 +416,10 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -447,10 +442,10 @@ private PollerFlux, NginxDeploymentInner> begin } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -473,10 +468,10 @@ private PollerFlux, NginxDeploymentInner> begin } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -497,10 +492,10 @@ private PollerFlux, NginxDeploymentInner> begin } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -510,14 +505,14 @@ private PollerFlux, NginxDeploymentInner> begin public SyncPoller, NginxDeploymentInner> beginCreateOrUpdate( String resourceGroupName, String deploymentName) { final NginxDeploymentInner body = null; - return beginCreateOrUpdateAsync(resourceGroupName, deploymentName, body).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, deploymentName, body).getSyncPoller(); } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -528,14 +523,14 @@ public SyncPoller, NginxDeploymentInner> beginC @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NginxDeploymentInner> beginCreateOrUpdate( String resourceGroupName, String deploymentName, NginxDeploymentInner body, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, deploymentName, body, context).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, deploymentName, body, context).getSyncPoller(); } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -551,10 +546,10 @@ private Mono createOrUpdateAsync( } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -569,10 +564,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -589,10 +584,10 @@ private Mono createOrUpdateAsync( } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -605,10 +600,10 @@ public NginxDeploymentInner createOrUpdate(String resourceGroupName, String depl } /** - * Create or update the Nginx deployment. + * Create or update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -623,10 +618,10 @@ public NginxDeploymentInner createOrUpdate( } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -676,10 +671,10 @@ private Mono>> updateWithResponseAsync( } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -727,10 +722,10 @@ private Mono>> updateWithResponseAsync( } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -752,10 +747,10 @@ private PollerFlux, NginxDeploymentInner> begin } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -777,10 +772,10 @@ private PollerFlux, NginxDeploymentInner> begin } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -801,10 +796,10 @@ private PollerFlux, NginxDeploymentInner> begin } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -814,14 +809,14 @@ private PollerFlux, NginxDeploymentInner> begin public SyncPoller, NginxDeploymentInner> beginUpdate( String resourceGroupName, String deploymentName) { final NginxDeploymentUpdateParameters body = null; - return beginUpdateAsync(resourceGroupName, deploymentName, body).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, deploymentName, body).getSyncPoller(); } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -832,14 +827,14 @@ public SyncPoller, NginxDeploymentInner> beginU @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NginxDeploymentInner> beginUpdate( String resourceGroupName, String deploymentName, NginxDeploymentUpdateParameters body, Context context) { - return beginUpdateAsync(resourceGroupName, deploymentName, body, context).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, deploymentName, body, context).getSyncPoller(); } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -855,10 +850,10 @@ private Mono updateAsync( } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -873,10 +868,10 @@ private Mono updateAsync(String resourceGroupName, String } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -893,10 +888,10 @@ private Mono updateAsync( } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -909,10 +904,10 @@ public NginxDeploymentInner update(String resourceGroupName, String deploymentNa } /** - * Update the Nginx deployment. + * Update the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param body The body parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -927,10 +922,10 @@ public NginxDeploymentInner update( } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -974,10 +969,10 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1020,10 +1015,10 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1039,10 +1034,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1060,10 +1055,10 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1071,14 +1066,14 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName) { - return beginDeleteAsync(resourceGroupName, deploymentName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, deploymentName).getSyncPoller(); } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1088,14 +1083,14 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String deploymentName, Context context) { - return beginDeleteAsync(resourceGroupName, deploymentName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, deploymentName, context).getSyncPoller(); } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1109,10 +1104,10 @@ private Mono deleteAsync(String resourceGroupName, String deploymentName) } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1127,10 +1122,10 @@ private Mono deleteAsync(String resourceGroupName, String deploymentName, } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1141,10 +1136,10 @@ public void delete(String resourceGroupName, String deploymentName) { } /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1156,7 +1151,7 @@ public void delete(String resourceGroupName, String deploymentName, Context cont } /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1200,7 +1195,7 @@ private Mono> listSinglePageAsync() { } /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1243,7 +1238,7 @@ private Mono> listSinglePageAsync(Context co } /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1255,7 +1250,7 @@ private PagedFlux listAsync() { } /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1270,7 +1265,7 @@ private PagedFlux listAsync(Context context) { } /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1282,7 +1277,7 @@ public PagedIterable list() { } /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1296,7 +1291,7 @@ public PagedIterable list(Context context) { } /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1347,7 +1342,7 @@ private Mono> listByResourceGroupSinglePageA } /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -1397,7 +1392,7 @@ private Mono> listByResourceGroupSinglePageA } /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1413,7 +1408,7 @@ private PagedFlux listByResourceGroupAsync(String resource } /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -1430,7 +1425,7 @@ private PagedFlux listByResourceGroupAsync(String resource } /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1444,7 +1439,7 @@ public PagedIterable listByResourceGroup(String resourceGr } /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxCertificateImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxCertificateImpl.java index 962b0f3bf1b2..084091315b70 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxCertificateImpl.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxCertificateImpl.java @@ -10,8 +10,6 @@ import com.azure.resourcemanager.nginx.fluent.models.NginxCertificateInner; import com.azure.resourcemanager.nginx.models.NginxCertificate; import com.azure.resourcemanager.nginx.models.NginxCertificateProperties; -import java.util.Collections; -import java.util.Map; public final class NginxCertificateImpl implements NginxCertificate, NginxCertificate.Definition, NginxCertificate.Update { @@ -31,23 +29,14 @@ public String type() { return this.innerModel().type(); } - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - public NginxCertificateProperties properties() { return this.innerModel().properties(); } + public String location() { + return this.innerModel().location(); + } + public SystemData systemData() { return this.innerModel().systemData(); } @@ -169,11 +158,6 @@ public NginxCertificateImpl withRegion(String location) { return this; } - public NginxCertificateImpl withTags(Map tags) { - this.innerModel().withTags(tags); - return this; - } - public NginxCertificateImpl withProperties(NginxCertificateProperties properties) { this.innerModel().withProperties(properties); return this; diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxConfigurationImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxConfigurationImpl.java index bfed32cb0571..f3485fa416b4 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxConfigurationImpl.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxConfigurationImpl.java @@ -10,8 +10,6 @@ import com.azure.resourcemanager.nginx.fluent.models.NginxConfigurationInner; import com.azure.resourcemanager.nginx.models.NginxConfiguration; import com.azure.resourcemanager.nginx.models.NginxConfigurationProperties; -import java.util.Collections; -import java.util.Map; public final class NginxConfigurationImpl implements NginxConfiguration, NginxConfiguration.Definition, NginxConfiguration.Update { @@ -31,23 +29,14 @@ public String type() { return this.innerModel().type(); } - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - public NginxConfigurationProperties properties() { return this.innerModel().properties(); } + public String location() { + return this.innerModel().location(); + } + public SystemData systemData() { return this.innerModel().systemData(); } @@ -169,11 +158,6 @@ public NginxConfigurationImpl withRegion(String location) { return this; } - public NginxConfigurationImpl withTags(Map tags) { - this.innerModel().withTags(tags); - return this; - } - public NginxConfigurationImpl withProperties(NginxConfigurationProperties properties) { this.innerModel().withProperties(properties); return this; diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxManagementClientBuilder.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxManagementClientBuilder.java index 4be4713561d9..592812881c69 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxManagementClientBuilder.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxManagementClientBuilder.java @@ -137,7 +137,7 @@ public NginxManagementClientImpl buildClient() { localSerializerAdapter, localDefaultPollInterval, localEnvironment, - subscriptionId, + this.subscriptionId, localEndpoint); return client; } diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxManagementClientImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxManagementClientImpl.java index d010b62790a9..0461ae589bcd 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxManagementClientImpl.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/NginxManagementClientImpl.java @@ -181,7 +181,7 @@ public OperationsClient getOperations() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-08-01"; + this.apiVersion = "2023-04-01"; this.certificates = new CertificatesClientImpl(this); this.configurations = new ConfigurationsClientImpl(this); this.deployments = new DeploymentsClientImpl(this); diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/OperationsClientImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/OperationsClientImpl.java index c2aa9788b101..e5efc5f8ccaa 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/OperationsClientImpl.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/OperationsClientImpl.java @@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "NginxManagementClien") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Nginx.NginxPlus/operations") @ExpectedResponses({200}) @@ -78,7 +78,7 @@ Mono> listNext( } /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -110,7 +110,7 @@ private Mono> listSinglePageAsync() { } /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -143,7 +143,7 @@ private Mono> listSinglePageAsync(Context co } /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -155,7 +155,7 @@ private PagedFlux listAsync() { } /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -170,7 +170,7 @@ private PagedFlux listAsync(Context context) { } /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -183,7 +183,7 @@ public PagedIterable list() { } /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/Utils.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/Utils.java index acdfd8fe4dbf..db841277811e 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/Utils.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/Utils.java @@ -20,6 +20,9 @@ import reactor.core.publisher.Flux; final class Utils { + private Utils() { + } + static String getValueFromIdByName(String id, String name) { if (id == null) { return null; @@ -60,7 +63,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri segments.add(idSegment); idItrReverted.forEachRemaining(segments::add); Collections.reverse(segments); - if (segments.size() > 0 && segments.get(0).isEmpty()) { + if (!segments.isEmpty() && segments.get(0).isEmpty()) { segments.remove(0); } return String.join("/", segments); @@ -74,7 +77,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri } static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { - return new PagedIterableImpl(pageIterable, mapper); + return new PagedIterableImpl<>(pageIterable, mapper); } private static final class PagedIterableImpl extends PagedIterable { @@ -133,30 +136,27 @@ public Stream> streamByPage(String continuationToken, int prefe @Override public Iterator iterator() { - return new IteratorImpl(pagedIterable.iterator(), mapper); + return new IteratorImpl<>(pagedIterable.iterator(), mapper); } @Override public Iterable> iterableByPage() { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper); } @Override public Iterable> iterableByPage(int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(preferredPageSize), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); } } @@ -198,7 +198,7 @@ private IterableImpl(Iterable iterable, Function mapper) { @Override public Iterator iterator() { - return new IteratorImpl(iterable.iterator(), mapper); + return new IteratorImpl<>(iterable.iterator(), mapper); } } } diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Certificates.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Certificates.java index 6fee296cd779..991c8fbe28fe 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Certificates.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Certificates.java @@ -11,38 +11,38 @@ /** Resource collection API of Certificates. */ public interface Certificates { /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment along with {@link Response}. + * @return a certificate of given NGINX deployment along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String deploymentName, String certificateName, Context context); /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment. + * @return a certificate of given NGINX deployment. */ NginxCertificate get(String resourceGroupName, String deploymentName, String certificateName); /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -51,10 +51,10 @@ Response getWithResponse( void delete(String resourceGroupName, String deploymentName, String certificateName); /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param certificateName The name of certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -64,10 +64,10 @@ Response getWithResponse( void delete(String resourceGroupName, String deploymentName, String certificateName, Context context); /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -76,10 +76,10 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String deploymentName); /** - * List all certificates of given Nginx deployment. + * List all certificates of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -89,30 +89,30 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String deploymentName, Context context); /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment along with {@link Response}. + * @return a certificate of given NGINX deployment along with {@link Response}. */ NginxCertificate getById(String id); /** - * Get a certificate of given Nginx deployment. + * Get a certificate of given NGINX deployment. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a certificate of given Nginx deployment along with {@link Response}. + * @return a certificate of given NGINX deployment along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,7 +122,7 @@ Response getWithResponse( void deleteById(String id); /** - * Deletes a certificate from the nginx deployment. + * Deletes a certificate from the NGINX deployment. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Configurations.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Configurations.java index 6e44cab84012..6434207e1b1a 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Configurations.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Configurations.java @@ -11,10 +11,10 @@ /** Resource collection API of Configurations. */ public interface Configurations { /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -23,10 +23,10 @@ public interface Configurations { PagedIterable list(String resourceGroupName, String deploymentName); /** - * List the Nginx configuration of given Nginx deployment. + * List the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,42 +36,42 @@ public interface Configurations { PagedIterable list(String resourceGroupName, String deploymentName, Context context); /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment along with {@link Response}. + * @return the NGINX configuration of given NGINX deployment along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String deploymentName, String configurationName, Context context); /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment. + * @return the NGINX configuration of given NGINX deployment. */ NginxConfiguration get(String resourceGroupName, String deploymentName, String configurationName); /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -79,12 +79,12 @@ Response getWithResponse( void delete(String resourceGroupName, String deploymentName, String configurationName); /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param configurationName The name of configuration, only 'default' is supported value due to the singleton of - * Nginx conf. + * NGINX conf. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -93,30 +93,30 @@ Response getWithResponse( void delete(String resourceGroupName, String deploymentName, String configurationName, Context context); /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment along with {@link Response}. + * @return the NGINX configuration of given NGINX deployment along with {@link Response}. */ NginxConfiguration getById(String id); /** - * Get the Nginx configuration of given Nginx deployment. + * Get the NGINX configuration of given NGINX deployment. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx configuration of given Nginx deployment along with {@link Response}. + * @return the NGINX configuration of given NGINX deployment along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -126,7 +126,7 @@ Response getWithResponse( void deleteById(String id); /** - * Reset the Nginx configuration of given Nginx deployment to default. + * Reset the NGINX configuration of given NGINX deployment to default. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Deployments.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Deployments.java index 26c1116849d6..41f3af5fdbeb 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Deployments.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/Deployments.java @@ -11,36 +11,36 @@ /** Resource collection API of Deployments. */ public interface Deployments { /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment along with {@link Response}. + * @return the NGINX deployment along with {@link Response}. */ Response getByResourceGroupWithResponse( String resourceGroupName, String deploymentName, Context context); /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment. + * @return the NGINX deployment. */ NginxDeployment getByResourceGroup(String resourceGroupName, String deploymentName); /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -48,10 +48,10 @@ Response getByResourceGroupWithResponse( void deleteByResourceGroup(String resourceGroupName, String deploymentName); /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -60,7 +60,7 @@ Response getByResourceGroupWithResponse( void delete(String resourceGroupName, String deploymentName, Context context); /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -69,7 +69,7 @@ Response getByResourceGroupWithResponse( PagedIterable list(); /** - * List the Nginx deployments resources. + * List the NGINX deployments resources. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -80,7 +80,7 @@ Response getByResourceGroupWithResponse( PagedIterable list(Context context); /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -91,7 +91,7 @@ Response getByResourceGroupWithResponse( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all Nginx deployments under the specified resource group. + * List all NGINX deployments under the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -103,30 +103,30 @@ Response getByResourceGroupWithResponse( PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment along with {@link Response}. + * @return the NGINX deployment along with {@link Response}. */ NginxDeployment getById(String id); /** - * Get the Nginx deployment. + * Get the NGINX deployment. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Nginx deployment along with {@link Response}. + * @return the NGINX deployment along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -136,7 +136,7 @@ Response getByResourceGroupWithResponse( void deleteById(String id); /** - * Delete the Nginx deployment resource. + * Delete the NGINX deployment resource. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/IdentityType.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/IdentityType.java index 041c67d581b5..8113ce85e3f3 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/IdentityType.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/IdentityType.java @@ -22,6 +22,15 @@ public final class IdentityType extends ExpandableStringEnum { /** Static value None for IdentityType. */ public static final IdentityType NONE = fromString("None"); + /** + * Creates a new instance of IdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public IdentityType() { + } + /** * Creates or finds a IdentityType from its string representation. * diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxCertificate.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxCertificate.java index ca14c7b17696..5b762e52ea87 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxCertificate.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxCertificate.java @@ -8,7 +8,6 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.nginx.fluent.models.NginxCertificateInner; -import java.util.Map; /** An immutable client-side representation of NginxCertificate. */ public interface NginxCertificate { @@ -34,25 +33,18 @@ public interface NginxCertificate { String type(); /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. + * Gets the properties property: The properties property. * - * @return the tags value. + * @return the properties value. */ - Map tags(); + NginxCertificateProperties properties(); /** - * Gets the properties property: The properties property. + * Gets the location property: The location property. * - * @return the properties value. + * @return the location value. */ - NginxCertificateProperties properties(); + String location(); /** * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. @@ -91,50 +83,32 @@ public interface NginxCertificate { /** The entirety of the NginxCertificate definition. */ interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } + /** The NginxCertificate definition stages. */ interface DefinitionStages { /** The first stage of the NginxCertificate definition. */ - interface Blank extends WithLocation { + interface Blank extends WithParentResource { } - /** The stage of the NginxCertificate definition allowing to specify location. */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } /** The stage of the NginxCertificate definition allowing to specify parent resource. */ interface WithParentResource { /** * Specifies resourceGroupName, deploymentName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @return the next definition stage. */ WithCreate withExistingNginxDeployment(String resourceGroupName, String deploymentName); } + /** * The stage of the NginxCertificate definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + interface WithCreate extends DefinitionStages.WithLocation, DefinitionStages.WithProperties { /** * Executes the create request. * @@ -150,16 +124,26 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithPro */ NginxCertificate create(Context context); } - /** The stage of the NginxCertificate definition allowing to specify tags. */ - interface WithTags { + + /** The stage of the NginxCertificate definition allowing to specify location. */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The location property. + * @return the next definition stage. + */ + WithCreate withRegion(Region location); + /** - * Specifies the tags property: Resource tags.. + * Specifies the region for the resource. * - * @param tags Resource tags. + * @param location The location property. * @return the next definition stage. */ - WithCreate withTags(Map tags); + WithCreate withRegion(String location); } + /** The stage of the NginxCertificate definition allowing to specify properties. */ interface WithProperties { /** @@ -171,6 +155,7 @@ interface WithProperties { WithCreate withProperties(NginxCertificateProperties properties); } } + /** * Begins update for the NginxCertificate resource. * @@ -179,7 +164,7 @@ interface WithProperties { NginxCertificate.Update update(); /** The template for NginxCertificate update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + interface Update extends UpdateStages.WithProperties { /** * Executes the update request. * @@ -195,18 +180,9 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { */ NginxCertificate apply(Context context); } + /** The NginxCertificate update stages. */ interface UpdateStages { - /** The stage of the NginxCertificate update allowing to specify tags. */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } /** The stage of the NginxCertificate update allowing to specify properties. */ interface WithProperties { /** @@ -218,6 +194,7 @@ interface WithProperties { Update withProperties(NginxCertificateProperties properties); } } + /** * Refreshes the resource to sync with Azure. * diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxConfiguration.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxConfiguration.java index aeaf4e8a40cc..dd839ee901b9 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxConfiguration.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxConfiguration.java @@ -8,7 +8,6 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.nginx.fluent.models.NginxConfigurationInner; -import java.util.Map; /** An immutable client-side representation of NginxConfiguration. */ public interface NginxConfiguration { @@ -34,25 +33,18 @@ public interface NginxConfiguration { String type(); /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. + * Gets the properties property: The properties property. * - * @return the tags value. + * @return the properties value. */ - Map tags(); + NginxConfigurationProperties properties(); /** - * Gets the properties property: The properties property. + * Gets the location property: The location property. * - * @return the properties value. + * @return the location value. */ - NginxConfigurationProperties properties(); + String location(); /** * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. @@ -91,50 +83,32 @@ public interface NginxConfiguration { /** The entirety of the NginxConfiguration definition. */ interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } + /** The NginxConfiguration definition stages. */ interface DefinitionStages { /** The first stage of the NginxConfiguration definition. */ - interface Blank extends WithLocation { + interface Blank extends WithParentResource { } - /** The stage of the NginxConfiguration definition allowing to specify location. */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } /** The stage of the NginxConfiguration definition allowing to specify parent resource. */ interface WithParentResource { /** * Specifies resourceGroupName, deploymentName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of targeted Nginx deployment. + * @param deploymentName The name of targeted NGINX deployment. * @return the next definition stage. */ WithCreate withExistingNginxDeployment(String resourceGroupName, String deploymentName); } + /** * The stage of the NginxConfiguration definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + interface WithCreate extends DefinitionStages.WithLocation, DefinitionStages.WithProperties { /** * Executes the create request. * @@ -150,16 +124,26 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithPro */ NginxConfiguration create(Context context); } - /** The stage of the NginxConfiguration definition allowing to specify tags. */ - interface WithTags { + + /** The stage of the NginxConfiguration definition allowing to specify location. */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The location property. + * @return the next definition stage. + */ + WithCreate withRegion(Region location); + /** - * Specifies the tags property: Resource tags.. + * Specifies the region for the resource. * - * @param tags Resource tags. + * @param location The location property. * @return the next definition stage. */ - WithCreate withTags(Map tags); + WithCreate withRegion(String location); } + /** The stage of the NginxConfiguration definition allowing to specify properties. */ interface WithProperties { /** @@ -171,6 +155,7 @@ interface WithProperties { WithCreate withProperties(NginxConfigurationProperties properties); } } + /** * Begins update for the NginxConfiguration resource. * @@ -179,7 +164,7 @@ interface WithProperties { NginxConfiguration.Update update(); /** The template for NginxConfiguration update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + interface Update extends UpdateStages.WithProperties { /** * Executes the update request. * @@ -195,18 +180,9 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { */ NginxConfiguration apply(Context context); } + /** The NginxConfiguration update stages. */ interface UpdateStages { - /** The stage of the NginxConfiguration update allowing to specify tags. */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } /** The stage of the NginxConfiguration update allowing to specify properties. */ interface WithProperties { /** @@ -218,6 +194,7 @@ interface WithProperties { Update withProperties(NginxConfigurationProperties properties); } } + /** * Refreshes the resource to sync with Azure. * diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxConfigurationPackage.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxConfigurationPackage.java index 34682cad22a4..8ec48f15f8ea 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxConfigurationPackage.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxConfigurationPackage.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** The NginxConfigurationPackage model. */ @Fluent @@ -16,6 +17,12 @@ public final class NginxConfigurationPackage { @JsonProperty(value = "data") private String data; + /* + * The protectedFiles property. + */ + @JsonProperty(value = "protectedFiles") + private List protectedFiles; + /** Creates an instance of NginxConfigurationPackage class. */ public NginxConfigurationPackage() { } @@ -40,6 +47,26 @@ public NginxConfigurationPackage withData(String data) { return this; } + /** + * Get the protectedFiles property: The protectedFiles property. + * + * @return the protectedFiles value. + */ + public List protectedFiles() { + return this.protectedFiles; + } + + /** + * Set the protectedFiles property: The protectedFiles property. + * + * @param protectedFiles the protectedFiles value to set. + * @return the NginxConfigurationPackage object itself. + */ + public NginxConfigurationPackage withProtectedFiles(List protectedFiles) { + this.protectedFiles = protectedFiles; + return this; + } + /** * Validates the instance. * diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeployment.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeployment.java index 20c91245ce98..ebfaf217012f 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeployment.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeployment.java @@ -110,11 +110,13 @@ interface Definition DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { } + /** The NginxDeployment definition stages. */ interface DefinitionStages { /** The first stage of the NginxDeployment definition. */ interface Blank extends WithLocation { } + /** The stage of the NginxDeployment definition allowing to specify location. */ interface WithLocation { /** @@ -133,6 +135,7 @@ interface WithLocation { */ WithResourceGroup withRegion(String location); } + /** The stage of the NginxDeployment definition allowing to specify parent resource. */ interface WithResourceGroup { /** @@ -143,6 +146,7 @@ interface WithResourceGroup { */ WithCreate withExistingResourceGroup(String resourceGroupName); } + /** * The stage of the NginxDeployment definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. @@ -167,6 +171,7 @@ interface WithCreate */ NginxDeployment create(Context context); } + /** The stage of the NginxDeployment definition allowing to specify tags. */ interface WithTags { /** @@ -177,6 +182,7 @@ interface WithTags { */ WithCreate withTags(Map tags); } + /** The stage of the NginxDeployment definition allowing to specify identity. */ interface WithIdentity { /** @@ -187,6 +193,7 @@ interface WithIdentity { */ WithCreate withIdentity(IdentityProperties identity); } + /** The stage of the NginxDeployment definition allowing to specify properties. */ interface WithProperties { /** @@ -197,6 +204,7 @@ interface WithProperties { */ WithCreate withProperties(NginxDeploymentProperties properties); } + /** The stage of the NginxDeployment definition allowing to specify sku. */ interface WithSku { /** @@ -208,6 +216,7 @@ interface WithSku { WithCreate withSku(ResourceSku sku); } } + /** * Begins update for the NginxDeployment resource. * @@ -233,6 +242,7 @@ interface Update */ NginxDeployment apply(Context context); } + /** The NginxDeployment update stages. */ interface UpdateStages { /** The stage of the NginxDeployment update allowing to specify tags. */ @@ -245,6 +255,7 @@ interface WithTags { */ Update withTags(Map tags); } + /** The stage of the NginxDeployment update allowing to specify identity. */ interface WithIdentity { /** @@ -255,6 +266,7 @@ interface WithIdentity { */ Update withIdentity(IdentityProperties identity); } + /** The stage of the NginxDeployment update allowing to specify sku. */ interface WithSku { /** @@ -265,6 +277,7 @@ interface WithSku { */ Update withSku(ResourceSku sku); } + /** The stage of the NginxDeployment update allowing to specify properties. */ interface WithProperties { /** @@ -276,6 +289,7 @@ interface WithProperties { Update withProperties(NginxDeploymentUpdateProperties properties); } } + /** * Refreshes the resource to sync with Azure. * diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentProperties.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentProperties.java index 3f671ead5683..c5ae4a35374c 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentProperties.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentProperties.java @@ -52,6 +52,18 @@ public final class NginxDeploymentProperties { @JsonProperty(value = "logging") private NginxLogging logging; + /* + * The scalingProperties property. + */ + @JsonProperty(value = "scalingProperties") + private NginxDeploymentScalingProperties scalingProperties; + + /* + * The userProfile property. + */ + @JsonProperty(value = "userProfile") + private NginxDeploymentUserProfile userProfile; + /** Creates an instance of NginxDeploymentProperties class. */ public NginxDeploymentProperties() { } @@ -165,6 +177,46 @@ public NginxDeploymentProperties withLogging(NginxLogging logging) { return this; } + /** + * Get the scalingProperties property: The scalingProperties property. + * + * @return the scalingProperties value. + */ + public NginxDeploymentScalingProperties scalingProperties() { + return this.scalingProperties; + } + + /** + * Set the scalingProperties property: The scalingProperties property. + * + * @param scalingProperties the scalingProperties value to set. + * @return the NginxDeploymentProperties object itself. + */ + public NginxDeploymentProperties withScalingProperties(NginxDeploymentScalingProperties scalingProperties) { + this.scalingProperties = scalingProperties; + return this; + } + + /** + * Get the userProfile property: The userProfile property. + * + * @return the userProfile value. + */ + public NginxDeploymentUserProfile userProfile() { + return this.userProfile; + } + + /** + * Set the userProfile property: The userProfile property. + * + * @param userProfile the userProfile value to set. + * @return the NginxDeploymentProperties object itself. + */ + public NginxDeploymentProperties withUserProfile(NginxDeploymentUserProfile userProfile) { + this.userProfile = userProfile; + return this; + } + /** * Validates the instance. * @@ -177,5 +229,11 @@ public void validate() { if (logging() != null) { logging().validate(); } + if (scalingProperties() != null) { + scalingProperties().validate(); + } + if (userProfile() != null) { + userProfile().validate(); + } } } diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentScalingProperties.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentScalingProperties.java new file mode 100644 index 000000000000..78e52b525c87 --- /dev/null +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentScalingProperties.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.nginx.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The NginxDeploymentScalingProperties model. */ +@Fluent +public final class NginxDeploymentScalingProperties { + /* + * The capacity property. + */ + @JsonProperty(value = "capacity") + private Integer capacity; + + /** Creates an instance of NginxDeploymentScalingProperties class. */ + public NginxDeploymentScalingProperties() { + } + + /** + * Get the capacity property: The capacity property. + * + * @return the capacity value. + */ + public Integer capacity() { + return this.capacity; + } + + /** + * Set the capacity property: The capacity property. + * + * @param capacity the capacity value to set. + * @return the NginxDeploymentScalingProperties object itself. + */ + public NginxDeploymentScalingProperties withCapacity(Integer capacity) { + this.capacity = capacity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUpdateProperties.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUpdateProperties.java index 22ef9695453b..2c7dcb49925c 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUpdateProperties.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUpdateProperties.java @@ -22,6 +22,18 @@ public final class NginxDeploymentUpdateProperties { @JsonProperty(value = "logging") private NginxLogging logging; + /* + * The scalingProperties property. + */ + @JsonProperty(value = "scalingProperties") + private NginxDeploymentScalingProperties scalingProperties; + + /* + * The userProfile property. + */ + @JsonProperty(value = "userProfile") + private NginxDeploymentUserProfile userProfile; + /** Creates an instance of NginxDeploymentUpdateProperties class. */ public NginxDeploymentUpdateProperties() { } @@ -66,6 +78,46 @@ public NginxDeploymentUpdateProperties withLogging(NginxLogging logging) { return this; } + /** + * Get the scalingProperties property: The scalingProperties property. + * + * @return the scalingProperties value. + */ + public NginxDeploymentScalingProperties scalingProperties() { + return this.scalingProperties; + } + + /** + * Set the scalingProperties property: The scalingProperties property. + * + * @param scalingProperties the scalingProperties value to set. + * @return the NginxDeploymentUpdateProperties object itself. + */ + public NginxDeploymentUpdateProperties withScalingProperties(NginxDeploymentScalingProperties scalingProperties) { + this.scalingProperties = scalingProperties; + return this; + } + + /** + * Get the userProfile property: The userProfile property. + * + * @return the userProfile value. + */ + public NginxDeploymentUserProfile userProfile() { + return this.userProfile; + } + + /** + * Set the userProfile property: The userProfile property. + * + * @param userProfile the userProfile value to set. + * @return the NginxDeploymentUpdateProperties object itself. + */ + public NginxDeploymentUpdateProperties withUserProfile(NginxDeploymentUserProfile userProfile) { + this.userProfile = userProfile; + return this; + } + /** * Validates the instance. * @@ -75,5 +127,11 @@ public void validate() { if (logging() != null) { logging().validate(); } + if (scalingProperties() != null) { + scalingProperties().validate(); + } + if (userProfile() != null) { + userProfile().validate(); + } } } diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUserProfile.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUserProfile.java new file mode 100644 index 000000000000..bce3313b8120 --- /dev/null +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUserProfile.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.nginx.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The NginxDeploymentUserProfile model. */ +@Fluent +public final class NginxDeploymentUserProfile { + /* + * The preferred support contact email address of the user used for sending alerts and notification. Can be an + * empty string or a valid email address. + */ + @JsonProperty(value = "preferredEmail") + private String preferredEmail; + + /** Creates an instance of NginxDeploymentUserProfile class. */ + public NginxDeploymentUserProfile() { + } + + /** + * Get the preferredEmail property: The preferred support contact email address of the user used for sending alerts + * and notification. Can be an empty string or a valid email address. + * + * @return the preferredEmail value. + */ + public String preferredEmail() { + return this.preferredEmail; + } + + /** + * Set the preferredEmail property: The preferred support contact email address of the user used for sending alerts + * and notification. Can be an empty string or a valid email address. + * + * @param preferredEmail the preferredEmail value to set. + * @return the NginxDeploymentUserProfile object itself. + */ + public NginxDeploymentUserProfile withPreferredEmail(String preferredEmail) { + this.preferredEmail = preferredEmail; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxPrivateIpAllocationMethod.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxPrivateIpAllocationMethod.java index e809f795b258..fe418a997d70 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxPrivateIpAllocationMethod.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxPrivateIpAllocationMethod.java @@ -16,6 +16,15 @@ public final class NginxPrivateIpAllocationMethod extends ExpandableStringEnum list(); /** - * List all operations provided by Nginx.NginxPlus for the 2022-08-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/ProvisioningState.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/ProvisioningState.java index d2302de0c4ff..c9cf284ca523 100644 --- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/ProvisioningState.java +++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/ProvisioningState.java @@ -37,6 +37,15 @@ public final class ProvisioningState extends ExpandableStringEnum httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.certificates().delete("zy", "shxmzsbbzoggigrx", "burvjxxjnspy", Context.NONE); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsCreateOrUpdateMockTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsCreateOrUpdateMockTests.java deleted file mode 100644 index 4b21a6d6d607..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.nginx.NginxManager; -import com.azure.resourcemanager.nginx.models.NginxConfiguration; -import com.azure.resourcemanager.nginx.models.NginxConfigurationPackage; -import com.azure.resourcemanager.nginx.models.NginxConfigurationProperties; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ConfigurationsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"Succeeded\",\"files\":[],\"protectedFiles\":[],\"package\":{\"data\":\"wflzlfbxzpuzy\"},\"rootFile\":\"spnqzahmgkb\"},\"location\":\"yydhibnuqqk\",\"tags\":{\"rgvtqag\":\"a\",\"bfs\":\"buynhijggm\"},\"id\":\"arbu\",\"name\":\"rcvpnazzmhjrunmp\",\"type\":\"ttdbhrbnl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - NginxConfiguration response = - manager - .configurations() - .define("senhwlrs") - .withRegion("fcivfsnkym") - .withExistingNginxDeployment("uconuqszfkbey", "ewrmjmwvvjektc") - .withTags(mapOf("cxerf", "qhjfbebr", "phxepcyvahf", "wutttxfvjrbi", "gidokgjljyoxgvcl", "ljkyqxjvuuj")) - .withProperties( - new NginxConfigurationProperties() - .withFiles(Arrays.asList()) - .withProtectedFiles(Arrays.asList()) - .withPackageProperty(new NginxConfigurationPackage().withData("q")) - .withRootFile("iqylihkaetck")) - .create(); - - Assertions.assertEquals("yydhibnuqqk", response.location()); - Assertions.assertEquals("a", response.tags().get("rgvtqag")); - Assertions.assertEquals("wflzlfbxzpuzy", response.properties().packageProperty().data()); - Assertions.assertEquals("spnqzahmgkb", response.properties().rootFile()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsDeleteMockTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsDeleteMockTests.java deleted file mode 100644 index 077a78e20a66..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsDeleteMockTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.util.Context; -import com.azure.resourcemanager.nginx.NginxManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ConfigurationsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.configurations().delete("yxzk", "noc", "koklya", Context.NONE); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsListMockTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsListMockTests.java deleted file mode 100644 index f79ecf297956..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ConfigurationsListMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.util.Context; -import com.azure.resourcemanager.nginx.NginxManager; -import com.azure.resourcemanager.nginx.models.NginxConfiguration; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ConfigurationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"files\":[],\"protectedFiles\":[],\"package\":{\"data\":\"dphagalpbuxwgip\"},\"rootFile\":\"onowk\"},\"location\":\"hwankixzbinjepu\",\"tags\":{\"zoqftiyqzrnkcqvy\":\"rywn\"},\"id\":\"lwh\",\"name\":\"lsicohoqqnwv\",\"type\":\"ryavwhheunmmqh\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.configurations().list("eoejzic", "ifsjttgzfbishcb", Context.NONE); - - Assertions.assertEquals("hwankixzbinjepu", response.iterator().next().location()); - Assertions.assertEquals("rywn", response.iterator().next().tags().get("zoqftiyqzrnkcqvy")); - Assertions.assertEquals("dphagalpbuxwgip", response.iterator().next().properties().packageProperty().data()); - Assertions.assertEquals("onowk", response.iterator().next().properties().rootFile()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsCreateOrUpdateMockTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsCreateOrUpdateMockTests.java deleted file mode 100644 index 37db99dd2b38..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.nginx.NginxManager; -import com.azure.resourcemanager.nginx.models.IdentityProperties; -import com.azure.resourcemanager.nginx.models.IdentityType; -import com.azure.resourcemanager.nginx.models.NginxDeployment; -import com.azure.resourcemanager.nginx.models.NginxDeploymentProperties; -import com.azure.resourcemanager.nginx.models.NginxLogging; -import com.azure.resourcemanager.nginx.models.NginxNetworkProfile; -import com.azure.resourcemanager.nginx.models.ResourceSku; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DeploymentsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"identity\":{\"principalId\":\"vt\",\"tenantId\":\"lmqkrhahvlj\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Succeeded\",\"nginxVersion\":\"hmdua\",\"managedResourceGroup\":\"exq\",\"networkProfile\":{},\"ipAddress\":\"mwsrcrgvxpvgo\",\"enableDiagnosticsSupport\":false,\"logging\":{}},\"sku\":{\"name\":\"sgwbnbbeld\"},\"location\":\"k\",\"tags\":{\"uhashsfwx\":\"liourqhak\"},\"id\":\"sowzxcugi\",\"name\":\"jooxdjebw\",\"type\":\"ucww\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - NginxDeployment response = - manager - .deployments() - .define("plpho") - .withRegion("vwfudwpzntxhd") - .withExistingResourceGroup("nermcl") - .withTags(mapOf("rxsbkyvp", "rqjbhckfrl", "uzbpzkafku", "ca", "rnwb", "b")) - .withIdentity(new IdentityProperties().withType(IdentityType.NONE).withUserAssignedIdentities(mapOf())) - .withProperties( - new NginxDeploymentProperties() - .withManagedResourceGroup("qkqujidsu") - .withNetworkProfile(new NginxNetworkProfile()) - .withEnableDiagnosticsSupport(false) - .withLogging(new NginxLogging())) - .withSku(new ResourceSku().withName("yudxytlmoy")) - .create(); - - Assertions.assertEquals("k", response.location()); - Assertions.assertEquals("liourqhak", response.tags().get("uhashsfwx")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("exq", response.properties().managedResourceGroup()); - Assertions.assertEquals(false, response.properties().enableDiagnosticsSupport()); - Assertions.assertEquals("sgwbnbbeld", response.sku().name()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsDeleteMockTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsDeleteMockTests.java deleted file mode 100644 index 5ceb9632ae49..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsDeleteMockTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.util.Context; -import com.azure.resourcemanager.nginx.NginxManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DeploymentsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.deployments().delete("nkxmyskpbhenbtk", "xywnytnrsynlqidy", Context.NONE); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsListByResourceGroupMockTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsListByResourceGroupMockTests.java deleted file mode 100644 index 99f2efcccf25..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsListByResourceGroupMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.util.Context; -import com.azure.resourcemanager.nginx.NginxManager; -import com.azure.resourcemanager.nginx.models.IdentityType; -import com.azure.resourcemanager.nginx.models.NginxDeployment; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DeploymentsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"identity\":{\"principalId\":\"mkfssxqukkfplgm\",\"tenantId\":\"xnkjzkdesl\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Updating\",\"nginxVersion\":\"ghxpkdw\",\"managedResourceGroup\":\"aiuebbaumnyqu\",\"networkProfile\":{},\"ipAddress\":\"jn\",\"enableDiagnosticsSupport\":true,\"logging\":{}},\"sku\":{\"name\":\"mtxpsiebtfh\"},\"location\":\"esap\",\"tags\":{\"jdhtldwkyzxu\":\"dqmh\",\"svlxotogtwrup\":\"tkncwsc\",\"nmic\":\"sx\",\"fcnj\":\"kvceoveilovnotyf\"},\"id\":\"k\",\"name\":\"nxdhbt\",\"type\":\"kphywpnvjto\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.deployments().listByResourceGroup("gu", Context.NONE); - - Assertions.assertEquals("esap", response.iterator().next().location()); - Assertions.assertEquals("dqmh", response.iterator().next().tags().get("jdhtldwkyzxu")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); - Assertions.assertEquals("aiuebbaumnyqu", response.iterator().next().properties().managedResourceGroup()); - Assertions.assertEquals(true, response.iterator().next().properties().enableDiagnosticsSupport()); - Assertions.assertEquals("mtxpsiebtfh", response.iterator().next().sku().name()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsListMockTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsListMockTests.java deleted file mode 100644 index 147e0b293cde..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/DeploymentsListMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.util.Context; -import com.azure.resourcemanager.nginx.NginxManager; -import com.azure.resourcemanager.nginx.models.IdentityType; -import com.azure.resourcemanager.nginx.models.NginxDeployment; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DeploymentsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"identity\":{\"principalId\":\"czfc\",\"tenantId\":\"aaxdbabphlwrq\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Canceled\",\"nginxVersion\":\"cocmnyyaztt\",\"managedResourceGroup\":\"wwrq\",\"networkProfile\":{},\"ipAddress\":\"kzywbiex\",\"enableDiagnosticsSupport\":true,\"logging\":{}},\"sku\":{\"name\":\"axibxujw\"},\"location\":\"qwalmuzyoxaepd\",\"tags\":{\"bavxbniwdjswzt\":\"ancuxrhd\",\"xbzpfzab\":\"dbpgnxytxhp\"},\"id\":\"lcuhxwtctyqiklb\",\"name\":\"ovplw\",\"type\":\"bhvgy\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.deployments().list(Context.NONE); - - Assertions.assertEquals("qwalmuzyoxaepd", response.iterator().next().location()); - Assertions.assertEquals("ancuxrhd", response.iterator().next().tags().get("bavxbniwdjswzt")); - Assertions.assertEquals(IdentityType.NONE, response.iterator().next().identity().type()); - Assertions.assertEquals("wwrq", response.iterator().next().properties().managedResourceGroup()); - Assertions.assertEquals(true, response.iterator().next().properties().enableDiagnosticsSupport()); - Assertions.assertEquals("axibxujw", response.iterator().next().sku().name()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/IdentityPropertiesTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/IdentityPropertiesTests.java deleted file mode 100644 index 1d6c5487614f..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/IdentityPropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.IdentityProperties; -import com.azure.resourcemanager.nginx.models.IdentityType; -import com.azure.resourcemanager.nginx.models.UserIdentityProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class IdentityPropertiesTests { - @Test - public void testDeserialize() { - IdentityProperties model = - BinaryData - .fromString( - "{\"principalId\":\"gmbmbexppbh\",\"tenantId\":\"qrolfpf\",\"type\":\"None\",\"userAssignedIdentities\":{\"zjaoyfhrtxil\":{\"principalId\":\"qux\",\"clientId\":\"jyj\"},\"juvf\":{\"principalId\":\"rkujy\",\"clientId\":\"l\"}}}") - .toObject(IdentityProperties.class); - Assertions.assertEquals(IdentityType.NONE, model.type()); - } - - @Test - public void testSerialize() { - IdentityProperties model = - new IdentityProperties() - .withType(IdentityType.NONE) - .withUserAssignedIdentities( - mapOf("zjaoyfhrtxil", new UserIdentityProperties(), "juvf", new UserIdentityProperties())); - model = BinaryData.fromObject(model).toObject(IdentityProperties.class); - Assertions.assertEquals(IdentityType.NONE, model.type()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationFileTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationFileTests.java deleted file mode 100644 index f05801387164..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationFileTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxConfigurationFile; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxConfigurationFileTests { - @Test - public void testDeserialize() { - NginxConfigurationFile model = - BinaryData - .fromString("{\"content\":\"mppeebvmgxs\",\"virtualPath\":\"kyqduujit\"}") - .toObject(NginxConfigurationFile.class); - Assertions.assertEquals("mppeebvmgxs", model.content()); - Assertions.assertEquals("kyqduujit", model.virtualPath()); - } - - @Test - public void testSerialize() { - NginxConfigurationFile model = - new NginxConfigurationFile().withContent("mppeebvmgxs").withVirtualPath("kyqduujit"); - model = BinaryData.fromObject(model).toObject(NginxConfigurationFile.class); - Assertions.assertEquals("mppeebvmgxs", model.content()); - Assertions.assertEquals("kyqduujit", model.virtualPath()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationInnerTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationInnerTests.java deleted file mode 100644 index c246dd7322da..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationInnerTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.fluent.models.NginxConfigurationInner; -import com.azure.resourcemanager.nginx.models.NginxConfigurationFile; -import com.azure.resourcemanager.nginx.models.NginxConfigurationPackage; -import com.azure.resourcemanager.nginx.models.NginxConfigurationProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxConfigurationInnerTests { - @Test - public void testDeserialize() { - NginxConfigurationInner model = - BinaryData - .fromString( - "{\"properties\":{\"provisioningState\":\"Canceled\",\"files\":[{\"content\":\"mkkvnip\",\"virtualPath\":\"xzjnchgejs\"},{\"content\":\"dmailzydehojw\",\"virtualPath\":\"huxinpmqnj\"},{\"content\":\"wixjsprozvcp\",\"virtualPath\":\"eg\"}],\"protectedFiles\":[{\"content\":\"fdatsc\",\"virtualPath\":\"vpjhulsuuv\"},{\"content\":\"jozkrwfndiod\",\"virtualPath\":\"slwejdpvw\"},{\"content\":\"oqpsoa\",\"virtualPath\":\"tazak\"},{\"content\":\"lahbcryff\",\"virtualPath\":\"dosyg\"}],\"package\":{\"data\":\"aojakhmsbzjhcrz\"},\"rootFile\":\"dphlxaolt\"},\"location\":\"trg\",\"tags\":{\"rwzoxxjtfelluwf\":\"pfzfsinzgvfc\"},\"id\":\"it\",\"name\":\"np\",\"type\":\"qfpjk\"}") - .toObject(NginxConfigurationInner.class); - Assertions.assertEquals("trg", model.location()); - Assertions.assertEquals("pfzfsinzgvfc", model.tags().get("rwzoxxjtfelluwf")); - Assertions.assertEquals("mkkvnip", model.properties().files().get(0).content()); - Assertions.assertEquals("xzjnchgejs", model.properties().files().get(0).virtualPath()); - Assertions.assertEquals("fdatsc", model.properties().protectedFiles().get(0).content()); - Assertions.assertEquals("vpjhulsuuv", model.properties().protectedFiles().get(0).virtualPath()); - Assertions.assertEquals("aojakhmsbzjhcrz", model.properties().packageProperty().data()); - Assertions.assertEquals("dphlxaolt", model.properties().rootFile()); - } - - @Test - public void testSerialize() { - NginxConfigurationInner model = - new NginxConfigurationInner() - .withLocation("trg") - .withTags(mapOf("rwzoxxjtfelluwf", "pfzfsinzgvfc")) - .withProperties( - new NginxConfigurationProperties() - .withFiles( - Arrays - .asList( - new NginxConfigurationFile().withContent("mkkvnip").withVirtualPath("xzjnchgejs"), - new NginxConfigurationFile() - .withContent("dmailzydehojw") - .withVirtualPath("huxinpmqnj"), - new NginxConfigurationFile().withContent("wixjsprozvcp").withVirtualPath("eg"))) - .withProtectedFiles( - Arrays - .asList( - new NginxConfigurationFile().withContent("fdatsc").withVirtualPath("vpjhulsuuv"), - new NginxConfigurationFile() - .withContent("jozkrwfndiod") - .withVirtualPath("slwejdpvw"), - new NginxConfigurationFile().withContent("oqpsoa").withVirtualPath("tazak"), - new NginxConfigurationFile().withContent("lahbcryff").withVirtualPath("dosyg"))) - .withPackageProperty(new NginxConfigurationPackage().withData("aojakhmsbzjhcrz")) - .withRootFile("dphlxaolt")); - model = BinaryData.fromObject(model).toObject(NginxConfigurationInner.class); - Assertions.assertEquals("trg", model.location()); - Assertions.assertEquals("pfzfsinzgvfc", model.tags().get("rwzoxxjtfelluwf")); - Assertions.assertEquals("mkkvnip", model.properties().files().get(0).content()); - Assertions.assertEquals("xzjnchgejs", model.properties().files().get(0).virtualPath()); - Assertions.assertEquals("fdatsc", model.properties().protectedFiles().get(0).content()); - Assertions.assertEquals("vpjhulsuuv", model.properties().protectedFiles().get(0).virtualPath()); - Assertions.assertEquals("aojakhmsbzjhcrz", model.properties().packageProperty().data()); - Assertions.assertEquals("dphlxaolt", model.properties().rootFile()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationListResponseTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationListResponseTests.java deleted file mode 100644 index 853d5b99a541..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationListResponseTests.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.fluent.models.NginxConfigurationInner; -import com.azure.resourcemanager.nginx.models.NginxConfigurationListResponse; -import com.azure.resourcemanager.nginx.models.NginxConfigurationProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxConfigurationListResponseTests { - @Test - public void testDeserialize() { - NginxConfigurationListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"NotSpecified\",\"files\":[],\"protectedFiles\":[],\"rootFile\":\"mtqio\"},\"location\":\"zehtbmu\",\"tags\":{\"hwlrx\":\"wnoi\",\"dmbpazlobcufpdz\":\"bqsoqijg\"},\"id\":\"rbt\",\"name\":\"qqjnqgl\",\"type\":\"qgn\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"files\":[],\"protectedFiles\":[],\"rootFile\":\"ifsqesaagdfmg\"},\"location\":\"lhjxr\",\"tags\":{\"uajpsquc\":\"wmrvktsizntocipa\"},\"id\":\"poyfdkfogkn\",\"name\":\"gjofjd\",\"type\":\"eqsrdeupewnwreit\"},{\"properties\":{\"provisioningState\":\"Updating\",\"files\":[],\"protectedFiles\":[],\"rootFile\":\"rh\"},\"location\":\"fcqhsmyurkd\",\"tags\":{\"arcryuanzwuxzdxt\":\"xhekuksjtxukcdm\"},\"id\":\"yrlhmwhfpmrqobm\",\"name\":\"u\",\"type\":\"knryrtihfxtij\"},{\"properties\":{\"provisioningState\":\"Failed\",\"files\":[],\"protectedFiles\":[],\"rootFile\":\"symglzufcyz\"},\"location\":\"hdbihan\",\"tags\":{\"ifpikxwczby\":\"fcbjysagithxqha\",\"rkxvdum\":\"cnpqxuhivyqniwby\"},\"id\":\"grtfwvu\",\"name\":\"xgaudccs\",\"type\":\"h\"}],\"nextLink\":\"cnyejhkryhtnapcz\"}") - .toObject(NginxConfigurationListResponse.class); - Assertions.assertEquals("zehtbmu", model.value().get(0).location()); - Assertions.assertEquals("wnoi", model.value().get(0).tags().get("hwlrx")); - Assertions.assertEquals("mtqio", model.value().get(0).properties().rootFile()); - Assertions.assertEquals("cnyejhkryhtnapcz", model.nextLink()); - } - - @Test - public void testSerialize() { - NginxConfigurationListResponse model = - new NginxConfigurationListResponse() - .withValue( - Arrays - .asList( - new NginxConfigurationInner() - .withLocation("zehtbmu") - .withTags(mapOf("hwlrx", "wnoi", "dmbpazlobcufpdz", "bqsoqijg")) - .withProperties( - new NginxConfigurationProperties() - .withFiles(Arrays.asList()) - .withProtectedFiles(Arrays.asList()) - .withRootFile("mtqio")), - new NginxConfigurationInner() - .withLocation("lhjxr") - .withTags(mapOf("uajpsquc", "wmrvktsizntocipa")) - .withProperties( - new NginxConfigurationProperties() - .withFiles(Arrays.asList()) - .withProtectedFiles(Arrays.asList()) - .withRootFile("ifsqesaagdfmg")), - new NginxConfigurationInner() - .withLocation("fcqhsmyurkd") - .withTags(mapOf("arcryuanzwuxzdxt", "xhekuksjtxukcdm")) - .withProperties( - new NginxConfigurationProperties() - .withFiles(Arrays.asList()) - .withProtectedFiles(Arrays.asList()) - .withRootFile("rh")), - new NginxConfigurationInner() - .withLocation("hdbihan") - .withTags(mapOf("ifpikxwczby", "fcbjysagithxqha", "rkxvdum", "cnpqxuhivyqniwby")) - .withProperties( - new NginxConfigurationProperties() - .withFiles(Arrays.asList()) - .withProtectedFiles(Arrays.asList()) - .withRootFile("symglzufcyz")))) - .withNextLink("cnyejhkryhtnapcz"); - model = BinaryData.fromObject(model).toObject(NginxConfigurationListResponse.class); - Assertions.assertEquals("zehtbmu", model.value().get(0).location()); - Assertions.assertEquals("wnoi", model.value().get(0).tags().get("hwlrx")); - Assertions.assertEquals("mtqio", model.value().get(0).properties().rootFile()); - Assertions.assertEquals("cnyejhkryhtnapcz", model.nextLink()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationPackageTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationPackageTests.java deleted file mode 100644 index 914e82ba0a9e..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationPackageTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxConfigurationPackage; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxConfigurationPackageTests { - @Test - public void testDeserialize() { - NginxConfigurationPackage model = - BinaryData.fromString("{\"data\":\"czdzev\"}").toObject(NginxConfigurationPackage.class); - Assertions.assertEquals("czdzev", model.data()); - } - - @Test - public void testSerialize() { - NginxConfigurationPackage model = new NginxConfigurationPackage().withData("czdzev"); - model = BinaryData.fromObject(model).toObject(NginxConfigurationPackage.class); - Assertions.assertEquals("czdzev", model.data()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationPropertiesTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationPropertiesTests.java deleted file mode 100644 index 95f7a5052492..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxConfigurationPropertiesTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxConfigurationFile; -import com.azure.resourcemanager.nginx.models.NginxConfigurationPackage; -import com.azure.resourcemanager.nginx.models.NginxConfigurationProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxConfigurationPropertiesTests { - @Test - public void testDeserialize() { - NginxConfigurationProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Updating\",\"files\":[{\"content\":\"dvhpfxxypininm\",\"virtualPath\":\"huyb\"},{\"content\":\"podepoo\",\"virtualPath\":\"nuvamiheogna\"},{\"content\":\"zxtheotusivyevcc\",\"virtualPath\":\"ihnhun\"}],\"protectedFiles\":[{\"content\":\"zrnf\",\"virtualPath\":\"xgispemvtzfkufu\"},{\"content\":\"jofxqe\",\"virtualPath\":\"jaeq\"},{\"content\":\"qjbasvms\",\"virtualPath\":\"qulngsntnbybkzgc\"},{\"content\":\"wclxxwrl\",\"virtualPath\":\"ouskcqvkocrc\"}],\"package\":{\"data\":\"wtnhxbnjbiksqr\"},\"rootFile\":\"ssainqpjwnzll\"}") - .toObject(NginxConfigurationProperties.class); - Assertions.assertEquals("dvhpfxxypininm", model.files().get(0).content()); - Assertions.assertEquals("huyb", model.files().get(0).virtualPath()); - Assertions.assertEquals("zrnf", model.protectedFiles().get(0).content()); - Assertions.assertEquals("xgispemvtzfkufu", model.protectedFiles().get(0).virtualPath()); - Assertions.assertEquals("wtnhxbnjbiksqr", model.packageProperty().data()); - Assertions.assertEquals("ssainqpjwnzll", model.rootFile()); - } - - @Test - public void testSerialize() { - NginxConfigurationProperties model = - new NginxConfigurationProperties() - .withFiles( - Arrays - .asList( - new NginxConfigurationFile().withContent("dvhpfxxypininm").withVirtualPath("huyb"), - new NginxConfigurationFile().withContent("podepoo").withVirtualPath("nuvamiheogna"), - new NginxConfigurationFile().withContent("zxtheotusivyevcc").withVirtualPath("ihnhun"))) - .withProtectedFiles( - Arrays - .asList( - new NginxConfigurationFile().withContent("zrnf").withVirtualPath("xgispemvtzfkufu"), - new NginxConfigurationFile().withContent("jofxqe").withVirtualPath("jaeq"), - new NginxConfigurationFile().withContent("qjbasvms").withVirtualPath("qulngsntnbybkzgc"), - new NginxConfigurationFile().withContent("wclxxwrl").withVirtualPath("ouskcqvkocrc"))) - .withPackageProperty(new NginxConfigurationPackage().withData("wtnhxbnjbiksqr")) - .withRootFile("ssainqpjwnzll"); - model = BinaryData.fromObject(model).toObject(NginxConfigurationProperties.class); - Assertions.assertEquals("dvhpfxxypininm", model.files().get(0).content()); - Assertions.assertEquals("huyb", model.files().get(0).virtualPath()); - Assertions.assertEquals("zrnf", model.protectedFiles().get(0).content()); - Assertions.assertEquals("xgispemvtzfkufu", model.protectedFiles().get(0).virtualPath()); - Assertions.assertEquals("wtnhxbnjbiksqr", model.packageProperty().data()); - Assertions.assertEquals("ssainqpjwnzll", model.rootFile()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentInnerTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentInnerTests.java deleted file mode 100644 index 4a12383838fa..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentInnerTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.fluent.models.NginxDeploymentInner; -import com.azure.resourcemanager.nginx.models.IdentityProperties; -import com.azure.resourcemanager.nginx.models.IdentityType; -import com.azure.resourcemanager.nginx.models.NginxDeploymentProperties; -import com.azure.resourcemanager.nginx.models.NginxLogging; -import com.azure.resourcemanager.nginx.models.NginxNetworkProfile; -import com.azure.resourcemanager.nginx.models.ResourceSku; -import com.azure.resourcemanager.nginx.models.UserIdentityProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxDeploymentInnerTests { - @Test - public void testDeserialize() { - NginxDeploymentInner model = - BinaryData - .fromString( - "{\"identity\":{\"principalId\":\"krwpdap\",\"tenantId\":\"sbdkvwr\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"phut\":{\"principalId\":\"nhutjeltmrldhugj\",\"clientId\":\"datqxhocdgeabl\"},\"ftyxolniw\":{\"principalId\":\"ndv\",\"clientId\":\"ozwyiftyhxhuro\"}}},\"properties\":{\"provisioningState\":\"Accepted\",\"nginxVersion\":\"jfkgiawxk\",\"managedResourceGroup\":\"ypl\",\"networkProfile\":{},\"ipAddress\":\"syyp\",\"enableDiagnosticsSupport\":false,\"logging\":{}},\"sku\":{\"name\":\"cbacphejkotynqg\"},\"location\":\"l\",\"tags\":{\"adgakeqsrxybz\":\"likwyqkgfgib\",\"mnkzsmod\":\"qedqytbciqfoufl\",\"tmut\":\"glougpbk\",\"pwgcuertu\":\"uqktap\"},\"id\":\"kdosvqw\",\"name\":\"bmdg\",\"type\":\"bjf\"}") - .toObject(NginxDeploymentInner.class); - Assertions.assertEquals("l", model.location()); - Assertions.assertEquals("likwyqkgfgib", model.tags().get("adgakeqsrxybz")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("ypl", model.properties().managedResourceGroup()); - Assertions.assertEquals(false, model.properties().enableDiagnosticsSupport()); - Assertions.assertEquals("cbacphejkotynqg", model.sku().name()); - } - - @Test - public void testSerialize() { - NginxDeploymentInner model = - new NginxDeploymentInner() - .withLocation("l") - .withTags( - mapOf( - "adgakeqsrxybz", - "likwyqkgfgib", - "mnkzsmod", - "qedqytbciqfoufl", - "tmut", - "glougpbk", - "pwgcuertu", - "uqktap")) - .withIdentity( - new IdentityProperties() - .withType(IdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("phut", new UserIdentityProperties(), "ftyxolniw", new UserIdentityProperties()))) - .withProperties( - new NginxDeploymentProperties() - .withManagedResourceGroup("ypl") - .withNetworkProfile(new NginxNetworkProfile()) - .withEnableDiagnosticsSupport(false) - .withLogging(new NginxLogging())) - .withSku(new ResourceSku().withName("cbacphejkotynqg")); - model = BinaryData.fromObject(model).toObject(NginxDeploymentInner.class); - Assertions.assertEquals("l", model.location()); - Assertions.assertEquals("likwyqkgfgib", model.tags().get("adgakeqsrxybz")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("ypl", model.properties().managedResourceGroup()); - Assertions.assertEquals(false, model.properties().enableDiagnosticsSupport()); - Assertions.assertEquals("cbacphejkotynqg", model.sku().name()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentListResponseTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentListResponseTests.java deleted file mode 100644 index 811fc184312e..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentListResponseTests.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.fluent.models.NginxDeploymentInner; -import com.azure.resourcemanager.nginx.models.IdentityProperties; -import com.azure.resourcemanager.nginx.models.IdentityType; -import com.azure.resourcemanager.nginx.models.NginxDeploymentListResponse; -import com.azure.resourcemanager.nginx.models.NginxDeploymentProperties; -import com.azure.resourcemanager.nginx.models.ResourceSku; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxDeploymentListResponseTests { - @Test - public void testDeserialize() { - NginxDeploymentListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"identity\":{\"principalId\":\"gnxkrxdqmidtth\",\"tenantId\":\"vqdra\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Deleted\",\"nginxVersion\":\"h\",\"managedResourceGroup\":\"fbowskanyk\",\"ipAddress\":\"cuiywgqyw\",\"enableDiagnosticsSupport\":false},\"sku\":{\"name\":\"ynhz\"},\"location\":\"phrcgyncoc\",\"tags\":{\"coofsxlzev\":\"fvm\",\"abcypmivk\":\"bmqj\"},\"id\":\"lzu\",\"name\":\"ccfwnfnbacfion\",\"type\":\"ebxetqgtzxdp\"},{\"identity\":{\"principalId\":\"qqwx\",\"tenantId\":\"feallnwsu\",\"type\":\"SystemAssigned," - + " UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Deleted\",\"nginxVersion\":\"mngnzscxaqw\",\"managedResourceGroup\":\"chcbonqvpkvlrxnj\",\"ipAddress\":\"eipheoflokeyy\",\"enableDiagnosticsSupport\":false},\"sku\":{\"name\":\"dlwtgrhpdj\"},\"location\":\"umasxazjpq\",\"tags\":{\"zvdudgwdslfhotwm\":\"ualhbxxhejj\"},\"id\":\"ynpwlbj\",\"name\":\"pgacftadehxnlty\",\"type\":\"sop\"},{\"identity\":{\"principalId\":\"uesnzwdejbavo\",\"tenantId\":\"zdmohctbqvu\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Accepted\",\"nginxVersion\":\"owgujjugwdkcglhs\",\"managedResourceGroup\":\"zj\",\"ipAddress\":\"gdtjixhbkuofqwey\",\"enableDiagnosticsSupport\":true},\"sku\":{\"name\":\"evfyexfwhybcib\"},\"location\":\"vdcsitynn\",\"tags\":{\"eypvhezrkg\":\"dectehfiqsc\",\"sle\":\"hcjrefovgmk\",\"cattpngjcrcczsq\":\"yvxyqjp\",\"mdajv\":\"jh\"},\"id\":\"ysou\",\"name\":\"q\",\"type\":\"canoaeupf\"},{\"identity\":{\"principalId\":\"ltrpmopj\",\"tenantId\":\"matuok\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Deleting\",\"nginxVersion\":\"dsfcpkvxodpuoz\",\"managedResourceGroup\":\"zydagfuaxbezyiuo\",\"ipAddress\":\"whrdxwzywqsmbsu\",\"enableDiagnosticsSupport\":false},\"sku\":{\"name\":\"o\"},\"location\":\"ocfs\",\"tags\":{\"kiiuxhqyudxor\":\"ymddys\"},\"id\":\"qn\",\"name\":\"poczvyifqrvkdvjs\",\"type\":\"lrmv\"}],\"nextLink\":\"f\"}") - .toObject(NginxDeploymentListResponse.class); - Assertions.assertEquals("phrcgyncoc", model.value().get(0).location()); - Assertions.assertEquals("fvm", model.value().get(0).tags().get("coofsxlzev")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals("fbowskanyk", model.value().get(0).properties().managedResourceGroup()); - Assertions.assertEquals(false, model.value().get(0).properties().enableDiagnosticsSupport()); - Assertions.assertEquals("ynhz", model.value().get(0).sku().name()); - Assertions.assertEquals("f", model.nextLink()); - } - - @Test - public void testSerialize() { - NginxDeploymentListResponse model = - new NginxDeploymentListResponse() - .withValue( - Arrays - .asList( - new NginxDeploymentInner() - .withLocation("phrcgyncoc") - .withTags(mapOf("coofsxlzev", "fvm", "abcypmivk", "bmqj")) - .withIdentity( - new IdentityProperties() - .withType(IdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf())) - .withProperties( - new NginxDeploymentProperties() - .withManagedResourceGroup("fbowskanyk") - .withEnableDiagnosticsSupport(false)) - .withSku(new ResourceSku().withName("ynhz")), - new NginxDeploymentInner() - .withLocation("umasxazjpq") - .withTags(mapOf("zvdudgwdslfhotwm", "ualhbxxhejj")) - .withIdentity( - new IdentityProperties() - .withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf())) - .withProperties( - new NginxDeploymentProperties() - .withManagedResourceGroup("chcbonqvpkvlrxnj") - .withEnableDiagnosticsSupport(false)) - .withSku(new ResourceSku().withName("dlwtgrhpdj")), - new NginxDeploymentInner() - .withLocation("vdcsitynn") - .withTags( - mapOf( - "eypvhezrkg", - "dectehfiqsc", - "sle", - "hcjrefovgmk", - "cattpngjcrcczsq", - "yvxyqjp", - "mdajv", - "jh")) - .withIdentity( - new IdentityProperties() - .withType(IdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf())) - .withProperties( - new NginxDeploymentProperties() - .withManagedResourceGroup("zj") - .withEnableDiagnosticsSupport(true)) - .withSku(new ResourceSku().withName("evfyexfwhybcib")), - new NginxDeploymentInner() - .withLocation("ocfs") - .withTags(mapOf("kiiuxhqyudxor", "ymddys")) - .withIdentity( - new IdentityProperties() - .withType(IdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf())) - .withProperties( - new NginxDeploymentProperties() - .withManagedResourceGroup("zydagfuaxbezyiuo") - .withEnableDiagnosticsSupport(false)) - .withSku(new ResourceSku().withName("o")))) - .withNextLink("f"); - model = BinaryData.fromObject(model).toObject(NginxDeploymentListResponse.class); - Assertions.assertEquals("phrcgyncoc", model.value().get(0).location()); - Assertions.assertEquals("fvm", model.value().get(0).tags().get("coofsxlzev")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals("fbowskanyk", model.value().get(0).properties().managedResourceGroup()); - Assertions.assertEquals(false, model.value().get(0).properties().enableDiagnosticsSupport()); - Assertions.assertEquals("ynhz", model.value().get(0).sku().name()); - Assertions.assertEquals("f", model.nextLink()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentPropertiesTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentPropertiesTests.java deleted file mode 100644 index 7373f22c5372..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentPropertiesTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxDeploymentProperties; -import com.azure.resourcemanager.nginx.models.NginxFrontendIpConfiguration; -import com.azure.resourcemanager.nginx.models.NginxLogging; -import com.azure.resourcemanager.nginx.models.NginxNetworkInterfaceConfiguration; -import com.azure.resourcemanager.nginx.models.NginxNetworkProfile; -import com.azure.resourcemanager.nginx.models.NginxStorageAccount; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxDeploymentPropertiesTests { - @Test - public void testDeserialize() { - NginxDeploymentProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Failed\",\"nginxVersion\":\"tbvpysszdnru\",\"managedResourceGroup\":\"guhmuouqfpr\",\"networkProfile\":{\"frontEndIPConfiguration\":{\"publicIPAddresses\":[],\"privateIPAddresses\":[]},\"networkInterfaceConfiguration\":{\"subnetId\":\"nwui\"}},\"ipAddress\":\"a\",\"enableDiagnosticsSupport\":true,\"logging\":{\"storageAccount\":{\"accountName\":\"uckyf\",\"containerName\":\"rfidfvzwdz\"}}}") - .toObject(NginxDeploymentProperties.class); - Assertions.assertEquals("guhmuouqfpr", model.managedResourceGroup()); - Assertions.assertEquals("nwui", model.networkProfile().networkInterfaceConfiguration().subnetId()); - Assertions.assertEquals(true, model.enableDiagnosticsSupport()); - Assertions.assertEquals("uckyf", model.logging().storageAccount().accountName()); - Assertions.assertEquals("rfidfvzwdz", model.logging().storageAccount().containerName()); - } - - @Test - public void testSerialize() { - NginxDeploymentProperties model = - new NginxDeploymentProperties() - .withManagedResourceGroup("guhmuouqfpr") - .withNetworkProfile( - new NginxNetworkProfile() - .withFrontEndIpConfiguration( - new NginxFrontendIpConfiguration() - .withPublicIpAddresses(Arrays.asList()) - .withPrivateIpAddresses(Arrays.asList())) - .withNetworkInterfaceConfiguration( - new NginxNetworkInterfaceConfiguration().withSubnetId("nwui"))) - .withEnableDiagnosticsSupport(true) - .withLogging( - new NginxLogging() - .withStorageAccount( - new NginxStorageAccount().withAccountName("uckyf").withContainerName("rfidfvzwdz"))); - model = BinaryData.fromObject(model).toObject(NginxDeploymentProperties.class); - Assertions.assertEquals("guhmuouqfpr", model.managedResourceGroup()); - Assertions.assertEquals("nwui", model.networkProfile().networkInterfaceConfiguration().subnetId()); - Assertions.assertEquals(true, model.enableDiagnosticsSupport()); - Assertions.assertEquals("uckyf", model.logging().storageAccount().accountName()); - Assertions.assertEquals("rfidfvzwdz", model.logging().storageAccount().containerName()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentUpdateParametersTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentUpdateParametersTests.java deleted file mode 100644 index 5f6c7860d0c2..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentUpdateParametersTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.IdentityProperties; -import com.azure.resourcemanager.nginx.models.IdentityType; -import com.azure.resourcemanager.nginx.models.NginxDeploymentUpdateParameters; -import com.azure.resourcemanager.nginx.models.NginxDeploymentUpdateProperties; -import com.azure.resourcemanager.nginx.models.NginxLogging; -import com.azure.resourcemanager.nginx.models.ResourceSku; -import com.azure.resourcemanager.nginx.models.UserIdentityProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxDeploymentUpdateParametersTests { - @Test - public void testDeserialize() { - NginxDeploymentUpdateParameters model = - BinaryData - .fromString( - "{\"identity\":{\"principalId\":\"ionpimexg\",\"tenantId\":\"xgcp\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"qsqsy\":{\"principalId\":\"jrmvdjwzrlo\",\"clientId\":\"clwhijcoejctbz\"},\"axcfjpgddtocjjx\":{\"principalId\":\"kbfkg\",\"clientId\":\"dkexxppofm\"}}},\"tags\":{\"bqe\":\"mouexhdzx\",\"eic\":\"jnxqbzvddntwn\",\"cyddglmjthjqk\":\"twnpzaoqvuhrhcf\"},\"sku\":{\"name\":\"yeicxmqciwqvhk\"},\"location\":\"xuigdtopbobj\",\"properties\":{\"enableDiagnosticsSupport\":false,\"logging\":{}}}") - .toObject(NginxDeploymentUpdateParameters.class); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("mouexhdzx", model.tags().get("bqe")); - Assertions.assertEquals("yeicxmqciwqvhk", model.sku().name()); - Assertions.assertEquals("xuigdtopbobj", model.location()); - Assertions.assertEquals(false, model.properties().enableDiagnosticsSupport()); - } - - @Test - public void testSerialize() { - NginxDeploymentUpdateParameters model = - new NginxDeploymentUpdateParameters() - .withIdentity( - new IdentityProperties() - .withType(IdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "qsqsy", - new UserIdentityProperties(), - "axcfjpgddtocjjx", - new UserIdentityProperties()))) - .withTags(mapOf("bqe", "mouexhdzx", "eic", "jnxqbzvddntwn", "cyddglmjthjqk", "twnpzaoqvuhrhcf")) - .withSku(new ResourceSku().withName("yeicxmqciwqvhk")) - .withLocation("xuigdtopbobj") - .withProperties( - new NginxDeploymentUpdateProperties() - .withEnableDiagnosticsSupport(false) - .withLogging(new NginxLogging())); - model = BinaryData.fromObject(model).toObject(NginxDeploymentUpdateParameters.class); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("mouexhdzx", model.tags().get("bqe")); - Assertions.assertEquals("yeicxmqciwqvhk", model.sku().name()); - Assertions.assertEquals("xuigdtopbobj", model.location()); - Assertions.assertEquals(false, model.properties().enableDiagnosticsSupport()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentUpdatePropertiesTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentUpdatePropertiesTests.java deleted file mode 100644 index 6e5754f2e3a5..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxDeploymentUpdatePropertiesTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxDeploymentUpdateProperties; -import com.azure.resourcemanager.nginx.models.NginxLogging; -import com.azure.resourcemanager.nginx.models.NginxStorageAccount; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxDeploymentUpdatePropertiesTests { - @Test - public void testDeserialize() { - NginxDeploymentUpdateProperties model = - BinaryData - .fromString( - "{\"enableDiagnosticsSupport\":false,\"logging\":{\"storageAccount\":{\"accountName\":\"hrzayvvtpgvdf\",\"containerName\":\"otkftutqxlngx\"}}}") - .toObject(NginxDeploymentUpdateProperties.class); - Assertions.assertEquals(false, model.enableDiagnosticsSupport()); - Assertions.assertEquals("hrzayvvtpgvdf", model.logging().storageAccount().accountName()); - Assertions.assertEquals("otkftutqxlngx", model.logging().storageAccount().containerName()); - } - - @Test - public void testSerialize() { - NginxDeploymentUpdateProperties model = - new NginxDeploymentUpdateProperties() - .withEnableDiagnosticsSupport(false) - .withLogging( - new NginxLogging() - .withStorageAccount( - new NginxStorageAccount() - .withAccountName("hrzayvvtpgvdf") - .withContainerName("otkftutqxlngx"))); - model = BinaryData.fromObject(model).toObject(NginxDeploymentUpdateProperties.class); - Assertions.assertEquals(false, model.enableDiagnosticsSupport()); - Assertions.assertEquals("hrzayvvtpgvdf", model.logging().storageAccount().accountName()); - Assertions.assertEquals("otkftutqxlngx", model.logging().storageAccount().containerName()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxFrontendIpConfigurationTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxFrontendIpConfigurationTests.java deleted file mode 100644 index 88b137bf0ff0..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxFrontendIpConfigurationTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxFrontendIpConfiguration; -import com.azure.resourcemanager.nginx.models.NginxPrivateIpAddress; -import com.azure.resourcemanager.nginx.models.NginxPrivateIpAllocationMethod; -import com.azure.resourcemanager.nginx.models.NginxPublicIpAddress; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxFrontendIpConfigurationTests { - @Test - public void testDeserialize() { - NginxFrontendIpConfiguration model = - BinaryData - .fromString( - "{\"publicIPAddresses\":[{\"id\":\"kirsoodqxhc\"},{\"id\":\"nohjt\"},{\"id\":\"whdsoifiyip\"}],\"privateIPAddresses\":[{\"privateIPAddress\":\"wpgrjbzno\",\"privateIPAllocationMethod\":\"Dynamic\",\"subnetId\":\"vsnb\"},{\"privateIPAddress\":\"qabnmoc\",\"privateIPAllocationMethod\":\"Static\",\"subnetId\":\"hurzafblj\"}]}") - .toObject(NginxFrontendIpConfiguration.class); - Assertions.assertEquals("kirsoodqxhc", model.publicIpAddresses().get(0).id()); - Assertions.assertEquals("wpgrjbzno", model.privateIpAddresses().get(0).privateIpAddress()); - Assertions - .assertEquals( - NginxPrivateIpAllocationMethod.DYNAMIC, model.privateIpAddresses().get(0).privateIpAllocationMethod()); - Assertions.assertEquals("vsnb", model.privateIpAddresses().get(0).subnetId()); - } - - @Test - public void testSerialize() { - NginxFrontendIpConfiguration model = - new NginxFrontendIpConfiguration() - .withPublicIpAddresses( - Arrays - .asList( - new NginxPublicIpAddress().withId("kirsoodqxhc"), - new NginxPublicIpAddress().withId("nohjt"), - new NginxPublicIpAddress().withId("whdsoifiyip"))) - .withPrivateIpAddresses( - Arrays - .asList( - new NginxPrivateIpAddress() - .withPrivateIpAddress("wpgrjbzno") - .withPrivateIpAllocationMethod(NginxPrivateIpAllocationMethod.DYNAMIC) - .withSubnetId("vsnb"), - new NginxPrivateIpAddress() - .withPrivateIpAddress("qabnmoc") - .withPrivateIpAllocationMethod(NginxPrivateIpAllocationMethod.STATIC) - .withSubnetId("hurzafblj"))); - model = BinaryData.fromObject(model).toObject(NginxFrontendIpConfiguration.class); - Assertions.assertEquals("kirsoodqxhc", model.publicIpAddresses().get(0).id()); - Assertions.assertEquals("wpgrjbzno", model.privateIpAddresses().get(0).privateIpAddress()); - Assertions - .assertEquals( - NginxPrivateIpAllocationMethod.DYNAMIC, model.privateIpAddresses().get(0).privateIpAllocationMethod()); - Assertions.assertEquals("vsnb", model.privateIpAddresses().get(0).subnetId()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxLoggingTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxLoggingTests.java deleted file mode 100644 index 2bc53665061e..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxLoggingTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxLogging; -import com.azure.resourcemanager.nginx.models.NginxStorageAccount; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxLoggingTests { - @Test - public void testDeserialize() { - NginxLogging model = - BinaryData - .fromString("{\"storageAccount\":{\"accountName\":\"khbzhfepgzg\",\"containerName\":\"xzlocxscp\"}}") - .toObject(NginxLogging.class); - Assertions.assertEquals("khbzhfepgzg", model.storageAccount().accountName()); - Assertions.assertEquals("xzlocxscp", model.storageAccount().containerName()); - } - - @Test - public void testSerialize() { - NginxLogging model = - new NginxLogging() - .withStorageAccount( - new NginxStorageAccount().withAccountName("khbzhfepgzg").withContainerName("xzlocxscp")); - model = BinaryData.fromObject(model).toObject(NginxLogging.class); - Assertions.assertEquals("khbzhfepgzg", model.storageAccount().accountName()); - Assertions.assertEquals("xzlocxscp", model.storageAccount().containerName()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxNetworkInterfaceConfigurationTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxNetworkInterfaceConfigurationTests.java deleted file mode 100644 index e80d1fb7be88..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxNetworkInterfaceConfigurationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxNetworkInterfaceConfiguration; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxNetworkInterfaceConfigurationTests { - @Test - public void testDeserialize() { - NginxNetworkInterfaceConfiguration model = - BinaryData.fromString("{\"subnetId\":\"dj\"}").toObject(NginxNetworkInterfaceConfiguration.class); - Assertions.assertEquals("dj", model.subnetId()); - } - - @Test - public void testSerialize() { - NginxNetworkInterfaceConfiguration model = new NginxNetworkInterfaceConfiguration().withSubnetId("dj"); - model = BinaryData.fromObject(model).toObject(NginxNetworkInterfaceConfiguration.class); - Assertions.assertEquals("dj", model.subnetId()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxNetworkProfileTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxNetworkProfileTests.java deleted file mode 100644 index 5162324a408d..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxNetworkProfileTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxFrontendIpConfiguration; -import com.azure.resourcemanager.nginx.models.NginxNetworkInterfaceConfiguration; -import com.azure.resourcemanager.nginx.models.NginxNetworkProfile; -import com.azure.resourcemanager.nginx.models.NginxPrivateIpAddress; -import com.azure.resourcemanager.nginx.models.NginxPrivateIpAllocationMethod; -import com.azure.resourcemanager.nginx.models.NginxPublicIpAddress; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxNetworkProfileTests { - @Test - public void testDeserialize() { - NginxNetworkProfile model = - BinaryData - .fromString( - "{\"frontEndIPConfiguration\":{\"publicIPAddresses\":[{\"id\":\"wisdkft\"},{\"id\":\"xmnteiwaop\"},{\"id\":\"mijcmmxdcufufs\"}],\"privateIPAddresses\":[{\"privateIPAddress\":\"zidnsezcxtbzsgfy\",\"privateIPAllocationMethod\":\"Static\",\"subnetId\":\"ewmdw\"},{\"privateIPAddress\":\"eiachboosflnr\",\"privateIPAllocationMethod\":\"Static\",\"subnetId\":\"pteehzzv\"}]},\"networkInterfaceConfiguration\":{\"subnetId\":\"qrimzinpv\"}}") - .toObject(NginxNetworkProfile.class); - Assertions.assertEquals("wisdkft", model.frontEndIpConfiguration().publicIpAddresses().get(0).id()); - Assertions - .assertEquals( - "zidnsezcxtbzsgfy", model.frontEndIpConfiguration().privateIpAddresses().get(0).privateIpAddress()); - Assertions - .assertEquals( - NginxPrivateIpAllocationMethod.STATIC, - model.frontEndIpConfiguration().privateIpAddresses().get(0).privateIpAllocationMethod()); - Assertions.assertEquals("ewmdw", model.frontEndIpConfiguration().privateIpAddresses().get(0).subnetId()); - Assertions.assertEquals("qrimzinpv", model.networkInterfaceConfiguration().subnetId()); - } - - @Test - public void testSerialize() { - NginxNetworkProfile model = - new NginxNetworkProfile() - .withFrontEndIpConfiguration( - new NginxFrontendIpConfiguration() - .withPublicIpAddresses( - Arrays - .asList( - new NginxPublicIpAddress().withId("wisdkft"), - new NginxPublicIpAddress().withId("xmnteiwaop"), - new NginxPublicIpAddress().withId("mijcmmxdcufufs"))) - .withPrivateIpAddresses( - Arrays - .asList( - new NginxPrivateIpAddress() - .withPrivateIpAddress("zidnsezcxtbzsgfy") - .withPrivateIpAllocationMethod(NginxPrivateIpAllocationMethod.STATIC) - .withSubnetId("ewmdw"), - new NginxPrivateIpAddress() - .withPrivateIpAddress("eiachboosflnr") - .withPrivateIpAllocationMethod(NginxPrivateIpAllocationMethod.STATIC) - .withSubnetId("pteehzzv")))) - .withNetworkInterfaceConfiguration(new NginxNetworkInterfaceConfiguration().withSubnetId("qrimzinpv")); - model = BinaryData.fromObject(model).toObject(NginxNetworkProfile.class); - Assertions.assertEquals("wisdkft", model.frontEndIpConfiguration().publicIpAddresses().get(0).id()); - Assertions - .assertEquals( - "zidnsezcxtbzsgfy", model.frontEndIpConfiguration().privateIpAddresses().get(0).privateIpAddress()); - Assertions - .assertEquals( - NginxPrivateIpAllocationMethod.STATIC, - model.frontEndIpConfiguration().privateIpAddresses().get(0).privateIpAllocationMethod()); - Assertions.assertEquals("ewmdw", model.frontEndIpConfiguration().privateIpAddresses().get(0).subnetId()); - Assertions.assertEquals("qrimzinpv", model.networkInterfaceConfiguration().subnetId()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxPrivateIpAddressTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxPrivateIpAddressTests.java deleted file mode 100644 index decefd324207..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxPrivateIpAddressTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxPrivateIpAddress; -import com.azure.resourcemanager.nginx.models.NginxPrivateIpAllocationMethod; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxPrivateIpAddressTests { - @Test - public void testDeserialize() { - NginxPrivateIpAddress model = - BinaryData - .fromString( - "{\"privateIPAddress\":\"vbqid\",\"privateIPAllocationMethod\":\"Static\",\"subnetId\":\"zyulp\"}") - .toObject(NginxPrivateIpAddress.class); - Assertions.assertEquals("vbqid", model.privateIpAddress()); - Assertions.assertEquals(NginxPrivateIpAllocationMethod.STATIC, model.privateIpAllocationMethod()); - Assertions.assertEquals("zyulp", model.subnetId()); - } - - @Test - public void testSerialize() { - NginxPrivateIpAddress model = - new NginxPrivateIpAddress() - .withPrivateIpAddress("vbqid") - .withPrivateIpAllocationMethod(NginxPrivateIpAllocationMethod.STATIC) - .withSubnetId("zyulp"); - model = BinaryData.fromObject(model).toObject(NginxPrivateIpAddress.class); - Assertions.assertEquals("vbqid", model.privateIpAddress()); - Assertions.assertEquals(NginxPrivateIpAllocationMethod.STATIC, model.privateIpAllocationMethod()); - Assertions.assertEquals("zyulp", model.subnetId()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxPublicIpAddressTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxPublicIpAddressTests.java deleted file mode 100644 index 105a561ca2d8..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxPublicIpAddressTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxPublicIpAddress; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxPublicIpAddressTests { - @Test - public void testDeserialize() { - NginxPublicIpAddress model = - BinaryData.fromString("{\"id\":\"pbtoqcjmkl\"}").toObject(NginxPublicIpAddress.class); - Assertions.assertEquals("pbtoqcjmkl", model.id()); - } - - @Test - public void testSerialize() { - NginxPublicIpAddress model = new NginxPublicIpAddress().withId("pbtoqcjmkl"); - model = BinaryData.fromObject(model).toObject(NginxPublicIpAddress.class); - Assertions.assertEquals("pbtoqcjmkl", model.id()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxStorageAccountTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxStorageAccountTests.java deleted file mode 100644 index ebcb99ab6540..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/NginxStorageAccountTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.NginxStorageAccount; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class NginxStorageAccountTests { - @Test - public void testDeserialize() { - NginxStorageAccount model = - BinaryData - .fromString("{\"accountName\":\"erhhbcsglumm\",\"containerName\":\"tjaodxobnb\"}") - .toObject(NginxStorageAccount.class); - Assertions.assertEquals("erhhbcsglumm", model.accountName()); - Assertions.assertEquals("tjaodxobnb", model.containerName()); - } - - @Test - public void testSerialize() { - NginxStorageAccount model = - new NginxStorageAccount().withAccountName("erhhbcsglumm").withContainerName("tjaodxobnb"); - model = BinaryData.fromObject(model).toObject(NginxStorageAccount.class); - Assertions.assertEquals("erhhbcsglumm", model.accountName()); - Assertions.assertEquals("tjaodxobnb", model.containerName()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationDisplayTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationDisplayTests.java deleted file mode 100644 index bea4c707029c..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationDisplayTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class OperationDisplayTests { - @Test - public void testDeserialize() { - OperationDisplay model = - BinaryData - .fromString( - "{\"provider\":\"ev\",\"resource\":\"ggzfbu\",\"operation\":\"mvfaxkffeiith\",\"description\":\"m\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("ev", model.provider()); - Assertions.assertEquals("ggzfbu", model.resource()); - Assertions.assertEquals("mvfaxkffeiith", model.operation()); - Assertions.assertEquals("m", model.description()); - } - - @Test - public void testSerialize() { - OperationDisplay model = - new OperationDisplay() - .withProvider("ev") - .withResource("ggzfbu") - .withOperation("mvfaxkffeiith") - .withDescription("m"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("ev", model.provider()); - Assertions.assertEquals("ggzfbu", model.resource()); - Assertions.assertEquals("mvfaxkffeiith", model.operation()); - Assertions.assertEquals("m", model.description()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationListResultTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationListResultTests.java deleted file mode 100644 index 8606fbab24d6..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationListResultTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.fluent.models.OperationResultInner; -import com.azure.resourcemanager.nginx.models.OperationDisplay; -import com.azure.resourcemanager.nginx.models.OperationListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class OperationListResultTests { - @Test - public void testDeserialize() { - OperationListResult model = - BinaryData - .fromString( - "{\"value\":[{\"name\":\"pnpulexxbczwtru\",\"display\":{\"provider\":\"zb\",\"resource\":\"vsovmyokac\",\"operation\":\"kwlhzdo\",\"description\":\"xjmflbvv\"},\"isDataAction\":false}],\"nextLink\":\"kcciwwzjuqkhr\"}") - .toObject(OperationListResult.class); - Assertions.assertEquals("pnpulexxbczwtru", model.value().get(0).name()); - Assertions.assertEquals("zb", model.value().get(0).display().provider()); - Assertions.assertEquals("vsovmyokac", model.value().get(0).display().resource()); - Assertions.assertEquals("kwlhzdo", model.value().get(0).display().operation()); - Assertions.assertEquals("xjmflbvv", model.value().get(0).display().description()); - Assertions.assertEquals(false, model.value().get(0).isDataAction()); - Assertions.assertEquals("kcciwwzjuqkhr", model.nextLink()); - } - - @Test - public void testSerialize() { - OperationListResult model = - new OperationListResult() - .withValue( - Arrays - .asList( - new OperationResultInner() - .withName("pnpulexxbczwtru") - .withDisplay( - new OperationDisplay() - .withProvider("zb") - .withResource("vsovmyokac") - .withOperation("kwlhzdo") - .withDescription("xjmflbvv")) - .withIsDataAction(false))) - .withNextLink("kcciwwzjuqkhr"); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - Assertions.assertEquals("pnpulexxbczwtru", model.value().get(0).name()); - Assertions.assertEquals("zb", model.value().get(0).display().provider()); - Assertions.assertEquals("vsovmyokac", model.value().get(0).display().resource()); - Assertions.assertEquals("kwlhzdo", model.value().get(0).display().operation()); - Assertions.assertEquals("xjmflbvv", model.value().get(0).display().description()); - Assertions.assertEquals(false, model.value().get(0).isDataAction()); - Assertions.assertEquals("kcciwwzjuqkhr", model.nextLink()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationResultInnerTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationResultInnerTests.java deleted file mode 100644 index 60782165abe7..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationResultInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.fluent.models.OperationResultInner; -import com.azure.resourcemanager.nginx.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class OperationResultInnerTests { - @Test - public void testDeserialize() { - OperationResultInner model = - BinaryData - .fromString( - "{\"name\":\"jiwkuofoskghsau\",\"display\":{\"provider\":\"jmvxie\",\"resource\":\"ugidyjrr\",\"operation\":\"y\",\"description\":\"svexcsonpclhoco\"},\"isDataAction\":false}") - .toObject(OperationResultInner.class); - Assertions.assertEquals("jiwkuofoskghsau", model.name()); - Assertions.assertEquals("jmvxie", model.display().provider()); - Assertions.assertEquals("ugidyjrr", model.display().resource()); - Assertions.assertEquals("y", model.display().operation()); - Assertions.assertEquals("svexcsonpclhoco", model.display().description()); - Assertions.assertEquals(false, model.isDataAction()); - } - - @Test - public void testSerialize() { - OperationResultInner model = - new OperationResultInner() - .withName("jiwkuofoskghsau") - .withDisplay( - new OperationDisplay() - .withProvider("jmvxie") - .withResource("ugidyjrr") - .withOperation("y") - .withDescription("svexcsonpclhoco")) - .withIsDataAction(false); - model = BinaryData.fromObject(model).toObject(OperationResultInner.class); - Assertions.assertEquals("jiwkuofoskghsau", model.name()); - Assertions.assertEquals("jmvxie", model.display().provider()); - Assertions.assertEquals("ugidyjrr", model.display().resource()); - Assertions.assertEquals("y", model.display().operation()); - Assertions.assertEquals("svexcsonpclhoco", model.display().description()); - Assertions.assertEquals(false, model.isDataAction()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationsListMockTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationsListMockTests.java deleted file mode 100644 index fcf59602229a..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/OperationsListMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.util.Context; -import com.azure.resourcemanager.nginx.NginxManager; -import com.azure.resourcemanager.nginx.models.OperationResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"name\":\"ovbvmeueciv\",\"display\":{\"provider\":\"ce\",\"resource\":\"jgjrwjueiotwm\",\"operation\":\"ytdxwit\",\"description\":\"rjaw\"},\"isDataAction\":false}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NginxManager manager = - NginxManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(Context.NONE); - - Assertions.assertEquals("ovbvmeueciv", response.iterator().next().name()); - Assertions.assertEquals("ce", response.iterator().next().display().provider()); - Assertions.assertEquals("jgjrwjueiotwm", response.iterator().next().display().resource()); - Assertions.assertEquals("ytdxwit", response.iterator().next().display().operation()); - Assertions.assertEquals("rjaw", response.iterator().next().display().description()); - Assertions.assertEquals(false, response.iterator().next().isDataAction()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ResourceSkuTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ResourceSkuTests.java deleted file mode 100644 index b9df6086451e..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/ResourceSkuTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.ResourceSku; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -public final class ResourceSkuTests { - @Test - public void testDeserialize() { - ResourceSku model = BinaryData.fromString("{\"name\":\"xkqpxo\"}").toObject(ResourceSku.class); - Assertions.assertEquals("xkqpxo", model.name()); - } - - @Test - public void testSerialize() { - ResourceSku model = new ResourceSku().withName("xkqpxo"); - model = BinaryData.fromObject(model).toObject(ResourceSku.class); - Assertions.assertEquals("xkqpxo", model.name()); - } -} diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/UserIdentityPropertiesTests.java b/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/UserIdentityPropertiesTests.java deleted file mode 100644 index d2f6477ab264..000000000000 --- a/sdk/nginx/azure-resourcemanager-nginx/src/test/java/com/azure/resourcemanager/nginx/generated/UserIdentityPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.nginx.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.nginx.models.UserIdentityProperties; -import org.junit.jupiter.api.Test; - -public final class UserIdentityPropertiesTests { - @Test - public void testDeserialize() { - UserIdentityProperties model = - BinaryData - .fromString("{\"principalId\":\"wrlyxwjkcprb\",\"clientId\":\"b\"}") - .toObject(UserIdentityProperties.class); - } - - @Test - public void testSerialize() { - UserIdentityProperties model = new UserIdentityProperties(); - model = BinaryData.fromObject(model).toObject(UserIdentityProperties.class); - } -}