@azure/arm-resourcemover 2.1.1-alpha.20231016.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +14 -11
  2. package/LICENSE +1 -1
  3. package/dist/index.js +156 -111
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.js +11 -4
  8. package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.js.map +1 -1
  9. package/dist-esm/samples-dev/moveCollectionsCommitSample.js +11 -4
  10. package/dist-esm/samples-dev/moveCollectionsCommitSample.js.map +1 -1
  11. package/dist-esm/samples-dev/moveCollectionsCreateSample.js +16 -5
  12. package/dist-esm/samples-dev/moveCollectionsCreateSample.js.map +1 -1
  13. package/dist-esm/samples-dev/moveCollectionsDeleteSample.js +11 -4
  14. package/dist-esm/samples-dev/moveCollectionsDeleteSample.js.map +1 -1
  15. package/dist-esm/samples-dev/moveCollectionsDiscardSample.js +11 -4
  16. package/dist-esm/samples-dev/moveCollectionsDiscardSample.js.map +1 -1
  17. package/dist-esm/samples-dev/moveCollectionsGetSample.js +11 -4
  18. package/dist-esm/samples-dev/moveCollectionsGetSample.js.map +1 -1
  19. package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.js +11 -4
  20. package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.js.map +1 -1
  21. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.js +14 -12
  22. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.js.map +1 -1
  23. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.js +13 -11
  24. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.js.map +1 -1
  25. package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.js +11 -4
  26. package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.js.map +1 -1
  27. package/dist-esm/samples-dev/moveCollectionsPrepareSample.js +11 -4
  28. package/dist-esm/samples-dev/moveCollectionsPrepareSample.js.map +1 -1
  29. package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.js +11 -4
  30. package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.js.map +1 -1
  31. package/dist-esm/samples-dev/moveCollectionsUpdateSample.js +11 -4
  32. package/dist-esm/samples-dev/moveCollectionsUpdateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/moveResourcesCreateSample.js +11 -4
  34. package/dist-esm/samples-dev/moveResourcesCreateSample.js.map +1 -1
  35. package/dist-esm/samples-dev/moveResourcesDeleteSample.js +11 -4
  36. package/dist-esm/samples-dev/moveResourcesDeleteSample.js.map +1 -1
  37. package/dist-esm/samples-dev/moveResourcesGetSample.js +11 -4
  38. package/dist-esm/samples-dev/moveResourcesGetSample.js.map +1 -1
  39. package/dist-esm/samples-dev/moveResourcesListSample.js +14 -12
  40. package/dist-esm/samples-dev/moveResourcesListSample.js.map +1 -1
  41. package/dist-esm/samples-dev/operationsDiscoveryGetSample.js +10 -4
  42. package/dist-esm/samples-dev/operationsDiscoveryGetSample.js.map +1 -1
  43. package/dist-esm/samples-dev/unresolvedDependenciesGetSample.js +14 -12
  44. package/dist-esm/samples-dev/unresolvedDependenciesGetSample.js.map +1 -1
  45. package/dist-esm/src/lroImpl.d.ts +6 -11
  46. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  47. package/dist-esm/src/lroImpl.js +12 -20
  48. package/dist-esm/src/lroImpl.js.map +1 -1
  49. package/dist-esm/src/models/index.d.ts +27 -3
  50. package/dist-esm/src/models/index.d.ts.map +1 -1
  51. package/dist-esm/src/models/index.js +8 -0
  52. package/dist-esm/src/models/index.js.map +1 -1
  53. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  54. package/dist-esm/src/models/mappers.js +24 -3
  55. package/dist-esm/src/models/mappers.js.map +1 -1
  56. package/dist-esm/src/models/parameters.js +1 -1
  57. package/dist-esm/src/operations/moveCollections.d.ts +8 -8
  58. package/dist-esm/src/operations/moveCollections.d.ts.map +1 -1
  59. package/dist-esm/src/operations/moveCollections.js +71 -53
  60. package/dist-esm/src/operations/moveCollections.js.map +1 -1
  61. package/dist-esm/src/operations/moveResources.d.ts +3 -3
  62. package/dist-esm/src/operations/moveResources.d.ts.map +1 -1
  63. package/dist-esm/src/operations/moveResources.js +33 -20
  64. package/dist-esm/src/operations/moveResources.js.map +1 -1
  65. package/dist-esm/src/operations/unresolvedDependencies.js +3 -8
  66. package/dist-esm/src/operations/unresolvedDependencies.js.map +1 -1
  67. package/dist-esm/src/operationsInterfaces/moveCollections.d.ts +8 -8
  68. package/dist-esm/src/operationsInterfaces/moveCollections.d.ts.map +1 -1
  69. package/dist-esm/src/operationsInterfaces/moveResources.d.ts +3 -3
  70. package/dist-esm/src/operationsInterfaces/moveResources.d.ts.map +1 -1
  71. package/dist-esm/src/resourceMoverServiceAPI.d.ts +2 -1
  72. package/dist-esm/src/resourceMoverServiceAPI.d.ts.map +1 -1
  73. package/dist-esm/src/resourceMoverServiceAPI.js +9 -11
  74. package/dist-esm/src/resourceMoverServiceAPI.js.map +1 -1
  75. package/dist-esm/test/resourcemover_operations_test.spec.d.ts +4 -0
  76. package/dist-esm/test/resourcemover_operations_test.spec.d.ts.map +1 -0
  77. package/dist-esm/test/resourcemover_operations_test.spec.js +118 -0
  78. package/dist-esm/test/resourcemover_operations_test.spec.js.map +1 -0
  79. package/package.json +11 -10
  80. package/review/arm-resourcemover.api.md +29 -15
  81. package/src/lroImpl.ts +31 -23
  82. package/src/models/index.ts +29 -3
  83. package/src/models/mappers.ts +24 -3
  84. package/src/models/parameters.ts +1 -1
  85. package/src/operations/moveCollections.ts +104 -79
  86. package/src/operations/moveResources.ts +44 -24
  87. package/src/operationsInterfaces/moveCollections.ts +15 -15
  88. package/src/operationsInterfaces/moveResources.ts +5 -5
  89. package/src/resourceMoverServiceAPI.ts +19 -5
  90. package/types/arm-resourcemover.d.ts +42 -15
  91. package/dist-esm/samples-dev/moveCollectionsBulkRemove.d.ts +0 -2
  92. package/dist-esm/samples-dev/moveCollectionsBulkRemove.d.ts.map +0 -1
  93. package/dist-esm/samples-dev/moveCollectionsBulkRemove.js +0 -38
  94. package/dist-esm/samples-dev/moveCollectionsBulkRemove.js.map +0 -1
  95. package/dist-esm/samples-dev/moveCollectionsCommit.d.ts +0 -2
  96. package/dist-esm/samples-dev/moveCollectionsCommit.d.ts.map +0 -1
  97. package/dist-esm/samples-dev/moveCollectionsCommit.js +0 -38
  98. package/dist-esm/samples-dev/moveCollectionsCommit.js.map +0 -1
  99. package/dist-esm/samples-dev/moveCollectionsCreate.d.ts +0 -2
  100. package/dist-esm/samples-dev/moveCollectionsCreate.d.ts.map +0 -1
  101. package/dist-esm/samples-dev/moveCollectionsCreate.js +0 -37
  102. package/dist-esm/samples-dev/moveCollectionsCreate.js.map +0 -1
  103. package/dist-esm/samples-dev/moveCollectionsDelete.d.ts +0 -2
  104. package/dist-esm/samples-dev/moveCollectionsDelete.d.ts.map +0 -1
  105. package/dist-esm/samples-dev/moveCollectionsDelete.js +0 -31
  106. package/dist-esm/samples-dev/moveCollectionsDelete.js.map +0 -1
  107. package/dist-esm/samples-dev/moveCollectionsDiscard.d.ts +0 -2
  108. package/dist-esm/samples-dev/moveCollectionsDiscard.d.ts.map +0 -1
  109. package/dist-esm/samples-dev/moveCollectionsDiscard.js +0 -38
  110. package/dist-esm/samples-dev/moveCollectionsDiscard.js.map +0 -1
  111. package/dist-esm/samples-dev/moveCollectionsGet.d.ts +0 -2
  112. package/dist-esm/samples-dev/moveCollectionsGet.d.ts.map +0 -1
  113. package/dist-esm/samples-dev/moveCollectionsGet.js +0 -31
  114. package/dist-esm/samples-dev/moveCollectionsGet.js.map +0 -1
  115. package/dist-esm/samples-dev/moveCollectionsInitiateMove.d.ts +0 -2
  116. package/dist-esm/samples-dev/moveCollectionsInitiateMove.d.ts.map +0 -1
  117. package/dist-esm/samples-dev/moveCollectionsInitiateMove.js +0 -38
  118. package/dist-esm/samples-dev/moveCollectionsInitiateMove.js.map +0 -1
  119. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.d.ts +0 -2
  120. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.d.ts.map +0 -1
  121. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.js +0 -51
  122. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.js.map +0 -1
  123. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.d.ts +0 -2
  124. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.d.ts.map +0 -1
  125. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.js +0 -50
  126. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.js.map +0 -1
  127. package/dist-esm/samples-dev/moveCollectionsPrepare.d.ts +0 -2
  128. package/dist-esm/samples-dev/moveCollectionsPrepare.d.ts.map +0 -1
  129. package/dist-esm/samples-dev/moveCollectionsPrepare.js +0 -38
  130. package/dist-esm/samples-dev/moveCollectionsPrepare.js.map +0 -1
  131. package/dist-esm/samples-dev/moveCollectionsResolveDependencies.d.ts +0 -2
  132. package/dist-esm/samples-dev/moveCollectionsResolveDependencies.d.ts.map +0 -1
  133. package/dist-esm/samples-dev/moveCollectionsResolveDependencies.js +0 -31
  134. package/dist-esm/samples-dev/moveCollectionsResolveDependencies.js.map +0 -1
  135. package/dist-esm/samples-dev/moveCollectionsUpdate.d.ts +0 -2
  136. package/dist-esm/samples-dev/moveCollectionsUpdate.d.ts.map +0 -1
  137. package/dist-esm/samples-dev/moveCollectionsUpdate.js +0 -36
  138. package/dist-esm/samples-dev/moveCollectionsUpdate.js.map +0 -1
  139. package/dist-esm/samples-dev/moveResourcesCreate.d.ts +0 -2
  140. package/dist-esm/samples-dev/moveResourcesCreate.d.ts.map +0 -1
  141. package/dist-esm/samples-dev/moveResourcesCreate.js +0 -54
  142. package/dist-esm/samples-dev/moveResourcesCreate.js.map +0 -1
  143. package/dist-esm/samples-dev/moveResourcesDelete.d.ts +0 -2
  144. package/dist-esm/samples-dev/moveResourcesDelete.d.ts.map +0 -1
  145. package/dist-esm/samples-dev/moveResourcesDelete.js +0 -32
  146. package/dist-esm/samples-dev/moveResourcesDelete.js.map +0 -1
  147. package/dist-esm/samples-dev/moveResourcesGet.d.ts +0 -2
  148. package/dist-esm/samples-dev/moveResourcesGet.d.ts.map +0 -1
  149. package/dist-esm/samples-dev/moveResourcesGet.js +0 -32
  150. package/dist-esm/samples-dev/moveResourcesGet.js.map +0 -1
  151. package/dist-esm/samples-dev/moveResourcesList.d.ts +0 -2
  152. package/dist-esm/samples-dev/moveResourcesList.d.ts.map +0 -1
  153. package/dist-esm/samples-dev/moveResourcesList.js +0 -52
  154. package/dist-esm/samples-dev/moveResourcesList.js.map +0 -1
  155. package/dist-esm/samples-dev/operationsDiscoveryGet.d.ts +0 -2
  156. package/dist-esm/samples-dev/operationsDiscoveryGet.d.ts.map +0 -1
  157. package/dist-esm/samples-dev/operationsDiscoveryGet.js +0 -29
  158. package/dist-esm/samples-dev/operationsDiscoveryGet.js.map +0 -1
  159. package/dist-esm/samples-dev/requiredForGet.d.ts +0 -2
  160. package/dist-esm/samples-dev/requiredForGet.d.ts.map +0 -1
  161. package/dist-esm/samples-dev/requiredForGet.js +0 -32
  162. package/dist-esm/samples-dev/requiredForGet.js.map +0 -1
  163. package/dist-esm/samples-dev/unresolvedDependenciesGet.d.ts +0 -2
  164. package/dist-esm/samples-dev/unresolvedDependenciesGet.d.ts.map +0 -1
  165. package/dist-esm/samples-dev/unresolvedDependenciesGet.js +0 -52
  166. package/dist-esm/samples-dev/unresolvedDependenciesGet.js.map +0 -1
  167. package/dist-esm/test/sampleTest.d.ts +0 -2
  168. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  169. package/dist-esm/test/sampleTest.js +0 -38
  170. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  MoveResource,
