diff --git a/sdk/nginx/azure-resourcemanager-nginx/CHANGELOG.md b/sdk/nginx/azure-resourcemanager-nginx/CHANGELOG.md
index 6023bd0fb9f0..db7a319d4a62 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/CHANGELOG.md
+++ b/sdk/nginx/azure-resourcemanager-nginx/CHANGELOG.md
@@ -1,14 +1,307 @@
# Release History
-## 1.1.0-beta.4 (Unreleased)
+## 1.0.0-beta.1 (2025-05-12)
-### Features Added
+- Azure Resource Manager Nginx client library for Java. This package contains Microsoft Azure SDK for Nginx Management SDK. Package tag package-2025-03-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.OperationResult` was removed
+
+#### `models.NginxConfiguration` was removed
+
+#### `models.NginxConfiguration$Update` was removed
+
+#### `models.NginxConfiguration$Definition` was removed
+
+#### `models.NginxConfiguration$DefinitionStages` was removed
+
+#### `models.NginxConfiguration$UpdateStages` was removed
+
+#### `models.NginxConfigurationProperties` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `withDescription(java.lang.String)` was removed
+* `withProvider(java.lang.String)` was removed
+* `withOperation(java.lang.String)` was removed
+* `withResource(java.lang.String)` was removed
+
+#### `models.NginxDeploymentProperties` was modified
+
+* `withManagedResourceGroup(java.lang.String)` was removed
+* `managedResourceGroup()` was removed
+
+#### `models.OperationListResult` was modified
+
+* `withValue(java.util.List)` was removed
+* `withNextLink(java.lang.String)` was removed
+
+#### `models.NginxCertificate$Definition` was modified
+
+* `withRegion(com.azure.core.management.Region)` was removed
+* `withRegion(java.lang.String)` was removed
+
+#### `models.NginxCertificate` was modified
+
+* `location()` was removed
+* `region()` was removed
+* `regionName()` was removed
+
+#### `models.Configurations` was modified
+
+* `models.NginxConfiguration getById(java.lang.String)` -> `models.NginxConfigurationResponse getById(java.lang.String)`
+* `models.NginxConfiguration get(java.lang.String,java.lang.String,java.lang.String)` -> `models.NginxConfigurationResponse get(java.lang.String,java.lang.String,java.lang.String)`
+* `models.NginxConfiguration$DefinitionStages$Blank define(java.lang.String)` -> `models.NginxConfigurationResponse$DefinitionStages$Blank define(java.lang.String)`
+
+### Features Added
+
+* `models.NginxDeploymentDefaultWafPolicyListResponse` was added
+
+* `models.NginxConfigurationResponse$Update` was added
+
+* `models.WebApplicationFirewallSettings` was added
+
+* `models.NginxDeploymentWafPolicy$Definition` was added
+
+* `models.AnalysisDiagnostic` was added
+
+* `models.NginxDeploymentApiKeyResponse$Definition` was added
+
+* `models.NginxDeploymentApiKeyResponse$DefinitionStages` was added
+
+* `models.WafPolicies` was added
+
+* `models.NginxConfigurationResponse$UpdateStages` was added
+
+* `models.NginxCertificateErrorResponseBody` was added
+
+* `models.NginxConfigurationResponse$Definition` was added
+
+* `models.Level` was added
+
+* `models.DiagnosticItem` was added
+
+* `models.ActivationState` was added
+
+* `models.ActionType` was added
+
+* `models.NginxDeploymentApiKeyListResponse` was added
+
+* `models.NginxDeploymentApiKeyResponse$Update` was added
+
+* `models.NginxDeploymentApiKeyRequest` was added
+
+* `models.ScaleProfile` was added
+
+* `models.NginxDeploymentWafPolicyMetadataProperties` was added
+
+* `models.NginxDeploymentWafPolicyApplyingStatusCode` was added
+
+* `models.NginxDeploymentWafPolicy` was added
+
+* `models.NginxConfigurationRequestProperties` was added
+
+* `models.NginxDeploymentApiKeyResponse` was added
+
+* `models.NginxConfigurationResponseProperties` was added
+
+* `models.NginxDeploymentDefaultWafPolicyProperties` was added
+
+* `models.NginxDeploymentWafPolicyCompilingStatus` was added
+
+* `models.NginxDeploymentWafPolicyProperties` was added
+
+* `models.NginxDeploymentWafPolicyCompilingStatusCode` was added
+
+* `models.NginxConfigurationRequest` was added
+
+* `models.NginxDeploymentApiKeyResponseProperties` was added
+
+* `models.WebApplicationFirewallComponentVersions` was added
+
+* `models.NginxConfigurationProtectedFileRequest` was added
+
+* `models.Origin` was added
+
+* `models.WebApplicationFirewallStatus` was added
+
+* `models.NginxDeploymentWafPolicyMetadata` was added
+
+* `models.Operation` was added
+
+* `models.NginxConfigurationResponse$DefinitionStages` was added
+
+* `models.NginxDeploymentWafPolicy$DefinitionStages` was added
+
+* `models.NginxDeploymentApiKeyResponse$UpdateStages` was added
+
+* `models.WebApplicationFirewallPackage` was added
+
+* `models.ApiKeys` was added
+
+* `models.AutoUpgradeProfile` was added
+
+* `models.NginxDeploymentWafPolicyApplyingStatus` was added
+
+* `models.AnalysisCreate` was added
+
+* `models.NginxConfigurationResponse` was added
+
+* `models.NginxConfigurationProtectedFileResponse` was added
+
+* `models.NginxDeploymentApiKeyRequestProperties` was added
+
+* `models.AnalysisResult` was added
+
+* `models.DefaultWafPolicies` was added
+
+* `models.NginxDeploymentWafPolicyListResponse` was added
+
+#### `models.UserIdentityProperties` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NginxNetworkInterfaceConfiguration` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NginxDeploymentScalingProperties` was modified
+
+* `profiles()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `withProfiles(java.util.List)` was added
+
+#### `models.NginxConfigurationListResponse` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NginxFrontendIpConfiguration` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.OperationDisplay` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NginxDeploymentUserProfile` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NginxDeploymentUpdateProperties` was modified
+
+* `webApplicationFirewallSettings()` was added
+* `autoUpgradeProfile()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `networkProfile()` was added
+* `withNetworkProfile(models.NginxNetworkProfile)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `withAutoUpgradeProfile(models.AutoUpgradeProfile)` was added
+* `withWebApplicationFirewallSettings(models.WebApplicationFirewallSettings)` was added
+
+#### `models.NginxLogging` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NginxDeploymentProperties` was modified
+
+* `withAutoUpgradeProfile(models.AutoUpgradeProfile)` was added
+* `webApplicationFirewallSettings()` was added
+* `withWebApplicationFirewallSettings(models.WebApplicationFirewallSettings)` was added
+* `webApplicationFirewallStatus()` was added
+* `dataplaneApiEndpoint()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `autoUpgradeProfile()` was added
+
+#### `models.NginxCertificateProperties` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `keyVaultSecretVersion()` was added
+* `sha1Thumbprint()` was added
+* `certificateError()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `keyVaultSecretCreated()` was added
+* `withCertificateError(models.NginxCertificateErrorResponseBody)` was added
+
+#### `models.NginxNetworkProfile` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NginxCertificateListResponse` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.IdentityProperties` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.OperationListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NginxConfigurationFile` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NginxDeploymentListResponse` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NginxDeploymentUpdateParameters` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `NginxManager` was modified
+
+* `defaultWafPolicies()` was added
+* `wafPolicies()` was added
+* `apiKeys()` was added
+
+#### `models.Configurations` was modified
+
+* `analysisWithResponse(java.lang.String,java.lang.String,java.lang.String,models.AnalysisCreate,com.azure.core.util.Context)` was added
+* `analysis(java.lang.String,java.lang.String,java.lang.String)` was added
+
+#### `models.NginxPublicIpAddress` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NginxConfigurationPackage` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.ResourceSku` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NginxStorageAccount` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NginxPrivateIpAddress` was modified
-### Other Changes
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
## 1.1.0-beta.3 (2025-02-26)
diff --git a/sdk/nginx/azure-resourcemanager-nginx/README.md b/sdk/nginx/azure-resourcemanager-nginx/README.md
index a4cef05c1551..4fdc3f01c067 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-2024-11-01-preview. 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-2025-03-01-preview. 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
diff --git a/sdk/nginx/azure-resourcemanager-nginx/SAMPLE.md b/sdk/nginx/azure-resourcemanager-nginx/SAMPLE.md
index 690718f9390c..29989fd32d10 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/SAMPLE.md
+++ b/sdk/nginx/azure-resourcemanager-nginx/SAMPLE.md
@@ -23,6 +23,10 @@
- [Get](#configurations_get)
- [List](#configurations_list)
+## DefaultWafPolicy
+
+- [List](#defaultwafpolicy_list)
+
## Deployments
- [CreateOrUpdate](#deployments_createorupdate)
@@ -35,25 +39,31 @@
## Operations
- [List](#operations_list)
+
+## WafPolicy
+
+- [Create](#wafpolicy_create)
+- [Delete](#wafpolicy_delete)
+- [Get](#wafpolicy_get)
+- [List](#wafpolicy_list)
### ApiKeys_CreateOrUpdate
```java
/**
- * Samples for ApiKeys CreateOrUpdate.
+ * Samples for Certificates Delete.
*/
-public final class ApiKeysCreateOrUpdateSamples {
+public final class CertificatesDeleteSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/ApiKeys_CreateOrUpdate.
- * json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Certificates_Delete.json
*/
/**
- * Sample code: ApiKeys_CreateOrUpdate.
+ * Sample code: Certificates_Delete.
*
* @param manager Entry point to NginxManager.
*/
- public static void apiKeysCreateOrUpdate(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.apiKeys().define("myApiKey").withExistingNginxDeployment("myResourceGroup", "myDeployment").create();
+ public static void certificatesDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.certificates().delete("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -61,22 +71,43 @@ public final class ApiKeysCreateOrUpdateSamples {
### ApiKeys_Delete
```java
+import com.azure.resourcemanager.nginx.models.NginxDeployment;
+
/**
- * Samples for ApiKeys Delete.
+ * Samples for Deployments Update.
*/
-public final class ApiKeysDeleteSamples {
+public final class DeploymentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/ApiKeys_Delete.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Deployments_Update.json
*/
/**
- * Sample code: ApiKeys_Delete.
+ * Sample code: Deployments_Update.
*
* @param manager Entry point to NginxManager.
*/
- public static void apiKeysDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.apiKeys()
- .deleteWithResponse("myResourceGroup", "myDeployment", "myApiKey", com.azure.core.util.Context.NONE);
+ public static void deploymentsUpdate(com.azure.resourcemanager.nginx.NginxManager manager) {
+ NginxDeployment resource = manager.deployments()
+ .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Deployments_UpdateSubnet
+ * .json
+ */
+ /**
+ * Sample code: Deployments_UpdateSubnet.
+ *
+ * @param manager Entry point to NginxManager.
+ */
+ public static void deploymentsUpdateSubnet(com.azure.resourcemanager.nginx.NginxManager manager) {
+ NginxDeployment resource = manager.deployments()
+ .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
}
}
```
@@ -85,21 +116,21 @@ public final class ApiKeysDeleteSamples {
```java
/**
- * Samples for ApiKeys Get.
+ * Samples for ApiKeys CreateOrUpdate.
*/
-public final class ApiKeysGetSamples {
+public final class ApiKeysCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/ApiKeys_Get.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/ApiKeys_CreateOrUpdate.
+ * json
*/
/**
- * Sample code: ApiKeys_Get.
+ * Sample code: ApiKeys_CreateOrUpdate.
*
* @param manager Entry point to NginxManager.
*/
- public static void apiKeysGet(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.apiKeys()
- .getWithResponse("myResourceGroup", "myDeployment", "myApiKey", com.azure.core.util.Context.NONE);
+ public static void apiKeysCreateOrUpdate(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.apiKeys().define("myApiKey").withExistingNginxDeployment("myResourceGroup", "myDeployment").create();
}
}
```
@@ -108,33 +139,74 @@ public final class ApiKeysGetSamples {
```java
/**
- * Samples for ApiKeys List.
+ * Samples for Deployments CreateOrUpdate.
*/
-public final class ApiKeysListSamples {
+public final class DeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/ApiKeys_List.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Deployments_Create.json
*/
/**
- * Sample code: ApiKeys_List.
+ * Sample code: Deployments_Create.
*
* @param manager Entry point to NginxManager.
*/
- public static void apiKeysList(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.apiKeys().list("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
+ public static void deploymentsCreate(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.deployments()
+ .define("myDeployment")
+ .withRegion((String) null)
+ .withExistingResourceGroup("myResourceGroup")
+ .create();
}
}
```
### Certificates_CreateOrUpdate
+```java
+/**
+ * Samples for Deployments GetByResourceGroup.
+ */
+public final class DeploymentsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Deployments_Get.json
+ */
+ /**
+ * Sample code: Deployments_Get.
+ *
+ * @param manager Entry point to NginxManager.
+ */
+ public static void deploymentsGet(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.deployments()
+ .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/
+ * Deployments_Get_AutoScale.json
+ */
+ /**
+ * Sample code: Deployments_Get_AutoScale.
+ *
+ * @param manager Entry point to NginxManager.
+ */
+ public static void deploymentsGetAutoScale(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.deployments()
+ .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Certificates_Delete
+
```java
/**
* Samples for Certificates CreateOrUpdate.
*/
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/
+ * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/
* Certificates_CreateOrUpdate.json
*/
/**
@@ -151,52 +223,54 @@ public final class CertificatesCreateOrUpdateSamples {
}
```
-### Certificates_Delete
+### Certificates_Get
```java
/**
- * Samples for Certificates Delete.
+ * Samples for Configurations List.
*/
-public final class CertificatesDeleteSamples {
+public final class ConfigurationsListSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Certificates_Delete.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Configurations_List.json
*/
/**
- * Sample code: Certificates_Delete.
+ * Sample code: Configurations_List.
*
* @param manager Entry point to NginxManager.
*/
- public static void certificatesDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.certificates().delete("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE);
+ public static void configurationsList(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.configurations().list("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
}
}
```
-### Certificates_Get
+### Certificates_List
```java
/**
- * Samples for Certificates Get.
+ * Samples for WafPolicy Create.
*/
-public final class CertificatesGetSamples {
+public final class WafPolicyCreateSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Certificates_Get.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/WafPolicy_Create.json
*/
/**
- * Sample code: Certificates_Get.
+ * Sample code: WafPolicy_Create.
*
* @param manager Entry point to NginxManager.
*/
- public static void certificatesGet(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.certificates()
- .getWithResponse("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE);
+ public static void wafPolicyCreate(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.wafPolicies()
+ .define("myWafPolicy")
+ .withExistingNginxDeployment("myResourceGroup", "myDeployment")
+ .create();
}
}
```
-### Certificates_List
+### Configurations_Analysis
```java
/**
@@ -205,7 +279,7 @@ public final class CertificatesGetSamples {
public final class CertificatesListSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Certificates_List.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Certificates_List.json
*/
/**
* Sample code: Certificates_List.
@@ -218,7 +292,30 @@ public final class CertificatesListSamples {
}
```
-### Configurations_Analysis
+### Configurations_CreateOrUpdate
+
+```java
+/**
+ * Samples for ApiKeys Delete.
+ */
+public final class ApiKeysDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/ApiKeys_Delete.json
+ */
+ /**
+ * Sample code: ApiKeys_Delete.
+ *
+ * @param manager Entry point to NginxManager.
+ */
+ public static void apiKeysDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.apiKeys()
+ .deleteWithResponse("myResourceGroup", "myDeployment", "myApiKey", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Configurations_Delete
```java
@@ -228,7 +325,7 @@ public final class CertificatesListSamples {
public final class ConfigurationsAnalysisSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Configurations_Analysis.
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Configurations_Analysis.
* json
*/
/**
@@ -243,290 +340,321 @@ public final class ConfigurationsAnalysisSamples {
}
```
-### Configurations_CreateOrUpdate
+### Configurations_Get
```java
/**
- * Samples for Configurations CreateOrUpdate.
+ * Samples for WafPolicy Delete.
*/
-public final class ConfigurationsCreateOrUpdateSamples {
+public final class WafPolicyDeleteSamples {
/*
- * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/
- * Configurations_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/WafPolicy_Delete.json
*/
/**
- * Sample code: Configurations_CreateOrUpdate.
+ * Sample code: WafPolicy_Delete.
*
* @param manager Entry point to NginxManager.
*/
- public static void configurationsCreateOrUpdate(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.configurations()
- .define("default")
- .withExistingNginxDeployment("myResourceGroup", "myDeployment")
- .create();
+ public static void wafPolicyDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.wafPolicies()
+ .delete("myResourceGroup", "myDeployment", "myWafPolicy", com.azure.core.util.Context.NONE);
}
}
```
-### Configurations_Delete
+### Configurations_List
```java
/**
- * Samples for Configurations Delete.
+ * Samples for ApiKeys Get.
*/
-public final class ConfigurationsDeleteSamples {
+public final class ApiKeysGetSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Configurations_Delete.
- * json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/ApiKeys_Get.json
*/
/**
- * Sample code: Configurations_Delete.
+ * Sample code: ApiKeys_Get.
*
* @param manager Entry point to NginxManager.
*/
- public static void configurationsDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.configurations().delete("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE);
+ public static void apiKeysGet(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.apiKeys()
+ .getWithResponse("myResourceGroup", "myDeployment", "myApiKey", com.azure.core.util.Context.NONE);
}
}
```
-### Configurations_Get
+### DefaultWafPolicy_List
```java
/**
- * Samples for Configurations Get.
+ * Samples for Operations List.
*/
-public final class ConfigurationsGetSamples {
+public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Configurations_Get.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Operations_List.json
*/
/**
- * Sample code: Configurations_Get.
+ * Sample code: Operations_List.
*
* @param manager Entry point to NginxManager.
*/
- public static void configurationsGet(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.configurations()
- .getWithResponse("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE);
+ public static void operationsList(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
-### Configurations_List
+### Deployments_CreateOrUpdate
```java
/**
- * Samples for Configurations List.
+ * Samples for Deployments ListByResourceGroup.
*/
-public final class ConfigurationsListSamples {
+public final class DeploymentsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Configurations_List.json
+ * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/
+ * Deployments_ListByResourceGroup.json
*/
/**
- * Sample code: Configurations_List.
+ * Sample code: Deployments_ListByResourceGroup.
*
* @param manager Entry point to NginxManager.
*/
- public static void configurationsList(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.configurations().list("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
+ public static void deploymentsListByResourceGroup(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.deployments().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE);
}
}
```
-### Deployments_CreateOrUpdate
+### Deployments_Delete
```java
/**
- * Samples for Deployments CreateOrUpdate.
+ * Samples for ApiKeys List.
*/
-public final class DeploymentsCreateOrUpdateSamples {
+public final class ApiKeysListSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Deployments_Create.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/ApiKeys_List.json
*/
/**
- * Sample code: Deployments_Create.
+ * Sample code: ApiKeys_List.
*
* @param manager Entry point to NginxManager.
*/
- public static void deploymentsCreate(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.deployments()
- .define("myDeployment")
- .withRegion((String) null)
- .withExistingResourceGroup("myResourceGroup")
- .create();
+ public static void apiKeysList(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.apiKeys().list("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
}
}
```
-### Deployments_Delete
+### Deployments_GetByResourceGroup
```java
/**
- * Samples for Deployments Delete.
+ * Samples for Deployments List.
*/
-public final class DeploymentsDeleteSamples {
+public final class DeploymentsListSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Deployments_Delete.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Deployments_List.json
*/
/**
- * Sample code: Deployments_Delete.
+ * Sample code: Deployments_List.
*
* @param manager Entry point to NginxManager.
*/
- public static void deploymentsDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.deployments().delete("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
+ public static void deploymentsList(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.deployments().list(com.azure.core.util.Context.NONE);
}
}
```
-### Deployments_GetByResourceGroup
+### Deployments_List
```java
/**
- * Samples for Deployments GetByResourceGroup.
+ * Samples for WafPolicy List.
*/
-public final class DeploymentsGetByResourceGroupSamples {
+public final class WafPolicyListSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Deployments_Get.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/WafPolicy_List.json
*/
/**
- * Sample code: Deployments_Get.
+ * Sample code: WafPolicy_List.
*
* @param manager Entry point to NginxManager.
*/
- public static void deploymentsGet(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.deployments()
- .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
+ public static void wafPolicyList(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.wafPolicies().list("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
}
+}
+```
+### Deployments_ListByResourceGroup
+
+```java
+/**
+ * Samples for Certificates Get.
+ */
+public final class CertificatesGetSamples {
/*
- * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/
- * Deployments_Get_AutoScale.json
+ * x-ms-original-file:
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Certificates_Get.json
*/
/**
- * Sample code: Deployments_Get_AutoScale.
+ * Sample code: Certificates_Get.
*
* @param manager Entry point to NginxManager.
*/
- public static void deploymentsGetAutoScale(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.deployments()
- .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
+ public static void certificatesGet(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.certificates()
+ .getWithResponse("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE);
}
}
```
-### Deployments_List
+### Deployments_Update
```java
/**
- * Samples for Deployments List.
+ * Samples for Configurations Get.
*/
-public final class DeploymentsListSamples {
+public final class ConfigurationsGetSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Deployments_List.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Configurations_Get.json
*/
/**
- * Sample code: Deployments_List.
+ * Sample code: Configurations_Get.
*
* @param manager Entry point to NginxManager.
*/
- public static void deploymentsList(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.deployments().list(com.azure.core.util.Context.NONE);
+ public static void configurationsGet(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.configurations()
+ .getWithResponse("myResourceGroup", "myDeployment", "default", com.azure.core.util.Context.NONE);
}
}
```
-### Deployments_ListByResourceGroup
+### Operations_List
```java
/**
- * Samples for Deployments ListByResourceGroup.
+ * Samples for Configurations CreateOrUpdate.
*/
-public final class DeploymentsListByResourceGroupSamples {
+public final class ConfigurationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/
- * Deployments_ListByResourceGroup.json
+ * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/
+ * Configurations_CreateOrUpdate.json
*/
/**
- * Sample code: Deployments_ListByResourceGroup.
+ * Sample code: Configurations_CreateOrUpdate.
*
* @param manager Entry point to NginxManager.
*/
- public static void deploymentsListByResourceGroup(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.deployments().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE);
+ public static void configurationsCreateOrUpdate(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.configurations()
+ .define("default")
+ .withExistingNginxDeployment("myResourceGroup", "myDeployment")
+ .create();
}
}
```
-### Deployments_Update
+### WafPolicy_Create
```java
-import com.azure.resourcemanager.nginx.models.NginxDeployment;
+/**
+ * Samples for DefaultWafPolicy List.
+ */
+public final class DefaultWafPolicyListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/DefaultWafPolicy_List.
+ * json
+ */
+ /**
+ * Sample code: DefaultWafPolicy_List.
+ *
+ * @param manager Entry point to NginxManager.
+ */
+ public static void defaultWafPolicyList(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.defaultWafPolicies()
+ .listWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
+ }
+}
+```
+### WafPolicy_Delete
+
+```java
/**
- * Samples for Deployments Update.
+ * Samples for Deployments Delete.
*/
-public final class DeploymentsUpdateSamples {
+public final class DeploymentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Deployments_Update.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Deployments_Delete.json
*/
/**
- * Sample code: Deployments_Update.
+ * Sample code: Deployments_Delete.
*
* @param manager Entry point to NginxManager.
*/
- public static void deploymentsUpdate(com.azure.resourcemanager.nginx.NginxManager manager) {
- NginxDeployment resource = manager.deployments()
- .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().apply();
+ public static void deploymentsDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.deployments().delete("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE);
}
+}
+```
+### WafPolicy_Get
+
+```java
+/**
+ * Samples for WafPolicy Get.
+ */
+public final class WafPolicyGetSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Deployments_UpdateSubnet
- * .json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/WafPolicy_Get.json
*/
/**
- * Sample code: Deployments_UpdateSubnet.
+ * Sample code: WafPolicy_Get.
*
* @param manager Entry point to NginxManager.
*/
- public static void deploymentsUpdateSubnet(com.azure.resourcemanager.nginx.NginxManager manager) {
- NginxDeployment resource = manager.deployments()
- .getByResourceGroupWithResponse("myResourceGroup", "myDeployment", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().apply();
+ public static void wafPolicyGet(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.wafPolicies()
+ .getWithResponse("myResourceGroup", "myDeployment", "myWafPolicy", com.azure.core.util.Context.NONE);
}
}
```
-### Operations_List
+### WafPolicy_List
```java
/**
- * Samples for Operations List.
+ * Samples for Configurations Delete.
*/
-public final class OperationsListSamples {
+public final class ConfigurationsDeleteSamples {
/*
* x-ms-original-file:
- * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-11-01-preview/examples/Operations_List.json
+ * specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2025-03-01-preview/examples/Configurations_Delete.
+ * json
*/
/**
- * Sample code: Operations_List.
+ * Sample code: Configurations_Delete.
*
* @param manager Entry point to NginxManager.
*/
- public static void operationsList(com.azure.resourcemanager.nginx.NginxManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void configurationsDelete(com.azure.resourcemanager.nginx.NginxManager manager) {
+ manager.configurations().delete("myResourceGroup", "myDeployment", "default", 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 da8138f8ae29..992ee6724335 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/pom.xml
+++ b/sdk/nginx/azure-resourcemanager-nginx/pom.xml
@@ -18,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-2024-11-01-preview.
+ 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-2025-03-01-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -46,7 +46,6 @@
0
0
true
- false
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 663857029f3a..7680bc2f13c8 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
@@ -28,14 +28,18 @@
import com.azure.resourcemanager.nginx.implementation.ApiKeysImpl;
import com.azure.resourcemanager.nginx.implementation.CertificatesImpl;
import com.azure.resourcemanager.nginx.implementation.ConfigurationsImpl;
+import com.azure.resourcemanager.nginx.implementation.DefaultWafPoliciesImpl;
import com.azure.resourcemanager.nginx.implementation.DeploymentsImpl;
import com.azure.resourcemanager.nginx.implementation.NginxManagementClientBuilder;
import com.azure.resourcemanager.nginx.implementation.OperationsImpl;
+import com.azure.resourcemanager.nginx.implementation.WafPoliciesImpl;
import com.azure.resourcemanager.nginx.models.ApiKeys;
import com.azure.resourcemanager.nginx.models.Certificates;
import com.azure.resourcemanager.nginx.models.Configurations;
+import com.azure.resourcemanager.nginx.models.DefaultWafPolicies;
import com.azure.resourcemanager.nginx.models.Deployments;
import com.azure.resourcemanager.nginx.models.Operations;
+import com.azure.resourcemanager.nginx.models.WafPolicies;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -56,6 +60,10 @@ public final class NginxManager {
private Deployments deployments;
+ private WafPolicies wafPolicies;
+
+ private DefaultWafPolicies defaultWafPolicies;
+
private Operations operations;
private final NginxManagementClient clientObject;
@@ -321,6 +329,30 @@ public Deployments deployments() {
return deployments;
}
+ /**
+ * Gets the resource collection API of WafPolicies. It manages NginxDeploymentWafPolicy.
+ *
+ * @return Resource collection API of WafPolicies.
+ */
+ public WafPolicies wafPolicies() {
+ if (this.wafPolicies == null) {
+ this.wafPolicies = new WafPoliciesImpl(clientObject.getWafPolicies(), this);
+ }
+ return wafPolicies;
+ }
+
+ /**
+ * Gets the resource collection API of DefaultWafPolicies.
+ *
+ * @return Resource collection API of DefaultWafPolicies.
+ */
+ public DefaultWafPolicies defaultWafPolicies() {
+ if (this.defaultWafPolicies == null) {
+ this.defaultWafPolicies = new DefaultWafPoliciesImpl(clientObject.getDefaultWafPolicies(), this);
+ }
+ return defaultWafPolicies;
+ }
+
/**
* Gets the resource collection API of Operations.
*
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/ApiKeysClient.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/ApiKeysClient.java
index ce0eef06bc5a..5e484d992278 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/ApiKeysClient.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/ApiKeysClient.java
@@ -27,7 +27,7 @@ public interface ApiKeysClient {
* @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 response body along with {@link Response}.
+ * @return nginx Deployment Api Key Response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String resourceGroupName,
@@ -42,7 +42,7 @@ Response createOrUpdateWithResponse(String r
* @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 response.
+ * @return nginx Deployment Api Key Response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxDeploymentApiKeyResponseInner createOrUpdate(String resourceGroupName, String deploymentName,
@@ -115,7 +115,7 @@ Response getWithResponse(String resourceGrou
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Deployment Api Key List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String deploymentName);
@@ -129,7 +129,7 @@ Response getWithResponse(String resourceGrou
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Deployment Api Key List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String deploymentName,
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 9d7709226326..6928585f106f 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
@@ -56,7 +56,7 @@ Response getWithResponse(String resourceGroupName, String
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NginxCertificateInner> beginCreateOrUpdate(String resourceGroupName,
@@ -73,7 +73,7 @@ SyncPoller, NginxCertificateInner> beginCreate
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NginxCertificateInner> beginCreateOrUpdate(String resourceGroupName,
@@ -88,7 +88,7 @@ SyncPoller, NginxCertificateInner> beginCreate
* @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 response.
+ * @return nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxCertificateInner createOrUpdate(String resourceGroupName, String deploymentName, String certificateName);
@@ -104,7 +104,7 @@ SyncPoller, NginxCertificateInner> beginCreate
* @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 response.
+ * @return nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxCertificateInner createOrUpdate(String resourceGroupName, String deploymentName, String certificateName,
@@ -176,7 +176,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Certificate List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String deploymentName);
@@ -190,7 +190,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Certificate List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String deploymentName, Context context);
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 3cfa48548954..e4662801b0dc 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
@@ -28,7 +28,7 @@ public interface ConfigurationsClient {
* @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return nginx Configuration List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String deploymentName);
@@ -42,7 +42,7 @@ public interface ConfigurationsClient {
* @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return nginx Configuration List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String deploymentName,
@@ -90,7 +90,7 @@ Response getWithResponse(String resourceGroupNa
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Configuration Response.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NginxConfigurationResponseInner>
@@ -108,7 +108,7 @@ Response getWithResponse(String resourceGroupNa
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Configuration Response.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NginxConfigurationResponseInner> beginCreateOrUpdate(
@@ -125,7 +125,7 @@ SyncPoller, NginxConfigurationRespon
* @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 response.
+ * @return nginx Configuration Response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxConfigurationResponseInner createOrUpdate(String resourceGroupName, String deploymentName,
@@ -143,7 +143,7 @@ NginxConfigurationResponseInner createOrUpdate(String resourceGroupName, String
* @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 response.
+ * @return nginx Configuration Response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxConfigurationResponseInner createOrUpdate(String resourceGroupName, String deploymentName,
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/DefaultWafPoliciesClient.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/DefaultWafPoliciesClient.java
new file mode 100644
index 000000000000..30bd338292ad
--- /dev/null
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/DefaultWafPoliciesClient.java
@@ -0,0 +1,44 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.nginx.fluent.models.NginxDeploymentDefaultWafPolicyListResponseInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in DefaultWafPoliciesClient.
+ */
+public interface DefaultWafPoliciesClient {
+ /**
+ * Get the Nginx Waf Policy 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 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 Waf Policy of given Nginx deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(String resourceGroupName,
+ String deploymentName, Context context);
+
+ /**
+ * Get the Nginx Waf Policy 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.
+ * @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 Waf Policy of given Nginx deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NginxDeploymentDefaultWafPolicyListResponseInner list(String resourceGroupName, String deploymentName);
+}
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 085c67ff307f..660d41862c07 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
@@ -54,7 +54,7 @@ Response getByResourceGroupWithResponse(String resourceGro
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Deployment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NginxDeploymentInner> beginCreateOrUpdate(String resourceGroupName,
@@ -65,12 +65,12 @@ SyncPoller, NginxDeploymentInner> beginCreateOr
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of targeted NGINX deployment.
- * @param body The body parameter.
+ * @param body The 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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Deployment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NginxDeploymentInner> beginCreateOrUpdate(String resourceGroupName,
@@ -84,7 +84,7 @@ SyncPoller, NginxDeploymentInner> beginCreateOr
* @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 response.
+ * @return nginx Deployment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxDeploymentInner createOrUpdate(String resourceGroupName, String deploymentName);
@@ -94,12 +94,12 @@ SyncPoller, NginxDeploymentInner> beginCreateOr
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of targeted NGINX deployment.
- * @param body The body parameter.
+ * @param body The 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 response.
+ * @return nginx Deployment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxDeploymentInner createOrUpdate(String resourceGroupName, String deploymentName, NginxDeploymentInner body,
@@ -113,7 +113,7 @@ NginxDeploymentInner createOrUpdate(String resourceGroupName, String deploymentN
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Deployment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NginxDeploymentInner> beginUpdate(String resourceGroupName,
@@ -124,12 +124,12 @@ SyncPoller, NginxDeploymentInner> beginUpdate(S
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of targeted NGINX deployment.
- * @param body The body parameter.
+ * @param body The Nginx deployment update parameters.
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Deployment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NginxDeploymentInner> beginUpdate(String resourceGroupName,
@@ -143,7 +143,7 @@ SyncPoller, NginxDeploymentInner> beginUpdate(S
* @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 response.
+ * @return nginx Deployment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxDeploymentInner update(String resourceGroupName, String deploymentName);
@@ -153,12 +153,12 @@ SyncPoller, NginxDeploymentInner> beginUpdate(S
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of targeted NGINX deployment.
- * @param body The body parameter.
+ * @param body The Nginx deployment update parameters.
* @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 response.
+ * @return nginx Deployment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NginxDeploymentInner update(String resourceGroupName, String deploymentName, NginxDeploymentUpdateParameters body,
@@ -221,7 +221,7 @@ NginxDeploymentInner update(String resourceGroupName, String deploymentName, Ngi
*
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Deployment List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -233,7 +233,7 @@ NginxDeploymentInner update(String resourceGroupName, String deploymentName, Ngi
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Deployment List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -245,7 +245,7 @@ NginxDeploymentInner update(String resourceGroupName, String deploymentName, Ngi
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Deployment List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -258,7 +258,7 @@ NginxDeploymentInner update(String resourceGroupName, String deploymentName, Ngi
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Deployment List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/NginxManagementClient.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/NginxManagementClient.java
index 61c60ad89dff..788511ae39cb 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/NginxManagementClient.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/NginxManagementClient.java
@@ -74,6 +74,20 @@ public interface NginxManagementClient {
*/
DeploymentsClient getDeployments();
+ /**
+ * Gets the WafPoliciesClient object to access its operations.
+ *
+ * @return the WafPoliciesClient object.
+ */
+ WafPoliciesClient getWafPolicies();
+
+ /**
+ * Gets the DefaultWafPoliciesClient object to access its operations.
+ *
+ * @return the DefaultWafPoliciesClient object.
+ */
+ DefaultWafPoliciesClient getDefaultWafPolicies();
+
/**
* Gets the OperationsClient object to access its operations.
*
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 1613e2f07bea..58fbfd197ad1 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
@@ -8,7 +8,7 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.nginx.fluent.models.OperationResultInner;
+import com.azure.resourcemanager.nginx.fluent.models.OperationInner;
/**
* An instance of this class provides access to all the operations defined in OperationsClient.
@@ -19,11 +19,11 @@ public interface OperationsClient {
*
* @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 result of GET request to list Nginx.NginxPlus operations as paginated response with
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable list();
/**
* List all operations provided by Nginx.NginxPlus for the 2024-11-01-preview api version.
@@ -32,9 +32,9 @@ public interface OperationsClient {
* @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 result of GET request to list Nginx.NginxPlus operations as paginated response with
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ PagedIterable list(Context context);
}
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/WafPoliciesClient.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/WafPoliciesClient.java
new file mode 100644
index 000000000000..2f84ed0f59d2
--- /dev/null
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/WafPoliciesClient.java
@@ -0,0 +1,200 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.nginx.fluent.models.NginxDeploymentWafPolicyInner;
+import com.azure.resourcemanager.nginx.fluent.models.NginxDeploymentWafPolicyMetadataInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in WafPoliciesClient.
+ */
+public interface WafPoliciesClient {
+ /**
+ * Get the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @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 Waf Policy of given Nginx deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String deploymentName,
+ String wafPolicyName, Context context);
+
+ /**
+ * Get the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @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 Waf Policy of given Nginx deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NginxDeploymentWafPolicyInner get(String resourceGroupName, String deploymentName, String wafPolicyName);
+
+ /**
+ * Create or update the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @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 {@link SyncPoller} for polling of nginx Deployment Waf Policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NginxDeploymentWafPolicyInner>
+ beginCreate(String resourceGroupName, String deploymentName, String wafPolicyName);
+
+ /**
+ * Create or update the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @param body The Nginx Deployment Waf Policy.
+ * @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 {@link SyncPoller} for polling of nginx Deployment Waf Policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NginxDeploymentWafPolicyInner> beginCreate(
+ String resourceGroupName, String deploymentName, String wafPolicyName, NginxDeploymentWafPolicyInner body,
+ Context context);
+
+ /**
+ * Create or update the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @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 nginx Deployment Waf Policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NginxDeploymentWafPolicyInner create(String resourceGroupName, String deploymentName, String wafPolicyName);
+
+ /**
+ * Create or update the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @param body The Nginx Deployment Waf Policy.
+ * @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 nginx Deployment Waf Policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NginxDeploymentWafPolicyInner create(String resourceGroupName, String deploymentName, String wafPolicyName,
+ NginxDeploymentWafPolicyInner body, Context context);
+
+ /**
+ * Reset the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName,
+ String wafPolicyName);
+
+ /**
+ * Reset the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName,
+ String wafPolicyName, Context context);
+
+ /**
+ * Reset the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String deploymentName, String wafPolicyName);
+
+ /**
+ * Reset the Nginx Waf Policy 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 wafPolicyName The name of Waf Policy.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String deploymentName, String wafPolicyName, Context context);
+
+ /**
+ * List Waf Policies 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.
+ * @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 nginx Deployment Waf Policy List Response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String deploymentName);
+
+ /**
+ * List Waf Policies 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 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 nginx Deployment Waf Policy List Response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String deploymentName,
+ Context context);
+}
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/AnalysisCreateConfig.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/AnalysisCreateConfig.java
similarity index 93%
rename from sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/AnalysisCreateConfig.java
rename to sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/AnalysisCreateConfig.java
index 88e4389ca21f..540b01b02864 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/AnalysisCreateConfig.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/AnalysisCreateConfig.java
@@ -2,13 +2,16 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.nginx.models;
+package com.azure.resourcemanager.nginx.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.nginx.models.NginxConfigurationFile;
+import com.azure.resourcemanager.nginx.models.NginxConfigurationPackage;
+import com.azure.resourcemanager.nginx.models.NginxConfigurationProtectedFileRequest;
import java.io.IOException;
import java.util.List;
@@ -33,7 +36,7 @@ public final class AnalysisCreateConfig implements JsonSerializable protectedFiles;
/*
- * The package property.
+ * Nginx Configuration Package
*/
private NginxConfigurationPackage packageProperty;
@@ -104,7 +107,7 @@ public AnalysisCreateConfig withProtectedFiles(List errors() {
+ return this.innerData() == null ? null : this.innerData().errors();
+ }
+
+ /**
+ * Set the errors property: The errors property.
+ *
+ * @param errors the errors value to set.
* @return the AnalysisResultInner object itself.
*/
- public AnalysisResultInner withData(AnalysisResultData data) {
- this.data = data;
+ public AnalysisResultInner withErrors(List errors) {
+ if (this.innerData() == null) {
+ this.innerData = new AnalysisResultData();
+ }
+ this.innerData().withErrors(errors);
+ return this;
+ }
+
+ /**
+ * Get the diagnostics property: The diagnostics property.
+ *
+ * @return the diagnostics value.
+ */
+ public List diagnostics() {
+ return this.innerData() == null ? null : this.innerData().diagnostics();
+ }
+
+ /**
+ * Set the diagnostics property: The diagnostics property.
+ *
+ * @param diagnostics the diagnostics value to set.
+ * @return the AnalysisResultInner object itself.
+ */
+ public AnalysisResultInner withDiagnostics(List diagnostics) {
+ if (this.innerData() == null) {
+ this.innerData = new AnalysisResultData();
+ }
+ this.innerData().withDiagnostics(diagnostics);
return this;
}
@@ -84,8 +121,8 @@ public void validate() {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property status in model AnalysisResultInner"));
}
- if (data() != null) {
- data().validate();
+ if (innerData() != null) {
+ innerData().validate();
}
}
@@ -98,7 +135,7 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("status", this.status);
- jsonWriter.writeJsonField("data", this.data);
+ jsonWriter.writeJsonField("data", this.innerData);
return jsonWriter.writeEndObject();
}
@@ -121,7 +158,7 @@ public static AnalysisResultInner fromJson(JsonReader jsonReader) throws IOExcep
if ("status".equals(fieldName)) {
deserializedAnalysisResultInner.status = reader.getString();
} else if ("data".equals(fieldName)) {
- deserializedAnalysisResultInner.data = AnalysisResultData.fromJson(reader);
+ deserializedAnalysisResultInner.innerData = AnalysisResultData.fromJson(reader);
} else {
reader.skipChildren();
}
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 c509ccde8031..4a52a8e60555 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
@@ -14,20 +14,15 @@
import java.io.IOException;
/**
- * The NginxCertificate model.
+ * Nginx Certificate.
*/
@Fluent
public final class NginxCertificateInner extends ProxyResource {
/*
- * The properties property.
+ * Nginx Certificate Properties
*/
private NginxCertificateProperties properties;
- /*
- * The location property.
- */
- private String location;
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -55,7 +50,7 @@ public NginxCertificateInner() {
}
/**
- * Get the properties property: The properties property.
+ * Get the properties property: Nginx Certificate Properties.
*
* @return the properties value.
*/
@@ -64,7 +59,7 @@ public NginxCertificateProperties properties() {
}
/**
- * Set the properties property: The properties property.
+ * Set the properties property: Nginx Certificate Properties.
*
* @param properties the properties value to set.
* @return the NginxCertificateInner object itself.
@@ -74,26 +69,6 @@ public NginxCertificateInner withProperties(NginxCertificateProperties propertie
return this;
}
- /**
- * Get the location property: The location property.
- *
- * @return the location value.
- */
- public String location() {
- return this.location;
- }
-
- /**
- * Set the location property: The location property.
- *
- * @param location the location value to set.
- * @return the NginxCertificateInner object itself.
- */
- public NginxCertificateInner withLocation(String location) {
- this.location = location;
- return this;
- }
-
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -151,7 +126,6 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("location", this.location);
return jsonWriter.writeEndObject();
}
@@ -179,8 +153,6 @@ public static NginxCertificateInner fromJson(JsonReader jsonReader) throws IOExc
deserializedNginxCertificateInner.type = reader.getString();
} else if ("properties".equals(fieldName)) {
deserializedNginxCertificateInner.properties = NginxCertificateProperties.fromJson(reader);
- } else if ("location".equals(fieldName)) {
- deserializedNginxCertificateInner.location = reader.getString();
} else if ("systemData".equals(fieldName)) {
deserializedNginxCertificateInner.systemData = SystemData.fromJson(reader);
} else {
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxConfigurationResponseInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxConfigurationResponseInner.java
index cc1ab7dd7cde..85235eaa3d4c 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxConfigurationResponseInner.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxConfigurationResponseInner.java
@@ -14,12 +14,12 @@
import java.io.IOException;
/**
- * The NginxConfigurationResponse model.
+ * Nginx Configuration Response.
*/
@Fluent
public final class NginxConfigurationResponseInner extends ProxyResource {
/*
- * The properties property.
+ * Nginx Configuration Response Properties
*/
private NginxConfigurationResponseProperties properties;
@@ -50,7 +50,7 @@ public NginxConfigurationResponseInner() {
}
/**
- * Get the properties property: The properties property.
+ * Get the properties property: Nginx Configuration Response Properties.
*
* @return the properties value.
*/
@@ -59,7 +59,7 @@ public NginxConfigurationResponseProperties properties() {
}
/**
- * Set the properties property: The properties property.
+ * Set the properties property: Nginx Configuration Response Properties.
*
* @param properties the properties value to set.
* @return the NginxConfigurationResponseInner object itself.
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentApiKeyResponseInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentApiKeyResponseInner.java
index 12805d1b8293..9bac07f2f4cd 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentApiKeyResponseInner.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentApiKeyResponseInner.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -13,15 +14,20 @@
import java.io.IOException;
/**
- * The NginxDeploymentApiKeyResponse model.
+ * Nginx Deployment Api Key Response.
*/
@Fluent
public final class NginxDeploymentApiKeyResponseInner extends ProxyResource {
/*
- * The properties property.
+ * Nginx Deployment Api Key Response Properties
*/
private NginxDeploymentApiKeyResponseProperties properties;
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -44,7 +50,7 @@ public NginxDeploymentApiKeyResponseInner() {
}
/**
- * Get the properties property: The properties property.
+ * Get the properties property: Nginx Deployment Api Key Response Properties.
*
* @return the properties value.
*/
@@ -53,7 +59,7 @@ public NginxDeploymentApiKeyResponseProperties properties() {
}
/**
- * Set the properties property: The properties property.
+ * Set the properties property: Nginx Deployment Api Key Response Properties.
*
* @param properties the properties value to set.
* @return the NginxDeploymentApiKeyResponseInner object itself.
@@ -63,6 +69,15 @@ public NginxDeploymentApiKeyResponseInner withProperties(NginxDeploymentApiKeyRe
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;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -140,6 +155,8 @@ public static NginxDeploymentApiKeyResponseInner fromJson(JsonReader jsonReader)
} else if ("properties".equals(fieldName)) {
deserializedNginxDeploymentApiKeyResponseInner.properties
= NginxDeploymentApiKeyResponseProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedNginxDeploymentApiKeyResponseInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentDefaultWafPolicyListResponseInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentDefaultWafPolicyListResponseInner.java
new file mode 100644
index 000000000000..a80c82d0b503
--- /dev/null
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentDefaultWafPolicyListResponseInner.java
@@ -0,0 +1,131 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.nginx.models.NginxDeploymentDefaultWafPolicyProperties;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Nginx Deployment Default Waf Policy List Response.
+ */
+@Fluent
+public final class NginxDeploymentDefaultWafPolicyListResponseInner
+ implements JsonSerializable {
+ /*
+ * The value property.
+ */
+ private List value;
+
+ /*
+ * The nextLink property.
+ */
+ private String nextLink;
+
+ /**
+ * Creates an instance of NginxDeploymentDefaultWafPolicyListResponseInner class.
+ */
+ public NginxDeploymentDefaultWafPolicyListResponseInner() {
+ }
+
+ /**
+ * Get the value property: The value property.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The value property.
+ *
+ * @param value the value value to set.
+ * @return the NginxDeploymentDefaultWafPolicyListResponseInner object itself.
+ */
+ public NginxDeploymentDefaultWafPolicyListResponseInner
+ withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: The nextLink property.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: The nextLink property.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the NginxDeploymentDefaultWafPolicyListResponseInner object itself.
+ */
+ public NginxDeploymentDefaultWafPolicyListResponseInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NginxDeploymentDefaultWafPolicyListResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NginxDeploymentDefaultWafPolicyListResponseInner if the JsonReader was pointing to an
+ * instance of it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the NginxDeploymentDefaultWafPolicyListResponseInner.
+ */
+ public static NginxDeploymentDefaultWafPolicyListResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NginxDeploymentDefaultWafPolicyListResponseInner deserializedNginxDeploymentDefaultWafPolicyListResponseInner
+ = new NginxDeploymentDefaultWafPolicyListResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> NginxDeploymentDefaultWafPolicyProperties.fromJson(reader1));
+ deserializedNginxDeploymentDefaultWafPolicyListResponseInner.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedNginxDeploymentDefaultWafPolicyListResponseInner.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNginxDeploymentDefaultWafPolicyListResponseInner;
+ });
+ }
+}
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentInner.java
index 64521a2b6b5d..0c8134d6f8e6 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentInner.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentInner.java
@@ -17,22 +17,22 @@
import java.util.Map;
/**
- * The NginxDeployment model.
+ * Nginx Deployment.
*/
@Fluent
public final class NginxDeploymentInner extends Resource {
/*
- * The identity property.
+ * Identity Properties
*/
private IdentityProperties identity;
/*
- * The properties property.
+ * Nginx Deployment Properties
*/
private NginxDeploymentProperties properties;
/*
- * The sku property.
+ * Resource Sku
*/
private ResourceSku sku;
@@ -63,7 +63,7 @@ public NginxDeploymentInner() {
}
/**
- * Get the identity property: The identity property.
+ * Get the identity property: Identity Properties.
*
* @return the identity value.
*/
@@ -72,7 +72,7 @@ public IdentityProperties identity() {
}
/**
- * Set the identity property: The identity property.
+ * Set the identity property: Identity Properties.
*
* @param identity the identity value to set.
* @return the NginxDeploymentInner object itself.
@@ -83,7 +83,7 @@ public NginxDeploymentInner withIdentity(IdentityProperties identity) {
}
/**
- * Get the properties property: The properties property.
+ * Get the properties property: Nginx Deployment Properties.
*
* @return the properties value.
*/
@@ -92,7 +92,7 @@ public NginxDeploymentProperties properties() {
}
/**
- * Set the properties property: The properties property.
+ * Set the properties property: Nginx Deployment Properties.
*
* @param properties the properties value to set.
* @return the NginxDeploymentInner object itself.
@@ -103,7 +103,7 @@ public NginxDeploymentInner withProperties(NginxDeploymentProperties properties)
}
/**
- * Get the sku property: The sku property.
+ * Get the sku property: Resource Sku.
*
* @return the sku value.
*/
@@ -112,7 +112,7 @@ public ResourceSku sku() {
}
/**
- * Set the sku property: The sku property.
+ * Set the sku property: Resource Sku.
*
* @param sku the sku value to set.
* @return the NginxDeploymentInner object itself.
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentPropertiesNginxAppProtect.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentPropertiesNginxAppProtect.java
similarity index 96%
rename from sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentPropertiesNginxAppProtect.java
rename to sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentPropertiesNginxAppProtect.java
index c91903f50bf8..0c131763202a 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentPropertiesNginxAppProtect.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentPropertiesNginxAppProtect.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.nginx.models;
+package com.azure.resourcemanager.nginx.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
@@ -10,6 +10,8 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.nginx.models.WebApplicationFirewallSettings;
+import com.azure.resourcemanager.nginx.models.WebApplicationFirewallStatus;
import java.io.IOException;
/**
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUpdatePropertiesNginxAppProtect.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentUpdatePropertiesNginxAppProtect.java
similarity index 96%
rename from sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUpdatePropertiesNginxAppProtect.java
rename to sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentUpdatePropertiesNginxAppProtect.java
index 1768e1e1bfb4..05093c95dccb 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/NginxDeploymentUpdatePropertiesNginxAppProtect.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentUpdatePropertiesNginxAppProtect.java
@@ -2,13 +2,14 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.nginx.models;
+package com.azure.resourcemanager.nginx.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.nginx.models.WebApplicationFirewallSettings;
import java.io.IOException;
/**
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentWafPolicyInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentWafPolicyInner.java
new file mode 100644
index 000000000000..38d2dc41e473
--- /dev/null
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentWafPolicyInner.java
@@ -0,0 +1,168 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.nginx.models.NginxDeploymentWafPolicyProperties;
+import java.io.IOException;
+
+/**
+ * Nginx Deployment Waf Policy.
+ */
+@Fluent
+public final class NginxDeploymentWafPolicyInner extends ProxyResource {
+ /*
+ * Nginx Deployment Waf Policy Properties
+ */
+ private NginxDeploymentWafPolicyProperties properties;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of NginxDeploymentWafPolicyInner class.
+ */
+ public NginxDeploymentWafPolicyInner() {
+ }
+
+ /**
+ * Get the properties property: Nginx Deployment Waf Policy Properties.
+ *
+ * @return the properties value.
+ */
+ public NginxDeploymentWafPolicyProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Nginx Deployment Waf Policy Properties.
+ *
+ * @param properties the properties value to set.
+ * @return the NginxDeploymentWafPolicyInner object itself.
+ */
+ public NginxDeploymentWafPolicyInner withProperties(NginxDeploymentWafPolicyProperties properties) {
+ this.properties = properties;
+ 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;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NginxDeploymentWafPolicyInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NginxDeploymentWafPolicyInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the NginxDeploymentWafPolicyInner.
+ */
+ public static NginxDeploymentWafPolicyInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NginxDeploymentWafPolicyInner deserializedNginxDeploymentWafPolicyInner
+ = new NginxDeploymentWafPolicyInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyInner.properties
+ = NginxDeploymentWafPolicyProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNginxDeploymentWafPolicyInner;
+ });
+ }
+}
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentWafPolicyMetadataInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentWafPolicyMetadataInner.java
new file mode 100644
index 000000000000..f708b2f01005
--- /dev/null
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/NginxDeploymentWafPolicyMetadataInner.java
@@ -0,0 +1,168 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.nginx.models.NginxDeploymentWafPolicyMetadataProperties;
+import java.io.IOException;
+
+/**
+ * Nginx Deployment Waf Policy Metadata.
+ */
+@Fluent
+public final class NginxDeploymentWafPolicyMetadataInner extends ProxyResource {
+ /*
+ * Nginx Deployment Waf Policy Metadata Properties
+ */
+ private NginxDeploymentWafPolicyMetadataProperties properties;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of NginxDeploymentWafPolicyMetadataInner class.
+ */
+ public NginxDeploymentWafPolicyMetadataInner() {
+ }
+
+ /**
+ * Get the properties property: Nginx Deployment Waf Policy Metadata Properties.
+ *
+ * @return the properties value.
+ */
+ public NginxDeploymentWafPolicyMetadataProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Nginx Deployment Waf Policy Metadata Properties.
+ *
+ * @param properties the properties value to set.
+ * @return the NginxDeploymentWafPolicyMetadataInner object itself.
+ */
+ public NginxDeploymentWafPolicyMetadataInner withProperties(NginxDeploymentWafPolicyMetadataProperties properties) {
+ this.properties = properties;
+ 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;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NginxDeploymentWafPolicyMetadataInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NginxDeploymentWafPolicyMetadataInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the NginxDeploymentWafPolicyMetadataInner.
+ */
+ public static NginxDeploymentWafPolicyMetadataInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NginxDeploymentWafPolicyMetadataInner deserializedNginxDeploymentWafPolicyMetadataInner
+ = new NginxDeploymentWafPolicyMetadataInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyMetadataInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyMetadataInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyMetadataInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyMetadataInner.properties
+ = NginxDeploymentWafPolicyMetadataProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedNginxDeploymentWafPolicyMetadataInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNginxDeploymentWafPolicyMetadataInner;
+ });
+ }
+}
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/OperationInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..b3934add8a72
--- /dev/null
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/OperationInner.java
@@ -0,0 +1,172 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.nginx.models.ActionType;
+import com.azure.resourcemanager.nginx.models.OperationDisplay;
+import com.azure.resourcemanager.nginx.models.Origin;
+import java.io.IOException;
+
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Fluent
+public final class OperationInner implements JsonSerializable {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ public OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for ARM/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Localized display information for this particular operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
+}
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/OperationResultInner.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/OperationResultInner.java
deleted file mode 100644
index 624a3ec16a28..000000000000
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/OperationResultInner.java
+++ /dev/null
@@ -1,153 +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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.nginx.models.OperationDisplay;
-import java.io.IOException;
-
-/**
- * A Nginx.NginxPlus REST API operation.
- */
-@Fluent
-public final class OperationResultInner implements JsonSerializable {
- /*
- * Operation name: {provider}/{resource}/{operation}
- */
- private String name;
-
- /*
- * The object that represents the operation.
- */
- private OperationDisplay display;
-
- /*
- * Indicates whether the operation is a data action
- */
- private Boolean isDataAction;
-
- /**
- * Creates an instance of OperationResultInner class.
- */
- public OperationResultInner() {
- }
-
- /**
- * Get the name property: Operation name: {provider}/{resource}/{operation}.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: Operation name: {provider}/{resource}/{operation}.
- *
- * @param name the name value to set.
- * @return the OperationResultInner object itself.
- */
- public OperationResultInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the display property: The object that represents the operation.
- *
- * @return the display value.
- */
- public OperationDisplay display() {
- return this.display;
- }
-
- /**
- * Set the display property: The object that represents the operation.
- *
- * @param display the display value to set.
- * @return the OperationResultInner object itself.
- */
- public OperationResultInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
- /**
- * Get the isDataAction property: Indicates whether the operation is a data action.
- *
- * @return the isDataAction value.
- */
- public Boolean isDataAction() {
- return this.isDataAction;
- }
-
- /**
- * Set the isDataAction property: Indicates whether the operation is a data action.
- *
- * @param isDataAction the isDataAction value to set.
- * @return the OperationResultInner object itself.
- */
- public OperationResultInner withIsDataAction(Boolean isDataAction) {
- this.isDataAction = isDataAction;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("name", this.name);
- jsonWriter.writeJsonField("display", this.display);
- jsonWriter.writeBooleanField("isDataAction", this.isDataAction);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of OperationResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of OperationResultInner if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IOException If an error occurs while reading the OperationResultInner.
- */
- public static OperationResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- OperationResultInner deserializedOperationResultInner = new OperationResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("name".equals(fieldName)) {
- deserializedOperationResultInner.name = reader.getString();
- } else if ("display".equals(fieldName)) {
- deserializedOperationResultInner.display = OperationDisplay.fromJson(reader);
- } else if ("isDataAction".equals(fieldName)) {
- deserializedOperationResultInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedOperationResultInner;
- });
- }
-}
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/ScaleProfileCapacity.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/ScaleProfileCapacity.java
similarity index 98%
rename from sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/ScaleProfileCapacity.java
rename to sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/ScaleProfileCapacity.java
index d4571e5b2405..d0fa73525abf 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/models/ScaleProfileCapacity.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/ScaleProfileCapacity.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.nginx.models;
+package com.azure.resourcemanager.nginx.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/AnalysisResultImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/AnalysisResultImpl.java
index b46c97fc6aea..bc4707bb491a 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/AnalysisResultImpl.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/AnalysisResultImpl.java
@@ -5,8 +5,11 @@
package com.azure.resourcemanager.nginx.implementation;
import com.azure.resourcemanager.nginx.fluent.models.AnalysisResultInner;
+import com.azure.resourcemanager.nginx.models.AnalysisDiagnostic;
import com.azure.resourcemanager.nginx.models.AnalysisResult;
-import com.azure.resourcemanager.nginx.models.AnalysisResultData;
+import com.azure.resourcemanager.nginx.models.DiagnosticItem;
+import java.util.Collections;
+import java.util.List;
public final class AnalysisResultImpl implements AnalysisResult {
private AnalysisResultInner innerObject;
@@ -22,8 +25,22 @@ public String status() {
return this.innerModel().status();
}
- public AnalysisResultData data() {
- return this.innerModel().data();
+ public List errors() {
+ List inner = this.innerModel().errors();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List diagnostics() {
+ List inner = this.innerModel().diagnostics();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
}
public AnalysisResultInner innerModel() {
diff --git a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/ApiKeysClientImpl.java b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/ApiKeysClientImpl.java
index d7bedf8a4f91..e91d14b6814f 100644
--- a/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/ApiKeysClientImpl.java
+++ b/sdk/nginx/azure-resourcemanager-nginx/src/main/java/com/azure/resourcemanager/nginx/implementation/ApiKeysClientImpl.java
@@ -28,6 +28,7 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.nginx.fluent.ApiKeysClient;
import com.azure.resourcemanager.nginx.fluent.models.NginxDeploymentApiKeyResponseInner;
import com.azure.resourcemanager.nginx.models.NginxDeploymentApiKeyListResponse;
@@ -77,6 +78,18 @@ Mono> createOrUpdate(@HostParam("$h
@BodyParam("application/json") NginxDeploymentApiKeyRequest body, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/apiKeys/{apiKeyName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @PathParam("apiKeyName") String apiKeyName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") NginxDeploymentApiKeyRequest body, @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/apiKeys/{apiKeyName}")
@ExpectedResponses({ 200, 204 })
@@ -87,6 +100,16 @@ Mono> delete(@HostParam("$host") String endpoint,
@PathParam("deploymentName") String deploymentName, @PathParam("apiKeyName") String apiKeyName,
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/apiKeys/{apiKeyName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @PathParam("apiKeyName") String apiKeyName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/apiKeys/{apiKeyName}")
@ExpectedResponses({ 200 })
@@ -97,6 +120,16 @@ Mono> get(@HostParam("$host") Strin
@PathParam("deploymentName") String deploymentName, @PathParam("apiKeyName") String apiKeyName,
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/apiKeys/{apiKeyName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @PathParam("apiKeyName") String apiKeyName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/apiKeys")
@ExpectedResponses({ 200 })
@@ -107,6 +140,16 @@ Mono> list(@HostParam("$host") Strin
@PathParam("deploymentName") String deploymentName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/apiKeys")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -114,6 +157,14 @@ Mono> list(@HostParam("$host") Strin
Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
@@ -126,7 +177,7 @@ Mono> listNext(
* @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ * @return nginx Deployment Api Key Response along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
@@ -159,49 +210,6 @@ private Mono> createOrUpdateWithRes
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
- /**
- * Create or update an API Key for the Nginx deployment in order to access the dataplane API endpoint.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param deploymentName The name of targeted NGINX deployment.
- * @param apiKeyName The resource name of the API key.
- * @param body The API Key object containing fields (e.g. secret text, expiration date) to upsert the key.
- * @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 response body along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
- String deploymentName, String apiKeyName, NginxDeploymentApiKeyRequest body, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
- }
- if (apiKeyName == null) {
- return Mono.error(new IllegalArgumentException("Parameter apiKeyName is required and cannot be null."));
- }
- if (body != null) {
- body.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- deploymentName, apiKeyName, this.client.getApiVersion(), body, accept, context);
- }
-
/**
* Create or update an API Key for the Nginx deployment in order to access the dataplane API endpoint.
*
@@ -211,7 +219,7 @@ private Mono> createOrUpdateWithRes
* @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 response body on successful completion of {@link Mono}.
+ * @return nginx Deployment Api Key Response on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(String resourceGroupName,
@@ -232,12 +240,39 @@ private Mono createOrUpdateAsync(String reso
* @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 response body along with {@link Response}.
+ * @return nginx Deployment Api Key Response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(String resourceGroupName,
String deploymentName, String apiKeyName, NginxDeploymentApiKeyRequest body, Context context) {
- return createOrUpdateWithResponseAsync(resourceGroupName, deploymentName, apiKeyName, body, context).block();
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (apiKeyName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter apiKeyName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, apiKeyName, this.client.getApiVersion(), body, accept, context);
}
/**
@@ -249,7 +284,7 @@ public Response createOrUpdateWithResponse(S
* @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 response.
+ * @return nginx Deployment Api Key Response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public NginxDeploymentApiKeyResponseInner createOrUpdate(String resourceGroupName, String deploymentName,
@@ -297,45 +332,6 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
- /**
- * Delete API key for Nginx deployment.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param deploymentName The name of targeted NGINX deployment.
- * @param apiKeyName The resource name of the API key.
- * @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 {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String deploymentName,
- String apiKeyName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
- }
- if (apiKeyName == null) {
- return Mono.error(new IllegalArgumentException("Parameter apiKeyName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- deploymentName, apiKeyName, this.client.getApiVersion(), accept, context);
- }
-
/**
* Delete API key for Nginx deployment.
*
@@ -367,7 +363,31 @@ private Mono deleteAsync(String resourceGroupName, String deploymentName,
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteWithResponse(String resourceGroupName, String deploymentName, String apiKeyName,
Context context) {
- return deleteWithResponseAsync(resourceGroupName, deploymentName, apiKeyName, context).block();
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (apiKeyName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter apiKeyName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, apiKeyName, this.client.getApiVersion(), accept, context);
}
/**
@@ -425,46 +445,6 @@ private Mono> getWithResponseAsync(
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
- /**
- * Get the specified API Key of the 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 apiKeyName The resource name of the API key.
- * @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 specified API Key of the given Nginx deployment along with {@link Response} on successful completion
- * of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
- String deploymentName, String apiKeyName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
- }
- if (apiKeyName == null) {
- return Mono.error(new IllegalArgumentException("Parameter apiKeyName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- deploymentName, apiKeyName, this.client.getApiVersion(), accept, context);
- }
-
/**
* Get the specified API Key of the given Nginx deployment.
*
@@ -498,7 +478,31 @@ private Mono getAsync(String resourceGroupNa
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(String resourceGroupName, String deploymentName,
String apiKeyName, Context context) {
- return getWithResponseAsync(resourceGroupName, deploymentName, apiKeyName, context).block();
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (apiKeyName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter apiKeyName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, apiKeyName, this.client.getApiVersion(), accept, context);
}
/**
@@ -525,7 +529,8 @@ public NginxDeploymentApiKeyResponseInner get(String resourceGroupName, String d
* @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Deployment Api Key List Response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String resourceGroupName,
@@ -559,37 +564,15 @@ private Mono> listSinglePageAs
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Deployment Api Key List Response as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String deploymentName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, deploymentName,
- this.client.getApiVersion(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String deploymentName) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
}
/**
@@ -600,12 +583,35 @@ private Mono> listSinglePageAs
* @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 paginated response with {@link PagedFlux}.
+ * @return nginx Deployment Api Key List Response along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String deploymentName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName),
- nextLink -> listNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String resourceGroupName,
+ String deploymentName) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, this.client.getApiVersion(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
@@ -617,13 +623,35 @@ private PagedFlux listAsync(String resourceG
* @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 paginated response with {@link PagedFlux}.
+ * @return nginx Deployment Api Key List Response along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String deploymentName,
- Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String resourceGroupName,
+ String deploymentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, this.client.getApiVersion(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
@@ -634,11 +662,12 @@ private PagedFlux listAsync(String resourceG
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Deployment Api Key List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String deploymentName) {
- return new PagedIterable<>(listAsync(resourceGroupName, deploymentName));
+ return new PagedIterable<>(() -> listSinglePage(resourceGroupName, deploymentName),
+ nextLink -> listNextSinglePage(nextLink));
}
/**
@@ -650,12 +679,13 @@ public PagedIterable list(String resourceGro
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Deployment Api Key List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String deploymentName,
Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, deploymentName, context));
+ return new PagedIterable<>(() -> listSinglePage(resourceGroupName, deploymentName, context),
+ nextLink -> listNextSinglePage(nextLink, context));
}
/**
@@ -665,7 +695,8 @@ public PagedIterable list(String resourceGro
* @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Deployment Api Key List Response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -683,6 +714,33 @@ private Mono> listNextSinglePa
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 nginx Deployment Api Key List Response along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
/**
* Get the next page of items.
*
@@ -691,22 +749,25 @@ private Mono> listNextSinglePa
* @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Deployment Api Key List Response along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listNextSinglePageAsync(String nextLink,
- Context context) {
+ private PagedResponse listNextSinglePage(String nextLink, Context context) {
if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApiKeysClientImpl.class);
}
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 14126560be26..33bbc85c22c5 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
@@ -27,8 +27,10 @@
import com.azure.core.http.rest.RestProxy;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.nginx.fluent.CertificatesClient;
@@ -80,6 +82,16 @@ Mono> get(@HostParam("$host") String endpoint,
@PathParam("deploymentName") String deploymentName, @PathParam("certificateName") String certificateName,
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}")
@ExpectedResponses({ 200, 201 })
@@ -91,9 +103,20 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo
@QueryParam("api-version") String apiVersion, @BodyParam("application/json") NginxCertificateInner body,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion, @BodyParam("application/json") NginxCertificateInner body,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}")
- @ExpectedResponses({ 200, 202, 204 })
+ @ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@@ -101,6 +124,16 @@ Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("deploymentName") String deploymentName, @PathParam("certificateName") String certificateName,
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates")
@ExpectedResponses({ 200 })
@@ -111,6 +144,16 @@ Mono> list(@HostParam("$host") String end
@PathParam("deploymentName") String deploymentName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -118,6 +161,14 @@ Mono> list(@HostParam("$host") String end
Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
@@ -161,47 +212,6 @@ private Mono> getWithResponseAsync(String resour
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
- /**
- * 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 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 Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String deploymentName,
- String certificateName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
- }
- if (certificateName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- deploymentName, certificateName, this.client.getApiVersion(), accept, context);
- }
-
/**
* Get a certificate of given NGINX deployment.
*
@@ -235,7 +245,31 @@ private Mono getAsync(String resourceGroupName, String de
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(String resourceGroupName, String deploymentName,
String certificateName, Context context) {
- return getWithResponseAsync(resourceGroupName, deploymentName, certificateName, context).block();
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, certificateName, this.client.getApiVersion(), accept, context);
}
/**
@@ -264,7 +298,7 @@ public NginxCertificateInner get(String resourceGroupName, String deploymentName
* @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ * @return nginx Certificate along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
@@ -298,6 +332,51 @@ private Mono>> createOrUpdateWithResponseAsync(String
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
+ /**
+ * 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 certificateName The name of certificate.
+ * @param body The 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 nginx Certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String deploymentName,
+ String certificateName, NginxCertificateInner body) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, certificateName, this.client.getApiVersion(), body, accept, Context.NONE);
+ }
+
/**
* Create or update the NGINX certificates for given NGINX deployment.
*
@@ -309,36 +388,38 @@ private Mono>> createOrUpdateWithResponseAsync(String
* @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ * @return nginx Certificate along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String deploymentName, String certificateName, NginxCertificateInner body, Context context) {
+ private Response createOrUpdateWithResponse(String resourceGroupName, String deploymentName,
+ String certificateName, NginxCertificateInner body, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
}
if (certificateName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
}
if (body != null) {
body.validate();
}
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
deploymentName, certificateName, this.client.getApiVersion(), body, accept, context);
}
@@ -352,7 +433,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
* @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 {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, NginxCertificateInner> beginCreateOrUpdateAsync(
@@ -373,7 +454,7 @@ private PollerFlux, NginxCertificateInner> beg
* @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 {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, NginxCertificateInner>
@@ -393,21 +474,18 @@ private PollerFlux, NginxCertificateInner> beg
* @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.
* @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 {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, NginxCertificateInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String deploymentName, String certificateName, NginxCertificateInner body,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, deploymentName, certificateName, body, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), NginxCertificateInner.class, NginxCertificateInner.class, context);
+ public SyncPoller, NginxCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName, String deploymentName, String certificateName, NginxCertificateInner body) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, deploymentName, certificateName, body);
+ return this.client.getLroResult(response,
+ NginxCertificateInner.class, NginxCertificateInner.class, Context.NONE);
}
/**
@@ -419,13 +497,16 @@ private PollerFlux, NginxCertificateInner> beg
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, NginxCertificateInner>
beginCreateOrUpdate(String resourceGroupName, String deploymentName, String certificateName) {
final NginxCertificateInner body = null;
- return this.beginCreateOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body).getSyncPoller();
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, deploymentName, certificateName, body);
+ return this.client.getLroResult(response,
+ NginxCertificateInner.class, NginxCertificateInner.class, Context.NONE);
}
/**
@@ -439,14 +520,16 @@ private PollerFlux, NginxCertificateInner> beg
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, NginxCertificateInner> beginCreateOrUpdate(
String resourceGroupName, String deploymentName, String certificateName, NginxCertificateInner body,
Context context) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body, context)
- .getSyncPoller();
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, deploymentName, certificateName, body, context);
+ return this.client.getLroResult(response,
+ NginxCertificateInner.class, NginxCertificateInner.class, context);
}
/**
@@ -459,7 +542,7 @@ public SyncPoller, NginxCertificateInner> begi
* @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 response body on successful completion of {@link Mono}.
+ * @return nginx Certificate on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(String resourceGroupName, String deploymentName,
@@ -477,7 +560,7 @@ private Mono createOrUpdateAsync(String resourceGroupName
* @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 response body on successful completion of {@link Mono}.
+ * @return nginx Certificate on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(String resourceGroupName, String deploymentName,
@@ -493,36 +576,16 @@ private Mono createOrUpdateAsync(String resourceGroupName
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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.
* @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 response body on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String deploymentName,
- String certificateName, NginxCertificateInner body, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * 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 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 the response.
+ * @return nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public NginxCertificateInner createOrUpdate(String resourceGroupName, String deploymentName,
String certificateName) {
final NginxCertificateInner body = null;
- return createOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body).block();
+ return beginCreateOrUpdate(resourceGroupName, deploymentName, certificateName, body).getFinalResult();
}
/**
@@ -536,12 +599,12 @@ public NginxCertificateInner createOrUpdate(String resourceGroupName, String dep
* @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 response.
+ * @return nginx Certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public NginxCertificateInner createOrUpdate(String resourceGroupName, String deploymentName, String certificateName,
NginxCertificateInner body, Context context) {
- return createOrUpdateAsync(resourceGroupName, deploymentName, certificateName, body, context).block();
+ return beginCreateOrUpdate(resourceGroupName, deploymentName, certificateName, body, context).getFinalResult();
}
/**
@@ -590,38 +653,39 @@ private Mono>> deleteWithResponseAsync(String resource
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 the {@link Response} on successful completion of {@link Mono}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String deploymentName,
- String certificateName, Context context) {
+ private Response deleteWithResponse(String resourceGroupName, String deploymentName,
+ String certificateName) {
if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
}
if (certificateName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
}
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- deploymentName, certificateName, this.client.getApiVersion(), accept, context);
+ return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, certificateName, this.client.getApiVersion(), accept, Context.NONE);
}
/**
@@ -630,18 +694,40 @@ private Mono>> deleteWithResponseAsync(String resource
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 the {@link PollerFlux} for polling of long-running operation.
+ * @return the response body along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String deploymentName,
- String certificateName) {
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, deploymentName, certificateName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String deploymentName,
+ String certificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, certificateName, this.client.getApiVersion(), accept, context);
}
/**
@@ -650,7 +736,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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.
@@ -658,12 +743,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String deploymentName,
- String certificateName, Context context) {
- context = this.client.mergeContext(context);
+ String certificateName) {
Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, deploymentName, certificateName, context);
+ = deleteWithResponseAsync(resourceGroupName, deploymentName, certificateName);
return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
+ this.client.getContext());
}
/**
@@ -680,7 +764,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName,
String certificateName) {
- return this.beginDeleteAsync(resourceGroupName, deploymentName, certificateName).getSyncPoller();
+ Response response = deleteWithResponse(resourceGroupName, deploymentName, certificateName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
}
/**
@@ -698,7 +783,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName,
String certificateName, Context context) {
- return this.beginDeleteAsync(resourceGroupName, deploymentName, certificateName, context).getSyncPoller();
+ Response response = deleteWithResponse(resourceGroupName, deploymentName, certificateName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
}
/**
@@ -718,25 +804,6 @@ private Mono deleteAsync(String resourceGroupName, String deploymentName,
.flatMap(this.client::getLroFinalResultOrError);
}
- /**
- * 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 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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String deploymentName, String certificateName,
- Context context) {
- return beginDeleteAsync(resourceGroupName, deploymentName, certificateName, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
/**
* Deletes a certificate from the NGINX deployment.
*
@@ -749,7 +816,7 @@ private Mono deleteAsync(String resourceGroupName, String deploymentName,
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(String resourceGroupName, String deploymentName, String certificateName) {
- deleteAsync(resourceGroupName, deploymentName, certificateName).block();
+ beginDelete(resourceGroupName, deploymentName, certificateName).getFinalResult();
}
/**
@@ -765,7 +832,7 @@ public void delete(String resourceGroupName, String deploymentName, String certi
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(String resourceGroupName, String deploymentName, String certificateName, Context context) {
- deleteAsync(resourceGroupName, deploymentName, certificateName, context).block();
+ beginDelete(resourceGroupName, deploymentName, certificateName, context).getFinalResult();
}
/**
@@ -776,7 +843,8 @@ public void delete(String resourceGroupName, String deploymentName, String certi
* @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Certificate List Response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String resourceGroupName,
@@ -810,37 +878,15 @@ private Mono> listSinglePageAsync(String re
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Certificate List Response as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String deploymentName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, deploymentName,
- this.client.getApiVersion(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String deploymentName) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
}
/**
@@ -851,12 +897,34 @@ private Mono> listSinglePageAsync(String re
* @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 paginated response with {@link PagedFlux}.
+ * @return nginx Certificate List Response along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String deploymentName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName),
- nextLink -> listNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String resourceGroupName, String deploymentName) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, this.client.getApiVersion(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
@@ -868,13 +936,35 @@ private PagedFlux listAsync(String resourceGroupName, Str
* @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 paginated response with {@link PagedFlux}.
+ * @return nginx Certificate List Response along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String deploymentName,
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String resourceGroupName, String deploymentName,
Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, this.client.getApiVersion(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
@@ -885,11 +975,12 @@ private PagedFlux listAsync(String resourceGroupName, Str
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Certificate List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String deploymentName) {
- return new PagedIterable<>(listAsync(resourceGroupName, deploymentName));
+ return new PagedIterable<>(() -> listSinglePage(resourceGroupName, deploymentName),
+ nextLink -> listNextSinglePage(nextLink));
}
/**
@@ -901,11 +992,12 @@ public PagedIterable list(String resourceGroupName, Strin
* @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 paginated response with {@link PagedIterable}.
+ * @return nginx Certificate List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String deploymentName, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, deploymentName, context));
+ return new PagedIterable<>(() -> listSinglePage(resourceGroupName, deploymentName, context),
+ nextLink -> listNextSinglePage(nextLink, context));
}
/**
@@ -915,7 +1007,8 @@ public PagedIterable list(String resourceGroupName, Strin
* @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Certificate List Response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -933,6 +1026,33 @@ private Mono> listNextSinglePageAsync(Strin
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 nginx Certificate List Response along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
/**
* Get the next page of items.
*
@@ -941,21 +1061,25 @@ private Mono> listNextSinglePageAsync(Strin
* @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Certificate List Response along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ private PagedResponse listNextSinglePage(String nextLink, Context context) {
if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(CertificatesClientImpl.class);
}
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 1ce9464f24d0..3403b68b7db4 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
@@ -28,8 +28,10 @@
import com.azure.core.http.rest.RestProxy;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.nginx.fluent.ConfigurationsClient;
@@ -84,6 +86,16 @@ Mono> list(@HostParam("$host") String e
@PathParam("deploymentName") String deploymentName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}")
@ExpectedResponses({ 200 })
@@ -95,6 +107,17 @@ Mono> get(@HostParam("$host") String e
@PathParam("configurationName") String configurationName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("configurationName") String configurationName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}")
@ExpectedResponses({ 200, 201 })
@@ -107,9 +130,21 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo
@BodyParam("application/json") NginxConfigurationRequest body, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("configurationName") String configurationName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") NginxConfigurationRequest body, @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}")
- @ExpectedResponses({ 200, 202, 204 })
+ @ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@@ -118,6 +153,17 @@ Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("configurationName") String configurationName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("configurationName") String configurationName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}/analyze")
@ExpectedResponses({ 200 })
@@ -129,6 +175,17 @@ Mono> analysis(@HostParam("$host") String endpoint
@PathParam("configurationName") String configurationName, @QueryParam("api-version") String apiVersion,
@BodyParam("application/json") AnalysisCreate body, @HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}/analyze")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response analysisSync(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("configurationName") String configurationName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") AnalysisCreate body, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -136,6 +193,14 @@ Mono> analysis(@HostParam("$host") String endpoint
Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
@@ -146,7 +211,8 @@ Mono> listNext(
* @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 response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Configuration List Response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String resourceGroupName,
@@ -180,37 +246,15 @@ private Mono> listSinglePageAsync
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return nginx Configuration List Response as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String deploymentName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, deploymentName,
- this.client.getApiVersion(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String deploymentName) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
}
/**
@@ -221,12 +265,35 @@ private Mono> listSinglePageAsync
* @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 response of a list operation as paginated response with {@link PagedFlux}.
+ * @return nginx Configuration List Response along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String deploymentName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName),
- nextLink -> listNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String resourceGroupName,
+ String deploymentName) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, this.client.getApiVersion(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
@@ -238,13 +305,35 @@ private PagedFlux listAsync(String resourceGrou
* @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 response of a list operation as paginated response with {@link PagedFlux}.
+ * @return nginx Configuration List Response along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String deploymentName,
- Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, deploymentName, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String resourceGroupName,
+ String deploymentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, this.client.getApiVersion(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
@@ -255,11 +344,12 @@ private PagedFlux listAsync(String resourceGrou
* @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return nginx Configuration List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String deploymentName) {
- return new PagedIterable<>(listAsync(resourceGroupName, deploymentName));
+ return new PagedIterable<>(() -> listSinglePage(resourceGroupName, deploymentName),
+ nextLink -> listNextSinglePage(nextLink));
}
/**
@@ -271,12 +361,13 @@ public PagedIterable list(String resourceGroupN
* @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return nginx Configuration List Response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String deploymentName,
Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, deploymentName, context));
+ return new PagedIterable<>(() -> listSinglePage(resourceGroupName, deploymentName, context),
+ nextLink -> listNextSinglePage(nextLink, context));
}
/**
@@ -321,48 +412,6 @@ private Mono> getWithResponseAsync(Str
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
- /**
- * 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 configurationName The name of configuration, only 'default' is supported value due to the singleton of
- * 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
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
- String deploymentName, String configurationName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentName == null) {
- return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
- }
- if (configurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- deploymentName, configurationName, this.client.getApiVersion(), accept, context);
- }
-
/**
* Get the NGINX configuration of given NGINX deployment.
*
@@ -398,7 +447,31 @@ private Mono getAsync(String resourceGroupName,
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(String resourceGroupName, String deploymentName,
String configurationName, Context context) {
- return getWithResponseAsync(resourceGroupName, deploymentName, configurationName, context).block();
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ deploymentName, configurationName, this.client.getApiVersion(), accept, context);
}
/**
@@ -430,7 +503,7 @@ public NginxConfigurationResponseInner get(String resourceGroupName, String depl
* @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ * @return nginx Configuration Response along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
@@ -465,6 +538,52 @@ private Mono