diff --git a/eng/lintingconfigs/revapi/track2/revapi.json b/eng/lintingconfigs/revapi/track2/revapi.json
index 574ce97681e7..83f5d63810a6 100644
--- a/eng/lintingconfigs/revapi/track2/revapi.json
+++ b/eng/lintingconfigs/revapi/track2/revapi.json
@@ -802,6 +802,24 @@
"old": "field com.azure.resourcemanager.network.models.SensitivityType.NONE",
"justification": "Remove NonSensitivity for DDoS ruleset."
},
+ {
+ "ignore": true,
+ "code": "java.field.removed",
+ "old": "field com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionProfileType.ADVANCED",
+ "justification": "Service no longer defines this intrusion detection profile type; enum values were removed during TypeSpec/Swagger alignment and are not supported by the backend."
+ },
+ {
+ "ignore": true,
+ "code": "java.field.removed",
+ "old": "field com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionProfileType.BASIC",
+ "justification": "Service no longer defines this intrusion detection profile type; enum values were removed during TypeSpec/Swagger alignment and are not supported by the backend."
+ },
+ {
+ "ignore": true,
+ "code": "java.field.removed",
+ "old": "field com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionProfileType.STANDARD",
+ "justification": "Service no longer defines this intrusion detection profile type; enum values were removed during TypeSpec/Swagger alignment and are not supported by the backend."
+ },
{
"code": "java.method.removed",
"old": "method com.azure.resourcemanager.compute.models.ExecutedValidation com.azure.resourcemanager.compute.models.ExecutedValidation::withStatus(com.azure.resourcemanager.compute.models.ValidationStatus)",
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 506d0f66af47..be7d7b964512 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -288,7 +288,7 @@ com.azure.resourcemanager:azure-resourcemanager-eventhubs;2.53.5;2.54.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-keyvault;2.54.1;2.55.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-monitor;2.53.5;2.54.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-msi;2.53.5;2.54.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-network;2.57.0;2.58.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-network;2.57.0;2.58.0
com.azure.resourcemanager:azure-resourcemanager-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-privatedns;2.53.5;2.54.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-resources;2.53.5;2.54.0-beta.1
@@ -553,6 +553,7 @@ unreleased_com.azure.v2:azure-core;2.0.0-beta.1
unreleased_com.azure.v2:azure-identity;2.0.0-beta.1
unreleased_com.azure.v2:azure-data-appconfiguration;2.0.0-beta.1
unreleased_io.clientcore:http-netty4;1.0.0-beta.1
+unreleased_com.azure.resourcemanager:azure-resourcemanager-network;2.58.0
# Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current
# version and set the version to the released beta. Released beta dependencies are only valid
diff --git a/sdk/network/azure-resourcemanager-network/CHANGELOG.md b/sdk/network/azure-resourcemanager-network/CHANGELOG.md
index 20171c3339bd..3902584963f1 100644
--- a/sdk/network/azure-resourcemanager-network/CHANGELOG.md
+++ b/sdk/network/azure-resourcemanager-network/CHANGELOG.md
@@ -1,15 +1,17 @@
# Release History
-## 2.58.0-beta.1 (Unreleased)
-
-### Features Added
+## 2.58.0 (2026-01-28)
### Breaking Changes
-### Bugs Fixed
+- Removed `ADVANCED`, `BASIC`, and `STANDARD` from `FirewallPolicyIntrusionDetectionProfileType` to align with the service/TypeSpec model.
### Other Changes
+#### Dependency Updates
+
+- Updated `api-version` to `2025-05-01`.
+
## 2.57.0 (2025-11-19)
### Other Changes
diff --git a/sdk/network/azure-resourcemanager-network/README.md b/sdk/network/azure-resourcemanager-network/README.md
index 65ea3d84a87a..f1eec7951074 100644
--- a/sdk/network/azure-resourcemanager-network/README.md
+++ b/sdk/network/azure-resourcemanager-network/README.md
@@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
com.azure.resourcemanager
azure-resourcemanager-network
- 2.57.0
+ 2.58.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/network/azure-resourcemanager-network/assets.json b/sdk/network/azure-resourcemanager-network/assets.json
index a03579793ee5..55333d1596d8 100644
--- a/sdk/network/azure-resourcemanager-network/assets.json
+++ b/sdk/network/azure-resourcemanager-network/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/network/azure-resourcemanager-network",
- "Tag": "java/network/azure-resourcemanager-network_95e9cb8046"
+ "Tag": "java/network/azure-resourcemanager-network_b15223c7bc"
}
diff --git a/sdk/network/azure-resourcemanager-network/pom.xml b/sdk/network/azure-resourcemanager-network/pom.xml
index ef1ef127c738..7653c52ae1be 100644
--- a/sdk/network/azure-resourcemanager-network/pom.xml
+++ b/sdk/network/azure-resourcemanager-network/pom.xml
@@ -14,7 +14,7 @@
com.azure.resourcemanager
azure-resourcemanager-network
- 2.58.0-beta.1
+ 2.58.0
jar
Microsoft Azure SDK for Network Management
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java
index d6a23a81934f..b946f0195878 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java
@@ -874,6 +874,13 @@ public interface NetworkManagementClient {
*/
ServiceEndpointPolicyDefinitionsClient getServiceEndpointPolicyDefinitions();
+ /**
+ * Gets the ServiceGatewaysClient object to access its operations.
+ *
+ * @return the ServiceGatewaysClient object.
+ */
+ ServiceGatewaysClient getServiceGateways();
+
/**
* Gets the ServiceTagsClient object to access its operations.
*
@@ -930,6 +937,13 @@ public interface NetworkManagementClient {
*/
VirtualNetworkPeeringsClient getVirtualNetworkPeerings();
+ /**
+ * Gets the VirtualNetworkAppliancesClient object to access its operations.
+ *
+ * @return the VirtualNetworkAppliancesClient object.
+ */
+ VirtualNetworkAppliancesClient getVirtualNetworkAppliances();
+
/**
* Gets the VirtualNetworkGatewaysClient object to access its operations.
*
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceGatewaysClient.java
new file mode 100644
index 000000000000..dfa3b4837fb4
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceGatewaysClient.java
@@ -0,0 +1,815 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.network.fluent.models.ServiceGatewayAddressLocationResponseInner;
+import com.azure.resourcemanager.network.fluent.models.ServiceGatewayInner;
+import com.azure.resourcemanager.network.fluent.models.ServiceGatewayServiceInner;
+import com.azure.resourcemanager.network.models.ServiceGatewayUpdateAddressLocationsRequest;
+import com.azure.resourcemanager.network.models.ServiceGatewayUpdateServicesRequest;
+import com.azure.resourcemanager.network.models.TagsObject;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ServiceGatewaysClient.
+ */
+public interface ServiceGatewaysClient extends InnerSupportsGet,
+ InnerSupportsListing, InnerSupportsDelete {
+ /**
+ * Deletes the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceGatewayName);
+
+ /**
+ * Deletes the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceGatewayName);
+
+ /**
+ * Deletes the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 serviceGatewayName);
+
+ /**
+ * Deletes the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 serviceGatewayName,
+ Context context);
+
+ /**
+ * Deletes the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serviceGatewayName);
+
+ /**
+ * Deletes the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 serviceGatewayName);
+
+ /**
+ * Deletes the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 serviceGatewayName, Context context);
+
+ /**
+ * Gets the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 specified service gateway along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String serviceGatewayName);
+
+ /**
+ * Gets the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 specified service gateway on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getByResourceGroupAsync(String resourceGroupName, String serviceGatewayName);
+
+ /**
+ * Gets the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 specified service gateway along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String serviceGatewayName,
+ Context context);
+
+ /**
+ * Gets the specified service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 specified service gateway.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServiceGatewayInner getByResourceGroup(String resourceGroupName, String serviceGatewayName);
+
+ /**
+ * Creates or updates a service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or update service gateway 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 serviceGateway resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String serviceGatewayName, ServiceGatewayInner parameters);
+
+ /**
+ * Creates or updates a service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or update service gateway 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 PollerFlux} for polling of serviceGateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ServiceGatewayInner> beginCreateOrUpdateAsync(String resourceGroupName,
+ String serviceGatewayName, ServiceGatewayInner parameters);
+
+ /**
+ * Creates or updates a service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or update service gateway 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 serviceGateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServiceGatewayInner> beginCreateOrUpdate(String resourceGroupName,
+ String serviceGatewayName, ServiceGatewayInner parameters);
+
+ /**
+ * Creates or updates a service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or update service gateway operation.
+ * @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 serviceGateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServiceGatewayInner> beginCreateOrUpdate(String resourceGroupName,
+ String serviceGatewayName, ServiceGatewayInner parameters, Context context);
+
+ /**
+ * Creates or updates a service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or update service gateway 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 serviceGateway resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayInner parameters);
+
+ /**
+ * Creates or updates a service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or update service gateway 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 serviceGateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServiceGatewayInner createOrUpdate(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayInner parameters);
+
+ /**
+ * Creates or updates a service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or update service gateway operation.
+ * @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 serviceGateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServiceGatewayInner createOrUpdate(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayInner parameters, Context context);
+
+ /**
+ * Updates a service gateway tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to update service gateway tags.
+ * @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 serviceGateway resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> updateTagsWithResponseAsync(String resourceGroupName, String serviceGatewayName,
+ TagsObject parameters);
+
+ /**
+ * Updates a service gateway tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to update service gateway tags.
+ * @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 serviceGateway resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateTagsAsync(String resourceGroupName, String serviceGatewayName,
+ TagsObject parameters);
+
+ /**
+ * Updates a service gateway tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to update service gateway tags.
+ * @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 serviceGateway resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateTagsWithResponse(String resourceGroupName, String serviceGatewayName,
+ TagsObject parameters, Context context);
+
+ /**
+ * Updates a service gateway tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to update service gateway tags.
+ * @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 serviceGateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServiceGatewayInner updateTags(String resourceGroupName, String serviceGatewayName, TagsObject parameters);
+
+ /**
+ * Gets all the service gateways in a subscription.
+ *
+ * @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 all the service gateways in a subscription as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync();
+
+ /**
+ * Gets all the service gateways in a subscription.
+ *
+ * @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 all the service gateways in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all the service gateways in a subscription.
+ *
+ * @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 all the service gateways in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Gets all the service gateways in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all the service gateways in a resource group as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName);
+
+ /**
+ * Gets all the service gateways in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all the service gateways in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets all the service gateways in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all the service gateways in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Creates or updates address locations within the service gateway.
+ *
+ * The request supports both full and partial update modes at two levels: location and address.
+ *
+ * Full update replaces all existing data.
+ *
+ * Partial update modifies only the specified entries:
+ *
+ * For location-level partial updates, if no address is provided, the existing address will be deleted.
+ *
+ * For address-level partial updates, if no services are provided, the existing services will be considered for
+ * deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates address locations in service gateway 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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> updateAddressLocationsWithResponseAsync(String resourceGroupName,
+ String serviceGatewayName, ServiceGatewayUpdateAddressLocationsRequest parameters);
+
+ /**
+ * Creates or updates address locations within the service gateway.
+ *
+ * The request supports both full and partial update modes at two levels: location and address.
+ *
+ * Full update replaces all existing data.
+ *
+ * Partial update modifies only the specified entries:
+ *
+ * For location-level partial updates, if no address is provided, the existing address will be deleted.
+ *
+ * For address-level partial updates, if no services are provided, the existing services will be considered for
+ * deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates address locations in service gateway 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginUpdateAddressLocationsAsync(String resourceGroupName,
+ String serviceGatewayName, ServiceGatewayUpdateAddressLocationsRequest parameters);
+
+ /**
+ * Creates or updates address locations within the service gateway.
+ *
+ * The request supports both full and partial update modes at two levels: location and address.
+ *
+ * Full update replaces all existing data.
+ *
+ * Partial update modifies only the specified entries:
+ *
+ * For location-level partial updates, if no address is provided, the existing address will be deleted.
+ *
+ * For address-level partial updates, if no services are provided, the existing services will be considered for
+ * deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates address locations in service gateway 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> beginUpdateAddressLocations(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateAddressLocationsRequest parameters);
+
+ /**
+ * Creates or updates address locations within the service gateway.
+ *
+ * The request supports both full and partial update modes at two levels: location and address.
+ *
+ * Full update replaces all existing data.
+ *
+ * Partial update modifies only the specified entries:
+ *
+ * For location-level partial updates, if no address is provided, the existing address will be deleted.
+ *
+ * For address-level partial updates, if no services are provided, the existing services will be considered for
+ * deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates address locations in service gateway operation.
+ * @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> beginUpdateAddressLocations(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateAddressLocationsRequest parameters, Context context);
+
+ /**
+ * Creates or updates address locations within the service gateway.
+ *
+ * The request supports both full and partial update modes at two levels: location and address.
+ *
+ * Full update replaces all existing data.
+ *
+ * Partial update modifies only the specified entries:
+ *
+ * For location-level partial updates, if no address is provided, the existing address will be deleted.
+ *
+ * For address-level partial updates, if no services are provided, the existing services will be considered for
+ * deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates address locations in service gateway operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateAddressLocationsAsync(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateAddressLocationsRequest parameters);
+
+ /**
+ * Creates or updates address locations within the service gateway.
+ *
+ * The request supports both full and partial update modes at two levels: location and address.
+ *
+ * Full update replaces all existing data.
+ *
+ * Partial update modifies only the specified entries:
+ *
+ * For location-level partial updates, if no address is provided, the existing address will be deleted.
+ *
+ * For address-level partial updates, if no services are provided, the existing services will be considered for
+ * deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates address locations in service gateway 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 updateAddressLocations(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateAddressLocationsRequest parameters);
+
+ /**
+ * Creates or updates address locations within the service gateway.
+ *
+ * The request supports both full and partial update modes at two levels: location and address.
+ *
+ * Full update replaces all existing data.
+ *
+ * Partial update modifies only the specified entries:
+ *
+ * For location-level partial updates, if no address is provided, the existing address will be deleted.
+ *
+ * For address-level partial updates, if no services are provided, the existing services will be considered for
+ * deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates address locations in service gateway operation.
+ * @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 updateAddressLocations(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateAddressLocationsRequest parameters, Context context);
+
+ /**
+ * Creates, updates, or deletes services within the service gateway.
+ * The request supports both full and partial update modes at the service level.
+ *
+ * Full update replaces all existing services with the new list provided in the request.
+ * Partial update modifies only the specified services.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates services in service gateway 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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> updateServicesWithResponseAsync(String resourceGroupName,
+ String serviceGatewayName, ServiceGatewayUpdateServicesRequest parameters);
+
+ /**
+ * Creates, updates, or deletes services within the service gateway.
+ * The request supports both full and partial update modes at the service level.
+ *
+ * Full update replaces all existing services with the new list provided in the request.
+ * Partial update modifies only the specified services.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates services in service gateway 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginUpdateServicesAsync(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateServicesRequest parameters);
+
+ /**
+ * Creates, updates, or deletes services within the service gateway.
+ * The request supports both full and partial update modes at the service level.
+ *
+ * Full update replaces all existing services with the new list provided in the request.
+ * Partial update modifies only the specified services.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates services in service gateway 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> beginUpdateServices(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateServicesRequest parameters);
+
+ /**
+ * Creates, updates, or deletes services within the service gateway.
+ * The request supports both full and partial update modes at the service level.
+ *
+ * Full update replaces all existing services with the new list provided in the request.
+ * Partial update modifies only the specified services.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates services in service gateway operation.
+ * @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> beginUpdateServices(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateServicesRequest parameters, Context context);
+
+ /**
+ * Creates, updates, or deletes services within the service gateway.
+ * The request supports both full and partial update modes at the service level.
+ *
+ * Full update replaces all existing services with the new list provided in the request.
+ * Partial update modifies only the specified services.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates services in service gateway operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateServicesAsync(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateServicesRequest parameters);
+
+ /**
+ * Creates, updates, or deletes services within the service gateway.
+ * The request supports both full and partial update modes at the service level.
+ *
+ * Full update replaces all existing services with the new list provided in the request.
+ * Partial update modifies only the specified services.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates services in service gateway 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 updateServices(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateServicesRequest parameters);
+
+ /**
+ * Creates, updates, or deletes services within the service gateway.
+ * The request supports both full and partial update modes at the service level.
+ *
+ * Full update replaces all existing services with the new list provided in the request.
+ * Partial update modifies only the specified services.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @param parameters Parameters supplied to the create or updates services in service gateway operation.
+ * @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 updateServices(String resourceGroupName, String serviceGatewayName,
+ ServiceGatewayUpdateServicesRequest parameters, Context context);
+
+ /**
+ * Get address locations in service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 address locations in service gateway as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux getAddressLocationsAsync(String resourceGroupName,
+ String serviceGatewayName);
+
+ /**
+ * Get address locations in service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 address locations in service gateway as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getAddressLocations(String resourceGroupName,
+ String serviceGatewayName);
+
+ /**
+ * Get address locations in service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 address locations in service gateway as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getAddressLocations(String resourceGroupName,
+ String serviceGatewayName, Context context);
+
+ /**
+ * Get Services in service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 services in service gateway as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux getServicesAsync(String resourceGroupName, String serviceGatewayName);
+
+ /**
+ * Get Services in service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 services in service gateway as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getServices(String resourceGroupName, String serviceGatewayName);
+
+ /**
+ * Get Services in service gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceGatewayName The name of the service gateway.
+ * @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 services in service gateway as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getServices(String resourceGroupName, String serviceGatewayName,
+ Context context);
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkAppliancesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkAppliancesClient.java
new file mode 100644
index 000000000000..b557ef80e185
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkAppliancesClient.java
@@ -0,0 +1,419 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.network.fluent.models.VirtualNetworkApplianceInner;
+import com.azure.resourcemanager.network.models.TagsObject;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in VirtualNetworkAppliancesClient.
+ */
+public interface VirtualNetworkAppliancesClient extends InnerSupportsGet,
+ InnerSupportsListing, InnerSupportsDelete {
+ /**
+ * Deletes the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String virtualNetworkApplianceName);
+
+ /**
+ * Deletes the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkApplianceName);
+
+ /**
+ * Deletes the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 virtualNetworkApplianceName);
+
+ /**
+ * Deletes the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 virtualNetworkApplianceName,
+ Context context);
+
+ /**
+ * Deletes the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String virtualNetworkApplianceName);
+
+ /**
+ * Deletes the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 virtualNetworkApplianceName);
+
+ /**
+ * Deletes the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 virtualNetworkApplianceName, Context context);
+
+ /**
+ * Gets information about the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 information about the specified virtual network appliance along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String virtualNetworkApplianceName);
+
+ /**
+ * Gets information about the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 information about the specified virtual network appliance on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getByResourceGroupAsync(String resourceGroupName,
+ String virtualNetworkApplianceName);
+
+ /**
+ * Gets information about the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 information about the specified virtual network appliance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String virtualNetworkApplianceName, Context context);
+
+ /**
+ * Gets information about the specified virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @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 information about the specified virtual network appliance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkApplianceInner getByResourceGroup(String resourceGroupName, String virtualNetworkApplianceName);
+
+ /**
+ * Creates or updates a virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to the create or update virtual network appliance operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual network appliance in a resource group along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String virtualNetworkApplianceName, VirtualNetworkApplianceInner parameters);
+
+ /**
+ * Creates or updates a virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to the create or update virtual network appliance 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 PollerFlux} for polling of a virtual network appliance in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, VirtualNetworkApplianceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String virtualNetworkApplianceName, VirtualNetworkApplianceInner parameters);
+
+ /**
+ * Creates or updates a virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to the create or update virtual network appliance 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 a virtual network appliance in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualNetworkApplianceInner> beginCreateOrUpdate(
+ String resourceGroupName, String virtualNetworkApplianceName, VirtualNetworkApplianceInner parameters);
+
+ /**
+ * Creates or updates a virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to the create or update virtual network appliance operation.
+ * @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 a virtual network appliance in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualNetworkApplianceInner> beginCreateOrUpdate(
+ String resourceGroupName, String virtualNetworkApplianceName, VirtualNetworkApplianceInner parameters,
+ Context context);
+
+ /**
+ * Creates or updates a virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to the create or update virtual network appliance operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual network appliance in a resource group on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkApplianceName,
+ VirtualNetworkApplianceInner parameters);
+
+ /**
+ * Creates or updates a virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to the create or update virtual network appliance operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual network appliance in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkApplianceInner createOrUpdate(String resourceGroupName, String virtualNetworkApplianceName,
+ VirtualNetworkApplianceInner parameters);
+
+ /**
+ * Creates or updates a virtual network appliance.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to the create or update virtual network appliance operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual network appliance in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkApplianceInner createOrUpdate(String resourceGroupName, String virtualNetworkApplianceName,
+ VirtualNetworkApplianceInner parameters, Context context);
+
+ /**
+ * Updates a virtual network appliance tags.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to update virtual network appliance tags.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual network appliance in a resource group along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> updateTagsWithResponseAsync(String resourceGroupName,
+ String virtualNetworkApplianceName, TagsObject parameters);
+
+ /**
+ * Updates a virtual network appliance tags.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to update virtual network appliance tags.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual network appliance in a resource group on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateTagsAsync(String resourceGroupName, String virtualNetworkApplianceName,
+ TagsObject parameters);
+
+ /**
+ * Updates a virtual network appliance tags.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to update virtual network appliance tags.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual network appliance in a resource group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateTagsWithResponse(String resourceGroupName,
+ String virtualNetworkApplianceName, TagsObject parameters, Context context);
+
+ /**
+ * Updates a virtual network appliance tags.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param virtualNetworkApplianceName The name of the virtual network appliance.
+ * @param parameters Parameters supplied to update virtual network appliance tags.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual network appliance in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkApplianceInner updateTags(String resourceGroupName, String virtualNetworkApplianceName,
+ TagsObject parameters);
+
+ /**
+ * Gets all virtual network appliances in a subscription.
+ *
+ * @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 all virtual network appliances in a subscription as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync();
+
+ /**
+ * Gets all virtual network appliances in a subscription.
+ *
+ * @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 all virtual network appliances in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all virtual network appliances in a subscription.
+ *
+ * @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 all virtual network appliances in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Gets all virtual network appliances in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 all virtual network appliances in a resource group as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName);
+
+ /**
+ * Gets all virtual network appliances in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 all virtual network appliances in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets all virtual network appliances in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 all virtual network appliances in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java
index ce8be148e297..204bb7d811f5 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java
@@ -327,6 +327,29 @@ public NatGatewayInner withSourceVirtualNetwork(SubResource sourceVirtualNetwork
return this;
}
+ /**
+ * Get the serviceGateway property: Reference to an existing service gateway.
+ *
+ * @return the serviceGateway value.
+ */
+ public SubResource serviceGateway() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceGateway();
+ }
+
+ /**
+ * Set the serviceGateway property: Reference to an existing service gateway.
+ *
+ * @param serviceGateway the serviceGateway value to set.
+ * @return the NatGatewayInner object itself.
+ */
+ public NatGatewayInner withServiceGateway(SubResource serviceGateway) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NatGatewayPropertiesFormat();
+ }
+ this.innerProperties().withServiceGateway(serviceGateway);
+ return this;
+ }
+
/**
* Get the resourceGuid property: The resource GUID property of the NAT gateway resource.
*
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java
index 6a052eaa663d..cbebe52a9ede 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java
@@ -54,6 +54,11 @@ public final class NatGatewayPropertiesFormat implements JsonSerializable writer.writeJson(element));
jsonWriter.writeJsonField("sourceVirtualNetwork", this.sourceVirtualNetwork);
+ jsonWriter.writeJsonField("serviceGateway", this.serviceGateway);
return jsonWriter.writeEndObject();
}
@@ -281,6 +307,8 @@ public static NatGatewayPropertiesFormat fromJson(JsonReader jsonReader) throws
deserializedNatGatewayPropertiesFormat.subnets = subnets;
} else if ("sourceVirtualNetwork".equals(fieldName)) {
deserializedNatGatewayPropertiesFormat.sourceVirtualNetwork = SubResource.fromJson(reader);
+ } else if ("serviceGateway".equals(fieldName)) {
+ deserializedNatGatewayPropertiesFormat.serviceGateway = SubResource.fromJson(reader);
} else if ("resourceGuid".equals(fieldName)) {
deserializedNatGatewayPropertiesFormat.resourceGuid = reader.getString();
} else if ("provisioningState".equals(fieldName)) {
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTargetAddressPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTargetAddressPropertiesFormatInner.java
new file mode 100644
index 000000000000..05f3f7fa16ab
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTargetAddressPropertiesFormatInner.java
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.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.network.models.IpAllocationMethod;
+import java.io.IOException;
+
+/**
+ * Properties of route target address.
+ */
+@Fluent
+public final class RouteTargetAddressPropertiesFormatInner
+ implements JsonSerializable {
+ /*
+ * The reference to the subnet resource.
+ */
+ private SubnetInner subnet;
+
+ /*
+ * The private IPv4 or IPv6 address of the service gateway route target address.
+ */
+ private String privateIpAddress;
+
+ /*
+ * The Private IP allocation method.
+ */
+ private IpAllocationMethod privateIpAllocationMethod;
+
+ /**
+ * Creates an instance of RouteTargetAddressPropertiesFormatInner class.
+ */
+ public RouteTargetAddressPropertiesFormatInner() {
+ }
+
+ /**
+ * Get the subnet property: The reference to the subnet resource.
+ *
+ * @return the subnet value.
+ */
+ public SubnetInner subnet() {
+ return this.subnet;
+ }
+
+ /**
+ * Set the subnet property: The reference to the subnet resource.
+ *
+ * @param subnet the subnet value to set.
+ * @return the RouteTargetAddressPropertiesFormatInner object itself.
+ */
+ public RouteTargetAddressPropertiesFormatInner withSubnet(SubnetInner subnet) {
+ this.subnet = subnet;
+ return this;
+ }
+
+ /**
+ * Get the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.
+ *
+ * @return the privateIpAddress value.
+ */
+ public String privateIpAddress() {
+ return this.privateIpAddress;
+ }
+
+ /**
+ * Set the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.
+ *
+ * @param privateIpAddress the privateIpAddress value to set.
+ * @return the RouteTargetAddressPropertiesFormatInner object itself.
+ */
+ public RouteTargetAddressPropertiesFormatInner withPrivateIpAddress(String privateIpAddress) {
+ this.privateIpAddress = privateIpAddress;
+ return this;
+ }
+
+ /**
+ * Get the privateIpAllocationMethod property: The Private IP allocation method.
+ *
+ * @return the privateIpAllocationMethod value.
+ */
+ public IpAllocationMethod privateIpAllocationMethod() {
+ return this.privateIpAllocationMethod;
+ }
+
+ /**
+ * Set the privateIpAllocationMethod property: The Private IP allocation method.
+ *
+ * @param privateIpAllocationMethod the privateIpAllocationMethod value to set.
+ * @return the RouteTargetAddressPropertiesFormatInner object itself.
+ */
+ public RouteTargetAddressPropertiesFormatInner
+ withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) {
+ this.privateIpAllocationMethod = privateIpAllocationMethod;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (subnet() != null) {
+ subnet().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("subnet", this.subnet);
+ jsonWriter.writeStringField("privateIPAddress", this.privateIpAddress);
+ jsonWriter.writeStringField("privateIPAllocationMethod",
+ this.privateIpAllocationMethod == null ? null : this.privateIpAllocationMethod.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RouteTargetAddressPropertiesFormatInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RouteTargetAddressPropertiesFormatInner 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 RouteTargetAddressPropertiesFormatInner.
+ */
+ public static RouteTargetAddressPropertiesFormatInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RouteTargetAddressPropertiesFormatInner deserializedRouteTargetAddressPropertiesFormatInner
+ = new RouteTargetAddressPropertiesFormatInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("subnet".equals(fieldName)) {
+ deserializedRouteTargetAddressPropertiesFormatInner.subnet = SubnetInner.fromJson(reader);
+ } else if ("privateIPAddress".equals(fieldName)) {
+ deserializedRouteTargetAddressPropertiesFormatInner.privateIpAddress = reader.getString();
+ } else if ("privateIPAllocationMethod".equals(fieldName)) {
+ deserializedRouteTargetAddressPropertiesFormatInner.privateIpAllocationMethod
+ = IpAllocationMethod.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRouteTargetAddressPropertiesFormatInner;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayAddressLocationResponseInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayAddressLocationResponseInner.java
new file mode 100644
index 000000000000..a168f41e374c
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayAddressLocationResponseInner.java
@@ -0,0 +1,130 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.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.network.models.ServiceGatewayAddress;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Properties of the service gateway address location.
+ */
+@Fluent
+public final class ServiceGatewayAddressLocationResponseInner
+ implements JsonSerializable {
+ /*
+ * Location to update
+ */
+ private String addressLocation;
+
+ /*
+ * An array of addresses to create or update in locations.
+ */
+ private List addresses;
+
+ /**
+ * Creates an instance of ServiceGatewayAddressLocationResponseInner class.
+ */
+ public ServiceGatewayAddressLocationResponseInner() {
+ }
+
+ /**
+ * Get the addressLocation property: Location to update.
+ *
+ * @return the addressLocation value.
+ */
+ public String addressLocation() {
+ return this.addressLocation;
+ }
+
+ /**
+ * Set the addressLocation property: Location to update.
+ *
+ * @param addressLocation the addressLocation value to set.
+ * @return the ServiceGatewayAddressLocationResponseInner object itself.
+ */
+ public ServiceGatewayAddressLocationResponseInner withAddressLocation(String addressLocation) {
+ this.addressLocation = addressLocation;
+ return this;
+ }
+
+ /**
+ * Get the addresses property: An array of addresses to create or update in locations.
+ *
+ * @return the addresses value.
+ */
+ public List addresses() {
+ return this.addresses;
+ }
+
+ /**
+ * Set the addresses property: An array of addresses to create or update in locations.
+ *
+ * @param addresses the addresses value to set.
+ * @return the ServiceGatewayAddressLocationResponseInner object itself.
+ */
+ public ServiceGatewayAddressLocationResponseInner withAddresses(List addresses) {
+ this.addresses = addresses;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (addresses() != null) {
+ addresses().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("addressLocation", this.addressLocation);
+ jsonWriter.writeArrayField("addresses", this.addresses, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceGatewayAddressLocationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceGatewayAddressLocationResponseInner 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 ServiceGatewayAddressLocationResponseInner.
+ */
+ public static ServiceGatewayAddressLocationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceGatewayAddressLocationResponseInner deserializedServiceGatewayAddressLocationResponseInner
+ = new ServiceGatewayAddressLocationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("addressLocation".equals(fieldName)) {
+ deserializedServiceGatewayAddressLocationResponseInner.addressLocation = reader.getString();
+ } else if ("addresses".equals(fieldName)) {
+ List addresses
+ = reader.readArray(reader1 -> ServiceGatewayAddress.fromJson(reader1));
+ deserializedServiceGatewayAddressLocationResponseInner.addresses = addresses;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceGatewayAddressLocationResponseInner;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayInner.java
new file mode 100644
index 000000000000..9e557dc0bf40
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayInner.java
@@ -0,0 +1,358 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.network.models.ProvisioningState;
+import com.azure.resourcemanager.network.models.SecurityPerimeterSystemData;
+import com.azure.resourcemanager.network.models.ServiceGatewaySku;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * ServiceGateway resource.
+ */
+@Fluent
+public final class ServiceGatewayInner extends Resource {
+ /*
+ * Properties of service gateway.
+ */
+ private ServiceGatewayPropertiesFormatInner innerProperties;
+
+ /*
+ * A unique read-only string that changes whenever the resource is updated.
+ */
+ private String etag;
+
+ /*
+ * The service gateway SKU.
+ */
+ private ServiceGatewaySku sku;
+
+ /*
+ * A list of availability zones denoting the zone in which service gateway should be deployed.
+ *
+ * - The zone values must be provided as strings representing numeric identifiers like "1", "2", "3" etc.
+ */
+ private List zones;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SecurityPerimeterSystemData 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 ServiceGatewayInner class.
+ */
+ public ServiceGatewayInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties of service gateway.
+ *
+ * @return the innerProperties value.
+ */
+ private ServiceGatewayPropertiesFormatInner innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the etag property: A unique read-only string that changes whenever the resource is updated.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the sku property: The service gateway SKU.
+ *
+ * @return the sku value.
+ */
+ public ServiceGatewaySku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The service gateway SKU.
+ *
+ * @param sku the sku value to set.
+ * @return the ServiceGatewayInner object itself.
+ */
+ public ServiceGatewayInner withSku(ServiceGatewaySku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the zones property: A list of availability zones denoting the zone in which service gateway should be
+ * deployed.
+ *
+ * - The zone values must be provided as strings representing numeric identifiers like "1", "2", "3" etc.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: A list of availability zones denoting the zone in which service gateway should be
+ * deployed.
+ *
+ * - The zone values must be provided as strings representing numeric identifiers like "1", "2", "3" etc.
+ *
+ * @param zones the zones value to set.
+ * @return the ServiceGatewayInner object itself.
+ */
+ public ServiceGatewayInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SecurityPerimeterSystemData 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ServiceGatewayInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ServiceGatewayInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the virtualNetwork property: Reference to an existing virtual network.
+ *
+ * @return the virtualNetwork value.
+ */
+ public VirtualNetworkInner virtualNetwork() {
+ return this.innerProperties() == null ? null : this.innerProperties().virtualNetwork();
+ }
+
+ /**
+ * Set the virtualNetwork property: Reference to an existing virtual network.
+ *
+ * @param virtualNetwork the virtualNetwork value to set.
+ * @return the ServiceGatewayInner object itself.
+ */
+ public ServiceGatewayInner withVirtualNetwork(VirtualNetworkInner virtualNetwork) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServiceGatewayPropertiesFormatInner();
+ }
+ this.innerProperties().withVirtualNetwork(virtualNetwork);
+ return this;
+ }
+
+ /**
+ * Get the routeTargetAddress property: Route Target address of Service gateway.
+ *
+ * @return the routeTargetAddress value.
+ */
+ public RouteTargetAddressPropertiesFormatInner routeTargetAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().routeTargetAddress();
+ }
+
+ /**
+ * Set the routeTargetAddress property: Route Target address of Service gateway.
+ *
+ * @param routeTargetAddress the routeTargetAddress value to set.
+ * @return the ServiceGatewayInner object itself.
+ */
+ public ServiceGatewayInner withRouteTargetAddress(RouteTargetAddressPropertiesFormatInner routeTargetAddress) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServiceGatewayPropertiesFormatInner();
+ }
+ this.innerProperties().withRouteTargetAddress(routeTargetAddress);
+ return this;
+ }
+
+ /**
+ * Get the routeTargetAddressV6 property: Route Target address V6 of Service gateway.
+ *
+ * @return the routeTargetAddressV6 value.
+ */
+ public RouteTargetAddressPropertiesFormatInner routeTargetAddressV6() {
+ return this.innerProperties() == null ? null : this.innerProperties().routeTargetAddressV6();
+ }
+
+ /**
+ * Set the routeTargetAddressV6 property: Route Target address V6 of Service gateway.
+ *
+ * @param routeTargetAddressV6 the routeTargetAddressV6 value to set.
+ * @return the ServiceGatewayInner object itself.
+ */
+ public ServiceGatewayInner withRouteTargetAddressV6(RouteTargetAddressPropertiesFormatInner routeTargetAddressV6) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServiceGatewayPropertiesFormatInner();
+ }
+ this.innerProperties().withRouteTargetAddressV6(routeTargetAddressV6);
+ return this;
+ }
+
+ /**
+ * Get the resourceGuid property: The resource GUID property of the service gateway resource.
+ *
+ * @return the resourceGuid value.
+ */
+ public String resourceGuid() {
+ return this.innerProperties() == null ? null : this.innerProperties().resourceGuid();
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the service gateway resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (systemData() != null) {
+ systemData().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceGatewayInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceGatewayInner 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 ServiceGatewayInner.
+ */
+ public static ServiceGatewayInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceGatewayInner deserializedServiceGatewayInner = new ServiceGatewayInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedServiceGatewayInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedServiceGatewayInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedServiceGatewayInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedServiceGatewayInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedServiceGatewayInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedServiceGatewayInner.innerProperties
+ = ServiceGatewayPropertiesFormatInner.fromJson(reader);
+ } else if ("etag".equals(fieldName)) {
+ deserializedServiceGatewayInner.etag = reader.getString();
+ } else if ("sku".equals(fieldName)) {
+ deserializedServiceGatewayInner.sku = ServiceGatewaySku.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedServiceGatewayInner.zones = zones;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedServiceGatewayInner.systemData = SecurityPerimeterSystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceGatewayInner;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayPropertiesFormatInner.java
new file mode 100644
index 000000000000..57f6bd41e727
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayPropertiesFormatInner.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.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.network.models.ProvisioningState;
+import java.io.IOException;
+
+/**
+ * Properties of the service gateway.
+ */
+@Fluent
+public final class ServiceGatewayPropertiesFormatInner
+ implements JsonSerializable {
+ /*
+ * Reference to an existing virtual network.
+ */
+ private VirtualNetworkInner virtualNetwork;
+
+ /*
+ * Route Target address of Service gateway
+ */
+ private RouteTargetAddressPropertiesFormatInner routeTargetAddress;
+
+ /*
+ * Route Target address V6 of Service gateway
+ */
+ private RouteTargetAddressPropertiesFormatInner routeTargetAddressV6;
+
+ /*
+ * The resource GUID property of the service gateway resource.
+ */
+ private String resourceGuid;
+
+ /*
+ * The provisioning state of the service gateway resource.
+ */
+ private ProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of ServiceGatewayPropertiesFormatInner class.
+ */
+ public ServiceGatewayPropertiesFormatInner() {
+ }
+
+ /**
+ * Get the virtualNetwork property: Reference to an existing virtual network.
+ *
+ * @return the virtualNetwork value.
+ */
+ public VirtualNetworkInner virtualNetwork() {
+ return this.virtualNetwork;
+ }
+
+ /**
+ * Set the virtualNetwork property: Reference to an existing virtual network.
+ *
+ * @param virtualNetwork the virtualNetwork value to set.
+ * @return the ServiceGatewayPropertiesFormatInner object itself.
+ */
+ public ServiceGatewayPropertiesFormatInner withVirtualNetwork(VirtualNetworkInner virtualNetwork) {
+ this.virtualNetwork = virtualNetwork;
+ return this;
+ }
+
+ /**
+ * Get the routeTargetAddress property: Route Target address of Service gateway.
+ *
+ * @return the routeTargetAddress value.
+ */
+ public RouteTargetAddressPropertiesFormatInner routeTargetAddress() {
+ return this.routeTargetAddress;
+ }
+
+ /**
+ * Set the routeTargetAddress property: Route Target address of Service gateway.
+ *
+ * @param routeTargetAddress the routeTargetAddress value to set.
+ * @return the ServiceGatewayPropertiesFormatInner object itself.
+ */
+ public ServiceGatewayPropertiesFormatInner
+ withRouteTargetAddress(RouteTargetAddressPropertiesFormatInner routeTargetAddress) {
+ this.routeTargetAddress = routeTargetAddress;
+ return this;
+ }
+
+ /**
+ * Get the routeTargetAddressV6 property: Route Target address V6 of Service gateway.
+ *
+ * @return the routeTargetAddressV6 value.
+ */
+ public RouteTargetAddressPropertiesFormatInner routeTargetAddressV6() {
+ return this.routeTargetAddressV6;
+ }
+
+ /**
+ * Set the routeTargetAddressV6 property: Route Target address V6 of Service gateway.
+ *
+ * @param routeTargetAddressV6 the routeTargetAddressV6 value to set.
+ * @return the ServiceGatewayPropertiesFormatInner object itself.
+ */
+ public ServiceGatewayPropertiesFormatInner
+ withRouteTargetAddressV6(RouteTargetAddressPropertiesFormatInner routeTargetAddressV6) {
+ this.routeTargetAddressV6 = routeTargetAddressV6;
+ return this;
+ }
+
+ /**
+ * Get the resourceGuid property: The resource GUID property of the service gateway resource.
+ *
+ * @return the resourceGuid value.
+ */
+ public String resourceGuid() {
+ return this.resourceGuid;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the service gateway resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (virtualNetwork() != null) {
+ virtualNetwork().validate();
+ }
+ if (routeTargetAddress() != null) {
+ routeTargetAddress().validate();
+ }
+ if (routeTargetAddressV6() != null) {
+ routeTargetAddressV6().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("virtualNetwork", this.virtualNetwork);
+ jsonWriter.writeJsonField("routeTargetAddress", this.routeTargetAddress);
+ jsonWriter.writeJsonField("routeTargetAddressV6", this.routeTargetAddressV6);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceGatewayPropertiesFormatInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceGatewayPropertiesFormatInner 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 ServiceGatewayPropertiesFormatInner.
+ */
+ public static ServiceGatewayPropertiesFormatInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceGatewayPropertiesFormatInner deserializedServiceGatewayPropertiesFormatInner
+ = new ServiceGatewayPropertiesFormatInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("virtualNetwork".equals(fieldName)) {
+ deserializedServiceGatewayPropertiesFormatInner.virtualNetwork
+ = VirtualNetworkInner.fromJson(reader);
+ } else if ("routeTargetAddress".equals(fieldName)) {
+ deserializedServiceGatewayPropertiesFormatInner.routeTargetAddress
+ = RouteTargetAddressPropertiesFormatInner.fromJson(reader);
+ } else if ("routeTargetAddressV6".equals(fieldName)) {
+ deserializedServiceGatewayPropertiesFormatInner.routeTargetAddressV6
+ = RouteTargetAddressPropertiesFormatInner.fromJson(reader);
+ } else if ("resourceGuid".equals(fieldName)) {
+ deserializedServiceGatewayPropertiesFormatInner.resourceGuid = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedServiceGatewayPropertiesFormatInner.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceGatewayPropertiesFormatInner;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceInner.java
new file mode 100644
index 000000000000..4fae0f6692d7
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceInner.java
@@ -0,0 +1,209 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.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.network.models.ServiceType;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Properties of the service gateway service.
+ */
+@Fluent
+public final class ServiceGatewayServiceInner implements JsonSerializable {
+ /*
+ * Name of the service
+ */
+ private String name;
+
+ /*
+ * Properties of service gateway service.
+ */
+ private ServiceGatewayServicePropertiesFormat innerProperties;
+
+ /**
+ * Creates an instance of ServiceGatewayServiceInner class.
+ */
+ public ServiceGatewayServiceInner() {
+ }
+
+ /**
+ * Get the name property: Name of the service.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Name of the service.
+ *
+ * @param name the name value to set.
+ * @return the ServiceGatewayServiceInner object itself.
+ */
+ public ServiceGatewayServiceInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: Properties of service gateway service.
+ *
+ * @return the innerProperties value.
+ */
+ private ServiceGatewayServicePropertiesFormat innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the serviceType property: Name of the service.
+ *
+ * @return the serviceType value.
+ */
+ public ServiceType serviceType() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceType();
+ }
+
+ /**
+ * Set the serviceType property: Name of the service.
+ *
+ * @param serviceType the serviceType value to set.
+ * @return the ServiceGatewayServiceInner object itself.
+ */
+ public ServiceGatewayServiceInner withServiceType(ServiceType serviceType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServiceGatewayServicePropertiesFormat();
+ }
+ this.innerProperties().withServiceType(serviceType);
+ return this;
+ }
+
+ /**
+ * Get the isDefault property: Set to true to mark default service for inbound or outbound.
+ *
+ * @return the isDefault value.
+ */
+ public Boolean isDefault() {
+ return this.innerProperties() == null ? null : this.innerProperties().isDefault();
+ }
+
+ /**
+ * Set the isDefault property: Set to true to mark default service for inbound or outbound.
+ *
+ * @param isDefault the isDefault value to set.
+ * @return the ServiceGatewayServiceInner object itself.
+ */
+ public ServiceGatewayServiceInner withIsDefault(Boolean isDefault) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServiceGatewayServicePropertiesFormat();
+ }
+ this.innerProperties().withIsDefault(isDefault);
+ return this;
+ }
+
+ /**
+ * Get the loadBalancerBackendPools property: An array of load balancer backend address pools.
+ *
+ * @return the loadBalancerBackendPools value.
+ */
+ public List loadBalancerBackendPools() {
+ return this.innerProperties() == null ? null : this.innerProperties().loadBalancerBackendPools();
+ }
+
+ /**
+ * Set the loadBalancerBackendPools property: An array of load balancer backend address pools.
+ *
+ * @param loadBalancerBackendPools the loadBalancerBackendPools value to set.
+ * @return the ServiceGatewayServiceInner object itself.
+ */
+ public ServiceGatewayServiceInner
+ withLoadBalancerBackendPools(List loadBalancerBackendPools) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServiceGatewayServicePropertiesFormat();
+ }
+ this.innerProperties().withLoadBalancerBackendPools(loadBalancerBackendPools);
+ return this;
+ }
+
+ /**
+ * Get the publicNatGatewayId property: Azure Resource Id of public natgateway.
+ *
+ * @return the publicNatGatewayId value.
+ */
+ public String publicNatGatewayId() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNatGatewayId();
+ }
+
+ /**
+ * Set the publicNatGatewayId property: Azure Resource Id of public natgateway.
+ *
+ * @param publicNatGatewayId the publicNatGatewayId value to set.
+ * @return the ServiceGatewayServiceInner object itself.
+ */
+ public ServiceGatewayServiceInner withPublicNatGatewayId(String publicNatGatewayId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServiceGatewayServicePropertiesFormat();
+ }
+ this.innerProperties().withPublicNatGatewayId(publicNatGatewayId);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceGatewayServiceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceGatewayServiceInner 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 ServiceGatewayServiceInner.
+ */
+ public static ServiceGatewayServiceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceGatewayServiceInner deserializedServiceGatewayServiceInner = new ServiceGatewayServiceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedServiceGatewayServiceInner.name = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedServiceGatewayServiceInner.innerProperties
+ = ServiceGatewayServicePropertiesFormat.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceGatewayServiceInner;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServicePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServicePropertiesFormat.java
new file mode 100644
index 000000000000..34a23c97fa92
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServicePropertiesFormat.java
@@ -0,0 +1,191 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.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.network.models.ServiceType;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Properties of the service gateway service.
+ */
+@Fluent
+public final class ServiceGatewayServicePropertiesFormat
+ implements JsonSerializable {
+ /*
+ * Name of the service.
+ */
+ private ServiceType serviceType;
+
+ /*
+ * Set to true to mark default service for inbound or outbound.
+ */
+ private Boolean isDefault;
+
+ /*
+ * An array of load balancer backend address pools.
+ */
+ private List loadBalancerBackendPools;
+
+ /*
+ * Azure Resource Id of public natgateway.
+ */
+ private String publicNatGatewayId;
+
+ /**
+ * Creates an instance of ServiceGatewayServicePropertiesFormat class.
+ */
+ public ServiceGatewayServicePropertiesFormat() {
+ }
+
+ /**
+ * Get the serviceType property: Name of the service.
+ *
+ * @return the serviceType value.
+ */
+ public ServiceType serviceType() {
+ return this.serviceType;
+ }
+
+ /**
+ * Set the serviceType property: Name of the service.
+ *
+ * @param serviceType the serviceType value to set.
+ * @return the ServiceGatewayServicePropertiesFormat object itself.
+ */
+ public ServiceGatewayServicePropertiesFormat withServiceType(ServiceType serviceType) {
+ this.serviceType = serviceType;
+ return this;
+ }
+
+ /**
+ * Get the isDefault property: Set to true to mark default service for inbound or outbound.
+ *
+ * @return the isDefault value.
+ */
+ public Boolean isDefault() {
+ return this.isDefault;
+ }
+
+ /**
+ * Set the isDefault property: Set to true to mark default service for inbound or outbound.
+ *
+ * @param isDefault the isDefault value to set.
+ * @return the ServiceGatewayServicePropertiesFormat object itself.
+ */
+ public ServiceGatewayServicePropertiesFormat withIsDefault(Boolean isDefault) {
+ this.isDefault = isDefault;
+ return this;
+ }
+
+ /**
+ * Get the loadBalancerBackendPools property: An array of load balancer backend address pools.
+ *
+ * @return the loadBalancerBackendPools value.
+ */
+ public List loadBalancerBackendPools() {
+ return this.loadBalancerBackendPools;
+ }
+
+ /**
+ * Set the loadBalancerBackendPools property: An array of load balancer backend address pools.
+ *
+ * @param loadBalancerBackendPools the loadBalancerBackendPools value to set.
+ * @return the ServiceGatewayServicePropertiesFormat object itself.
+ */
+ public ServiceGatewayServicePropertiesFormat
+ withLoadBalancerBackendPools(List loadBalancerBackendPools) {
+ this.loadBalancerBackendPools = loadBalancerBackendPools;
+ return this;
+ }
+
+ /**
+ * Get the publicNatGatewayId property: Azure Resource Id of public natgateway.
+ *
+ * @return the publicNatGatewayId value.
+ */
+ public String publicNatGatewayId() {
+ return this.publicNatGatewayId;
+ }
+
+ /**
+ * Set the publicNatGatewayId property: Azure Resource Id of public natgateway.
+ *
+ * @param publicNatGatewayId the publicNatGatewayId value to set.
+ * @return the ServiceGatewayServicePropertiesFormat object itself.
+ */
+ public ServiceGatewayServicePropertiesFormat withPublicNatGatewayId(String publicNatGatewayId) {
+ this.publicNatGatewayId = publicNatGatewayId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (loadBalancerBackendPools() != null) {
+ loadBalancerBackendPools().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("serviceType", this.serviceType == null ? null : this.serviceType.toString());
+ jsonWriter.writeBooleanField("isDefault", this.isDefault);
+ jsonWriter.writeArrayField("loadBalancerBackendPools", this.loadBalancerBackendPools,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("publicNatGatewayId", this.publicNatGatewayId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceGatewayServicePropertiesFormat from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceGatewayServicePropertiesFormat 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 ServiceGatewayServicePropertiesFormat.
+ */
+ public static ServiceGatewayServicePropertiesFormat fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceGatewayServicePropertiesFormat deserializedServiceGatewayServicePropertiesFormat
+ = new ServiceGatewayServicePropertiesFormat();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("serviceType".equals(fieldName)) {
+ deserializedServiceGatewayServicePropertiesFormat.serviceType
+ = ServiceType.fromString(reader.getString());
+ } else if ("isDefault".equals(fieldName)) {
+ deserializedServiceGatewayServicePropertiesFormat.isDefault
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("loadBalancerBackendPools".equals(fieldName)) {
+ List loadBalancerBackendPools
+ = reader.readArray(reader1 -> BackendAddressPoolInner.fromJson(reader1));
+ deserializedServiceGatewayServicePropertiesFormat.loadBalancerBackendPools
+ = loadBalancerBackendPools;
+ } else if ("publicNatGatewayId".equals(fieldName)) {
+ deserializedServiceGatewayServicePropertiesFormat.publicNatGatewayId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceGatewayServicePropertiesFormat;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceRequestInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceRequestInner.java
new file mode 100644
index 000000000000..a0a9767b8d4f
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceRequestInner.java
@@ -0,0 +1,125 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.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 java.io.IOException;
+
+/**
+ * Properties of the service gateway services request.
+ */
+@Fluent
+public final class ServiceGatewayServiceRequestInner implements JsonSerializable {
+ /*
+ * Set to true to mark the service for deletion.
+ */
+ private Boolean isDelete;
+
+ /*
+ * Service of service gateway.
+ */
+ private ServiceGatewayServiceInner service;
+
+ /**
+ * Creates an instance of ServiceGatewayServiceRequestInner class.
+ */
+ public ServiceGatewayServiceRequestInner() {
+ }
+
+ /**
+ * Get the isDelete property: Set to true to mark the service for deletion.
+ *
+ * @return the isDelete value.
+ */
+ public Boolean isDelete() {
+ return this.isDelete;
+ }
+
+ /**
+ * Set the isDelete property: Set to true to mark the service for deletion.
+ *
+ * @param isDelete the isDelete value to set.
+ * @return the ServiceGatewayServiceRequestInner object itself.
+ */
+ public ServiceGatewayServiceRequestInner withIsDelete(Boolean isDelete) {
+ this.isDelete = isDelete;
+ return this;
+ }
+
+ /**
+ * Get the service property: Service of service gateway.
+ *
+ * @return the service value.
+ */
+ public ServiceGatewayServiceInner service() {
+ return this.service;
+ }
+
+ /**
+ * Set the service property: Service of service gateway.
+ *
+ * @param service the service value to set.
+ * @return the ServiceGatewayServiceRequestInner object itself.
+ */
+ public ServiceGatewayServiceRequestInner withService(ServiceGatewayServiceInner service) {
+ this.service = service;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (service() != null) {
+ service().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("isDelete", this.isDelete);
+ jsonWriter.writeJsonField("service", this.service);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceGatewayServiceRequestInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceGatewayServiceRequestInner 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 ServiceGatewayServiceRequestInner.
+ */
+ public static ServiceGatewayServiceRequestInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceGatewayServiceRequestInner deserializedServiceGatewayServiceRequestInner
+ = new ServiceGatewayServiceRequestInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("isDelete".equals(fieldName)) {
+ deserializedServiceGatewayServiceRequestInner.isDelete = reader.getNullable(JsonReader::getBoolean);
+ } else if ("service".equals(fieldName)) {
+ deserializedServiceGatewayServiceRequestInner.service = ServiceGatewayServiceInner.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceGatewayServiceRequestInner;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java
index 726e1cce84d6..9e21fa761a3f 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java
@@ -546,6 +546,29 @@ public SubnetInner withIpamPoolPrefixAllocations(List
return this;
}
+ /**
+ * Get the serviceGateway property: Reference to an existing service gateway.
+ *
+ * @return the serviceGateway value.
+ */
+ public SubResource serviceGateway() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceGateway();
+ }
+
+ /**
+ * Set the serviceGateway property: Reference to an existing service gateway.
+ *
+ * @param serviceGateway the serviceGateway value to set.
+ * @return the SubnetInner object itself.
+ */
+ public SubnetInner withServiceGateway(SubResource serviceGateway) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SubnetPropertiesFormatInner();
+ }
+ this.innerProperties().withServiceGateway(serviceGateway);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java
index 2fed9353f1ef..3947dab720e2 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java
@@ -139,6 +139,11 @@ public final class SubnetPropertiesFormatInner implements JsonSerializable ipamPoolPrefixAllocations;
+ /*
+ * Reference to an existing service gateway.
+ */
+ private SubResource serviceGateway;
+
/**
* Creates an instance of SubnetPropertiesFormatInner class.
*/
@@ -527,6 +532,26 @@ public List ipamPoolPrefixAllocations() {
return this;
}
+ /**
+ * Get the serviceGateway property: Reference to an existing service gateway.
+ *
+ * @return the serviceGateway value.
+ */
+ public SubResource serviceGateway() {
+ return this.serviceGateway;
+ }
+
+ /**
+ * Set the serviceGateway property: Reference to an existing service gateway.
+ *
+ * @param serviceGateway the serviceGateway value to set.
+ * @return the SubnetPropertiesFormatInner object itself.
+ */
+ public SubnetPropertiesFormatInner withServiceGateway(SubResource serviceGateway) {
+ this.serviceGateway = serviceGateway;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -599,6 +624,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeBooleanField("defaultOutboundAccess", this.defaultOutboundAccess);
jsonWriter.writeArrayField("ipamPoolPrefixAllocations", this.ipamPoolPrefixAllocations,
(writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("serviceGateway", this.serviceGateway);
return jsonWriter.writeEndObject();
}
@@ -688,6 +714,8 @@ public static SubnetPropertiesFormatInner fromJson(JsonReader jsonReader) throws
List ipamPoolPrefixAllocations
= reader.readArray(reader1 -> IpamPoolPrefixAllocation.fromJson(reader1));
deserializedSubnetPropertiesFormatInner.ipamPoolPrefixAllocations = ipamPoolPrefixAllocations;
+ } else if ("serviceGateway".equals(fieldName)) {
+ deserializedSubnetPropertiesFormatInner.serviceGateway = SubResource.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceInner.java
new file mode 100644
index 000000000000..76567d24024a
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceInner.java
@@ -0,0 +1,267 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.network.models.ProvisioningState;
+import com.azure.resourcemanager.network.models.VirtualNetworkApplianceIpConfiguration;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * A virtual network appliance in a resource group.
+ */
+@Fluent
+public final class VirtualNetworkApplianceInner extends Resource {
+ /*
+ * Properties of the virtual network appliance.
+ */
+ private VirtualNetworkAppliancePropertiesFormatInner innerProperties;
+
+ /*
+ * A unique read-only string that changes whenever the resource is updated.
+ */
+ private String etag;
+
+ /*
+ * Resource ID.
+ */
+ private String id;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /**
+ * Creates an instance of VirtualNetworkApplianceInner class.
+ */
+ public VirtualNetworkApplianceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the virtual network appliance.
+ *
+ * @return the innerProperties value.
+ */
+ private VirtualNetworkAppliancePropertiesFormatInner innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the etag property: A unique read-only string that changes whenever the resource is updated.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the id property: Resource ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Resource ID.
+ *
+ * @param id the id value to set.
+ * @return the VirtualNetworkApplianceInner object itself.
+ */
+ public VirtualNetworkApplianceInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public VirtualNetworkApplianceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public VirtualNetworkApplianceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the bandwidthInGbps property: Bandwidth of the VirtualNetworkAppliance resource in Gbps.
+ *
+ * @return the bandwidthInGbps value.
+ */
+ public String bandwidthInGbps() {
+ return this.innerProperties() == null ? null : this.innerProperties().bandwidthInGbps();
+ }
+
+ /**
+ * Set the bandwidthInGbps property: Bandwidth of the VirtualNetworkAppliance resource in Gbps.
+ *
+ * @param bandwidthInGbps the bandwidthInGbps value to set.
+ * @return the VirtualNetworkApplianceInner object itself.
+ */
+ public VirtualNetworkApplianceInner withBandwidthInGbps(String bandwidthInGbps) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkAppliancePropertiesFormatInner();
+ }
+ this.innerProperties().withBandwidthInGbps(bandwidthInGbps);
+ return this;
+ }
+
+ /**
+ * Get the ipConfigurations property: A list of IPConfigurations of the virtual network appliance.
+ *
+ * @return the ipConfigurations value.
+ */
+ public List ipConfigurations() {
+ return this.innerProperties() == null ? null : this.innerProperties().ipConfigurations();
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the virtual network appliance resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the resourceGuid property: The resource GUID property of the virtual network appliance resource.
+ *
+ * @return the resourceGuid value.
+ */
+ public String resourceGuid() {
+ return this.innerProperties() == null ? null : this.innerProperties().resourceGuid();
+ }
+
+ /**
+ * Get the subnet property: The reference to the subnet resource.
+ *
+ * @return the subnet value.
+ */
+ public SubnetInner subnet() {
+ return this.innerProperties() == null ? null : this.innerProperties().subnet();
+ }
+
+ /**
+ * Set the subnet property: The reference to the subnet resource.
+ *
+ * @param subnet the subnet value to set.
+ * @return the VirtualNetworkApplianceInner object itself.
+ */
+ public VirtualNetworkApplianceInner withSubnet(SubnetInner subnet) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkAppliancePropertiesFormatInner();
+ }
+ this.innerProperties().withSubnet(subnet);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("id", this.id);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualNetworkApplianceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualNetworkApplianceInner 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 VirtualNetworkApplianceInner.
+ */
+ public static VirtualNetworkApplianceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualNetworkApplianceInner deserializedVirtualNetworkApplianceInner = new VirtualNetworkApplianceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedVirtualNetworkApplianceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceInner.innerProperties
+ = VirtualNetworkAppliancePropertiesFormatInner.fromJson(reader);
+ } else if ("etag".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceInner.etag = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceInner.id = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualNetworkApplianceInner;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceIpConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceIpConfigurationProperties.java
new file mode 100644
index 000000000000..f2ae189d40e2
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceIpConfigurationProperties.java
@@ -0,0 +1,206 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.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.network.models.IpAllocationMethod;
+import com.azure.resourcemanager.network.models.IpVersion;
+import com.azure.resourcemanager.network.models.ProvisioningState;
+import java.io.IOException;
+
+/**
+ * Properties of virtual network appliance IP configuration.
+ */
+@Fluent
+public final class VirtualNetworkApplianceIpConfigurationProperties
+ implements JsonSerializable {
+ /*
+ * The private IP address of the IP configuration.
+ */
+ private String privateIpAddress;
+
+ /*
+ * The private IP address allocation method.
+ */
+ private IpAllocationMethod privateIpAllocationMethod;
+
+ /*
+ * Whether the ip configuration is primary or not.
+ */
+ private Boolean primary;
+
+ /*
+ * The provisioning state of the private link service IP configuration resource.
+ */
+ private ProvisioningState provisioningState;
+
+ /*
+ * Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
+ */
+ private IpVersion privateIpAddressVersion;
+
+ /**
+ * Creates an instance of VirtualNetworkApplianceIpConfigurationProperties class.
+ */
+ public VirtualNetworkApplianceIpConfigurationProperties() {
+ }
+
+ /**
+ * Get the privateIpAddress property: The private IP address of the IP configuration.
+ *
+ * @return the privateIpAddress value.
+ */
+ public String privateIpAddress() {
+ return this.privateIpAddress;
+ }
+
+ /**
+ * Set the privateIpAddress property: The private IP address of the IP configuration.
+ *
+ * @param privateIpAddress the privateIpAddress value to set.
+ * @return the VirtualNetworkApplianceIpConfigurationProperties object itself.
+ */
+ public VirtualNetworkApplianceIpConfigurationProperties withPrivateIpAddress(String privateIpAddress) {
+ this.privateIpAddress = privateIpAddress;
+ return this;
+ }
+
+ /**
+ * Get the privateIpAllocationMethod property: The private IP address allocation method.
+ *
+ * @return the privateIpAllocationMethod value.
+ */
+ public IpAllocationMethod privateIpAllocationMethod() {
+ return this.privateIpAllocationMethod;
+ }
+
+ /**
+ * Set the privateIpAllocationMethod property: The private IP address allocation method.
+ *
+ * @param privateIpAllocationMethod the privateIpAllocationMethod value to set.
+ * @return the VirtualNetworkApplianceIpConfigurationProperties object itself.
+ */
+ public VirtualNetworkApplianceIpConfigurationProperties
+ withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) {
+ this.privateIpAllocationMethod = privateIpAllocationMethod;
+ return this;
+ }
+
+ /**
+ * Get the primary property: Whether the ip configuration is primary or not.
+ *
+ * @return the primary value.
+ */
+ public Boolean primary() {
+ return this.primary;
+ }
+
+ /**
+ * Set the primary property: Whether the ip configuration is primary or not.
+ *
+ * @param primary the primary value to set.
+ * @return the VirtualNetworkApplianceIpConfigurationProperties object itself.
+ */
+ public VirtualNetworkApplianceIpConfigurationProperties withPrimary(Boolean primary) {
+ this.primary = primary;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private link service IP configuration resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
+ *
+ * @return the privateIpAddressVersion value.
+ */
+ public IpVersion privateIpAddressVersion() {
+ return this.privateIpAddressVersion;
+ }
+
+ /**
+ * Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
+ *
+ * @param privateIpAddressVersion the privateIpAddressVersion value to set.
+ * @return the VirtualNetworkApplianceIpConfigurationProperties object itself.
+ */
+ public VirtualNetworkApplianceIpConfigurationProperties
+ withPrivateIpAddressVersion(IpVersion privateIpAddressVersion) {
+ this.privateIpAddressVersion = privateIpAddressVersion;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("privateIPAddress", this.privateIpAddress);
+ jsonWriter.writeStringField("privateIPAllocationMethod",
+ this.privateIpAllocationMethod == null ? null : this.privateIpAllocationMethod.toString());
+ jsonWriter.writeBooleanField("primary", this.primary);
+ jsonWriter.writeStringField("privateIPAddressVersion",
+ this.privateIpAddressVersion == null ? null : this.privateIpAddressVersion.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualNetworkApplianceIpConfigurationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualNetworkApplianceIpConfigurationProperties 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 VirtualNetworkApplianceIpConfigurationProperties.
+ */
+ public static VirtualNetworkApplianceIpConfigurationProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualNetworkApplianceIpConfigurationProperties deserializedVirtualNetworkApplianceIpConfigurationProperties
+ = new VirtualNetworkApplianceIpConfigurationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("privateIPAddress".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceIpConfigurationProperties.privateIpAddress = reader.getString();
+ } else if ("privateIPAllocationMethod".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceIpConfigurationProperties.privateIpAllocationMethod
+ = IpAllocationMethod.fromString(reader.getString());
+ } else if ("primary".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceIpConfigurationProperties.primary
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceIpConfigurationProperties.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else if ("privateIPAddressVersion".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceIpConfigurationProperties.privateIpAddressVersion
+ = IpVersion.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualNetworkApplianceIpConfigurationProperties;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkAppliancePropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkAppliancePropertiesFormatInner.java
new file mode 100644
index 000000000000..4000fa975d34
--- /dev/null
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkAppliancePropertiesFormatInner.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.network.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.network.models.ProvisioningState;
+import com.azure.resourcemanager.network.models.VirtualNetworkApplianceIpConfiguration;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * VirtualNetworkAppliance properties.
+ */
+@Fluent
+public final class VirtualNetworkAppliancePropertiesFormatInner
+ implements JsonSerializable {
+ /*
+ * Bandwidth of the VirtualNetworkAppliance resource in Gbps.
+ */
+ private String bandwidthInGbps;
+
+ /*
+ * A list of IPConfigurations of the virtual network appliance.
+ */
+ private List ipConfigurations;
+
+ /*
+ * The provisioning state of the virtual network appliance resource.
+ */
+ private ProvisioningState provisioningState;
+
+ /*
+ * The resource GUID property of the virtual network appliance resource.
+ */
+ private String resourceGuid;
+
+ /*
+ * The reference to the subnet resource.
+ */
+ private SubnetInner subnet;
+
+ /**
+ * Creates an instance of VirtualNetworkAppliancePropertiesFormatInner class.
+ */
+ public VirtualNetworkAppliancePropertiesFormatInner() {
+ }
+
+ /**
+ * Get the bandwidthInGbps property: Bandwidth of the VirtualNetworkAppliance resource in Gbps.
+ *
+ * @return the bandwidthInGbps value.
+ */
+ public String bandwidthInGbps() {
+ return this.bandwidthInGbps;
+ }
+
+ /**
+ * Set the bandwidthInGbps property: Bandwidth of the VirtualNetworkAppliance resource in Gbps.
+ *
+ * @param bandwidthInGbps the bandwidthInGbps value to set.
+ * @return the VirtualNetworkAppliancePropertiesFormatInner object itself.
+ */
+ public VirtualNetworkAppliancePropertiesFormatInner withBandwidthInGbps(String bandwidthInGbps) {
+ this.bandwidthInGbps = bandwidthInGbps;
+ return this;
+ }
+
+ /**
+ * Get the ipConfigurations property: A list of IPConfigurations of the virtual network appliance.
+ *
+ * @return the ipConfigurations value.
+ */
+ public List ipConfigurations() {
+ return this.ipConfigurations;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the virtual network appliance resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the resourceGuid property: The resource GUID property of the virtual network appliance resource.
+ *
+ * @return the resourceGuid value.
+ */
+ public String resourceGuid() {
+ return this.resourceGuid;
+ }
+
+ /**
+ * Get the subnet property: The reference to the subnet resource.
+ *
+ * @return the subnet value.
+ */
+ public SubnetInner subnet() {
+ return this.subnet;
+ }
+
+ /**
+ * Set the subnet property: The reference to the subnet resource.
+ *
+ * @param subnet the subnet value to set.
+ * @return the VirtualNetworkAppliancePropertiesFormatInner object itself.
+ */
+ public VirtualNetworkAppliancePropertiesFormatInner withSubnet(SubnetInner subnet) {
+ this.subnet = subnet;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (ipConfigurations() != null) {
+ ipConfigurations().forEach(e -> e.validate());
+ }
+ if (subnet() != null) {
+ subnet().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("bandwidthInGbps", this.bandwidthInGbps);
+ jsonWriter.writeJsonField("subnet", this.subnet);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualNetworkAppliancePropertiesFormatInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualNetworkAppliancePropertiesFormatInner 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 VirtualNetworkAppliancePropertiesFormatInner.
+ */
+ public static VirtualNetworkAppliancePropertiesFormatInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualNetworkAppliancePropertiesFormatInner deserializedVirtualNetworkAppliancePropertiesFormatInner
+ = new VirtualNetworkAppliancePropertiesFormatInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("bandwidthInGbps".equals(fieldName)) {
+ deserializedVirtualNetworkAppliancePropertiesFormatInner.bandwidthInGbps = reader.getString();
+ } else if ("ipConfigurations".equals(fieldName)) {
+ List ipConfigurations
+ = reader.readArray(reader1 -> VirtualNetworkApplianceIpConfiguration.fromJson(reader1));
+ deserializedVirtualNetworkAppliancePropertiesFormatInner.ipConfigurations = ipConfigurations;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedVirtualNetworkAppliancePropertiesFormatInner.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else if ("resourceGuid".equals(fieldName)) {
+ deserializedVirtualNetworkAppliancePropertiesFormatInner.resourceGuid = reader.getString();
+ } else if ("subnet".equals(fieldName)) {
+ deserializedVirtualNetworkAppliancePropertiesFormatInner.subnet = SubnetInner.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualNetworkAppliancePropertiesFormatInner;
+ });
+ }
+}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java
index 0c2e3c4e1056..a3a557174eed 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java
@@ -167,7 +167,7 @@ private Mono> listSinglePageAsync(String
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -218,7 +218,7 @@ private Mono> listSinglePageAsync(String
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -382,7 +382,7 @@ public Mono> getWithResponseAsync(String reso
return Mono
.error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -431,7 +431,7 @@ private Mono> getWithResponseAsync(String res
return Mono
.error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -542,7 +542,7 @@ public Mono> createOrUpdateWithResponseAsync(
} else {
ruleCollection.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -598,7 +598,7 @@ private Mono> createOrUpdateWithResponseAsync
} else {
ruleCollection.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -709,7 +709,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
@@ -761,7 +761,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java
index d0759241e583..380605f2189c 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java
@@ -172,7 +172,7 @@ private Mono> listSinglePageAsync(String resou
return Mono
.error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -230,7 +230,7 @@ private Mono> listSinglePageAsync(String resou
return Mono
.error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -400,7 +400,7 @@ public Mono> getWithResponseAsync(String resourceGr
if (ruleName == null) {
return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -454,7 +454,7 @@ private Mono> getWithResponseAsync(String resourceG
if (ruleName == null) {
return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -572,7 +572,7 @@ public Mono> createOrUpdateWithResponseAsync(String
} else {
adminRule.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -632,7 +632,7 @@ private Mono> createOrUpdateWithResponseAsync(Strin
} else {
adminRule.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -750,7 +750,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (ruleName == null) {
return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
@@ -806,7 +806,7 @@ private Mono>> deleteWithResponseAsync(String resource
if (ruleName == null) {
return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java
index 5afb62682715..66f6af8cca8c 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java
@@ -156,7 +156,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -198,7 +198,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName,
@@ -392,7 +392,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -442,7 +442,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName,
@@ -658,7 +658,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGr
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -701,7 +701,7 @@ private Mono> getWith
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName,
@@ -792,7 +792,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -834,7 +834,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java
index 26a6504adbb6..ea64d21eab6c 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java
@@ -113,7 +113,7 @@ Mono> listNext(
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -155,7 +155,7 @@ Mono> listNext(
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java
index 34b0af27c69a..d5f0aed43676 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java
@@ -104,7 +104,7 @@ private Mono> get
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), location, apiVersion,
@@ -140,7 +140,7 @@ private Mono> get
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java
index 71006e229023..e85191d78dd2 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java
@@ -91,7 +91,7 @@ public Mono> getWithRe
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), location, apiVersion,
@@ -124,7 +124,7 @@ private Mono> getWithR
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept,
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java
index b365eaa78a3a..a5fb0055af5d 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java
@@ -298,7 +298,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -336,7 +336,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion,
@@ -505,7 +505,7 @@ public Mono> getByResourceGroupWithResponseAsy
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -543,7 +543,7 @@ private Mono> getByResourceGroupWithResponseAs
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -634,7 +634,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName,
@@ -678,7 +678,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion,
@@ -871,7 +871,7 @@ public Mono> updateTagsWithResponseAsync(Strin
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName,
@@ -915,7 +915,7 @@ private Mono> updateTagsWithResponseAsync(Stri
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.updateTags(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion,
@@ -999,7 +999,7 @@ private Mono> listByResourceGroupSinglePa
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -1035,7 +1035,7 @@ private Mono> listByResourceGroupSinglePa
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1123,7 +1123,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -1153,7 +1153,7 @@ private Mono> listSinglePageAsync(Context
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
@@ -1243,7 +1243,7 @@ public Mono>> startWithResponseAsync(String resourceGr
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.start(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -1281,7 +1281,7 @@ private Mono>> startWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.start(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion,
@@ -1449,7 +1449,7 @@ public Mono>> stopWithResponseAsync(String resourceGro
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.stop(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -1487,7 +1487,7 @@ private Mono>> stopWithResponseAsync(String resourceGr
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.stop(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion,
@@ -1657,7 +1657,7 @@ public Mono>> backendHealthWithResponseAsync(String re
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.backendHealth(this.client.getEndpoint(), resourceGroupName,
@@ -1697,7 +1697,7 @@ private Mono>> backendHealthWithResponseAsync(String r
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.backendHealth(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion,
@@ -1940,7 +1940,7 @@ public Mono>> backendHealthOnDemandWithResponseAsync(S
} else {
probeRequest.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.backendHealthOnDemand(this.client.getEndpoint(), resourceGroupName,
@@ -1988,7 +1988,7 @@ private Mono>> backendHealthOnDemandWithResponseAsync(
} else {
probeRequest.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.backendHealthOnDemand(this.client.getEndpoint(), resourceGroupName, applicationGatewayName,
@@ -2251,7 +2251,7 @@ public Mono>> listAvailableServerVariablesWithResponseAsyn
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAvailableServerVariables(this.client.getEndpoint(), apiVersion,
@@ -2279,7 +2279,7 @@ private Mono>> listAvailableServerVariablesWithResponseAsy
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAvailableServerVariables(this.client.getEndpoint(), apiVersion,
@@ -2343,7 +2343,7 @@ public Mono>> listAvailableRequestHeadersWithResponseAsync
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAvailableRequestHeaders(this.client.getEndpoint(), apiVersion,
@@ -2371,7 +2371,7 @@ private Mono>> listAvailableRequestHeadersWithResponseAsyn
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAvailableRequestHeaders(this.client.getEndpoint(), apiVersion,
@@ -2435,7 +2435,7 @@ public Mono>> listAvailableResponseHeadersWithResponseAsyn
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAvailableResponseHeaders(this.client.getEndpoint(), apiVersion,
@@ -2463,7 +2463,7 @@ private Mono>> listAvailableResponseHeadersWithResponseAsy
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAvailableResponseHeaders(this.client.getEndpoint(), apiVersion,
@@ -2528,7 +2528,7 @@ public List listAvailableResponseHeaders() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAvailableWafRuleSets(this.client.getEndpoint(), apiVersion,
@@ -2557,7 +2557,7 @@ public List listAvailableResponseHeaders() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAvailableWafRuleSets(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -2622,7 +2622,7 @@ public Mono> listAvailableS
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAvailableSslOptions(this.client.getEndpoint(), apiVersion,
@@ -2651,7 +2651,7 @@ public Mono> listAvailableS
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAvailableSslOptions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -2716,7 +2716,7 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAvailableSslPredefinedPolicies(this.client.getEndpoint(), apiVersion,
@@ -2748,7 +2748,7 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -2843,7 +2843,7 @@ public PagedIterable listAvailableSs
return Mono
.error(new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getSslPredefinedPolicy(this.client.getEndpoint(), apiVersion,
@@ -2877,7 +2877,7 @@ public PagedIterable listAvailableSs
return Mono
.error(new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getSslPredefinedPolicy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java
index a4c00d73a03e..031ea29fc60a 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java
@@ -180,7 +180,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName,
@@ -218,7 +218,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, apiVersion,
@@ -390,7 +390,7 @@ public Mono> getByResourceGroupWithRespo
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -429,7 +429,7 @@ private Mono> getByResourceGroupWithResp
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName,
@@ -522,7 +522,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName,
@@ -567,7 +567,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName,
@@ -766,7 +766,7 @@ public Mono> updateTagsWithResponseAsync
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName,
@@ -811,7 +811,7 @@ private Mono> updateTagsWithResponseAsyn
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.updateTags(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName,
@@ -891,7 +891,7 @@ private Mono> listSinglePageAsync()
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -921,7 +921,7 @@ private Mono> listSinglePageAsync(C
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
@@ -1007,7 +1007,7 @@ public PagedIterable list(Context context) {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -1043,7 +1043,7 @@ public PagedIterable list(Context context) {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java
index d4a9a140abae..3edb61a0b015 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java
@@ -102,7 +102,7 @@ private Mono> listSinglePageAsync(String
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion,
@@ -136,7 +136,7 @@ private Mono> listSinglePageAsync(String
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java
index 6f6c4ef7c739..d72646b9d332 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java
@@ -102,7 +102,7 @@ private Mono> listSinglePageAsync(Stri
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion,
@@ -136,7 +136,7 @@ private Mono> listSinglePageAsync(Stri
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java
index ff49bab4cc1d..36724d086fa9 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java
@@ -119,7 +119,7 @@ private Mono> listSinglePageAsy
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion,
@@ -154,7 +154,7 @@ private Mono> listSinglePageAsy
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -251,7 +251,7 @@ private Mono> listByResourceGro
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), location, resourceGroupName,
@@ -291,7 +291,7 @@ private Mono> listByResourceGro
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java
index 08dfa65f956a..590bc0b5ba91 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java
@@ -109,7 +109,7 @@ private Mono> listSinglePageAsync(String
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), location, resourceGroupName,
@@ -149,7 +149,7 @@ private Mono> listSinglePageAsync(String
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java
index ccb888960d7b..becb3c04f82a 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java
@@ -119,7 +119,7 @@ private Mono> listSinglePageAsync(Stri
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), location, this.client.getSubscriptionId(),
@@ -153,7 +153,7 @@ private Mono> listSinglePageAsync(Stri
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -254,7 +254,7 @@ private Mono> listByResourceGroupSingl
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, location,
@@ -294,7 +294,7 @@ private Mono> listByResourceGroupSingl
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java
index 57fcbf50b693..48b01faaf102 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java
@@ -97,7 +97,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -127,7 +127,7 @@ private Mono> listSinglePageAsync(Conte
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java
index 4417963f16e2..4af9862df4ef 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java
@@ -211,7 +211,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, azureFirewallName,
@@ -249,7 +249,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion,
@@ -416,7 +416,7 @@ public Mono> getByResourceGroupWithResponseAsync(St
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -454,7 +454,7 @@ private Mono> getByResourceGroupWithResponseAsync(S
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion,
@@ -544,7 +544,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName,
@@ -588,7 +588,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion,
@@ -779,7 +779,7 @@ public Mono>> updateTagsWithResponseAsync(String resou
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, azureFirewallName,
@@ -823,7 +823,7 @@ private Mono>> updateTagsWithResponseAsync(String reso
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.updateTags(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion,
@@ -1002,7 +1002,7 @@ private Mono> listByResourceGroupSinglePageAsy
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -1038,7 +1038,7 @@ private Mono> listByResourceGroupSinglePageAsy
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1126,7 +1126,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -1156,7 +1156,7 @@ private Mono> listSinglePageAsync(Context cont
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
@@ -1247,7 +1247,7 @@ public Mono>> listLearnedPrefixesWithResponseAsync(Str
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listLearnedPrefixes(this.client.getEndpoint(), resourceGroupName,
@@ -1286,7 +1286,7 @@ private Mono>> listLearnedPrefixesWithResponseAsync(St
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listLearnedPrefixes(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion,
@@ -1467,7 +1467,7 @@ public Mono>> packetCaptureWithResponseAsync(String re
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.packetCapture(this.client.getEndpoint(), resourceGroupName,
@@ -1511,7 +1511,7 @@ private Mono>> packetCaptureWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.packetCapture(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion,
@@ -1701,7 +1701,7 @@ public Mono>> packetCaptureOperationWithResponseAsync(
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.packetCaptureOperation(this.client.getEndpoint(), resourceGroupName,
@@ -1746,7 +1746,7 @@ private Mono>> packetCaptureOperationWithResponseAsync
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.packetCaptureOperation(this.client.getEndpoint(), resourceGroupName, azureFirewallName,
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java
index cc4814f495b3..7d88034858ba 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java
@@ -176,7 +176,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, bastionHostname,
@@ -214,7 +214,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion,
@@ -381,7 +381,7 @@ public Mono> getByResourceGroupWithResponseAsync(Stri
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -419,7 +419,7 @@ private Mono> getByResourceGroupWithResponseAsync(Str
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion,
@@ -509,7 +509,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName,
@@ -553,7 +553,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion,
@@ -744,7 +744,7 @@ public Mono>> updateTagsWithResponseAsync(String resou
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -788,7 +788,7 @@ private Mono>> updateTagsWithResponseAsync(String reso
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
@@ -961,7 +961,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -991,7 +991,7 @@ private Mono> listSinglePageAsync(Context contex
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
@@ -1076,7 +1076,7 @@ private Mono> listByResourceGroupSinglePageAsync
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -1112,7 +1112,7 @@ private Mono> listByResourceGroupSinglePageAsync
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java
index fa91a419bba6..6eef9008032b 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java
@@ -97,7 +97,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -127,7 +127,7 @@ private Mono> listSinglePageAsync(Contex
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java
index 033ffd8cf60e..87b7516aeda1 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java
@@ -168,7 +168,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
vpnServerConfigurationPolicyGroupParameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -222,7 +222,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
vpnServerConfigurationPolicyGroupParameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
@@ -452,7 +452,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(
new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -496,7 +496,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(
new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
@@ -689,7 +689,7 @@ public Mono> getWithResponseAsy
return Mono.error(
new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -734,7 +734,7 @@ private Mono> getWithResponseAs
return Mono.error(
new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
@@ -826,7 +826,7 @@ public VpnServerConfigurationPolicyGroupInner get(String resourceGroupName, Stri
return Mono.error(
new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByVpnServerConfiguration(this.client.getEndpoint(),
@@ -868,7 +868,7 @@ private Mono> listByVpnSer
return Mono.error(
new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java
index 9032544f63ee..92d31f13cfa1 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java
@@ -183,7 +183,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName,
@@ -236,7 +236,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkWatcherName,
@@ -499,7 +499,7 @@ public Mono> getWithResponseAsync(String
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName,
@@ -542,7 +542,7 @@ private Mono> getWithResponseAsync(String
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName,
@@ -636,7 +636,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName,
@@ -679,7 +679,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName,
@@ -873,7 +873,7 @@ public Mono> updateTagsWithResponseAsync(
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName,
@@ -923,7 +923,7 @@ private Mono> updateTagsWithResponseAsync
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName,
@@ -1022,7 +1022,7 @@ public Mono>> stopWithResponseAsync(String resourceGro
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName,
@@ -1065,7 +1065,7 @@ private Mono>> stopWithResponseAsync(String resourceGr
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName,
@@ -1247,7 +1247,7 @@ private Mono> listSinglePageAsync(St
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkWatcherName,
@@ -1287,7 +1287,7 @@ private Mono> listSinglePageAsync(St
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java
index b65867753002..1072ef2129bc 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java
@@ -159,7 +159,7 @@ public Mono> getWithResponseAsync(Strin
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -204,7 +204,7 @@ private Mono> getWithResponseAsync(Stri
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -313,7 +313,7 @@ public Mono> createOrUpdateWithResponse
} else {
connectivityConfiguration.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -367,7 +367,7 @@ private Mono> createOrUpdateWithRespons
} else {
connectivityConfiguration.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -473,7 +473,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -520,7 +520,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -772,7 +772,7 @@ private Mono> listSinglePageAsync(
return Mono
.error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -818,7 +818,7 @@ private Mono> listSinglePageAsync(
return Mono
.error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java
index 64883c58f4f0..a2d49be7a53c 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java
@@ -178,7 +178,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, customIpPrefixName,
@@ -216,7 +216,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion,
@@ -385,7 +385,7 @@ public Mono> getByResourceGroupWithResponseAsync(S
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName,
@@ -425,7 +425,7 @@ private Mono> getByResourceGroupWithResponseAsync(
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion,
@@ -518,7 +518,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName,
@@ -562,7 +562,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion,
@@ -754,7 +754,7 @@ public Mono> updateTagsWithResponseAsync(String re
} else {
parameters.validate();
}
- final String apiVersion = "2025-03-01";
+ final String apiVersion = "2025-05-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, customIpPrefixName,
@@ -798,7 +798,7 @@ private Mono