13
13
  MoveResourcesListOptionalParams,
@@ -46,8 +46,8 @@ export interface MoveResources {
46
46
  moveResourceName: string,
47
47
  options?: MoveResourcesCreateOptionalParams
48
48
  ): Promise<
49
- PollerLike<
50
- PollOperationState<MoveResourcesCreateResponse>,
49
+ SimplePollerLike<
50
+ OperationState<MoveResourcesCreateResponse>,
51
51
  MoveResourcesCreateResponse
52
52
  >
53
53
  >;
@@ -77,8 +77,8 @@ export interface MoveResources {
77
77
  moveResourceName: string,
78
78
  options?: MoveResourcesDeleteOptionalParams
79
79
  ): Promise<
80
- PollerLike<
81
- PollOperationState<MoveResourcesDeleteResponse>,
80
+ SimplePollerLike<
81
+ OperationState<MoveResourcesDeleteResponse>,
82
82
  MoveResourcesDeleteResponse
83
83
  >
84
84
  >;
@@ -30,7 +30,7 @@ import { ResourceMoverServiceAPIOptionalParams } from "./models";
30
30
 
31
31
  export class ResourceMoverServiceAPI extends coreClient.ServiceClient {
32
32
  $host: string;
33
- subscriptionId: string;
33
+ subscriptionId?: string;
34
34
  apiVersion: string;
35
35
 
36
36
  /**
@@ -43,12 +43,26 @@ export class ResourceMoverServiceAPI extends coreClient.ServiceClient {
43
43
  credentials: coreAuth.TokenCredential,
44
44
  subscriptionId: string,
45
45
  options?: ResourceMoverServiceAPIOptionalParams
46
+ );
47
+ constructor(
48
+ credentials: coreAuth.TokenCredential,
49
+ options?: ResourceMoverServiceAPIOptionalParams
50
+ );
51
+ constructor(
52
+ credentials: coreAuth.TokenCredential,
53
+ subscriptionIdOrOptions?: ResourceMoverServiceAPIOptionalParams | string,
54
+ options?: ResourceMoverServiceAPIOptionalParams
46
55
  ) {
47
56
  if (credentials === undefined) {
48
57
  throw new Error("'credentials' cannot be null");
49
58
  }
50
- if (subscriptionId === undefined) {
51
- throw new Error("'subscriptionId' cannot be null");
59
+
60
+ let subscriptionId: string | undefined;
61
+
62
+ if (typeof subscriptionIdOrOptions === "string") {
63
+ subscriptionId = subscriptionIdOrOptions;
64
+ } else if (typeof subscriptionIdOrOptions === "object") {
65
+ options = subscriptionIdOrOptions;
52
66
  }
53
67
 
54
68
  // Initializing default values for options
@@ -60,7 +74,7 @@ export class ResourceMoverServiceAPI extends coreClient.ServiceClient {
60
74
  credential: credentials
61
75
  };
62
76
 
63
- const packageDetails = `azsdk-js-arm-resourcemover/2.1.1`;
77
+ const packageDetails = `azsdk-js-arm-resourcemover/2.2.0`;
64
78
  const userAgentPrefix =
65
79
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
66
80
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -113,7 +127,7 @@ export class ResourceMoverServiceAPI extends coreClient.ServiceClient {
113
127
 
114
128
  // Assigning values to Constant parameters
115
129
  this.$host = options.$host || "https://management.azure.com";
116
- this.apiVersion = options.apiVersion || "2021-08-01";
130
+ this.apiVersion = options.apiVersion || "2023-08-01";
117
131
  this.moveCollections = new MoveCollectionsImpl(this);
118
132
  this.moveResources = new MoveResourcesImpl(this);
119
133
  this.unresolvedDependencies = new UnresolvedDependenciesImpl(this);
@@ -1,8 +1,8 @@
1
1
  import * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
- import { PollerLike } from '@azure/core-lro';
5
- import { PollOperationState } from '@azure/core-lro';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
7
  /** The RP custom operation error info. */
8
8
  export declare interface AffectedMoveResource {
@@ -314,6 +314,14 @@ export declare enum KnownMoveState {
314
314
  ResourceMoveCompleted = "ResourceMoveCompleted"
315
315
  }
316
316
 
317
+ /** Known values of {@link MoveType} that the service accepts. */
318
+ export declare enum KnownMoveType {
319
+ /** RegionToRegion */
320
+ RegionToRegion = "RegionToRegion",
321
+ /** RegionToZone */
322
+ RegionToZone = "RegionToZone"
323
+ }
324
+
317
325
  /** Known values of {@link ProvisioningState} that the service accepts. */
318
326
  export declare enum KnownProvisioningState {
319
327
  /** Succeeded */
@@ -464,14 +472,20 @@ export declare interface MoveCollection {
464
472
  /** Defines the move collection properties. */
465
473
  export declare interface MoveCollectionProperties {
466
474
  /** Gets or sets the source region. */
467
- sourceRegion: string;
475
+ sourceRegion?: string;
468
476
  /** Gets or sets the target region. */
469
- targetRegion: string;
477
+ targetRegion?: string;
478
+ /** Gets or sets the move region which indicates the region where the VM Regional to Zonal move will be conducted. */
479
+ moveRegion?: string;
470
480
  /**
471
481
  * Defines the provisioning states.
472
482
  * NOTE: This property will not be serialized. It can only be populated by the server.
473
483
  */
474
484
  readonly provisioningState?: ProvisioningState;
485
+ /** Gets or sets the version of move collection. */
486
+ version?: string;
487
+ /** Defines the MoveType. */
488
+ moveType?: MoveType;
475
489
  /**
476
490
  * Defines the move collection errors.
477
491
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -524,7 +538,7 @@ export declare interface MoveCollections {
524
538
  * @param moveCollectionName The Move Collection Name.
525
539
  * @param options The options parameters.
526
540
  */
527
- beginDelete(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<MoveCollectionsDeleteResponse>, MoveCollectionsDeleteResponse>>;
541
+ beginDelete(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<MoveCollectionsDeleteResponse>, MoveCollectionsDeleteResponse>>;
528
542
  /**
529
543
  * Deletes a move collection.
530
544
  * @param resourceGroupName The Resource Group Name.
@@ -548,7 +562,7 @@ export declare interface MoveCollections {
548
562
  * @param moveCollectionName The Move Collection Name.
549
563
  * @param options The options parameters.
550
564
  */
551
- beginPrepare(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsPrepareOptionalParams): Promise<PollerLike<PollOperationState<MoveCollectionsPrepareResponse>, MoveCollectionsPrepareResponse>>;
565
+ beginPrepare(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsPrepareOptionalParams): Promise<SimplePollerLike<OperationState<MoveCollectionsPrepareResponse>, MoveCollectionsPrepareResponse>>;
552
566
  /**
553
567
  * Initiates prepare for the set of resources included in the request body. The prepare operation is on
554
568
  * the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
@@ -568,7 +582,7 @@ export declare interface MoveCollections {
568
582
  * @param moveCollectionName The Move Collection Name.
569
583
  * @param options The options parameters.
570
584
  */
571
- beginInitiateMove(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsInitiateMoveOptionalParams): Promise<PollerLike<PollOperationState<MoveCollectionsInitiateMoveResponse>, MoveCollectionsInitiateMoveResponse>>;
585
+ beginInitiateMove(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsInitiateMoveOptionalParams): Promise<SimplePollerLike<OperationState<MoveCollectionsInitiateMoveResponse>, MoveCollectionsInitiateMoveResponse>>;
572
586
  /**
573
587
  * Moves the set of resources included in the request body. The move operation is triggered after the
574
588
  * moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
@@ -588,7 +602,7 @@ export declare interface MoveCollections {
588
602
  * @param moveCollectionName The Move Collection Name.
589
603
  * @param options The options parameters.
590
604
  */
591
- beginCommit(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsCommitOptionalParams): Promise<PollerLike<PollOperationState<MoveCollectionsCommitResponse>, MoveCollectionsCommitResponse>>;
605
+ beginCommit(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsCommitOptionalParams): Promise<SimplePollerLike<OperationState<MoveCollectionsCommitResponse>, MoveCollectionsCommitResponse>>;
592
606
  /**
593
607
  * Commits the set of resources included in the request body. The commit operation is triggered on the
594
608
  * moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
@@ -608,7 +622,7 @@ export declare interface MoveCollections {
608
622
  * @param moveCollectionName The Move Collection Name.
609
623
  * @param options The options parameters.
610
624
  */
611
- beginDiscard(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsDiscardOptionalParams): Promise<PollerLike<PollOperationState<MoveCollectionsDiscardResponse>, MoveCollectionsDiscardResponse>>;
625
+ beginDiscard(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsDiscardOptionalParams): Promise<SimplePollerLike<OperationState<MoveCollectionsDiscardResponse>, MoveCollectionsDiscardResponse>>;
612
626
  /**
613
627
  * Discards the set of resources included in the request body. The discard operation is triggered on
614
628
  * the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
@@ -625,7 +639,7 @@ export declare interface MoveCollections {
625
639
  * @param moveCollectionName The Move Collection Name.
626
640
  * @param options The options parameters.
627
641
  */
628
- beginResolveDependencies(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsResolveDependenciesOptionalParams): Promise<PollerLike<PollOperationState<MoveCollectionsResolveDependenciesResponse>, MoveCollectionsResolveDependenciesResponse>>;
642
+ beginResolveDependencies(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsResolveDependenciesOptionalParams): Promise<SimplePollerLike<OperationState<MoveCollectionsResolveDependenciesResponse>, MoveCollectionsResolveDependenciesResponse>>;
629
643
  /**
630
644
  * Computes, resolves and validate the dependencies of the moveResources in the move collection.
631
645
  * @param resourceGroupName The Resource Group Name.
@@ -641,7 +655,7 @@ export declare interface MoveCollections {
641
655
  * @param moveCollectionName
642
656
  * @param options The options parameters.
643
657
  */
644
- beginBulkRemove(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsBulkRemoveOptionalParams): Promise<PollerLike<PollOperationState<MoveCollectionsBulkRemoveResponse>, MoveCollectionsBulkRemoveResponse>>;
658
+ beginBulkRemove(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsBulkRemoveOptionalParams): Promise<SimplePollerLike<OperationState<MoveCollectionsBulkRemoveResponse>, MoveCollectionsBulkRemoveResponse>>;
645
659
  /**
646
660
  * Removes the set of move resources included in the request body from move collection. The
647
661
  * orchestration is done by service. To aid the user to prerequisite the operation the client can call
@@ -1008,7 +1022,7 @@ export declare interface MoveResources {
1008
1022
  * @param moveResourceName The Move Resource Name.
1009
1023
  * @param options The options parameters.
1010
1024
  */
1011
- beginCreate(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesCreateOptionalParams): Promise<PollerLike<PollOperationState<MoveResourcesCreateResponse>, MoveResourcesCreateResponse>>;
1025
+ beginCreate(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesCreateOptionalParams): Promise<SimplePollerLike<OperationState<MoveResourcesCreateResponse>, MoveResourcesCreateResponse>>;
1012
1026
  /**
1013
1027
  * Creates or updates a Move Resource in the move collection.
1014
1028
  * @param resourceGroupName The Resource Group Name.
@@ -1024,7 +1038,7 @@ export declare interface MoveResources {
1024
1038
  * @param moveResourceName The Move Resource Name.
1025
1039
  * @param options The options parameters.
1026
1040
  */
1027
- beginDelete(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesDeleteOptionalParams): Promise<PollerLike<PollOperationState<MoveResourcesDeleteResponse>, MoveResourcesDeleteResponse>>;
1041
+ beginDelete(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<MoveResourcesDeleteResponse>, MoveResourcesDeleteResponse>>;
1028
1042
  /**
1029
1043
  * Deletes a Move Resource from the move collection.
1030
1044
  * @param resourceGroupName The Resource Group Name.
@@ -1126,6 +1140,16 @@ export declare interface MoveResourceStatus {
1126
1140
  */
1127
1141
  export declare type MoveState = string;
1128
1142
 
1143
+ /**
1144
+ * Defines values for MoveType. \
1145
+ * {@link KnownMoveType} can be used interchangeably with MoveType,
1146
+ * this enum contains the known values that the service supports.
1147
+ * ### Known values supported by the service
1148
+ * **RegionToRegion** \
1149
+ * **RegionToZone**
1150
+ */
1151
+ export declare type MoveType = string;
1152
+
1129
1153
  /** Defines the network interface resource settings. */
1130
1154
  export declare interface NetworkInterfaceResourceSettings extends ResourceSettings {
1131
1155
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -1468,7 +1492,7 @@ export declare interface ResourceMoveRequest {
1468
1492
 
1469
1493
  export declare class ResourceMoverServiceAPI extends coreClient.ServiceClient {
1470
1494
  $host: string;
1471
- subscriptionId: string;
1495
+ subscriptionId?: string;
1472
1496
  apiVersion: string;
1473
1497
  /**
1474
1498
  * Initializes a new instance of the ResourceMoverServiceAPI class.
@@ -1477,6 +1501,7 @@ export declare class ResourceMoverServiceAPI extends coreClient.ServiceClient {
1477
1501
  * @param options The parameter options
1478
1502
  */
1479
1503
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ResourceMoverServiceAPIOptionalParams);
1504
+ constructor(credentials: coreAuth.TokenCredential, options?: ResourceMoverServiceAPIOptionalParams);
1480
1505
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1481
1506
  private addCustomApiVersionPolicy;
1482
1507
  moveCollections: MoveCollections;
@@ -1500,7 +1525,9 @@ export declare interface ResourceSettings {
1500
1525
  /** Polymorphic discriminator, which specifies the different types this object can be */
1501
1526
  resourceType: "Microsoft.Compute/virtualMachines" | "Microsoft.Compute/availabilitySets" | "Microsoft.Network/virtualNetworks" | "Microsoft.Network/networkInterfaces" | "Microsoft.Network/networkSecurityGroups" | "Microsoft.Network/loadBalancers" | "Microsoft.Sql/servers" | "Microsoft.Sql/servers/elasticPools" | "Microsoft.Sql/servers/databases" | "resourceGroups" | "Microsoft.Network/publicIPAddresses" | "Microsoft.KeyVault/vaults" | "Microsoft.Compute/diskEncryptionSets";
1502
1527
  /** Gets or sets the target Resource name. */
1503
- targetResourceName: string;
1528
+ targetResourceName?: string;
1529
+ /** Gets or sets the target resource group name. */
1530
+ targetResourceGroupName?: string;
1504
1531
  }
1505
1532
 
1506
1533
  export declare type ResourceSettingsUnion = ResourceSettings | VirtualMachineResourceSettings | AvailabilitySetResourceSettings | VirtualNetworkResourceSettings | NetworkInterfaceResourceSettings | NetworkSecurityGroupResourceSettings | LoadBalancerResourceSettings | SqlServerResourceSettings | SqlElasticPoolResourceSettings | SqlDatabaseResourceSettings | ResourceGroupResourceSettings | PublicIPAddressResourceSettings | KeyVaultResourceSettings | DiskEncryptionSetResourceSettings;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moveCollectionsBulkRemove.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsBulkRemove.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsBulkRemove.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Removes the set of move resources included in the request body from move collection. The orchestration is done by service. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
13
- *
14
- * @summary Removes the set of move resources included in the request body from move collection. The orchestration is done by service. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
15
- * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_BulkRemove.json
16
- */
17
- import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function moveCollectionsBulkRemove() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const moveCollectionName = "movecollection1";
24
- const body = {
25
- moveResources: [
26
- "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"
27
- ],
28
- validateOnly: false
29
- };
30
- const options = { body: body };
31
- const credential = new DefaultAzureCredential();
32
- const client = new ResourceMoverServiceAPI(credential, subscriptionId);
33
- const result = yield client.moveCollections.beginBulkRemoveAndWait(resourceGroupName, moveCollectionName, options);
34
- console.log(result);
35
- });
36
- }
37
- moveCollectionsBulkRemove().catch(console.error);
38
- //# sourceMappingURL=moveCollectionsBulkRemove.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsBulkRemove.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsBulkRemove.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAsB;YAC9B,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,sBAAsB,CAChE,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moveCollectionsCommit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsCommit.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsCommit.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
13
- *
14
- * @summary Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
15
- * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Commit.json
16
- */
17
- import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function moveCollectionsCommit() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const moveCollectionName = "movecollection1";
24
- const body = {
25
- moveResources: [
26
- "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"
27
- ],
28
- validateOnly: false
29
- };
30
- const options = { body: body };
31
- const credential = new DefaultAzureCredential();
32
- const client = new ResourceMoverServiceAPI(credential, subscriptionId);
33
- const result = yield client.moveCollections.beginCommitAndWait(resourceGroupName, moveCollectionName, options);
34
- console.log(result);
35
- });
36
- }
37
- moveCollectionsCommit().catch(console.error);
38
- //# sourceMappingURL=moveCollectionsCommit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsCommit.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsCommit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAkB;YAC1B,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moveCollectionsCreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsCreate.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsCreate.ts"],"names":[],"mappings":""}
@@ -1,37 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Creates or updates a move collection.
13
- *
14
- * @summary Creates or updates a move collection.
15
- * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Create.json
16
- */
17
- import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function moveCollectionsCreate() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const moveCollectionName = "movecollection1";
24
- const body = {
25
- identity: { type: "SystemAssigned" },
26
- location: "eastus2",
27
- properties: { sourceRegion: "eastus", targetRegion: "westus" }
28
- };
29
- const options = { body: body };
30
- const credential = new DefaultAzureCredential();
31
- const client = new ResourceMoverServiceAPI(credential, subscriptionId);
32
- const result = yield client.moveCollections.create(resourceGroupName, moveCollectionName, options);
33
- console.log(result);
34
- });
35
- }
36
- moveCollectionsCreate().catch(console.error);
37
- //# sourceMappingURL=moveCollectionsCreate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsCreate.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsCreate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAmB;YAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE;SAC/D,CAAC;QACF,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAChD,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moveCollectionsDelete.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsDelete.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsDelete.ts"],"names":[],"mappings":""}
@@ -1,31 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Deletes a move collection.
13
- *
14
- * @summary Deletes a move collection.
15
- * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Delete.json
16
- */
17
- import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function moveCollectionsDelete() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const moveCollectionName = "movecollection1";
24
- const credential = new DefaultAzureCredential();
25
- const client = new ResourceMoverServiceAPI(credential, subscriptionId);
26
- const result = yield client.moveCollections.beginDeleteAndWait(resourceGroupName, moveCollectionName);
27
- console.log(result);
28
- });
29
- }
30
- moveCollectionsDelete().catch(console.error);
31
- //# sourceMappingURL=moveCollectionsDelete.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsDelete.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsDelete.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moveCollectionsDiscard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsDiscard.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsDiscard.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
13
- *
14
- * @summary Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
15
- * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Discard.json
16
- */
17
- import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function moveCollectionsDiscard() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const moveCollectionName = "movecollection1";
24
- const body = {
25
- moveResources: [
26
- "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"
27
- ],
28
- validateOnly: false
29
- };
30
- const options = { body: body };
31
- const credential = new DefaultAzureCredential();
32
- const client = new ResourceMoverServiceAPI(credential, subscriptionId);
33
- const result = yield client.moveCollections.beginDiscardAndWait(resourceGroupName, moveCollectionName, options);
34
- console.log(result);
35
- });
36
- }
37
- moveCollectionsDiscard().catch(console.error);
38
- //# sourceMappingURL=moveCollectionsDiscard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsDiscard.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsDiscard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAmB;YAC3B,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC7D,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moveCollectionsGet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsGet.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsGet.ts"],"names":[],"mappings":""}
@@ -1,31 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Gets the move collection.
13
- *
14
- * @summary Gets the move collection.
15
- * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Get.json
16
- */
17
- import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function moveCollectionsGet() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const moveCollectionName = "movecollection1";
24
- const credential = new DefaultAzureCredential();
25
- const client = new ResourceMoverServiceAPI(credential, subscriptionId);
26
- const result = yield client.moveCollections.get(resourceGroupName, moveCollectionName);
27
- console.log(result);
28
- });
29
- }
30
- moveCollectionsGet().catch(console.error);
31
- //# sourceMappingURL=moveCollectionsGet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsGet.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moveCollectionsInitiateMove.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsInitiateMove.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsInitiateMove.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Moves the set of resources included in the request body. The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
13
- *
14
- * @summary Moves the set of resources included in the request body. The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
15
- * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_InitiateMove.json
16
- */
17
- import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function moveCollectionsInitiateMove() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const moveCollectionName = "movecollection1";
24
- const body = {
25
- moveResources: [
26
- "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"
27
- ],
28
- validateOnly: false
29
- };
30
- const options = { body: body };
31
- const credential = new DefaultAzureCredential();
32
- const client = new ResourceMoverServiceAPI(credential, subscriptionId);
33
- const result = yield client.moveCollections.beginInitiateMoveAndWait(resourceGroupName, moveCollectionName, options);
34
- console.log(result);
35
- });
36
- }
37
- moveCollectionsInitiateMove().catch(console.error);
38
- //# sourceMappingURL=moveCollectionsInitiateMove.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsInitiateMove.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsInitiateMove.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAwB;YAChC,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,wBAAwB,CAClE,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moveCollectionsListMoveCollectionsByResourceGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moveCollectionsListMoveCollectionsByResourceGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.ts"],"names":[],"mappings":""}