From d7e021ab11cd9272dbee8507b8fbfafd174d9d5b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 11 Nov 2021 23:20:21 +0000 Subject: [PATCH] CodeGen from PR 16748 in Azure/azure-rest-api-specs Merge de0ecf361ef38d373146908ce3aa481b4af128c9 into 36b9a02ed3cec327d20a7917623d6f07ae84c90b --- .../azure-resourcemanager-netapp/CHANGELOG.md | 4 +- .../azure-resourcemanager-netapp/README.md | 2 +- .../azure-resourcemanager-netapp/pom.xml | 13 +-- .../netapp/NetAppFilesManager.java | 19 ++++- .../netapp/fluent/AccountBackupsClient.java | 4 +- .../netapp/fluent/AccountsClient.java | 12 +-- .../netapp/fluent/BackupPoliciesClient.java | 12 +-- .../netapp/fluent/BackupsClient.java | 12 +-- .../netapp/fluent/PoolsClient.java | 12 +-- .../netapp/fluent/SnapshotPoliciesClient.java | 8 +- .../netapp/fluent/SnapshotsClient.java | 12 +-- .../netapp/fluent/VolumesClient.java | 40 +++++----- .../AccountBackupsClientImpl.java | 8 +- .../implementation/AccountsClientImpl.java | 24 +++--- .../BackupPoliciesClientImpl.java | 24 +++--- .../implementation/BackupsClientImpl.java | 24 +++--- .../implementation/PoolsClientImpl.java | 24 +++--- .../SnapshotPoliciesClientImpl.java | 16 ++-- .../implementation/SnapshotsClientImpl.java | 24 +++--- .../implementation/VolumesClientImpl.java | 80 +++++++++---------- 20 files changed, 193 insertions(+), 181 deletions(-) diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index a306d36c5e54..1db66753f394 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.7 (Unreleased) +## 1.0.0-beta.1 (2021-11-11) + +- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 8555f85bc964..8d6abaaf9990 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-netapp - 1.0.0-beta.6 + 1.0.0-beta.7 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml index 84f5ec35a590..c792c634565c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml +++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml @@ -38,7 +38,10 @@ UTF-8 - + true + false + + @@ -72,14 +75,6 @@ - - org.jacoco - jacoco-maven-plugin - 0.8.7 - - true - - org.revapi revapi-maven-plugin diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java index e7072dbe099b..068be5897e43 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java @@ -8,6 +8,7 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; @@ -51,6 +52,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; /** Entry point to NetAppFilesManager. Microsoft NetApp Files Azure Resource Provider specification. */ public final class NetAppFilesManager { @@ -214,7 +216,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.netapp") .append("/") - .append("1.0.0-beta.6"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -237,11 +239,24 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new RequestIdPolicy()); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); - policies.addAll(this.policies); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline httpPipeline = diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountBackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountBackupsClient.java index 1cc9a2256b03..e8e6f27fac63 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountBackupsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountBackupsClient.java @@ -83,7 +83,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupName); /** @@ -98,7 +98,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java index 837c6d7b6f8a..983803ff4286 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java @@ -102,7 +102,7 @@ Response getByResourceGroupWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginCreateOrUpdate( String resourceGroupName, String accountName, NetAppAccountInner body); @@ -118,7 +118,7 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginCreateOrUpdate( String resourceGroupName, String accountName, NetAppAccountInner body, Context context); @@ -162,7 +162,7 @@ NetAppAccountInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName); /** @@ -176,7 +176,7 @@ NetAppAccountInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context); /** @@ -215,7 +215,7 @@ NetAppAccountInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginUpdate( String resourceGroupName, String accountName, NetAppAccountPatch body); @@ -231,7 +231,7 @@ SyncPoller, NetAppAccountInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginUpdate( String resourceGroupName, String accountName, NetAppAccountPatch body, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java index 8b03fb87707f..22a37ebfac99 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java @@ -85,7 +85,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginCreate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body); @@ -102,7 +102,7 @@ SyncPoller, BackupPolicyInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginCreate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, Context context); @@ -151,7 +151,7 @@ BackupPolicyInner create( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginUpdate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body); @@ -168,7 +168,7 @@ SyncPoller, BackupPolicyInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginUpdate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, Context context); @@ -216,7 +216,7 @@ BackupPolicyInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupPolicyName); @@ -232,7 +232,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupPolicyName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java index 8365782a0ca6..7315362cba49 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java @@ -169,7 +169,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginCreate( String resourceGroupName, String accountName, @@ -193,7 +193,7 @@ SyncPoller, BackupInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginCreate( String resourceGroupName, String accountName, @@ -265,7 +265,7 @@ BackupInner create( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginUpdate( String resourceGroupName, String accountName, @@ -289,7 +289,7 @@ SyncPoller, BackupInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginUpdate( String resourceGroupName, String accountName, @@ -377,7 +377,7 @@ BackupInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, String backupName); @@ -395,7 +395,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java index d01a83d6b3a9..9cf02121a089 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java @@ -85,7 +85,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body); @@ -102,7 +102,7 @@ SyncPoller, CapacityPoolInner> beginCreateOrUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context); @@ -151,7 +151,7 @@ CapacityPoolInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body); @@ -168,7 +168,7 @@ SyncPoller, CapacityPoolInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context); @@ -215,7 +215,7 @@ CapacityPoolInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName); /** @@ -230,7 +230,7 @@ CapacityPoolInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java index db35e9b55192..2a2cb79317a7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java @@ -123,7 +123,7 @@ Response createWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotPolicyInner> beginUpdate( String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body); @@ -140,7 +140,7 @@ SyncPoller, SnapshotPolicyInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotPolicyInner> beginUpdate( String resourceGroupName, String accountName, @@ -196,7 +196,7 @@ SnapshotPolicyInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String snapshotPolicyName); @@ -212,7 +212,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String snapshotPolicyName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java index 282ad0364ed7..01063b085d24 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java @@ -101,7 +101,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginCreate( String resourceGroupName, String accountName, @@ -125,7 +125,7 @@ SyncPoller, SnapshotInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginCreate( String resourceGroupName, String accountName, @@ -197,7 +197,7 @@ SnapshotInner create( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginUpdate( String resourceGroupName, String accountName, @@ -221,7 +221,7 @@ SyncPoller, SnapshotInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginUpdate( String resourceGroupName, String accountName, @@ -292,7 +292,7 @@ SnapshotInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); @@ -310,7 +310,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java index a847c28d7219..6b6ec426d65b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java @@ -95,7 +95,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body); @@ -113,7 +113,7 @@ SyncPoller, VolumeInner> beginCreateOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginCreateOrUpdate( String resourceGroupName, String accountName, @@ -175,7 +175,7 @@ VolumeInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginUpdate( String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body); @@ -193,7 +193,7 @@ SyncPoller, VolumeInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginUpdate( String resourceGroupName, String accountName, @@ -254,7 +254,7 @@ VolumeInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName); @@ -271,7 +271,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -317,7 +317,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRevert( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body); @@ -335,7 +335,7 @@ SyncPoller, Void> beginRevert( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRevert( String resourceGroupName, String accountName, @@ -394,7 +394,7 @@ void revert( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginBreakReplication( String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body); @@ -412,7 +412,7 @@ SyncPoller, Void> beginBreakReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginBreakReplication( String resourceGroupName, String accountName, @@ -519,7 +519,7 @@ Response replicationStatusWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginResyncReplication( String resourceGroupName, String accountName, String poolName, String volumeName); @@ -537,7 +537,7 @@ SyncPoller, Void> beginResyncReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginResyncReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -585,7 +585,7 @@ void resyncReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteReplication( String resourceGroupName, String accountName, String poolName, String volumeName); @@ -602,7 +602,7 @@ SyncPoller, Void> beginDeleteReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -649,7 +649,7 @@ void deleteReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAuthorizeReplication( String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body); @@ -667,7 +667,7 @@ SyncPoller, Void> beginAuthorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAuthorizeReplication( String resourceGroupName, String accountName, @@ -726,7 +726,7 @@ void authorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginReInitializeReplication( String resourceGroupName, String accountName, String poolName, String volumeName); @@ -743,7 +743,7 @@ SyncPoller, Void> beginReInitializeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginReInitializeReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -790,7 +790,7 @@ void reInitializeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginPoolChange( String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body); @@ -808,7 +808,7 @@ SyncPoller, Void> beginPoolChange( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginPoolChange( String resourceGroupName, String accountName, diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java index 25a750b1ad61..3748485ba13f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java @@ -548,7 +548,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String backupName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, backupName); @@ -569,7 +569,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String backupName, Context context) { context = this.client.mergeContext(context); @@ -591,7 +591,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupName) { return beginDeleteAsync(resourceGroupName, accountName, backupName).getSyncPoller(); @@ -609,7 +609,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, backupName, context).getSyncPoller(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java index 18ad24f3fe9b..a2e0ae5bdac1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java @@ -746,7 +746,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, NetAppAccountInner body) { Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName, body); @@ -768,7 +768,7 @@ private PollerFlux, NetAppAccountInner> beginCrea * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { context = this.client.mergeContext(context); @@ -791,7 +791,7 @@ private PollerFlux, NetAppAccountInner> beginCrea * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginCreateOrUpdate( String resourceGroupName, String accountName, NetAppAccountInner body) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, body).getSyncPoller(); @@ -809,7 +809,7 @@ public SyncPoller, NetAppAccountInner> beginCreat * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginCreateOrUpdate( String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, body, context).getSyncPoller(); @@ -987,7 +987,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName); return this @@ -1006,7 +1006,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, Context context) { context = this.client.mergeContext(context); @@ -1026,7 +1026,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) { return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller(); } @@ -1042,7 +1042,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller(); @@ -1229,7 +1229,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginUpdateAsync( String resourceGroupName, String accountName, NetAppAccountPatch body) { Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, body); @@ -1251,7 +1251,7 @@ private PollerFlux, NetAppAccountInner> beginUpda * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginUpdateAsync( String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { context = this.client.mergeContext(context); @@ -1273,7 +1273,7 @@ private PollerFlux, NetAppAccountInner> beginUpda * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginUpdate( String resourceGroupName, String accountName, NetAppAccountPatch body) { return beginUpdateAsync(resourceGroupName, accountName, body).getSyncPoller(); @@ -1291,7 +1291,7 @@ public SyncPoller, NetAppAccountInner> beginUpdat * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginUpdate( String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { return beginUpdateAsync(resourceGroupName, accountName, body, context).getSyncPoller(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java index b5710d52ad1d..808d49670662 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java @@ -613,7 +613,7 @@ private Mono>> createWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginCreateAsync( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { Mono>> mono = @@ -637,7 +637,7 @@ private PollerFlux, BackupPolicyInner> beginCreate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -665,7 +665,7 @@ private PollerFlux, BackupPolicyInner> beginCreate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginCreate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { return beginCreateAsync(resourceGroupName, accountName, backupPolicyName, body).getSyncPoller(); @@ -684,7 +684,7 @@ public SyncPoller, BackupPolicyInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginCreate( String resourceGroupName, String accountName, @@ -916,7 +916,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginUpdateAsync( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { Mono>> mono = @@ -940,7 +940,7 @@ private PollerFlux, BackupPolicyInner> beginUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -968,7 +968,7 @@ private PollerFlux, BackupPolicyInner> beginUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginUpdate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { return beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body).getSyncPoller(); @@ -987,7 +987,7 @@ public SyncPoller, BackupPolicyInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginUpdate( String resourceGroupName, String accountName, @@ -1196,7 +1196,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String backupPolicyName) { Mono>> mono = @@ -1218,7 +1218,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String backupPolicyName, Context context) { context = this.client.mergeContext(context); @@ -1240,7 +1240,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupPolicyName) { return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName).getSyncPoller(); @@ -1258,7 +1258,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupPolicyName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName, context).getSyncPoller(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java index 38085556edfe..c88f6658d199 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java @@ -1110,7 +1110,7 @@ private Mono>> createWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -1141,7 +1141,7 @@ private PollerFlux, BackupInner> beginCreateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -1173,7 +1173,7 @@ private PollerFlux, BackupInner> beginCreateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginCreate( String resourceGroupName, String accountName, @@ -1199,7 +1199,7 @@ public SyncPoller, BackupInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginCreate( String resourceGroupName, String accountName, @@ -1479,7 +1479,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1510,7 +1510,7 @@ private PollerFlux, BackupInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1542,7 +1542,7 @@ private PollerFlux, BackupInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginUpdate( String resourceGroupName, String accountName, @@ -1568,7 +1568,7 @@ public SyncPoller, BackupInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginUpdate( String resourceGroupName, String accountName, @@ -1869,7 +1869,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { Mono>> mono = @@ -1893,7 +1893,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, @@ -1922,7 +1922,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, backupName).getSyncPoller(); @@ -1942,7 +1942,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java index 435bfed7cce3..c0d718d5278c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java @@ -627,7 +627,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { Mono>> mono = @@ -651,7 +651,7 @@ private PollerFlux, CapacityPoolInner> beginCreate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { context = this.client.mergeContext(context); @@ -675,7 +675,7 @@ private PollerFlux, CapacityPoolInner> beginCreate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body).getSyncPoller(); @@ -694,7 +694,7 @@ public SyncPoller, CapacityPoolInner> beginCreateO * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body, context).getSyncPoller(); @@ -908,7 +908,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, poolName, body); @@ -931,7 +931,7 @@ private PollerFlux, CapacityPoolInner> beginUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { context = this.client.mergeContext(context); @@ -955,7 +955,7 @@ private PollerFlux, CapacityPoolInner> beginUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { return beginUpdateAsync(resourceGroupName, accountName, poolName, body).getSyncPoller(); @@ -974,7 +974,7 @@ public SyncPoller, CapacityPoolInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { return beginUpdateAsync(resourceGroupName, accountName, poolName, body, context).getSyncPoller(); @@ -1169,7 +1169,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, poolName); @@ -1190,7 +1190,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, Context context) { context = this.client.mergeContext(context); @@ -1212,7 +1212,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName) { return beginDeleteAsync(resourceGroupName, accountName, poolName).getSyncPoller(); @@ -1230,7 +1230,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, poolName, context).getSyncPoller(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java index 4b7da2b9bedb..e3131864f577 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java @@ -822,7 +822,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotPolicyInner> beginUpdateAsync( String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { Mono>> mono = @@ -850,7 +850,7 @@ private PollerFlux, SnapshotPolicyInner> beginUp * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotPolicyInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -878,7 +878,7 @@ private PollerFlux, SnapshotPolicyInner> beginUp * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotPolicyInner> beginUpdate( String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { return beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body).getSyncPoller(); @@ -897,7 +897,7 @@ public SyncPoller, SnapshotPolicyInner> beginUpd * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotPolicyInner> beginUpdate( String resourceGroupName, String accountName, @@ -1106,7 +1106,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String snapshotPolicyName) { Mono>> mono = @@ -1128,7 +1128,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { context = this.client.mergeContext(context); @@ -1150,7 +1150,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String snapshotPolicyName) { return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName).getSyncPoller(); @@ -1168,7 +1168,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName, context).getSyncPoller(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java index 647d002b9549..957491ec48e8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java @@ -724,7 +724,7 @@ private Mono>> createWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -755,7 +755,7 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -787,7 +787,7 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginCreate( String resourceGroupName, String accountName, @@ -814,7 +814,7 @@ public SyncPoller, SnapshotInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginCreate( String resourceGroupName, String accountName, @@ -1094,7 +1094,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1125,7 +1125,7 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1157,7 +1157,7 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginUpdate( String resourceGroupName, String accountName, @@ -1184,7 +1184,7 @@ public SyncPoller, SnapshotInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginUpdate( String resourceGroupName, String accountName, @@ -1443,7 +1443,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { Mono>> mono = @@ -1467,7 +1467,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, @@ -1496,7 +1496,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).getSyncPoller(); @@ -1516,7 +1516,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java index f131c2b687f4..8736955b57ff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java @@ -819,7 +819,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body) { Mono>> mono = @@ -844,7 +844,7 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, @@ -874,7 +874,7 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); @@ -894,7 +894,7 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginCreateOrUpdate( String resourceGroupName, String accountName, @@ -1144,7 +1144,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginUpdateAsync( String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body) { Mono>> mono = @@ -1169,7 +1169,7 @@ private PollerFlux, VolumeInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1199,7 +1199,7 @@ private PollerFlux, VolumeInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginUpdate( String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body) { return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); @@ -1219,7 +1219,7 @@ public SyncPoller, VolumeInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginUpdate( String resourceGroupName, String accountName, @@ -1444,7 +1444,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { Mono>> mono = @@ -1467,7 +1467,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); @@ -1490,7 +1490,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName) { return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); @@ -1509,7 +1509,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, context).getSyncPoller(); @@ -1731,7 +1731,7 @@ private Mono>> revertWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRevertAsync( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { Mono>> mono = @@ -1755,7 +1755,7 @@ private PollerFlux, Void> beginRevertAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRevertAsync( String resourceGroupName, String accountName, @@ -1784,7 +1784,7 @@ private PollerFlux, Void> beginRevertAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRevert( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { return beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); @@ -1804,7 +1804,7 @@ public SyncPoller, Void> beginRevert( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRevert( String resourceGroupName, String accountName, @@ -2047,7 +2047,7 @@ private Mono>> breakReplicationWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginBreakReplicationAsync( String resourceGroupName, String accountName, @@ -2075,7 +2075,7 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginBreakReplicationAsync( String resourceGroupName, String accountName, @@ -2104,7 +2104,7 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginBreakReplication( String resourceGroupName, String accountName, @@ -2128,7 +2128,7 @@ public SyncPoller, Void> beginBreakReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginBreakReplication( String resourceGroupName, String accountName, @@ -2579,7 +2579,7 @@ private Mono>> resyncReplicationWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginResyncReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { Mono>> mono = @@ -2603,7 +2603,7 @@ private PollerFlux, Void> beginResyncReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginResyncReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); @@ -2627,7 +2627,7 @@ private PollerFlux, Void> beginResyncReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginResyncReplication( String resourceGroupName, String accountName, String poolName, String volumeName) { return beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); @@ -2647,7 +2647,7 @@ public SyncPoller, Void> beginResyncReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginResyncReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { return beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) @@ -2855,7 +2855,7 @@ private Mono>> deleteReplicationWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { Mono>> mono = @@ -2878,7 +2878,7 @@ private PollerFlux, Void> beginDeleteReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); @@ -2901,7 +2901,7 @@ private PollerFlux, Void> beginDeleteReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteReplication( String resourceGroupName, String accountName, String poolName, String volumeName) { return beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); @@ -2920,7 +2920,7 @@ public SyncPoller, Void> beginDeleteReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { return beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) @@ -3144,7 +3144,7 @@ private Mono>> authorizeReplicationWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAuthorizeReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { Mono>> mono = @@ -3168,7 +3168,7 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAuthorizeReplicationAsync( String resourceGroupName, String accountName, @@ -3197,7 +3197,7 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAuthorizeReplication( String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { return beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) @@ -3218,7 +3218,7 @@ public SyncPoller, Void> beginAuthorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAuthorizeReplication( String resourceGroupName, String accountName, @@ -3442,7 +3442,7 @@ private Mono>> reInitializeReplicationWithResponseAsyn * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginReInitializeReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { Mono>> mono = @@ -3465,7 +3465,7 @@ private PollerFlux, Void> beginReInitializeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginReInitializeReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); @@ -3488,7 +3488,7 @@ private PollerFlux, Void> beginReInitializeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginReInitializeReplication( String resourceGroupName, String accountName, String poolName, String volumeName) { return beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); @@ -3507,7 +3507,7 @@ public SyncPoller, Void> beginReInitializeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginReInitializeReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { return beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) @@ -3732,7 +3732,7 @@ private Mono>> poolChangeWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginPoolChangeAsync( String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { Mono>> mono = @@ -3756,7 +3756,7 @@ private PollerFlux, Void> beginPoolChangeAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginPoolChangeAsync( String resourceGroupName, String accountName, @@ -3785,7 +3785,7 @@ private PollerFlux, Void> beginPoolChangeAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginPoolChange( String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { return beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); @@ -3805,7 +3805,7 @@ public SyncPoller, Void> beginPoolChange( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginPoolChange( String resourceGroupName, String accountName,