diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/CHANGELOG.md b/sdk/resourcemover/azure-resourcemanager-resourcemover/CHANGELOG.md
index 8cc9cdd85354..742d577739af 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/CHANGELOG.md
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-03-15)
+- Azure Resource Manager ResourceMover client library for Java. This package contains Microsoft Azure SDK for ResourceMover Management SDK. A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region. Package tag package-2021-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-04-12)
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/README.md b/sdk/resourcemover/azure-resourcemanager-resourcemover/README.md
index 35173b745c9f..1a805755ff81 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/README.md
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ResourceMover client library for Java.
-This package contains Microsoft Azure SDK for ResourceMover Management SDK. A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region. Package tag package-2021-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ResourceMover Management SDK. A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region. Package tag package-2021-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-resourcemover
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemover/azure-resourcemanager-resourcemover/SAMPLE.md)
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/SAMPLE.md b/sdk/resourcemover/azure-resourcemanager-resourcemover/SAMPLE.md
new file mode 100644
index 000000000000..225887982550
--- /dev/null
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/SAMPLE.md
@@ -0,0 +1,568 @@
+# Code snippets and samples
+
+
+## MoveCollections
+
+- [BulkRemove](#movecollections_bulkremove)
+- [Commit](#movecollections_commit)
+- [Create](#movecollections_create)
+- [Delete](#movecollections_delete)
+- [Discard](#movecollections_discard)
+- [GetByResourceGroup](#movecollections_getbyresourcegroup)
+- [InitiateMove](#movecollections_initiatemove)
+- [List](#movecollections_list)
+- [ListByResourceGroup](#movecollections_listbyresourcegroup)
+- [ListRequiredFor](#movecollections_listrequiredfor)
+- [Prepare](#movecollections_prepare)
+- [ResolveDependencies](#movecollections_resolvedependencies)
+- [Update](#movecollections_update)
+
+## MoveResources
+
+- [Create](#moveresources_create)
+- [Delete](#moveresources_delete)
+- [Get](#moveresources_get)
+- [List](#moveresources_list)
+
+## OperationsDiscovery
+
+- [Get](#operationsdiscovery_get)
+
+## UnresolvedDependencies
+
+- [Get](#unresolveddependencies_get)
+### MoveCollections_BulkRemove
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resourcemover.models.BulkRemoveRequest;
+import java.util.Arrays;
+
+/** Samples for MoveCollections BulkRemove. */
+public final class MoveCollectionsBulkRemoveSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_BulkRemove.json
+ */
+ /**
+ * Sample code: MoveCollections_BulkRemove.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsBulkRemove(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager
+ .moveCollections()
+ .bulkRemove(
+ "rg1",
+ "movecollection1",
+ new BulkRemoveRequest()
+ .withValidateOnly(false)
+ .withMoveResources(
+ Arrays
+ .asList(
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")),
+ Context.NONE);
+ }
+}
+```
+
+### MoveCollections_Commit
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resourcemover.models.CommitRequest;
+import java.util.Arrays;
+
+/** Samples for MoveCollections Commit. */
+public final class MoveCollectionsCommitSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Commit.json
+ */
+ /**
+ * Sample code: MoveCollections_Commit.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsCommit(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager
+ .moveCollections()
+ .commit(
+ "rg1",
+ "movecollection1",
+ new CommitRequest()
+ .withValidateOnly(false)
+ .withMoveResources(
+ Arrays
+ .asList(
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")),
+ Context.NONE);
+ }
+}
+```
+
+### MoveCollections_Create
+
+```java
+import com.azure.resourcemanager.resourcemover.models.Identity;
+import com.azure.resourcemanager.resourcemover.models.MoveCollectionProperties;
+import com.azure.resourcemanager.resourcemover.models.ResourceIdentityType;
+
+/** Samples for MoveCollections Create. */
+public final class MoveCollectionsCreateSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Create.json
+ */
+ /**
+ * Sample code: MoveCollections_Create.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsCreate(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager
+ .moveCollections()
+ .define("movecollection1")
+ .withRegion("eastus2")
+ .withExistingResourceGroup("rg1")
+ .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
+ .withProperties(new MoveCollectionProperties().withSourceRegion("eastus").withTargetRegion("westus"))
+ .create();
+ }
+}
+```
+
+### MoveCollections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveCollections Delete. */
+public final class MoveCollectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Delete.json
+ */
+ /**
+ * Sample code: MoveCollections_Delete.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsDelete(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.moveCollections().delete("rg1", "movecollection1", Context.NONE);
+ }
+}
+```
+
+### MoveCollections_Discard
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resourcemover.models.DiscardRequest;
+import java.util.Arrays;
+
+/** Samples for MoveCollections Discard. */
+public final class MoveCollectionsDiscardSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Discard.json
+ */
+ /**
+ * Sample code: MoveCollections_Discard.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsDiscard(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager
+ .moveCollections()
+ .discard(
+ "rg1",
+ "movecollection1",
+ new DiscardRequest()
+ .withValidateOnly(false)
+ .withMoveResources(
+ Arrays
+ .asList(
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")),
+ Context.NONE);
+ }
+}
+```
+
+### MoveCollections_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveCollections GetByResourceGroup. */
+public final class MoveCollectionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Get.json
+ */
+ /**
+ * Sample code: MoveCollections_Get.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsGet(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.moveCollections().getByResourceGroupWithResponse("rg1", "movecollection1", Context.NONE);
+ }
+}
+```
+
+### MoveCollections_InitiateMove
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resourcemover.models.ResourceMoveRequest;
+import java.util.Arrays;
+
+/** Samples for MoveCollections InitiateMove. */
+public final class MoveCollectionsInitiateMoveSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_InitiateMove.json
+ */
+ /**
+ * Sample code: MoveCollections_InitiateMove.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsInitiateMove(
+ com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager
+ .moveCollections()
+ .initiateMove(
+ "rg1",
+ "movecollection1",
+ new ResourceMoveRequest()
+ .withValidateOnly(false)
+ .withMoveResources(
+ Arrays
+ .asList(
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")),
+ Context.NONE);
+ }
+}
+```
+
+### MoveCollections_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveCollections List. */
+public final class MoveCollectionsListSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_ListMoveCollectionsBySubscription.json
+ */
+ /**
+ * Sample code: MoveCollections_ListMoveCollectionsBySubscription.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsListMoveCollectionsBySubscription(
+ com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.moveCollections().list(Context.NONE);
+ }
+}
+```
+
+### MoveCollections_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveCollections ListByResourceGroup. */
+public final class MoveCollectionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json
+ */
+ /**
+ * Sample code: MoveCollections_ListMoveCollectionsByResourceGroup.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsListMoveCollectionsByResourceGroup(
+ com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.moveCollections().listByResourceGroup("rg1", Context.NONE);
+ }
+}
+```
+
+### MoveCollections_ListRequiredFor
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveCollections ListRequiredFor. */
+public final class MoveCollectionsListRequiredForSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/RequiredFor_Get.json
+ */
+ /**
+ * Sample code: RequiredFor_Get.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void requiredForGet(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager
+ .moveCollections()
+ .listRequiredForWithResponse(
+ "rg1",
+ "movecollection1",
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/nic1",
+ Context.NONE);
+ }
+}
+```
+
+### MoveCollections_Prepare
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resourcemover.models.PrepareRequest;
+import java.util.Arrays;
+
+/** Samples for MoveCollections Prepare. */
+public final class MoveCollectionsPrepareSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Prepare.json
+ */
+ /**
+ * Sample code: MoveCollections_Prepare.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsPrepare(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager
+ .moveCollections()
+ .prepare(
+ "rg1",
+ "movecollection1",
+ new PrepareRequest()
+ .withValidateOnly(false)
+ .withMoveResources(
+ Arrays
+ .asList(
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")),
+ Context.NONE);
+ }
+}
+```
+
+### MoveCollections_ResolveDependencies
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveCollections ResolveDependencies. */
+public final class MoveCollectionsResolveDependenciesSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_ResolveDependencies.json
+ */
+ /**
+ * Sample code: MoveCollections_ResolveDependencies.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsResolveDependencies(
+ com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.moveCollections().resolveDependencies("rg1", "movecollection1", Context.NONE);
+ }
+}
+```
+
+### MoveCollections_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resourcemover.models.Identity;
+import com.azure.resourcemanager.resourcemover.models.MoveCollection;
+import com.azure.resourcemanager.resourcemover.models.ResourceIdentityType;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for MoveCollections Update. */
+public final class MoveCollectionsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Update.json
+ */
+ /**
+ * Sample code: MoveCollections_Update.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveCollectionsUpdate(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ MoveCollection resource =
+ manager.moveCollections().getByResourceGroupWithResponse("rg1", "movecollection1", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf("key1", "mc1"))
+ .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### MoveResources_Create
+
+```java
+import com.azure.resourcemanager.resourcemover.models.MoveResourceDependencyOverride;
+import com.azure.resourcemanager.resourcemover.models.MoveResourceProperties;
+import com.azure.resourcemanager.resourcemover.models.TargetAvailabilityZone;
+import com.azure.resourcemanager.resourcemover.models.VirtualMachineResourceSettings;
+import java.util.Arrays;
+
+/** Samples for MoveResources Create. */
+public final class MoveResourcesCreateSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_Create.json
+ */
+ /**
+ * Sample code: MoveResources_Create.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveResourcesCreate(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager
+ .moveResources()
+ .define("moveresourcename1")
+ .withExistingMoveCollection("rg1", "movecollection1")
+ .withProperties(
+ new MoveResourceProperties()
+ .withSourceId(
+ "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/virtualMachines/eastusvm1")
+ .withResourceSettings(
+ new VirtualMachineResourceSettings()
+ .withTargetResourceName("westusvm1")
+ .withUserManagedIdentities(
+ Arrays
+ .asList(
+ "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/umi1"))
+ .withTargetAvailabilityZone(TargetAvailabilityZone.TWO)
+ .withTargetAvailabilitySetId(
+ "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/availabilitySets/avset1"))
+ .withDependsOnOverrides(
+ Arrays
+ .asList(
+ new MoveResourceDependencyOverride()
+ .withId(
+ "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140")
+ .withTargetId(
+ "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"))))
+ .create();
+ }
+}
+```
+
+### MoveResources_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveResources Delete. */
+public final class MoveResourcesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_Delete.json
+ */
+ /**
+ * Sample code: MoveResources_Delete.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveResourcesDelete(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.moveResources().delete("rg1", "movecollection1", "moveresourcename1", Context.NONE);
+ }
+}
+```
+
+### MoveResources_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveResources Get. */
+public final class MoveResourcesGetSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_Get.json
+ */
+ /**
+ * Sample code: MoveResources_Get.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveResourcesGet(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.moveResources().getWithResponse("rg1", "movecollection1", "moveresourcename1", Context.NONE);
+ }
+}
+```
+
+### MoveResources_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MoveResources List. */
+public final class MoveResourcesListSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_List.json
+ */
+ /**
+ * Sample code: MoveResources_List.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void moveResourcesList(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.moveResources().list("rg1", "movecollection1", null, Context.NONE);
+ }
+}
+```
+
+### OperationsDiscovery_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for OperationsDiscovery Get. */
+public final class OperationsDiscoveryGetSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/OperationsDiscovery_Get.json
+ */
+ /**
+ * Sample code: OperationsDiscovery_Get.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void operationsDiscoveryGet(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.operationsDiscoveries().getWithResponse(Context.NONE);
+ }
+}
+```
+
+### UnresolvedDependencies_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for UnresolvedDependencies Get. */
+public final class UnresolvedDependenciesGetSamples {
+ /*
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/UnresolvedDependencies_Get.json
+ */
+ /**
+ * Sample code: UnresolvedDependencies_Get.
+ *
+ * @param manager Entry point to ResourceMoverManager.
+ */
+ public static void unresolvedDependenciesGet(com.azure.resourcemanager.resourcemover.ResourceMoverManager manager) {
+ manager.unresolvedDependencies().get("rg1", "movecollection1", null, null, null, Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/pom.xml b/sdk/resourcemover/azure-resourcemanager-resourcemover/pom.xml
index 8cdd2a5db4f8..28ac25e31260 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/pom.xml
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/pom.xml
@@ -1,55 +1,55 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-resourcemover
- 1.0.0-beta.2
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-resourcemover
+ 1.0.0-beta.2
+ jar
- Microsoft Azure SDK for ResourceMover Management
- This package contains Microsoft Azure SDK for ResourceMover Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region. Package tag package-2021-01-01.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for ResourceMover Management
+ This package contains Microsoft Azure SDK for ResourceMover Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region. Package tag package-2021-08-01.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
- true
-
-
-
- com.azure
- azure-core
- 1.26.0
-
-
- com.azure
- azure-core-management
- 1.5.3
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.26.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.3
+
+
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/ResourceMoverManager.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/ResourceMoverManager.java
index d26dead6ba51..69072881094d 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/ResourceMoverManager.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/ResourceMoverManager.java
@@ -8,8 +8,8 @@
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.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -17,6 +17,7 @@
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -35,6 +36,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/**
* Entry point to ResourceMoverManager. A first party Azure service orchestrating the move of Azure resources from one
@@ -87,11 +89,12 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private Duration defaultPollInterval;
@@ -131,6 +134,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -149,9 +163,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -187,20 +203,33 @@ public ResourceMoverManager authenticate(TokenCredential credential, AzureProfil
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
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
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.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/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/MoveCollectionsClient.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/MoveCollectionsClient.java
index 37434cc31c98..95916e467d46 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/MoveCollectionsClient.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/MoveCollectionsClient.java
@@ -46,7 +46,7 @@ public interface MoveCollectionsClient {
* @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 define the move collection.
+ * @return define the move collection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createWithResponse(
@@ -75,7 +75,7 @@ Response createWithResponse(
* @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 define the move collection.
+ * @return define the move collection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -89,9 +89,9 @@ Response updateWithResponse(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginDelete(
String resourceGroupName, String moveCollectionName);
@@ -104,9 +104,9 @@ SyncPoller, OperationStatusInner> beginDelete(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginDelete(
String resourceGroupName, String moveCollectionName, Context context);
@@ -159,7 +159,7 @@ SyncPoller, OperationStatusInner> beginDelete(
* @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 move collection.
+ * @return the move collection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -177,9 +177,9 @@ Response getByResourceGroupWithResponse(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginPrepare(
String resourceGroupName, String moveCollectionName, PrepareRequest body);
@@ -196,9 +196,9 @@ SyncPoller, OperationStatusInner> beginPrepare(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginPrepare(
String resourceGroupName, String moveCollectionName, PrepareRequest body, Context context);
@@ -266,9 +266,9 @@ OperationStatusInner prepare(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginInitiateMove(
String resourceGroupName, String moveCollectionName, ResourceMoveRequest body);
@@ -285,9 +285,9 @@ SyncPoller, OperationStatusInner> beginInitiate
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginInitiateMove(
String resourceGroupName, String moveCollectionName, ResourceMoveRequest body, Context context);
@@ -355,9 +355,9 @@ OperationStatusInner initiateMove(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginCommit(
String resourceGroupName, String moveCollectionName, CommitRequest body);
@@ -374,9 +374,9 @@ SyncPoller, OperationStatusInner> beginCommit(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginCommit(
String resourceGroupName, String moveCollectionName, CommitRequest body, Context context);
@@ -444,9 +444,9 @@ OperationStatusInner commit(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginDiscard(
String resourceGroupName, String moveCollectionName, DiscardRequest body);
@@ -463,9 +463,9 @@ SyncPoller, OperationStatusInner> beginDiscard(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginDiscard(
String resourceGroupName, String moveCollectionName, DiscardRequest body, Context context);
@@ -529,9 +529,9 @@ OperationStatusInner discard(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginResolveDependencies(
String resourceGroupName, String moveCollectionName);
@@ -544,9 +544,9 @@ SyncPoller, OperationStatusInner> beginResolveD
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginResolveDependencies(
String resourceGroupName, String moveCollectionName, Context context);
@@ -588,9 +588,9 @@ SyncPoller, OperationStatusInner> beginResolveD
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginBulkRemove(
String resourceGroupName, String moveCollectionName, BulkRemoveRequest body);
@@ -606,9 +606,9 @@ SyncPoller, OperationStatusInner> beginBulkRemo
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginBulkRemove(
String resourceGroupName, String moveCollectionName, BulkRemoveRequest body, Context context);
@@ -666,7 +666,7 @@ OperationStatusInner bulkRemove(
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Move Collections in the subscription.
+ * @return all the Move Collections in the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -678,7 +678,7 @@ OperationStatusInner bulkRemove(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Move Collections in the subscription.
+ * @return all the Move Collections in the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -690,7 +690,7 @@ OperationStatusInner bulkRemove(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Move Collections in the resource group.
+ * @return all the Move Collections in the resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -703,7 +703,7 @@ OperationStatusInner bulkRemove(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Move Collections in the resource group.
+ * @return all the Move Collections in the resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -733,7 +733,7 @@ RequiredForResourcesCollectionInner listRequiredFor(
* @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 required for resources collection.
+ * @return required for resources collection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listRequiredForWithResponse(
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/MoveResourcesClient.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/MoveResourcesClient.java
index ce8354ba96ff..aa681f780889 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/MoveResourcesClient.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/MoveResourcesClient.java
@@ -24,7 +24,7 @@ public interface MoveResourcesClient {
* @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 defines the collection of move resources.
+ * @return defines the collection of move resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String moveCollectionName);
@@ -40,7 +40,7 @@ public interface MoveResourcesClient {
* @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 defines the collection of move resources.
+ * @return defines the collection of move resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -56,9 +56,9 @@ PagedIterable list(
* @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 defines the move resource.
+ * @return the {@link SyncPoller} for polling of defines the move resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MoveResourceInner> beginCreate(
String resourceGroupName, String moveCollectionName, String moveResourceName, MoveResourceInner body);
@@ -73,9 +73,9 @@ SyncPoller, MoveResourceInner> beginCreate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return defines the move resource.
+ * @return the {@link SyncPoller} for polling of defines the move resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MoveResourceInner> beginCreate(
String resourceGroupName,
String moveCollectionName,
@@ -143,9 +143,9 @@ MoveResourceInner create(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginDelete(
String resourceGroupName, String moveCollectionName, String moveResourceName);
@@ -159,9 +159,9 @@ SyncPoller, OperationStatusInner> beginDelete(
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusInner> beginDelete(
String resourceGroupName, String moveCollectionName, String moveResourceName, Context context);
@@ -219,7 +219,7 @@ OperationStatusInner delete(
* @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 Move Resource.
+ * @return the Move Resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/OperationsDiscoveriesClient.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/OperationsDiscoveriesClient.java
index 06f4b555d6f1..1e942a63d73b 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/OperationsDiscoveriesClient.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/OperationsDiscoveriesClient.java
@@ -25,7 +25,7 @@ public interface OperationsDiscoveriesClient {
* @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 collection of ClientDiscovery details.
+ * @return collection of ClientDiscovery details along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(Context context);
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/UnresolvedDependenciesClient.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/UnresolvedDependenciesClient.java
index c29de739c441..493a1850c7a0 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/UnresolvedDependenciesClient.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/UnresolvedDependenciesClient.java
@@ -21,7 +21,7 @@ public interface UnresolvedDependenciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of unresolved dependencies.
+ * @return a list of unresolved dependencies as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable get(String resourceGroupName, String moveCollectionName);
@@ -38,7 +38,7 @@ public interface UnresolvedDependenciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of unresolved dependencies.
+ * @return a list of unresolved dependencies as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable get(
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/MoveCollectionInner.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/MoveCollectionInner.java
index be2a02a6a018..e25123fb1865 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/MoveCollectionInner.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/MoveCollectionInner.java
@@ -6,18 +6,15 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.resourcemover.models.Identity;
import com.azure.resourcemanager.resourcemover.models.MoveCollectionProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** Define the move collection. */
@Fluent
public final class MoveCollectionInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MoveCollectionInner.class);
-
/*
* The etag of the resource.
*/
@@ -36,6 +33,12 @@ public final class MoveCollectionInner extends Resource {
@JsonProperty(value = "properties")
private MoveCollectionProperties properties;
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/**
* Get the etag property: The etag of the resource.
*
@@ -85,6 +88,15 @@ public MoveCollectionInner withProperties(MoveCollectionProperties properties) {
return this;
}
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/** {@inheritDoc} */
@Override
public MoveCollectionInner withLocation(String location) {
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/MoveResourceInner.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/MoveResourceInner.java
index e4fb6c882a70..2bf675909729 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/MoveResourceInner.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/MoveResourceInner.java
@@ -6,22 +6,25 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.resourcemover.models.MoveResourceProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Defines the move resource. */
@Fluent
public final class MoveResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MoveResourceInner.class);
-
/*
* Defines the move resource properties.
*/
@JsonProperty(value = "properties")
private MoveResourceProperties properties;
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/**
* Get the properties property: Defines the move resource properties.
*
@@ -42,6 +45,15 @@ public MoveResourceInner withProperties(MoveResourceProperties properties) {
return this;
}
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/OperationStatusInner.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/OperationStatusInner.java
index 0a331aaeb9b5..3193cfd5bedb 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/OperationStatusInner.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/OperationStatusInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.resourcemover.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.resourcemover.models.OperationStatusError;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Operation status REST resource. */
@Immutable
public final class OperationStatusInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationStatusInner.class);
-
/*
* Resource Id.
*/
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/OperationsDiscoveryCollectionInner.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/OperationsDiscoveryCollectionInner.java
index 18c47e98d168..b97283ae6251 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/OperationsDiscoveryCollectionInner.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/OperationsDiscoveryCollectionInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.resourcemover.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.resourcemover.models.OperationsDiscovery;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Collection of ClientDiscovery details. */
@Fluent
public final class OperationsDiscoveryCollectionInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsDiscoveryCollectionInner.class);
-
/*
* Gets or sets the ClientDiscovery details.
*/
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/RequiredForResourcesCollectionInner.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/RequiredForResourcesCollectionInner.java
index 583fe3c58e9a..ca0570182508 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/RequiredForResourcesCollectionInner.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/RequiredForResourcesCollectionInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.resourcemover.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Required for resources collection. */
@Fluent
public final class RequiredForResourcesCollectionInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RequiredForResourcesCollectionInner.class);
-
/*
* Gets or sets the list of source Ids for which the input resource is
* required.
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/UnresolvedDependencyInner.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/UnresolvedDependencyInner.java
index 9b3baef4599f..85660da7936e 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/UnresolvedDependencyInner.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/fluent/models/UnresolvedDependencyInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.resourcemover.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Unresolved dependency. */
@Fluent
public final class UnresolvedDependencyInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UnresolvedDependencyInner.class);
-
/*
* Gets or sets the count.
*/
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionImpl.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionImpl.java
index c83457611363..3a92b2fd86a6 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionImpl.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.resourcemover.implementation;
import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.resourcemover.fluent.models.MoveCollectionInner;
import com.azure.resourcemanager.resourcemover.models.BulkRemoveRequest;
@@ -62,6 +63,10 @@ public MoveCollectionProperties properties() {
return this.innerModel().properties();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionsClientImpl.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionsClientImpl.java
index 72a94fdb6dc9..4c82615405a1 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionsClientImpl.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionsClientImpl.java
@@ -31,7 +31,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.resourcemover.fluent.MoveCollectionsClient;
@@ -51,8 +50,6 @@
/** An instance of this class provides access to all the operations defined in MoveCollectionsClient. */
public final class MoveCollectionsClientImpl implements MoveCollectionsClient {
- private final ClientLogger logger = new ClientLogger(MoveCollectionsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final MoveCollectionsService service;
@@ -305,7 +302,7 @@ Mono> listMoveCollectionsByResourceGroupNext(
* @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 define the move collection.
+ * @return define the move collection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(
@@ -360,7 +357,7 @@ private Mono> createWithResponseAsync(
* @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 define the move collection.
+ * @return define the move collection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(
@@ -411,7 +408,7 @@ private Mono> createWithResponseAsync(
* @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 define the move collection.
+ * @return define the move collection on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -435,7 +432,7 @@ private Mono createAsync(
* @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 define the move collection.
+ * @return define the move collection on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(String resourceGroupName, String moveCollectionName) {
@@ -477,7 +474,7 @@ public MoveCollectionInner create(String resourceGroupName, String moveCollectio
* @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 define the move collection.
+ * @return define the move collection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createWithResponse(
@@ -494,7 +491,7 @@ public Response createWithResponse(
* @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 define the move collection.
+ * @return define the move collection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -549,7 +546,7 @@ private Mono> updateWithResponseAsync(
* @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 define the move collection.
+ * @return define the move collection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -600,7 +597,7 @@ private Mono> updateWithResponseAsync(
* @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 define the move collection.
+ * @return define the move collection on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -624,7 +621,7 @@ private Mono updateAsync(
* @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 define the move collection.
+ * @return define the move collection on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String moveCollectionName) {
@@ -666,7 +663,7 @@ public MoveCollectionInner update(String resourceGroupName, String moveCollectio
* @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 define the move collection.
+ * @return define the move collection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateWithResponse(
@@ -682,7 +679,7 @@ public Response updateWithResponse(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -732,7 +729,7 @@ private Mono>> deleteWithResponseAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -778,9 +775,9 @@ private Mono>> deleteWithResponseAsync(
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginDeleteAsync(
String resourceGroupName, String moveCollectionName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, moveCollectionName);
@@ -791,7 +788,7 @@ private PollerFlux, OperationStatusInner> begin
this.client.getHttpPipeline(),
OperationStatusInner.class,
OperationStatusInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -803,9 +800,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginDeleteAsync(
String resourceGroupName, String moveCollectionName, Context context) {
context = this.client.mergeContext(context);
@@ -824,9 +821,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginDelete(
String resourceGroupName, String moveCollectionName) {
return beginDeleteAsync(resourceGroupName, moveCollectionName).getSyncPoller();
@@ -841,9 +838,9 @@ public SyncPoller, OperationStatusInner> beginD
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginDelete(
String resourceGroupName, String moveCollectionName, Context context) {
return beginDeleteAsync(resourceGroupName, moveCollectionName, context).getSyncPoller();
@@ -857,7 +854,7 @@ public SyncPoller, OperationStatusInner> beginD
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String moveCollectionName) {
@@ -875,7 +872,7 @@ private Mono deleteAsync(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
@@ -924,7 +921,7 @@ public OperationStatusInner delete(String resourceGroupName, String moveCollecti
* @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 move collection.
+ * @return the move collection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -974,7 +971,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @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 move collection.
+ * @return the move collection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -1020,7 +1017,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @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 move collection.
+ * @return the move collection on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String moveCollectionName) {
@@ -1059,7 +1056,7 @@ public MoveCollectionInner getByResourceGroup(String resourceGroupName, String m
* @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 move collection.
+ * @return the move collection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
@@ -1079,7 +1076,7 @@ public Response getByResourceGroupWithResponse(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> prepareWithResponseAsync(
@@ -1137,7 +1134,7 @@ private Mono>> prepareWithResponseAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> prepareWithResponseAsync(
@@ -1191,9 +1188,9 @@ private Mono>> prepareWithResponseAsync(
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginPrepareAsync(
String resourceGroupName, String moveCollectionName, PrepareRequest body) {
Mono>> mono = prepareWithResponseAsync(resourceGroupName, moveCollectionName, body);
@@ -1204,7 +1201,7 @@ private PollerFlux, OperationStatusInner> begin
this.client.getHttpPipeline(),
OperationStatusInner.class,
OperationStatusInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -1220,9 +1217,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginPrepareAsync(
String resourceGroupName, String moveCollectionName, PrepareRequest body, Context context) {
context = this.client.mergeContext(context);
@@ -1246,9 +1243,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginPrepare(
String resourceGroupName, String moveCollectionName, PrepareRequest body) {
return beginPrepareAsync(resourceGroupName, moveCollectionName, body).getSyncPoller();
@@ -1267,9 +1264,9 @@ public SyncPoller, OperationStatusInner> beginP
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginPrepare(
String resourceGroupName, String moveCollectionName, PrepareRequest body, Context context) {
return beginPrepareAsync(resourceGroupName, moveCollectionName, body, context).getSyncPoller();
@@ -1287,7 +1284,7 @@ public SyncPoller, OperationStatusInner> beginP
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono prepareAsync(
@@ -1308,7 +1305,7 @@ private Mono prepareAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono prepareAsync(String resourceGroupName, String moveCollectionName) {
@@ -1331,7 +1328,7 @@ private Mono prepareAsync(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono prepareAsync(
@@ -1412,7 +1409,7 @@ public OperationStatusInner prepare(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> initiateMoveWithResponseAsync(
@@ -1470,7 +1467,7 @@ private Mono>> initiateMoveWithResponseAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> initiateMoveWithResponseAsync(
@@ -1524,9 +1521,9 @@ private Mono>> initiateMoveWithResponseAsync(
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginInitiateMoveAsync(
String resourceGroupName, String moveCollectionName, ResourceMoveRequest body) {
Mono>> mono =
@@ -1538,7 +1535,7 @@ private PollerFlux, OperationStatusInner> begin
this.client.getHttpPipeline(),
OperationStatusInner.class,
OperationStatusInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -1554,9 +1551,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginInitiateMoveAsync(
String resourceGroupName, String moveCollectionName, ResourceMoveRequest body, Context context) {
context = this.client.mergeContext(context);
@@ -1580,9 +1577,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginInitiateMove(
String resourceGroupName, String moveCollectionName, ResourceMoveRequest body) {
return beginInitiateMoveAsync(resourceGroupName, moveCollectionName, body).getSyncPoller();
@@ -1601,9 +1598,9 @@ public SyncPoller, OperationStatusInner> beginI
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginInitiateMove(
String resourceGroupName, String moveCollectionName, ResourceMoveRequest body, Context context) {
return beginInitiateMoveAsync(resourceGroupName, moveCollectionName, body, context).getSyncPoller();
@@ -1621,7 +1618,7 @@ public SyncPoller, OperationStatusInner> beginI
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono initiateMoveAsync(
@@ -1642,7 +1639,7 @@ private Mono initiateMoveAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono initiateMoveAsync(String resourceGroupName, String moveCollectionName) {
@@ -1665,7 +1662,7 @@ private Mono initiateMoveAsync(String resourceGroupName, S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono initiateMoveAsync(
@@ -1747,7 +1744,7 @@ public OperationStatusInner initiateMove(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> commitWithResponseAsync(
@@ -1805,7 +1802,7 @@ private Mono>> commitWithResponseAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> commitWithResponseAsync(
@@ -1859,9 +1856,9 @@ private Mono>> commitWithResponseAsync(
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginCommitAsync(
String resourceGroupName, String moveCollectionName, CommitRequest body) {
Mono>> mono = commitWithResponseAsync(resourceGroupName, moveCollectionName, body);
@@ -1872,7 +1869,7 @@ private PollerFlux, OperationStatusInner> begin
this.client.getHttpPipeline(),
OperationStatusInner.class,
OperationStatusInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -1888,9 +1885,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginCommitAsync(
String resourceGroupName, String moveCollectionName, CommitRequest body, Context context) {
context = this.client.mergeContext(context);
@@ -1914,9 +1911,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginCommit(
String resourceGroupName, String moveCollectionName, CommitRequest body) {
return beginCommitAsync(resourceGroupName, moveCollectionName, body).getSyncPoller();
@@ -1935,9 +1932,9 @@ public SyncPoller, OperationStatusInner> beginC
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginCommit(
String resourceGroupName, String moveCollectionName, CommitRequest body, Context context) {
return beginCommitAsync(resourceGroupName, moveCollectionName, body, context).getSyncPoller();
@@ -1955,7 +1952,7 @@ public SyncPoller, OperationStatusInner> beginC
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono commitAsync(
@@ -1976,7 +1973,7 @@ private Mono commitAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono commitAsync(String resourceGroupName, String moveCollectionName) {
@@ -1999,7 +1996,7 @@ private Mono commitAsync(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono commitAsync(
@@ -2080,7 +2077,7 @@ public OperationStatusInner commit(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> discardWithResponseAsync(
@@ -2138,7 +2135,7 @@ private Mono>> discardWithResponseAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> discardWithResponseAsync(
@@ -2192,9 +2189,9 @@ private Mono>> discardWithResponseAsync(
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginDiscardAsync(
String resourceGroupName, String moveCollectionName, DiscardRequest body) {
Mono>> mono = discardWithResponseAsync(resourceGroupName, moveCollectionName, body);
@@ -2205,7 +2202,7 @@ private PollerFlux, OperationStatusInner> begin
this.client.getHttpPipeline(),
OperationStatusInner.class,
OperationStatusInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -2221,9 +2218,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginDiscardAsync(
String resourceGroupName, String moveCollectionName, DiscardRequest body, Context context) {
context = this.client.mergeContext(context);
@@ -2247,9 +2244,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginDiscard(
String resourceGroupName, String moveCollectionName, DiscardRequest body) {
return beginDiscardAsync(resourceGroupName, moveCollectionName, body).getSyncPoller();
@@ -2268,9 +2265,9 @@ public SyncPoller, OperationStatusInner> beginD
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginDiscard(
String resourceGroupName, String moveCollectionName, DiscardRequest body, Context context) {
return beginDiscardAsync(resourceGroupName, moveCollectionName, body, context).getSyncPoller();
@@ -2288,7 +2285,7 @@ public SyncPoller, OperationStatusInner> beginD
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono discardAsync(
@@ -2309,7 +2306,7 @@ private Mono discardAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono discardAsync(String resourceGroupName, String moveCollectionName) {
@@ -2332,7 +2329,7 @@ private Mono discardAsync(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono discardAsync(
@@ -2409,7 +2406,7 @@ public OperationStatusInner discard(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> resolveDependenciesWithResponseAsync(
@@ -2459,7 +2456,7 @@ private Mono>> resolveDependenciesWithResponseAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> resolveDependenciesWithResponseAsync(
@@ -2505,9 +2502,9 @@ private Mono>> resolveDependenciesWithResponseAsync(
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginResolveDependenciesAsync(
String resourceGroupName, String moveCollectionName) {
Mono>> mono =
@@ -2519,7 +2516,7 @@ private PollerFlux, OperationStatusInner> begin
this.client.getHttpPipeline(),
OperationStatusInner.class,
OperationStatusInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -2531,9 +2528,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginResolveDependenciesAsync(
String resourceGroupName, String moveCollectionName, Context context) {
context = this.client.mergeContext(context);
@@ -2553,9 +2550,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginResolveDependencies(
String resourceGroupName, String moveCollectionName) {
return beginResolveDependenciesAsync(resourceGroupName, moveCollectionName).getSyncPoller();
@@ -2570,9 +2567,9 @@ public SyncPoller, OperationStatusInner> beginR
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginResolveDependencies(
String resourceGroupName, String moveCollectionName, Context context) {
return beginResolveDependenciesAsync(resourceGroupName, moveCollectionName, context).getSyncPoller();
@@ -2586,7 +2583,7 @@ public SyncPoller, OperationStatusInner> beginR
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono resolveDependenciesAsync(String resourceGroupName, String moveCollectionName) {
@@ -2604,7 +2601,7 @@ private Mono resolveDependenciesAsync(String resourceGroup
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono resolveDependenciesAsync(
@@ -2657,7 +2654,7 @@ public OperationStatusInner resolveDependencies(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> bulkRemoveWithResponseAsync(
@@ -2714,7 +2711,7 @@ private Mono>> bulkRemoveWithResponseAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> bulkRemoveWithResponseAsync(
@@ -2767,9 +2764,9 @@ private Mono>> bulkRemoveWithResponseAsync(
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginBulkRemoveAsync(
String resourceGroupName, String moveCollectionName, BulkRemoveRequest body) {
Mono>> mono =
@@ -2781,7 +2778,7 @@ private PollerFlux, OperationStatusInner> begin
this.client.getHttpPipeline(),
OperationStatusInner.class,
OperationStatusInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -2796,9 +2793,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link PollerFlux} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationStatusInner> beginBulkRemoveAsync(
String resourceGroupName, String moveCollectionName, BulkRemoveRequest body, Context context) {
context = this.client.mergeContext(context);
@@ -2821,9 +2818,9 @@ private PollerFlux, OperationStatusInner> begin
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginBulkRemove(
String resourceGroupName, String moveCollectionName, BulkRemoveRequest body) {
return beginBulkRemoveAsync(resourceGroupName, moveCollectionName, body).getSyncPoller();
@@ -2841,9 +2838,9 @@ public SyncPoller, OperationStatusInner> beginB
* @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 operation status REST resource.
+ * @return the {@link SyncPoller} for polling of operation status REST resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationStatusInner> beginBulkRemove(
String resourceGroupName, String moveCollectionName, BulkRemoveRequest body, Context context) {
return beginBulkRemoveAsync(resourceGroupName, moveCollectionName, body, context).getSyncPoller();
@@ -2860,7 +2857,7 @@ public SyncPoller, OperationStatusInner> beginB
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono bulkRemoveAsync(
@@ -2880,7 +2877,7 @@ private Mono bulkRemoveAsync(
* @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 operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono bulkRemoveAsync(String resourceGroupName, String moveCollectionName) {
@@ -2902,7 +2899,7 @@ private Mono bulkRemoveAsync(String resourceGroupName, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operation status REST resource.
+ * @return operation status REST resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono bulkRemoveAsync(
@@ -2974,7 +2971,8 @@ public OperationStatusInner bulkRemove(
*
* @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 the Move Collections in the subscription.
+ * @return all the Move Collections in the subscription along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -3020,7 +3018,8 @@ private Mono> listSinglePageAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Move Collections in the subscription.
+ * @return all the Move Collections in the subscription along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -3061,7 +3060,7 @@ private Mono> listSinglePageAsync(Context con
*
* @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 the Move Collections in the subscription.
+ * @return all the Move Collections in the subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -3076,7 +3075,7 @@ private PagedFlux listAsync() {
* @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 the Move Collections in the subscription.
+ * @return all the Move Collections in the subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -3090,7 +3089,7 @@ private PagedFlux listAsync(Context context) {
*
* @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 the Move Collections in the subscription.
+ * @return all the Move Collections in the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -3104,7 +3103,7 @@ public PagedIterable list() {
* @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 the Move Collections in the subscription.
+ * @return all the Move Collections in the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -3118,7 +3117,8 @@ public PagedIterable list(Context context) {
* @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 the Move Collections in the resource group.
+ * @return all the Move Collections in the resource group along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
@@ -3170,7 +3170,8 @@ private Mono> listByResourceGroupSinglePageAs
* @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 the Move Collections in the resource group.
+ * @return all the Move Collections in the resource group along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -3219,7 +3220,7 @@ private Mono> listByResourceGroupSinglePageAs
* @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 the Move Collections in the resource group.
+ * @return all the Move Collections in the resource group as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -3236,7 +3237,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Move Collections in the resource group.
+ * @return all the Move Collections in the resource group as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
@@ -3252,7 +3253,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Move Collections in the resource group.
+ * @return all the Move Collections in the resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -3267,7 +3268,7 @@ public PagedIterable listByResourceGroup(String resourceGro
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Move Collections in the resource group.
+ * @return all the Move Collections in the resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
@@ -3283,7 +3284,7 @@ public PagedIterable listByResourceGroup(String resourceGro
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return required for resources collection.
+ * @return required for resources collection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listRequiredForWithResponseAsync(
@@ -3338,7 +3339,7 @@ private Mono> listRequiredForWithR
* @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 required for resources collection.
+ * @return required for resources collection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listRequiredForWithResponseAsync(
@@ -3389,7 +3390,7 @@ private Mono> listRequiredForWithR
* @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 required for resources collection.
+ * @return required for resources collection on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listRequiredForAsync(
@@ -3432,7 +3433,7 @@ public RequiredForResourcesCollectionInner listRequiredFor(
* @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 required for resources collection.
+ * @return required for resources collection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listRequiredForWithResponse(
@@ -3447,7 +3448,8 @@ public Response listRequiredForWithResponse
* @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 defines the collection of move collections.
+ * @return defines the collection of move collections along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listMoveCollectionsBySubscriptionNextSinglePageAsync(
@@ -3486,7 +3488,8 @@ private Mono> listMoveCollectionsBySubscripti
* @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 defines the collection of move collections.
+ * @return defines the collection of move collections along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listMoveCollectionsBySubscriptionNextSinglePageAsync(
@@ -3522,7 +3525,8 @@ private Mono> listMoveCollectionsBySubscripti
* @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 defines the collection of move collections.
+ * @return defines the collection of move collections along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listMoveCollectionsByResourceGroupNextSinglePageAsync(
@@ -3562,7 +3566,8 @@ private Mono> listMoveCollectionsByResourceGr
* @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 defines the collection of move collections.
+ * @return defines the collection of move collections along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listMoveCollectionsByResourceGroupNextSinglePageAsync(
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionsImpl.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionsImpl.java
index 8bdd332b1a76..6670374bd1da 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionsImpl.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveCollectionsImpl.java
@@ -22,10 +22,9 @@
import com.azure.resourcemanager.resourcemover.models.PrepareRequest;
import com.azure.resourcemanager.resourcemover.models.RequiredForResourcesCollection;
import com.azure.resourcemanager.resourcemover.models.ResourceMoveRequest;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class MoveCollectionsImpl implements MoveCollections {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MoveCollectionsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(MoveCollectionsImpl.class);
private final MoveCollectionsClient innerClient;
@@ -290,7 +289,7 @@ public Response listRequiredForWithResponse(
public MoveCollection getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -298,7 +297,7 @@ public MoveCollection getById(String id) {
}
String moveCollectionName = Utils.getValueFromIdByName(id, "moveCollections");
if (moveCollectionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -310,7 +309,7 @@ public MoveCollection getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -318,7 +317,7 @@ public Response getByIdWithResponse(String id, Context context)
}
String moveCollectionName = Utils.getValueFromIdByName(id, "moveCollections");
if (moveCollectionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -330,7 +329,7 @@ public Response getByIdWithResponse(String id, Context context)
public OperationStatus deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -338,7 +337,7 @@ public OperationStatus deleteById(String id) {
}
String moveCollectionName = Utils.getValueFromIdByName(id, "moveCollections");
if (moveCollectionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -350,7 +349,7 @@ public OperationStatus deleteById(String id) {
public OperationStatus deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -358,7 +357,7 @@ public OperationStatus deleteByIdWithResponse(String id, Context context) {
}
String moveCollectionName = Utils.getValueFromIdByName(id, "moveCollections");
if (moveCollectionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveResourceImpl.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveResourceImpl.java
index e88e94ee0ee3..2dafd674ff78 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveResourceImpl.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveResourceImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.resourcemover.implementation;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.resourcemover.fluent.models.MoveResourceInner;
import com.azure.resourcemanager.resourcemover.models.MoveResource;
@@ -36,6 +37,10 @@ public MoveResourceProperties properties() {
return this.innerModel().properties();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public MoveResourceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveResourcesClientImpl.java b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveResourcesClientImpl.java
index 405c40b3f9f7..d65602e9886c 100644
--- a/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveResourcesClientImpl.java
+++ b/sdk/resourcemover/azure-resourcemanager-resourcemover/src/main/java/com/azure/resourcemanager/resourcemover/implementation/MoveResourcesClientImpl.java
@@ -29,7 +29,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.resourcemover.fluent.MoveResourcesClient;
@@ -42,8 +41,6 @@
/** An instance of this class provides access to all the operations defined in MoveResourcesClient. */
public final class MoveResourcesClientImpl implements MoveResourcesClient {
- private final ClientLogger logger = new ClientLogger(MoveResourcesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final MoveResourcesService service;
@@ -154,7 +151,8 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return defines the collection of move resources.
+ * @return defines the collection of move resources along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -216,7 +214,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return defines the collection of move resources.
+ * @return defines the collection of move resources along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -274,7 +273,7 @@ private Mono