diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index bd5bbff072e42..bef767840127d 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -275,7 +275,7 @@ com.azure.resourcemanager:azure-resourcemanager-eventhubs;2.54.1;2.55.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-keyvault;2.57.1;2.58.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-monitor;2.54.1;2.55.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-msi;2.55.1;2.56.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-network;2.64.0;2.65.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-network;2.64.0;2.65.0
com.azure.resourcemanager:azure-resourcemanager-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-privatedns;2.54.1;2.55.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-resources;2.56.1;2.57.0-beta.1
diff --git a/sdk/network/azure-resourcemanager-network/CHANGELOG.md b/sdk/network/azure-resourcemanager-network/CHANGELOG.md
index 6c97297a6ab50..a039459d8d91e 100644
--- a/sdk/network/azure-resourcemanager-network/CHANGELOG.md
+++ b/sdk/network/azure-resourcemanager-network/CHANGELOG.md
@@ -1,14 +1,28 @@
# Release History
-## 2.65.0-beta.1 (Unreleased)
+## 2.65.0 (2026-11-23)
-### Features Added
+- Package api-version 2026-05-01.
### Breaking Changes
-### Bugs Fixed
+#### `models.ProxyResourceVirtualNetworkApplianceCapabilityProperties` was removed
-### Other Changes
+#### `models.Nat64Capability` was modified
+
+* `withProperties(models.VirtualNetworkApplianceCapabilityProperties)` was removed
+
+#### `models.PLGatewayFastpathCapability` was modified
+
+* `withProperties(models.VirtualNetworkApplianceCapabilityProperties)` was removed
+
+#### `models.PLGatewayCapability` was modified
+
+* `withProperties(models.VirtualNetworkApplianceCapabilityProperties)` was removed
+
+#### `models.PLIPForwardersCapability` was modified
+
+* `withProperties(models.VirtualNetworkApplianceCapabilityProperties)` was removed
## 2.64.0 (2026-11-18)
diff --git a/sdk/network/azure-resourcemanager-network/README.md b/sdk/network/azure-resourcemanager-network/README.md
index 5512036e80aca..e0f98329f5df4 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.64.0
+ 2.65.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/network/azure-resourcemanager-network/pom.xml b/sdk/network/azure-resourcemanager-network/pom.xml
index 152cf93a19aa6..ce83ae7320352 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.65.0-beta.1
+ 2.65.0
jar
Microsoft Azure SDK for Network Management
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java
index a3ba0490a5d73..e2f1ae451a138 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java
@@ -147,125 +147,6 @@ PagedIterable listCloudServiceRoleInstanceNetworkInterfac
PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName,
String cloudServiceName, String roleInstanceName, Context context);
- /**
- * Get the specified network interface in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param expand Expands referenced resources.
- * @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 network interface in a virtual machine scale set along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
- String networkInterfaceName, String expand);
-
- /**
- * Get the specified network interface in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @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 network interface in a virtual machine scale set on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getVirtualMachineScaleSetNetworkInterfaceAsync(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName);
-
- /**
- * Get the specified network interface in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param expand Expands referenced resources.
- * @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 network interface in a virtual machine scale set along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getVirtualMachineScaleSetNetworkInterfaceWithResponse(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String expand,
- Context context);
-
- /**
- * Get the specified network interface in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @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 network interface in a virtual machine scale set.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName);
-
- /**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @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 all network interfaces in a virtual machine in a virtual machine scale set as paginated
- * response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex);
-
- /**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @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 all network interfaces in a virtual machine in a virtual machine scale set as paginated
- * response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex);
-
- /**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @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 all network interfaces in a virtual machine in a virtual machine scale set as paginated
- * response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, Context context);
-
/**
* Gets information about the specified network interface.
*
@@ -856,90 +737,166 @@ EffectiveNetworkSecurityGroupListResultInner listEffectiveNetworkSecurityGroups(
String networkInterfaceName, Context context);
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @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 network interfaces in a cloud service as paginated response with {@link PagedFlux}.
+ * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName,
- String cloudServiceName);
+ PagedFlux listVirtualMachineScaleSetNetworkInterfacesAsync(String resourceGroupName,
+ String virtualMachineScaleSetName);
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @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 network interfaces in a cloud service as paginated response with {@link PagedIterable}.
+ * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName,
- String cloudServiceName);
+ PagedIterable listVirtualMachineScaleSetNetworkInterfaces(String resourceGroupName,
+ String virtualMachineScaleSetName);
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @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 network interfaces in a cloud service as paginated response with {@link PagedIterable}.
+ * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName,
- String cloudServiceName, Context context);
+ PagedIterable listVirtualMachineScaleSetNetworkInterfaces(String resourceGroupName,
+ String virtualMachineScaleSetName, Context context);
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Get the specified network interface in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param expand Expands referenced resources.
* @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 network interfaces in a virtual machine scale set as paginated response with {@link PagedFlux}.
+ * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(
+ String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
+ String networkInterfaceName, String expand);
+
+ /**
+ * Get the specified network interface in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @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 network interface in a virtual machine scale set on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getVirtualMachineScaleSetNetworkInterfaceAsync(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName);
+
+ /**
+ * Get the specified network interface in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param expand Expands referenced resources.
+ * @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 network interface in a virtual machine scale set along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getVirtualMachineScaleSetNetworkInterfaceWithResponse(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String expand,
+ Context context);
+
+ /**
+ * Get the specified network interface in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @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 network interface in a virtual machine scale set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName);
+
+ /**
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @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 all network interfaces in a virtual machine in a virtual machine scale set as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listVirtualMachineScaleSetNetworkInterfacesAsync(String resourceGroupName,
- String virtualMachineScaleSetName);
+ PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex);
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
* @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 network interfaces in a virtual machine scale set as paginated response with {@link PagedIterable}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachineScaleSetNetworkInterfaces(String resourceGroupName,
- String virtualMachineScaleSetName);
+ PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex);
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
* @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 network interfaces in a virtual machine scale set as paginated response with {@link PagedIterable}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachineScaleSetNetworkInterfaces(String resourceGroupName,
- String virtualMachineScaleSetName, Context context);
+ PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, Context context);
/**
* Get the specified network interface ip configuration in a virtual machine scale set.
@@ -1093,4 +1050,47 @@ PagedIterable listVirtualMachineScaleSetIp
PagedIterable listVirtualMachineScaleSetIpConfigurations(
String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
String networkInterfaceName, String expand, Context context);
+
+ /**
+ * Gets all network interfaces in a cloud service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
+ * @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 network interfaces in a cloud service as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName,
+ String cloudServiceName);
+
+ /**
+ * Gets all network interfaces in a cloud service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
+ * @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 network interfaces in a cloud service as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName,
+ String cloudServiceName);
+
+ /**
+ * Gets all network interfaces in a cloud service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
+ * @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 network interfaces in a cloud service as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName,
+ String cloudServiceName, Context context);
}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java
index c35ca45795870..3ff700efc8282 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java
@@ -164,147 +164,6 @@ PagedIterable listCloudServiceRoleInstancePublicIpAddresse
String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName,
Context context);
- /**
- * Get the specified public IP address in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
- * @param expand Expands referenced resources.
- * @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 public IP address in a virtual machine scale set along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
- String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, String expand);
-
- /**
- * Get the specified public IP address in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
- * @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 public IP address in a virtual machine scale set on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getVirtualMachineScaleSetPublicIpAddressAsync(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName, String publicIpAddressName);
-
- /**
- * Get the specified public IP address in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
- * @param expand Expands referenced resources.
- * @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 public IP address in a virtual machine scale set along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getVirtualMachineScaleSetPublicIpAddressWithResponse(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName, String publicIpAddressName, String expand, Context context);
-
- /**
- * Get the specified public IP address in a virtual machine scale set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
- * @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 public IP address in a virtual machine scale set.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName, String publicIpAddressName);
-
- /**
- * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
- * set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @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 all public IP addresses in a virtual machine IP configuration in a virtual machine
- * scale set as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listVirtualMachineScaleSetVMPublicIpAddressesAsync(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName);
-
- /**
- * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
- * set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @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 all public IP addresses in a virtual machine IP configuration in a virtual machine
- * scale set as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachineScaleSetVMPublicIpAddresses(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName);
-
- /**
- * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
- * set.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @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 all public IP addresses in a virtual machine IP configuration in a virtual machine
- * scale set as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachineScaleSetVMPublicIpAddresses(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName, Context context);
-
/**
* Gets the specified public IP address in a specified resource group.
*
@@ -1037,94 +896,235 @@ PublicIpAddressInner disassociateCloudServiceReservedPublicIp(String resourceGro
DisassociateCloudServicePublicIpRequest parameters, Context context);
/**
- * Gets information about all public IP addresses on a cloud service level.
+ * Gets information about all public IP addresses on a virtual machine scale set level.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @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 all public IP addresses on a cloud service level as paginated response with
+ * @return information about all public IP addresses on a virtual machine scale set level as paginated response with
* {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listCloudServicePublicIpAddressesAsync(String resourceGroupName,
- String cloudServiceName);
+ PagedFlux listVirtualMachineScaleSetPublicIpAddressesAsync(String resourceGroupName,
+ String virtualMachineScaleSetName);
/**
- * Gets information about all public IP addresses on a cloud service level.
+ * Gets information about all public IP addresses on a virtual machine scale set level.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @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 all public IP addresses on a cloud service level as paginated response with
+ * @return information about all public IP addresses on a virtual machine scale set level as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName,
- String cloudServiceName);
+ PagedIterable listVirtualMachineScaleSetPublicIpAddresses(String resourceGroupName,
+ String virtualMachineScaleSetName);
/**
- * Gets information about all public IP addresses on a cloud service level.
+ * Gets information about all public IP addresses on a virtual machine scale set level.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @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 all public IP addresses on a cloud service level as paginated response with
+ * @return information about all public IP addresses on a virtual machine scale set level as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName,
- String cloudServiceName, Context context);
+ PagedIterable listVirtualMachineScaleSetPublicIpAddresses(String resourceGroupName,
+ String virtualMachineScaleSetName, Context context);
/**
- * Gets information about all public IP addresses on a virtual machine scale set level.
+ * Get the specified public IP address in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param ipConfigurationName The ipConfigurationName parameter.
+ * @param publicIpAddressName The publicIpAddressName parameter.
+ * @param expand Expands referenced resources.
* @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 all public IP addresses on a virtual machine scale set level as paginated response with
+ * @return the specified public IP address in a virtual machine scale set along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(
+ String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
+ String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, String expand);
+
+ /**
+ * Get the specified public IP address in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param ipConfigurationName The ipConfigurationName parameter.
+ * @param publicIpAddressName The publicIpAddressName parameter.
+ * @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 public IP address in a virtual machine scale set on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getVirtualMachineScaleSetPublicIpAddressAsync(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
+ String ipConfigurationName, String publicIpAddressName);
+
+ /**
+ * Get the specified public IP address in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param ipConfigurationName The ipConfigurationName parameter.
+ * @param publicIpAddressName The publicIpAddressName parameter.
+ * @param expand Expands referenced resources.
+ * @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 public IP address in a virtual machine scale set along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getVirtualMachineScaleSetPublicIpAddressWithResponse(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
+ String ipConfigurationName, String publicIpAddressName, String expand, Context context);
+
+ /**
+ * Get the specified public IP address in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param ipConfigurationName The ipConfigurationName parameter.
+ * @param publicIpAddressName The publicIpAddressName parameter.
+ * @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 public IP address in a virtual machine scale set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
+ String ipConfigurationName, String publicIpAddressName);
+
+ /**
+ * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
+ * set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param ipConfigurationName The ipConfigurationName parameter.
+ * @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 all public IP addresses in a virtual machine IP configuration in a virtual machine
+ * scale set as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listVirtualMachineScaleSetVMPublicIpAddressesAsync(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
+ String ipConfigurationName);
+
+ /**
+ * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
+ * set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param ipConfigurationName The ipConfigurationName parameter.
+ * @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 all public IP addresses in a virtual machine IP configuration in a virtual machine
+ * scale set as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listVirtualMachineScaleSetVMPublicIpAddresses(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
+ String ipConfigurationName);
+
+ /**
+ * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
+ * set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param ipConfigurationName The ipConfigurationName parameter.
+ * @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 all public IP addresses in a virtual machine IP configuration in a virtual machine
+ * scale set as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listVirtualMachineScaleSetVMPublicIpAddresses(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
+ String ipConfigurationName, Context context);
+
+ /**
+ * Gets information about all public IP addresses on a cloud service level.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
+ * @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 all public IP addresses on a cloud service level as paginated response with
* {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listVirtualMachineScaleSetPublicIpAddressesAsync(String resourceGroupName,
- String virtualMachineScaleSetName);
+ PagedFlux listCloudServicePublicIpAddressesAsync(String resourceGroupName,
+ String cloudServiceName);
/**
- * Gets information about all public IP addresses on a virtual machine scale set level.
+ * Gets information about all public IP addresses on a cloud service level.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param cloudServiceName The name of the cloud service.
* @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 all public IP addresses on a virtual machine scale set level as paginated response with
+ * @return information about all public IP addresses on a cloud service level as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachineScaleSetPublicIpAddresses(String resourceGroupName,
- String virtualMachineScaleSetName);
+ PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName,
+ String cloudServiceName);
/**
- * Gets information about all public IP addresses on a virtual machine scale set level.
+ * Gets information about all public IP addresses on a cloud service level.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param cloudServiceName The name of the cloud service.
* @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 all public IP addresses on a virtual machine scale set level as paginated response with
+ * @return information about all public IP addresses on a cloud service level as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachineScaleSetPublicIpAddresses(String resourceGroupName,
- String virtualMachineScaleSetName, Context context);
+ PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName,
+ String cloudServiceName, Context context);
}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceCapabilityInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceCapabilityInner.java
index 5fd77eb150977..6a9f9eca0bb3c 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceCapabilityInner.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceCapabilityInner.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.network.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
@@ -13,7 +14,6 @@
import com.azure.resourcemanager.network.models.PLGatewayCapability;
import com.azure.resourcemanager.network.models.PLGatewayFastpathCapability;
import com.azure.resourcemanager.network.models.PLIPForwardersCapability;
-import com.azure.resourcemanager.network.models.ProxyResourceVirtualNetworkApplianceCapabilityProperties;
import com.azure.resourcemanager.network.models.VirtualNetworkApplianceCapabilityKind;
import com.azure.resourcemanager.network.models.VirtualNetworkApplianceCapabilityProperties;
import java.io.IOException;
@@ -24,13 +24,18 @@
* VirtualNetworkApplianceCapabilityProperties). One capability of a given kind may exist per appliance.
*/
@Fluent
-public class VirtualNetworkApplianceCapabilityInner extends ProxyResourceVirtualNetworkApplianceCapabilityProperties {
+public class VirtualNetworkApplianceCapabilityInner extends ProxyResource {
/*
* The kind of capability (the top-level discriminator).
*/
private VirtualNetworkApplianceCapabilityKind kind
= VirtualNetworkApplianceCapabilityKind.fromString("VirtualNetworkApplianceCapability");
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private VirtualNetworkApplianceCapabilityProperties properties;
+
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@@ -66,16 +71,47 @@ public VirtualNetworkApplianceCapabilityKind kind() {
return this.kind;
}
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public VirtualNetworkApplianceCapabilityProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the VirtualNetworkApplianceCapabilityInner object itself.
+ */
+ public VirtualNetworkApplianceCapabilityInner
+ withProperties(VirtualNetworkApplianceCapabilityProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
- @Override
public SystemData systemData() {
return this.systemData;
}
+ /**
+ * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @param systemData the systemData value to set.
+ * @return the VirtualNetworkApplianceCapabilityInner object itself.
+ */
+ VirtualNetworkApplianceCapabilityInner withSystemData(SystemData systemData) {
+ this.systemData = systemData;
+ return this;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -106,22 +142,11 @@ public String id() {
return this.id;
}
- /**
- * {@inheritDoc}
- */
- @Override
- public VirtualNetworkApplianceCapabilityInner
- withProperties(VirtualNetworkApplianceCapabilityProperties properties) {
- super.withProperties(properties);
- return this;
- }
-
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
- @Override
public void validate() {
if (properties() != null) {
properties().validate();
@@ -134,8 +159,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", properties());
jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString());
+ jsonWriter.writeJsonField("properties", this.properties);
return jsonWriter.writeEndObject();
}
@@ -193,14 +218,14 @@ static VirtualNetworkApplianceCapabilityInner fromJsonKnownDiscriminator(JsonRea
deserializedVirtualNetworkApplianceCapabilityInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedVirtualNetworkApplianceCapabilityInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedVirtualNetworkApplianceCapabilityInner
- .withProperties(VirtualNetworkApplianceCapabilityProperties.fromJson(reader));
- } else if ("systemData".equals(fieldName)) {
- deserializedVirtualNetworkApplianceCapabilityInner.systemData = SystemData.fromJson(reader);
} else if ("kind".equals(fieldName)) {
deserializedVirtualNetworkApplianceCapabilityInner.kind
= VirtualNetworkApplianceCapabilityKind.fromString(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceCapabilityInner.properties
+ = VirtualNetworkApplianceCapabilityProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedVirtualNetworkApplianceCapabilityInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java
index d32baa57ed59a..97429c6a78bff 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java
@@ -105,31 +105,6 @@ Mono> listCloudServiceRoleInstanceNetworkIn
@PathParam("roleInstanceName") String roleInstanceName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getVirtualMachineScaleSetNetworkInterface(
- @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
- @PathParam("virtualmachineIndex") String virtualmachineIndex,
- @PathParam("networkInterfaceName") String networkInterfaceName, @QueryParam("$expand") String expand,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetVMNetworkInterfaces(
- @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
- @PathParam("virtualmachineIndex") String virtualmachineIndex, @HeaderParam("Accept") String accept,
- Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}")
@ExpectedResponses({ 200 })
@@ -207,27 +182,41 @@ Mono>> listEffectiveNetworkSecurityGroups(@HostParam("
Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listCloudServiceNetworkInterfaces(
+ Mono> listVirtualMachineScaleSetNetworkInterfaces(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("cloudServiceName") String cloudServiceName, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetNetworkInterfaces(
+ Mono> getVirtualMachineScaleSetNetworkInterface(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
+ @PathParam("virtualmachineIndex") String virtualmachineIndex,
+ @PathParam("networkInterfaceName") String networkInterfaceName, @QueryParam("$expand") String expand,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listVirtualMachineScaleSetVMNetworkInterfaces(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
+ @PathParam("virtualmachineIndex") String virtualmachineIndex, @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}")
@ExpectedResponses({ 200 })
@@ -255,6 +244,17 @@ Mono> listVirtualMachineScal
@PathParam("networkInterfaceName") String networkInterfaceName, @QueryParam("$expand") String expand,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listCloudServiceNetworkInterfaces(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudServiceName") String cloudServiceName, @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -267,7 +267,7 @@ Mono> listCloudServiceRoleInstanceNetworkIn
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetVMNetworkInterfacesNext(
+ Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -275,7 +275,7 @@ Mono> listVirtualMachineScaleSetVMNetworkIn
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
+ Mono> listAllNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -283,7 +283,7 @@ Mono> listNext(
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listAllNext(
+ Mono> listVirtualMachineScaleSetNetworkInterfacesNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -291,7 +291,7 @@ Mono> listAllNext(
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listCloudServiceNetworkInterfacesNext(
+ Mono> listVirtualMachineScaleSetVMNetworkInterfacesNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -299,7 +299,7 @@ Mono> listCloudServiceNetworkInterfacesNext
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetNetworkInterfacesNext(
+ Mono> listVirtualMachineScaleSetIpConfigurationsNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -307,7 +307,7 @@ Mono> listVirtualMachineScaleSetNetworkInte
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetIpConfigurationsNext(
+ Mono> listCloudServiceNetworkInterfacesNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
@@ -650,22 +650,19 @@ public PagedIterable listCloudServiceRoleInstanceNetworkI
}
/**
- * Get the specified network interface in a virtual machine scale set.
+ * Gets information about the specified network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param networkInterfaceName The name of the network interface.
* @param expand Expands referenced resources.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return information about the specified network interface along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
+ public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
String networkInterfaceName, String expand) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -679,45 +676,33 @@ public Mono> getVirtualMachineScaleSetNetworkInt
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (virtualMachineScaleSetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
- }
- if (virtualmachineIndex == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
- }
if (networkInterfaceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
}
- final String apiVersion = "2018-10-01";
+ final String apiVersion = "2026-05-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.getVirtualMachineScaleSetNetworkInterface(this.client.getEndpoint(),
- apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, networkInterfaceName, expand, accept, context))
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, expand, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Get the specified network interface in a virtual machine scale set.
+ * Gets information about the specified network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param networkInterfaceName The name of the network interface.
* @param expand Expands referenced resources.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return information about the specified network interface along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
String networkInterfaceName, String expand, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -731,103 +716,83 @@ private Mono> getVirtualMachineScaleSetNetworkIn
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (virtualMachineScaleSetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
- }
- if (virtualmachineIndex == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
- }
if (networkInterfaceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
}
- final String apiVersion = "2018-10-01";
+ final String apiVersion = "2026-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getVirtualMachineScaleSetNetworkInterface(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex,
- networkInterfaceName, expand, accept, context);
+ return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, networkInterfaceName, expand, accept, context);
}
/**
- * Get the specified network interface in a virtual machine scale set.
+ * Gets information about the specified network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param networkInterfaceName The name of the network interface.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified network interface in a virtual machine scale set on successful completion of {@link Mono}.
+ * @return information about the specified network interface on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getVirtualMachineScaleSetNetworkInterfaceAsync(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName) {
+ public Mono getByResourceGroupAsync(String resourceGroupName, String networkInterfaceName) {
final String expand = null;
- return getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, networkInterfaceName, expand).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ return getByResourceGroupWithResponseAsync(resourceGroupName, networkInterfaceName, expand)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Get the specified network interface in a virtual machine scale set.
+ * Gets information about the specified network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param networkInterfaceName The name of the network interface.
* @param expand Expands referenced resources.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified network interface in a virtual machine scale set along with {@link Response}.
+ * @return information about the specified network interface along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getVirtualMachineScaleSetNetworkInterfaceWithResponse(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
String networkInterfaceName, String expand, Context context) {
- return getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, networkInterfaceName, expand, context).block();
+ return getByResourceGroupWithResponseAsync(resourceGroupName, networkInterfaceName, expand, context).block();
}
/**
- * Get the specified network interface in a virtual machine scale set.
+ * Gets information about the specified network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param networkInterfaceName The name of the network interface.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified network interface in a virtual machine scale set.
+ * @return information about the specified network interface.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName) {
+ public NetworkInterfaceInner getByResourceGroup(String resourceGroupName, String networkInterfaceName) {
final String expand = null;
- return getVirtualMachineScaleSetNetworkInterfaceWithResponse(resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, networkInterfaceName, expand, Context.NONE).getValue();
+ return getByResourceGroupWithResponse(resourceGroupName, networkInterfaceName, expand, Context.NONE).getValue();
}
/**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The name of the network interface.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return a network interface in a resource group along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex) {
+ public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String networkInterfaceName, NetworkInterfaceInner parameters) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -840,41 +805,41 @@ private Mono> listVirtualMachineScaleSetVMN
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (virtualMachineScaleSetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
- }
- if (virtualmachineIndex == null) {
+ if (networkInterfaceName == null) {
return Mono
- .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
}
- final String apiVersion = "2018-10-01";
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String apiVersion = "2026-05-01";
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listVirtualMachineScaleSetVMNetworkInterfaces(this.client.getEndpoint(),
- apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, contentType, accept,
+ parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The name of the network interface.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return a network interface in a resource group along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, Context context) {
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String networkInterfaceName, NetworkInterfaceInner parameters, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -887,242 +852,180 @@ private Mono> listVirtualMachineScaleSetVMN
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (virtualMachineScaleSetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
- }
- if (virtualmachineIndex == null) {
+ if (networkInterfaceName == null) {
return Mono
- .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
}
- final String apiVersion = "2018-10-01";
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String apiVersion = "2026-05-01";
+ final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listVirtualMachineScaleSetVMNetworkInterfaces(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex,
- accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, networkInterfaceName, contentType, accept, parameters, context);
}
/**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The name of the network interface.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
- * response with {@link PagedFlux}.
+ * @return the {@link PollerFlux} for polling of a network interface in a resource group.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex) {
- return new PagedFlux<>(
- () -> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(resourceGroupName,
- virtualMachineScaleSetName, virtualmachineIndex),
- nextLink -> listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, NetworkInterfaceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, networkInterfaceName, parameters);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), NetworkInterfaceInner.class, NetworkInterfaceInner.class,
+ this.client.getContext());
}
/**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The name of the network interface.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
- * response with {@link PagedFlux}.
+ * @return the {@link PollerFlux} for polling of a network interface in a resource group.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, Context context) {
- return new PagedFlux<>(
- () -> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(resourceGroupName,
- virtualMachineScaleSetName, virtualmachineIndex, context),
- nextLink -> listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(nextLink, context));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, NetworkInterfaceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, networkInterfaceName, parameters, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), NetworkInterfaceInner.class, NetworkInterfaceInner.class, context);
}
/**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The name of the network interface.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
- * response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of a network interface in a resource group.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex) {
- return new PagedIterable<>(listVirtualMachineScaleSetVMNetworkInterfacesAsync(resourceGroupName,
- virtualMachineScaleSetName, virtualmachineIndex));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, NetworkInterfaceInner>
+ beginCreateOrUpdate(String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters).getSyncPoller();
}
/**
- * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The name of the network interface.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
- * response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of a network interface in a resource group.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, Context context) {
- return new PagedIterable<>(listVirtualMachineScaleSetVMNetworkInterfacesAsync(resourceGroupName,
- virtualMachineScaleSetName, virtualmachineIndex, context));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, NetworkInterfaceInner> beginCreateOrUpdate(
+ String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters, context)
+ .getSyncPoller();
}
/**
- * Gets information about the specified network interface.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
- * @param expand Expands referenced resources.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified network interface along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return a network interface in a resource group on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String networkInterfaceName, String expand) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (networkInterfaceName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
- }
- final String apiVersion = "2026-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, expand, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ public Mono createOrUpdateAsync(String resourceGroupName, String networkInterfaceName,
+ NetworkInterfaceInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Gets information about the specified network interface.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
- * @param expand Expands referenced resources.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified network interface along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return a network interface in a resource group on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String networkInterfaceName, String expand, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (networkInterfaceName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
- }
- final String apiVersion = "2026-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, networkInterfaceName, expand, accept, context);
+ private Mono createOrUpdateAsync(String resourceGroupName, String networkInterfaceName,
+ NetworkInterfaceInner parameters, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Gets information about the specified network interface.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified network interface on successful completion of {@link Mono}.
+ * @return a network interface in a resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getByResourceGroupAsync(String resourceGroupName, String networkInterfaceName) {
- final String expand = null;
- return getByResourceGroupWithResponseAsync(resourceGroupName, networkInterfaceName, expand)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ public NetworkInterfaceInner createOrUpdate(String resourceGroupName, String networkInterfaceName,
+ NetworkInterfaceInner parameters) {
+ return createOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters).block();
}
/**
- * Gets information about the specified network interface.
+ * Creates or updates a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
- * @param expand Expands referenced resources.
+ * @param parameters Parameters supplied to the create or update network interface operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified network interface along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(String resourceGroupName,
- String networkInterfaceName, String expand, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, networkInterfaceName, expand, context).block();
- }
-
- /**
- * Gets information about the specified network interface.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified network interface.
+ * @return a network interface in a resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public NetworkInterfaceInner getByResourceGroup(String resourceGroupName, String networkInterfaceName) {
- final String expand = null;
- return getByResourceGroupWithResponse(resourceGroupName, networkInterfaceName, expand, Context.NONE).getValue();
+ public NetworkInterfaceInner createOrUpdate(String resourceGroupName, String networkInterfaceName,
+ NetworkInterfaceInner parameters, Context context) {
+ return createOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters, context).block();
}
/**
- * Creates or updates a network interface.
+ * Updates a network interface tags.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
+ * @param parameters Parameters supplied to update network interface tags.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1130,8 +1033,8 @@ public NetworkInterfaceInner getByResourceGroup(String resourceGroupName, String
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String networkInterfaceName, NetworkInterfaceInner parameters) {
+ public Mono> updateTagsWithResponseAsync(String resourceGroupName,
+ String networkInterfaceName, TagsObject parameters) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1157,18 +1060,18 @@ public Mono>> createOrUpdateWithResponseAsync(String r
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, contentType, accept,
- parameters, context))
+ .withContext(
+ context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, networkInterfaceName, contentType, accept, parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Creates or updates a network interface.
+ * Updates a network interface tags.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
+ * @param parameters Parameters supplied to update network interface tags.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1177,8 +1080,8 @@ public Mono>> createOrUpdateWithResponseAsync(String r
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String networkInterfaceName, NetworkInterfaceInner parameters, Context context) {
+ private Mono> updateTagsWithResponseAsync(String resourceGroupName,
+ String networkInterfaceName, TagsObject parameters, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1204,298 +1107,56 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
resourceGroupName, networkInterfaceName, contentType, accept, parameters, context);
}
/**
- * Creates or updates a network interface.
+ * Updates a network interface tags.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
+ * @param parameters Parameters supplied to update network interface tags.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of a network interface in a resource group.
+ * @return a network interface in a resource group on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux, NetworkInterfaceInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters) {
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, networkInterfaceName, parameters);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), NetworkInterfaceInner.class, NetworkInterfaceInner.class,
- this.client.getContext());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateTagsAsync(String resourceGroupName, String networkInterfaceName,
+ TagsObject parameters) {
+ return updateTagsWithResponseAsync(resourceGroupName, networkInterfaceName, parameters)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Creates or updates a network interface.
+ * Updates a network interface tags.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
+ * @param parameters Parameters supplied to update network interface tags.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of a network interface in a resource group.
+ * @return a network interface in a resource group along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, NetworkInterfaceInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, networkInterfaceName, parameters, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), NetworkInterfaceInner.class, NetworkInterfaceInner.class, context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateTagsWithResponse(String resourceGroupName, String networkInterfaceName,
+ TagsObject parameters, Context context) {
+ return updateTagsWithResponseAsync(resourceGroupName, networkInterfaceName, parameters, context).block();
}
/**
- * Creates or updates a network interface.
+ * Updates a network interface tags.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
+ * @param parameters Parameters supplied to update network interface tags.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of a network interface in a resource group.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, NetworkInterfaceInner>
- beginCreateOrUpdate(String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters).getSyncPoller();
- }
-
- /**
- * Creates or updates a network interface.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of a network interface in a resource group.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, NetworkInterfaceInner> beginCreateOrUpdate(
- String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters, Context context) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters, context)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates a network interface.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono createOrUpdateAsync(String resourceGroupName, String networkInterfaceName,
- NetworkInterfaceInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates a network interface.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String networkInterfaceName,
- NetworkInterfaceInner parameters, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates a network interface.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public NetworkInterfaceInner createOrUpdate(String resourceGroupName, String networkInterfaceName,
- NetworkInterfaceInner parameters) {
- return createOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters).block();
- }
-
- /**
- * Creates or updates a network interface.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to the create or update network interface operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public NetworkInterfaceInner createOrUpdate(String resourceGroupName, String networkInterfaceName,
- NetworkInterfaceInner parameters, Context context) {
- return createOrUpdateAsync(resourceGroupName, networkInterfaceName, parameters, context).block();
- }
-
- /**
- * Updates a network interface tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to update network interface tags.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> updateTagsWithResponseAsync(String resourceGroupName,
- String networkInterfaceName, TagsObject parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (networkInterfaceName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2026-05-01";
- final String contentType = "application/json";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, networkInterfaceName, contentType, accept, parameters, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Updates a network interface tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to update network interface tags.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateTagsWithResponseAsync(String resourceGroupName,
- String networkInterfaceName, TagsObject parameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (networkInterfaceName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2026-05-01";
- final String contentType = "application/json";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, networkInterfaceName, contentType, accept, parameters, context);
- }
-
- /**
- * Updates a network interface tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to update network interface tags.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono updateTagsAsync(String resourceGroupName, String networkInterfaceName,
- TagsObject parameters) {
- return updateTagsWithResponseAsync(resourceGroupName, networkInterfaceName, parameters)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Updates a network interface tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to update network interface tags.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateTagsWithResponse(String resourceGroupName, String networkInterfaceName,
- TagsObject parameters, Context context) {
- return updateTagsWithResponseAsync(resourceGroupName, networkInterfaceName, parameters, context).block();
- }
-
- /**
- * Updates a network interface tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param networkInterfaceName The name of the network interface.
- * @param parameters Parameters supplied to update network interface tags.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network interface in a resource group.
+ * @return a network interface in a resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public NetworkInterfaceInner updateTags(String resourceGroupName, String networkInterfaceName,
@@ -2394,19 +2055,19 @@ public EffectiveNetworkSecurityGroupListResultInner listEffectiveNetworkSecurity
}
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return all network interfaces in a virtual machine scale set along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listCloudServiceNetworkInterfacesSinglePageAsync(String resourceGroupName, String cloudServiceName) {
+ private Mono> listVirtualMachineScaleSetNetworkInterfacesSinglePageAsync(
+ String resourceGroupName, String virtualMachineScaleSetName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -2419,35 +2080,36 @@ public EffectiveNetworkSecurityGroupListResultInner listEffectiveNetworkSecurity
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (cloudServiceName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null."));
+ if (virtualMachineScaleSetName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
}
- final String apiVersion = "2026-05-01";
+ final String apiVersion = "2018-10-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listCloudServiceNetworkInterfaces(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ .withContext(
+ context -> service.listVirtualMachineScaleSetNetworkInterfaces(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return all network interfaces in a virtual machine scale set along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listCloudServiceNetworkInterfacesSinglePageAsync(
- String resourceGroupName, String cloudServiceName, Context context) {
+ private Mono> listVirtualMachineScaleSetNetworkInterfacesSinglePageAsync(
+ String resourceGroupName, String virtualMachineScaleSetName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -2460,105 +2122,112 @@ private Mono> listCloudServiceNetworkInterf
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (cloudServiceName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null."));
+ if (virtualMachineScaleSetName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
}
- final String apiVersion = "2026-05-01";
+ final String apiVersion = "2018-10-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listCloudServiceNetworkInterfaces(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, cloudServiceName, accept, context)
+ .listVirtualMachineScaleSetNetworkInterfaces(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}.
+ * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName,
- String cloudServiceName) {
+ public PagedFlux listVirtualMachineScaleSetNetworkInterfacesAsync(String resourceGroupName,
+ String virtualMachineScaleSetName) {
return new PagedFlux<>(
- () -> listCloudServiceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName),
- nextLink -> listCloudServiceNetworkInterfacesNextSinglePageAsync(nextLink));
+ () -> listVirtualMachineScaleSetNetworkInterfacesSinglePageAsync(resourceGroupName,
+ virtualMachineScaleSetName),
+ nextLink -> listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync(nextLink));
}
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}.
+ * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName,
- String cloudServiceName, Context context) {
+ private PagedFlux listVirtualMachineScaleSetNetworkInterfacesAsync(String resourceGroupName,
+ String virtualMachineScaleSetName, Context context) {
return new PagedFlux<>(
- () -> listCloudServiceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName, context),
- nextLink -> listCloudServiceNetworkInterfacesNextSinglePageAsync(nextLink, context));
+ () -> listVirtualMachineScaleSetNetworkInterfacesSinglePageAsync(resourceGroupName,
+ virtualMachineScaleSetName, context),
+ nextLink -> listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync(nextLink, context));
}
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}.
+ * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName,
- String cloudServiceName) {
- return new PagedIterable<>(listCloudServiceNetworkInterfacesAsync(resourceGroupName, cloudServiceName));
+ public PagedIterable listVirtualMachineScaleSetNetworkInterfaces(String resourceGroupName,
+ String virtualMachineScaleSetName) {
+ return new PagedIterable<>(
+ listVirtualMachineScaleSetNetworkInterfacesAsync(resourceGroupName, virtualMachineScaleSetName));
}
/**
- * Gets all network interfaces in a cloud service.
+ * Gets all network interfaces in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param cloudServiceName The name of the cloud service.
+ * @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}.
+ * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName,
- String cloudServiceName, Context context) {
+ public PagedIterable listVirtualMachineScaleSetNetworkInterfaces(String resourceGroupName,
+ String virtualMachineScaleSetName, Context context) {
return new PagedIterable<>(
- listCloudServiceNetworkInterfacesAsync(resourceGroupName, cloudServiceName, context));
+ listVirtualMachineScaleSetNetworkInterfacesAsync(resourceGroupName, virtualMachineScaleSetName, context));
}
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Get the specified network interface in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param expand Expands referenced resources.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a virtual machine scale set along with {@link PagedResponse} on successful
+ * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVirtualMachineScaleSetNetworkInterfacesSinglePageAsync(
- String resourceGroupName, String virtualMachineScaleSetName) {
+ public Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(
+ String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
+ String networkInterfaceName, String expand) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -2575,32 +2244,198 @@ private Mono> listVirtualMachineScaleSetNet
return Mono.error(
new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
}
+ if (virtualmachineIndex == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
+ }
+ if (networkInterfaceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
+ }
final String apiVersion = "2018-10-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.listVirtualMachineScaleSetNetworkInterfaces(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, accept, context))
+ .withContext(context -> service.getVirtualMachineScaleSetNetworkInterface(this.client.getEndpoint(),
+ apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName,
+ virtualmachineIndex, networkInterfaceName, expand, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the specified network interface in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param expand Expands referenced resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(
+ String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
+ String networkInterfaceName, String expand, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (virtualMachineScaleSetName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
+ }
+ if (virtualmachineIndex == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
+ }
+ if (networkInterfaceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
+ }
+ final String apiVersion = "2018-10-01";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getVirtualMachineScaleSetNetworkInterface(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex,
+ networkInterfaceName, expand, accept, context);
+ }
+
+ /**
+ * Get the specified network interface in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified network interface in a virtual machine scale set on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getVirtualMachineScaleSetNetworkInterfaceAsync(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName) {
+ final String expand = null;
+ return getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(resourceGroupName, virtualMachineScaleSetName,
+ virtualmachineIndex, networkInterfaceName, expand).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the specified network interface in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @param expand Expands referenced resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified network interface in a virtual machine scale set along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getVirtualMachineScaleSetNetworkInterfaceWithResponse(
+ String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
+ String networkInterfaceName, String expand, Context context) {
+ return getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(resourceGroupName, virtualMachineScaleSetName,
+ virtualmachineIndex, networkInterfaceName, expand, context).block();
+ }
+
+ /**
+ * Get the specified network interface in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @param networkInterfaceName The networkInterfaceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified network interface in a virtual machine scale set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName) {
+ final String expand = null;
+ return getVirtualMachineScaleSetNetworkInterfaceWithResponse(resourceGroupName, virtualMachineScaleSetName,
+ virtualmachineIndex, networkInterfaceName, expand, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(
+ String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (virtualMachineScaleSetName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
+ }
+ if (virtualmachineIndex == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
+ }
+ final String apiVersion = "2018-10-01";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listVirtualMachineScaleSetVMNetworkInterfaces(this.client.getEndpoint(),
+ apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName,
+ virtualmachineIndex, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a virtual machine scale set along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVirtualMachineScaleSetNetworkInterfacesSinglePageAsync(
- String resourceGroupName, String virtualMachineScaleSetName, Context context) {
+ private Mono> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(
+ String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -2617,88 +2452,101 @@ private Mono> listVirtualMachineScaleSetNet
return Mono.error(
new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
}
+ if (virtualmachineIndex == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
+ }
final String apiVersion = "2018-10-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listVirtualMachineScaleSetNetworkInterfaces(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, accept, context)
+ .listVirtualMachineScaleSetVMNetworkInterfaces(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex,
+ accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedFlux}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listVirtualMachineScaleSetNetworkInterfacesAsync(String resourceGroupName,
- String virtualMachineScaleSetName) {
+ public PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex) {
return new PagedFlux<>(
- () -> listVirtualMachineScaleSetNetworkInterfacesSinglePageAsync(resourceGroupName,
- virtualMachineScaleSetName),
- nextLink -> listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync(nextLink));
+ () -> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(resourceGroupName,
+ virtualMachineScaleSetName, virtualmachineIndex),
+ nextLink -> listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(nextLink));
}
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedFlux}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listVirtualMachineScaleSetNetworkInterfacesAsync(String resourceGroupName,
- String virtualMachineScaleSetName, Context context) {
+ private PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(
+ String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, Context context) {
return new PagedFlux<>(
- () -> listVirtualMachineScaleSetNetworkInterfacesSinglePageAsync(resourceGroupName,
- virtualMachineScaleSetName, context),
- nextLink -> listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync(nextLink, context));
+ () -> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(resourceGroupName,
+ virtualMachineScaleSetName, virtualmachineIndex, context),
+ nextLink -> listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(nextLink, context));
}
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedIterable}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listVirtualMachineScaleSetNetworkInterfaces(String resourceGroupName,
- String virtualMachineScaleSetName) {
- return new PagedIterable<>(
- listVirtualMachineScaleSetNetworkInterfacesAsync(resourceGroupName, virtualMachineScaleSetName));
+ public PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex) {
+ return new PagedIterable<>(listVirtualMachineScaleSetVMNetworkInterfacesAsync(resourceGroupName,
+ virtualMachineScaleSetName, virtualmachineIndex));
}
/**
- * Gets all network interfaces in a virtual machine scale set.
+ * Gets information about all network interfaces in a virtual machine in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The name of the virtual machine scale set.
+ * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
+ * @param virtualmachineIndex The virtualmachineIndex parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a virtual machine scale set as paginated response with {@link PagedIterable}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listVirtualMachineScaleSetNetworkInterfaces(String resourceGroupName,
- String virtualMachineScaleSetName, Context context) {
- return new PagedIterable<>(
- listVirtualMachineScaleSetNetworkInterfacesAsync(resourceGroupName, virtualMachineScaleSetName, context));
+ public PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName,
+ String virtualMachineScaleSetName, String virtualmachineIndex, Context context) {
+ return new PagedIterable<>(listVirtualMachineScaleSetVMNetworkInterfacesAsync(resourceGroupName,
+ virtualMachineScaleSetName, virtualmachineIndex, context));
}
/**
@@ -3112,63 +2960,157 @@ public PagedIterable listVirtualMachineSca
}
/**
- * Get the next page of items.
+ * Gets all network interfaces in a cloud service.
*
- * @param nextLink The URL to get the next list of items.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a role instance in a cloud service along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listCloudServiceRoleInstanceNetworkInterfacesNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
+ listCloudServiceNetworkInterfacesSinglePageAsync(String resourceGroupName, String cloudServiceName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cloudServiceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null."));
+ }
+ final String apiVersion = "2026-05-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listCloudServiceRoleInstanceNetworkInterfacesNext(nextLink,
- this.client.getEndpoint(), accept, context))
+ .withContext(context -> service.listCloudServiceNetworkInterfaces(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Get the next page of items.
+ * Gets all network interfaces in a cloud service.
*
- * @param nextLink The URL to get the next list of items.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a role instance in a cloud service along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listCloudServiceRoleInstanceNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
+ private Mono> listCloudServiceNetworkInterfacesSinglePageAsync(
+ String resourceGroupName, String cloudServiceName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cloudServiceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null."));
+ }
+ final String apiVersion = "2026-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listCloudServiceRoleInstanceNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context)
+ .listCloudServiceNetworkInterfaces(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, cloudServiceName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
+ /**
+ * Gets all network interfaces in a cloud service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName,
+ String cloudServiceName) {
+ return new PagedFlux<>(
+ () -> listCloudServiceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName),
+ nextLink -> listCloudServiceNetworkInterfacesNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all network interfaces in a cloud service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName,
+ String cloudServiceName, Context context) {
+ return new PagedFlux<>(
+ () -> listCloudServiceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName, context),
+ nextLink -> listCloudServiceNetworkInterfacesNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets all network interfaces in a cloud service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName,
+ String cloudServiceName) {
+ return new PagedIterable<>(listCloudServiceNetworkInterfacesAsync(resourceGroupName, cloudServiceName));
+ }
+
+ /**
+ * Gets all network interfaces in a cloud service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudServiceName The name of the cloud service.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName,
+ String cloudServiceName, Context context) {
+ return new PagedIterable<>(
+ listCloudServiceNetworkInterfacesAsync(resourceGroupName, cloudServiceName, context));
+ }
+
/**
* Get the next page of items.
*
@@ -3176,12 +3118,12 @@ public PagedIterable listVirtualMachineSca
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with
+ * @return information about all network interfaces in a role instance in a cloud service along with
* {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(String nextLink) {
+ listCloudServiceRoleInstanceNetworkInterfacesNextSinglePageAsync(String nextLink) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -3191,7 +3133,7 @@ public PagedIterable listVirtualMachineSca
}
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listVirtualMachineScaleSetVMNetworkInterfacesNext(nextLink,
+ .withContext(context -> service.listCloudServiceRoleInstanceNetworkInterfacesNext(nextLink,
this.client.getEndpoint(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
@@ -3206,12 +3148,12 @@ public PagedIterable listVirtualMachineSca
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with
+ * @return information about all network interfaces in a role instance in a cloud service along with
* {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) {
+ listCloudServiceRoleInstanceNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -3222,7 +3164,7 @@ public PagedIterable listVirtualMachineSca
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listVirtualMachineScaleSetVMNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context)
+ .listCloudServiceRoleInstanceNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -3341,12 +3283,12 @@ private Mono> listAllNextSinglePageAsync(St
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return all network interfaces in a virtual machine scale set along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink) {
+ listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync(String nextLink) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -3356,8 +3298,8 @@ private Mono> listAllNextSinglePageAsync(St
}
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listCloudServiceNetworkInterfacesNext(nextLink, this.client.getEndpoint(),
- accept, context))
+ .withContext(context -> service.listVirtualMachineScaleSetNetworkInterfacesNext(nextLink,
+ this.client.getEndpoint(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -3371,12 +3313,12 @@ private Mono> listAllNextSinglePageAsync(St
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return all network interfaces in a virtual machine scale set along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) {
+ listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -3386,7 +3328,8 @@ private Mono> listAllNextSinglePageAsync(St
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listCloudServiceNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context)
+ return service
+ .listVirtualMachineScaleSetNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -3398,12 +3341,12 @@ private Mono> listAllNextSinglePageAsync(St
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a virtual machine scale set along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync(String nextLink) {
+ listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(String nextLink) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -3413,7 +3356,7 @@ private Mono> listAllNextSinglePageAsync(St
}
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listVirtualMachineScaleSetNetworkInterfacesNext(nextLink,
+ .withContext(context -> service.listVirtualMachineScaleSetVMNetworkInterfacesNext(nextLink,
this.client.getEndpoint(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
@@ -3428,12 +3371,12 @@ private Mono> listAllNextSinglePageAsync(St
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all network interfaces in a virtual machine scale set along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) {
+ listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -3444,7 +3387,7 @@ private Mono> listAllNextSinglePageAsync(St
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listVirtualMachineScaleSetNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context)
+ .listVirtualMachineScaleSetVMNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -3506,4 +3449,61 @@ private Mono> listAllNextSinglePageAsync(St
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listCloudServiceNetworkInterfacesNext(nextLink, this.client.getEndpoint(),
+ accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listCloudServiceNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
}
diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java
index 6ba7c63618baf..f4cecb95525b4 100644
--- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java
+++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java
@@ -108,35 +108,6 @@ Mono> listCloudServiceRoleInstancePublicIpAd
@PathParam("ipConfigurationName") String ipConfigurationName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getVirtualMachineScaleSetPublicIpAddress(
- @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
- @PathParam("virtualmachineIndex") String virtualmachineIndex,
- @PathParam("networkInterfaceName") String networkInterfaceName,
- @PathParam("ipConfigurationName") String ipConfigurationName,
- @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("$expand") String expand,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetVMPublicIpAddresses(
- @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
- @PathParam("virtualmachineIndex") String virtualmachineIndex,
- @PathParam("networkInterfaceName") String networkInterfaceName,
- @PathParam("ipConfigurationName") String ipConfigurationName, @HeaderParam("Accept") String accept,
- Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}")
@ExpectedResponses({ 200 })
@@ -225,27 +196,56 @@ Mono>> disassociateCloudServiceReservedPublicIp(
@BodyParam("application/json") DisassociateCloudServicePublicIpRequest parameters, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/cloudServices/{cloudServiceName}/publicipaddresses")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listCloudServicePublicIpAddresses(
+ Mono> listVirtualMachineScaleSetPublicIpAddresses(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("cloudServiceName") String cloudServiceName, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetPublicIpAddresses(
+ Mono> getVirtualMachineScaleSetPublicIpAddress(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
+ @PathParam("virtualmachineIndex") String virtualmachineIndex,
+ @PathParam("networkInterfaceName") String networkInterfaceName,
+ @PathParam("ipConfigurationName") String ipConfigurationName,
+ @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("$expand") String expand,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listVirtualMachineScaleSetVMPublicIpAddresses(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName,
+ @PathParam("virtualmachineIndex") String virtualmachineIndex,
+ @PathParam("networkInterfaceName") String networkInterfaceName,
+ @PathParam("ipConfigurationName") String ipConfigurationName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/cloudServices/{cloudServiceName}/publicipaddresses")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listCloudServicePublicIpAddresses(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudServiceName") String cloudServiceName, @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -258,7 +258,7 @@ Mono> listCloudServiceRoleInstancePublicIpAd
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetVMPublicIpAddressesNext(
+ Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -266,7 +266,7 @@ Mono> listVirtualMachineScaleSetVMPublicIpAd
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
+ Mono> listAllNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -274,7 +274,7 @@ Mono> listNext(
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listAllNext(
+ Mono> listVirtualMachineScaleSetPublicIpAddressesNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -282,7 +282,7 @@ Mono> listAllNext(
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listCloudServicePublicIpAddressesNext(
+ Mono> listVirtualMachineScaleSetVMPublicIpAddressesNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@@ -290,7 +290,7 @@ Mono> listCloudServicePublicIpAddressesNext(
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVirtualMachineScaleSetPublicIpAddressesNext(
+ Mono> listCloudServicePublicIpAddressesNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
@@ -695,25 +695,20 @@ public PagedIterable listCloudServiceRoleInstancePublicIpA
}
/**
- * Get the specified public IP address in a virtual machine scale set.
+ * Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
+ * @param publicIpAddressName The name of the public IP address.
* @param expand Expands referenced resources.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified public IP address in a virtual machine scale set along with {@link Response} on successful
+ * @return the specified public IP address in a specified resource group along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
- String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, String expand) {
+ public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String publicIpAddressName, String expand) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -726,58 +721,34 @@ public Mono> getVirtualMachineScaleSetPublicIpAdd
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (virtualMachineScaleSetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
- }
- if (virtualmachineIndex == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
- }
- if (networkInterfaceName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
- }
- if (ipConfigurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null."));
- }
if (publicIpAddressName == null) {
return Mono
.error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null."));
}
- final String apiVersion = "2018-10-01";
+ final String apiVersion = "2026-05-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.getVirtualMachineScaleSetPublicIpAddress(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex,
- networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, accept, context))
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, expand, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Get the specified public IP address in a virtual machine scale set.
+ * Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
+ * @param publicIpAddressName The name of the public IP address.
* @param expand Expands referenced resources.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified public IP address in a virtual machine scale set along with {@link Response} on successful
+ * @return the specified public IP address in a specified resource group along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
- String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, String expand,
- Context context) {
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String publicIpAddressName, String expand, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -790,126 +761,82 @@ private Mono> getVirtualMachineScaleSetPublicIpAd
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (virtualMachineScaleSetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
- }
- if (virtualmachineIndex == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
- }
- if (networkInterfaceName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
- }
- if (ipConfigurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null."));
- }
if (publicIpAddressName == null) {
return Mono
.error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null."));
}
- final String apiVersion = "2018-10-01";
+ final String apiVersion = "2026-05-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getVirtualMachineScaleSetPublicIpAddress(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex,
- networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, accept, context);
+ return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, publicIpAddressName, expand, accept, context);
}
/**
- * Get the specified public IP address in a virtual machine scale set.
+ * Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified public IP address in a virtual machine scale set on successful completion of {@link Mono}.
+ * @return the specified public IP address in a specified resource group on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getVirtualMachineScaleSetPublicIpAddressAsync(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName, String publicIpAddressName) {
+ public Mono getByResourceGroupAsync(String resourceGroupName, String publicIpAddressName) {
final String expand = null;
- return getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ return getByResourceGroupWithResponseAsync(resourceGroupName, publicIpAddressName, expand)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Get the specified public IP address in a virtual machine scale set.
+ * Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
+ * @param publicIpAddressName The name of the public IP address.
* @param expand Expands referenced resources.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified public IP address in a virtual machine scale set along with {@link Response}.
+ * @return the specified public IP address in a specified resource group along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getVirtualMachineScaleSetPublicIpAddressWithResponse(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName, String publicIpAddressName, String expand, Context context) {
- return getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, context)
- .block();
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String publicIpAddressName, String expand, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, publicIpAddressName, expand, context).block();
}
/**
- * Get the specified public IP address in a virtual machine scale set.
+ * Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
- * @param publicIpAddressName The publicIpAddressName parameter.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified public IP address in a virtual machine scale set.
+ * @return the specified public IP address in a specified resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName, String publicIpAddressName) {
+ public PublicIpAddressInner getByResourceGroup(String resourceGroupName, String publicIpAddressName) {
final String expand = null;
- return getVirtualMachineScaleSetPublicIpAddressWithResponse(resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, Context.NONE)
- .getValue();
+ return getByResourceGroupWithResponse(resourceGroupName, publicIpAddressName, expand, Context.NONE).getValue();
}
/**
- * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
- * set.
+ * Creates or updates a static or dynamic public IP address.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
+ * @param publicIpAddressName The name of the public IP address.
+ * @param parameters Parameters supplied to the create or update public IP address operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine
- * scale set along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVirtualMachineScaleSetVMPublicIpAddressesSinglePageAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
- String networkInterfaceName, String ipConfigurationName) {
+ public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String publicIpAddressName, PublicIpAddressInner parameters) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -922,53 +849,40 @@ private Mono> listVirtualMachineScaleSetVMPu
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (virtualMachineScaleSetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
- }
- if (virtualmachineIndex == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
- }
- if (networkInterfaceName == null) {
+ if (publicIpAddressName == null) {
return Mono
- .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null."));
}
- if (ipConfigurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null."));
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
}
- final String apiVersion = "2018-10-01";
+ final String apiVersion = "2026-05-01";
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listVirtualMachineScaleSetVMPublicIpAddresses(this.client.getEndpoint(),
- apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName,
- virtualmachineIndex, networkInterfaceName, ipConfigurationName, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, contentType, accept,
+ parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
- * set.
+ * Creates or updates a static or dynamic public IP address.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
+ * @param publicIpAddressName The name of the public IP address.
+ * @param parameters Parameters supplied to the create or update public IP address operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine
- * scale set along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVirtualMachineScaleSetVMPublicIpAddressesSinglePageAsync(
- String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex,
- String networkInterfaceName, String ipConfigurationName, Context context) {
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String publicIpAddressName, PublicIpAddressInner parameters, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -981,509 +895,183 @@ private Mono> listVirtualMachineScaleSetVMPu
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (virtualMachineScaleSetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null."));
- }
- if (virtualmachineIndex == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null."));
- }
- if (networkInterfaceName == null) {
+ if (publicIpAddressName == null) {
return Mono
- .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null."));
}
- if (ipConfigurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null."));
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
}
- final String apiVersion = "2018-10-01";
+ final String apiVersion = "2026-05-01";
+ final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listVirtualMachineScaleSetVMPublicIpAddresses(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex,
- networkInterfaceName, ipConfigurationName, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, publicIpAddressName, contentType, accept, parameters, context);
}
/**
- * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale
- * set.
+ * Creates or updates a static or dynamic public IP address.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter.
- * @param virtualmachineIndex The virtualmachineIndex parameter.
- * @param networkInterfaceName The networkInterfaceName parameter.
- * @param ipConfigurationName The ipConfigurationName parameter.
+ * @param publicIpAddressName The name of the public IP address.
+ * @param parameters Parameters supplied to the create or update public IP address operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine
- * scale set as paginated response with {@link PagedFlux}.
+ * @return the {@link PollerFlux} for polling of public IP address resource.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listVirtualMachineScaleSetVMPublicIpAddressesAsync(String resourceGroupName,
- String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName,
- String ipConfigurationName) {
- return new PagedFlux<>(
- () -> listVirtualMachineScaleSetVMPublicIpAddressesSinglePageAsync(resourceGroupName,
- virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, ipConfigurationName),
- nextLink -> listVirtualMachineScaleSetVMPublicIpAddressesNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, PublicIpAddressInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters) {
+ Mono