@azure/arm-resourcemover 1.1.1 → 2.0.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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -83
- package/dist/index.js +3878 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsBulkRemove.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsBulkRemove.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsBulkRemove.js +38 -0
- package/dist-esm/samples-dev/moveCollectionsBulkRemove.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsCommit.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsCommit.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsCommit.js +38 -0
- package/dist-esm/samples-dev/moveCollectionsCommit.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsCreate.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsCreate.js +37 -0
- package/dist-esm/samples-dev/moveCollectionsCreate.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsDelete.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsDelete.js +31 -0
- package/dist-esm/samples-dev/moveCollectionsDelete.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsDiscard.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsDiscard.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsDiscard.js +38 -0
- package/dist-esm/samples-dev/moveCollectionsDiscard.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsGet.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsGet.js +31 -0
- package/dist-esm/samples-dev/moveCollectionsGet.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsInitiateMove.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsInitiateMove.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsInitiateMove.js +38 -0
- package/dist-esm/samples-dev/moveCollectionsInitiateMove.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.js +43 -0
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsPrepare.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsPrepare.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsPrepare.js +38 -0
- package/dist-esm/samples-dev/moveCollectionsPrepare.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsResolveDependencies.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsResolveDependencies.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsResolveDependencies.js +31 -0
- package/dist-esm/samples-dev/moveCollectionsResolveDependencies.js.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/moveCollectionsUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveCollectionsUpdate.js +36 -0
- package/dist-esm/samples-dev/moveCollectionsUpdate.js.map +1 -0
- package/dist-esm/samples-dev/moveResourcesCreate.d.ts +2 -0
- package/dist-esm/samples-dev/moveResourcesCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveResourcesCreate.js +54 -0
- package/dist-esm/samples-dev/moveResourcesCreate.js.map +1 -0
- package/dist-esm/samples-dev/moveResourcesDelete.d.ts +2 -0
- package/dist-esm/samples-dev/moveResourcesDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveResourcesDelete.js +32 -0
- package/dist-esm/samples-dev/moveResourcesDelete.js.map +1 -0
- package/dist-esm/samples-dev/moveResourcesGet.d.ts +2 -0
- package/dist-esm/samples-dev/moveResourcesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveResourcesGet.js +32 -0
- package/dist-esm/samples-dev/moveResourcesGet.js.map +1 -0
- package/dist-esm/samples-dev/moveResourcesList.d.ts +2 -0
- package/dist-esm/samples-dev/moveResourcesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/moveResourcesList.js +45 -0
- package/dist-esm/samples-dev/moveResourcesList.js.map +1 -0
- package/dist-esm/samples-dev/operationsDiscoveryGet.d.ts +2 -0
- package/dist-esm/samples-dev/operationsDiscoveryGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsDiscoveryGet.js +29 -0
- package/dist-esm/samples-dev/operationsDiscoveryGet.js.map +1 -0
- package/dist-esm/samples-dev/requiredForGet.d.ts +2 -0
- package/dist-esm/samples-dev/requiredForGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/requiredForGet.js +32 -0
- package/dist-esm/samples-dev/requiredForGet.js.map +1 -0
- package/dist-esm/samples-dev/unresolvedDependenciesGet.d.ts +2 -0
- package/dist-esm/samples-dev/unresolvedDependenciesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/unresolvedDependenciesGet.js +45 -0
- package/dist-esm/samples-dev/unresolvedDependenciesGet.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/unresolvedDependenciesMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1273 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +93 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +88 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1091 -983
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +23 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +173 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/moveCollections.d.ts +211 -0
- package/dist-esm/src/operations/moveCollections.d.ts.map +1 -0
- package/dist-esm/src/operations/moveCollections.js +961 -0
- package/dist-esm/src/operations/moveCollections.js.map +1 -0
- package/dist-esm/src/operations/moveResources.d.ts +79 -0
- package/dist-esm/src/operations/moveResources.d.ts.map +1 -0
- package/dist-esm/src/operations/moveResources.js +339 -0
- package/dist-esm/src/operations/moveResources.js.map +1 -0
- package/dist-esm/src/operations/operationsDiscoveryOperations.d.ts +15 -0
- package/dist-esm/src/operations/operationsDiscoveryOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/operationsDiscoveryOperations.js +43 -0
- package/dist-esm/src/operations/operationsDiscoveryOperations.js.map +1 -0
- package/dist-esm/src/operations/unresolvedDependencies.d.ts +38 -0
- package/dist-esm/src/operations/unresolvedDependencies.d.ts.map +1 -0
- package/dist-esm/src/operations/unresolvedDependencies.js +147 -0
- package/dist-esm/src/operations/unresolvedDependencies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/moveCollections.d.ts +173 -0
- package/dist-esm/src/operationsInterfaces/moveCollections.d.ts.map +1 -0
- package/{src/models/operationsDiscoveryOperationsMappers.ts → dist-esm/src/operationsInterfaces/moveCollections.js} +2 -8
- package/dist-esm/src/operationsInterfaces/moveCollections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/moveResources.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/moveResources.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/moveResources.js} +2 -1
- package/dist-esm/src/operationsInterfaces/moveResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.d.ts.map +1 -0
- package/{esm/models/operationsDiscoveryOperationsMappers.js → dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/unresolvedDependencies.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/unresolvedDependencies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/unresolvedDependencies.js +9 -0
- package/dist-esm/src/operationsInterfaces/unresolvedDependencies.js.map +1 -0
- package/dist-esm/src/resourceMoverServiceAPI.d.ts +21 -0
- package/dist-esm/src/resourceMoverServiceAPI.d.ts.map +1 -0
- package/dist-esm/src/resourceMoverServiceAPI.js +54 -0
- package/dist-esm/src/resourceMoverServiceAPI.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +77 -33
- package/review/arm-resourcemover.api.md +946 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1043 -1764
- package/src/models/mappers.ts +1096 -976
- package/src/models/parameters.ts +128 -48
- package/src/operations/index.ts +1 -2
- package/src/operations/moveCollections.ts +1014 -621
- package/src/operations/moveResources.ts +357 -203
- package/src/operations/operationsDiscoveryOperations.ts +28 -43
- package/src/operations/unresolvedDependencies.ts +142 -87
- package/src/{models/unresolvedDependenciesMappers.ts → operationsInterfaces/index.ts} +4 -8
- package/src/operationsInterfaces/moveCollections.ts +321 -0
- package/src/operationsInterfaces/moveResources.ts +111 -0
- package/src/operationsInterfaces/operationsDiscoveryOperations.ts +20 -0
- package/src/operationsInterfaces/unresolvedDependencies.ts +29 -0
- package/src/resourceMoverServiceAPI.ts +78 -38
- package/tsconfig.json +5 -4
- package/types/arm-resourcemover.d.ts +1673 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-resourcemover.js +0 -3490
- package/dist/arm-resourcemover.js.map +0 -1
- package/dist/arm-resourcemover.min.js +0 -1
- package/dist/arm-resourcemover.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -1997
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -87
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/moveCollectionsMappers.d.ts +0 -2
- package/esm/models/moveCollectionsMappers.d.ts.map +0 -1
- package/esm/models/moveCollectionsMappers.js +0 -9
- package/esm/models/moveCollectionsMappers.js.map +0 -1
- package/esm/models/moveResourcesMappers.d.ts +0 -2
- package/esm/models/moveResourcesMappers.d.ts.map +0 -1
- package/esm/models/moveResourcesMappers.js +0 -9
- package/esm/models/moveResourcesMappers.js.map +0 -1
- package/esm/models/operationsDiscoveryOperationsMappers.d.ts +0 -2
- package/esm/models/operationsDiscoveryOperationsMappers.d.ts.map +0 -1
- package/esm/models/operationsDiscoveryOperationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -13
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -126
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/unresolvedDependenciesMappers.d.ts +0 -2
- package/esm/models/unresolvedDependenciesMappers.d.ts.map +0 -1
- package/esm/models/unresolvedDependenciesMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/moveCollections.d.ts +0 -316
- package/esm/operations/moveCollections.d.ts.map +0 -1
- package/esm/operations/moveCollections.js +0 -699
- package/esm/operations/moveCollections.js.map +0 -1
- package/esm/operations/moveResources.d.ts +0 -113
- package/esm/operations/moveResources.d.ts.map +0 -1
- package/esm/operations/moveResources.js +0 -239
- package/esm/operations/moveResources.js.map +0 -1
- package/esm/operations/operationsDiscoveryOperations.d.ts +0 -27
- package/esm/operations/operationsDiscoveryOperations.d.ts.map +0 -1
- package/esm/operations/operationsDiscoveryOperations.js +0 -50
- package/esm/operations/operationsDiscoveryOperations.js.map +0 -1
- package/esm/operations/unresolvedDependencies.d.ts +0 -52
- package/esm/operations/unresolvedDependencies.d.ts.map +0 -1
- package/esm/operations/unresolvedDependencies.js +0 -92
- package/esm/operations/unresolvedDependencies.js.map +0 -1
- package/esm/resourceMoverServiceAPI.d.ts +0 -27
- package/esm/resourceMoverServiceAPI.d.ts.map +0 -1
- package/esm/resourceMoverServiceAPI.js +0 -40
- package/esm/resourceMoverServiceAPI.js.map +0 -1
- package/esm/resourceMoverServiceAPIContext.d.ts +0 -22
- package/esm/resourceMoverServiceAPIContext.d.ts.map +0 -1
- package/esm/resourceMoverServiceAPIContext.js +0 -60
- package/esm/resourceMoverServiceAPIContext.js.map +0 -1
- package/src/models/moveCollectionsMappers.ts +0 -68
- package/src/models/moveResourcesMappers.ts +0 -63
- package/src/resourceMoverServiceAPIContext.ts +0 -67
|
@@ -3,537 +3,942 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { MoveCollections } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { ResourceMoverServiceAPI } from "../resourceMoverServiceAPI";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
MoveCollection,
|
|
19
|
+
MoveCollectionsListMoveCollectionsBySubscriptionNextOptionalParams,
|
|
20
|
+
MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams,
|
|
21
|
+
MoveCollectionsListMoveCollectionsByResourceGroupNextOptionalParams,
|
|
22
|
+
MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams,
|
|
23
|
+
MoveCollectionsCreateOptionalParams,
|
|
24
|
+
MoveCollectionsCreateResponse,
|
|
25
|
+
MoveCollectionsUpdateOptionalParams,
|
|
26
|
+
MoveCollectionsUpdateResponse,
|
|
27
|
+
MoveCollectionsDeleteOptionalParams,
|
|
28
|
+
MoveCollectionsDeleteResponse,
|
|
29
|
+
MoveCollectionsGetOptionalParams,
|
|
30
|
+
MoveCollectionsGetResponse,
|
|
31
|
+
MoveCollectionsPrepareOptionalParams,
|
|
32
|
+
MoveCollectionsPrepareResponse,
|
|
33
|
+
MoveCollectionsInitiateMoveOptionalParams,
|
|
34
|
+
MoveCollectionsInitiateMoveResponse,
|
|
35
|
+
MoveCollectionsCommitOptionalParams,
|
|
36
|
+
MoveCollectionsCommitResponse,
|
|
37
|
+
MoveCollectionsDiscardOptionalParams,
|
|
38
|
+
MoveCollectionsDiscardResponse,
|
|
39
|
+
MoveCollectionsResolveDependenciesOptionalParams,
|
|
40
|
+
MoveCollectionsResolveDependenciesResponse,
|
|
41
|
+
MoveCollectionsBulkRemoveOptionalParams,
|
|
42
|
+
MoveCollectionsBulkRemoveResponse,
|
|
43
|
+
MoveCollectionsListMoveCollectionsBySubscriptionResponse,
|
|
44
|
+
MoveCollectionsListMoveCollectionsByResourceGroupResponse,
|
|
45
|
+
MoveCollectionsListRequiredForOptionalParams,
|
|
46
|
+
MoveCollectionsListRequiredForResponse,
|
|
47
|
+
MoveCollectionsListMoveCollectionsBySubscriptionNextResponse,
|
|
48
|
+
MoveCollectionsListMoveCollectionsByResourceGroupNextResponse
|
|
49
|
+
} from "../models";
|
|
16
50
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
51
|
+
/// <reference lib="esnext.asynciterable" />
|
|
52
|
+
/** Class containing MoveCollections operations. */
|
|
53
|
+
export class MoveCollectionsImpl implements MoveCollections {
|
|
54
|
+
private readonly client: ResourceMoverServiceAPI;
|
|
20
55
|
|
|
21
56
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
57
|
+
* Initialize a new instance of the class MoveCollections class.
|
|
58
|
+
* @param client Reference to the service client
|
|
24
59
|
*/
|
|
25
|
-
constructor(client:
|
|
60
|
+
constructor(client: ResourceMoverServiceAPI) {
|
|
26
61
|
this.client = client;
|
|
27
62
|
}
|
|
28
63
|
|
|
29
64
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @param
|
|
32
|
-
* @param moveCollectionName The Move Collection Name.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.MoveCollectionsCreateResponse>
|
|
35
|
-
*/
|
|
36
|
-
create(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsCreateOptionalParams): Promise<Models.MoveCollectionsCreateResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param resourceGroupName The Resource Group Name.
|
|
39
|
-
* @param moveCollectionName The Move Collection Name.
|
|
40
|
-
* @param callback The callback
|
|
41
|
-
*/
|
|
42
|
-
create(resourceGroupName: string, moveCollectionName: string, callback: msRest.ServiceCallback<Models.MoveCollection>): void;
|
|
43
|
-
/**
|
|
44
|
-
* @param resourceGroupName The Resource Group Name.
|
|
45
|
-
* @param moveCollectionName The Move Collection Name.
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
65
|
+
* Get all the Move Collections in the subscription.
|
|
66
|
+
* @param options The options parameters.
|
|
48
67
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
68
|
+
public listMoveCollectionsBySubscription(
|
|
69
|
+
options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
|
|
70
|
+
): PagedAsyncIterableIterator<MoveCollection> {
|
|
71
|
+
const iter = this.listMoveCollectionsBySubscriptionPagingAll(options);
|
|
72
|
+
return {
|
|
73
|
+
next() {
|
|
74
|
+
return iter.next();
|
|
75
|
+
},
|
|
76
|
+
[Symbol.asyncIterator]() {
|
|
77
|
+
return this;
|
|
56
78
|
},
|
|
57
|
-
|
|
58
|
-
|
|
79
|
+
byPage: () => {
|
|
80
|
+
return this.listMoveCollectionsBySubscriptionPagingPage(options);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private async *listMoveCollectionsBySubscriptionPagingPage(
|
|
86
|
+
options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
|
|
87
|
+
): AsyncIterableIterator<MoveCollection[]> {
|
|
88
|
+
let result = await this._listMoveCollectionsBySubscription(options);
|
|
89
|
+
yield result.value || [];
|
|
90
|
+
let continuationToken = result.nextLink;
|
|
91
|
+
while (continuationToken) {
|
|
92
|
+
result = await this._listMoveCollectionsBySubscriptionNext(
|
|
93
|
+
continuationToken,
|
|
94
|
+
options
|
|
95
|
+
);
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
yield result.value || [];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private async *listMoveCollectionsBySubscriptionPagingAll(
|
|
102
|
+
options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
|
|
103
|
+
): AsyncIterableIterator<MoveCollection> {
|
|
104
|
+
for await (const page of this.listMoveCollectionsBySubscriptionPagingPage(
|
|
105
|
+
options
|
|
106
|
+
)) {
|
|
107
|
+
yield* page;
|
|
108
|
+
}
|
|
59
109
|
}
|
|
60
110
|
|
|
61
111
|
/**
|
|
62
|
-
*
|
|
63
|
-
* @param resourceGroupName The Resource Group Name.
|
|
64
|
-
* @param moveCollectionName The Move Collection Name.
|
|
65
|
-
* @param [options] The optional parameters
|
|
66
|
-
* @returns Promise<Models.MoveCollectionsUpdateResponse>
|
|
67
|
-
*/
|
|
68
|
-
update(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsUpdateOptionalParams): Promise<Models.MoveCollectionsUpdateResponse>;
|
|
69
|
-
/**
|
|
70
|
-
* @param resourceGroupName The Resource Group Name.
|
|
71
|
-
* @param moveCollectionName The Move Collection Name.
|
|
72
|
-
* @param callback The callback
|
|
73
|
-
*/
|
|
74
|
-
update(resourceGroupName: string, moveCollectionName: string, callback: msRest.ServiceCallback<Models.MoveCollection>): void;
|
|
75
|
-
/**
|
|
112
|
+
* Get all the Move Collections in the resource group.
|
|
76
113
|
* @param resourceGroupName The Resource Group Name.
|
|
77
|
-
* @param
|
|
78
|
-
* @param options The optional parameters
|
|
79
|
-
* @param callback The callback
|
|
114
|
+
* @param options The options parameters.
|
|
80
115
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
116
|
+
public listMoveCollectionsByResourceGroup(
|
|
117
|
+
resourceGroupName: string,
|
|
118
|
+
options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
|
|
119
|
+
): PagedAsyncIterableIterator<MoveCollection> {
|
|
120
|
+
const iter = this.listMoveCollectionsByResourceGroupPagingAll(
|
|
121
|
+
resourceGroupName,
|
|
122
|
+
options
|
|
123
|
+
);
|
|
124
|
+
return {
|
|
125
|
+
next() {
|
|
126
|
+
return iter.next();
|
|
127
|
+
},
|
|
128
|
+
[Symbol.asyncIterator]() {
|
|
129
|
+
return this;
|
|
130
|
+
},
|
|
131
|
+
byPage: () => {
|
|
132
|
+
return this.listMoveCollectionsByResourceGroupPagingPage(
|
|
133
|
+
resourceGroupName,
|
|
134
|
+
options
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
private async *listMoveCollectionsByResourceGroupPagingPage(
|
|
141
|
+
resourceGroupName: string,
|
|
142
|
+
options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
|
|
143
|
+
): AsyncIterableIterator<MoveCollection[]> {
|
|
144
|
+
let result = await this._listMoveCollectionsByResourceGroup(
|
|
145
|
+
resourceGroupName,
|
|
146
|
+
options
|
|
147
|
+
);
|
|
148
|
+
yield result.value || [];
|
|
149
|
+
let continuationToken = result.nextLink;
|
|
150
|
+
while (continuationToken) {
|
|
151
|
+
result = await this._listMoveCollectionsByResourceGroupNext(
|
|
85
152
|
resourceGroupName,
|
|
86
|
-
|
|
153
|
+
continuationToken,
|
|
87
154
|
options
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
155
|
+
);
|
|
156
|
+
continuationToken = result.nextLink;
|
|
157
|
+
yield result.value || [];
|
|
158
|
+
}
|
|
91
159
|
}
|
|
92
160
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
161
|
+
private async *listMoveCollectionsByResourceGroupPagingAll(
|
|
162
|
+
resourceGroupName: string,
|
|
163
|
+
options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
|
|
164
|
+
): AsyncIterableIterator<MoveCollection> {
|
|
165
|
+
for await (const page of this.listMoveCollectionsByResourceGroupPagingPage(
|
|
166
|
+
resourceGroupName,
|
|
167
|
+
options
|
|
168
|
+
)) {
|
|
169
|
+
yield* page;
|
|
170
|
+
}
|
|
103
171
|
}
|
|
104
172
|
|
|
105
173
|
/**
|
|
106
|
-
*
|
|
107
|
-
* @param resourceGroupName The Resource Group Name.
|
|
108
|
-
* @param moveCollectionName The Move Collection Name.
|
|
109
|
-
* @param [options] The optional parameters
|
|
110
|
-
* @returns Promise<Models.MoveCollectionsGetResponse>
|
|
111
|
-
*/
|
|
112
|
-
get(resourceGroupName: string, moveCollectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.MoveCollectionsGetResponse>;
|
|
113
|
-
/**
|
|
174
|
+
* Creates or updates a move collection.
|
|
114
175
|
* @param resourceGroupName The Resource Group Name.
|
|
115
176
|
* @param moveCollectionName The Move Collection Name.
|
|
116
|
-
* @param
|
|
177
|
+
* @param options The options parameters.
|
|
117
178
|
*/
|
|
118
|
-
|
|
179
|
+
create(
|
|
180
|
+
resourceGroupName: string,
|
|
181
|
+
moveCollectionName: string,
|
|
182
|
+
options?: MoveCollectionsCreateOptionalParams
|
|
183
|
+
): Promise<MoveCollectionsCreateResponse> {
|
|
184
|
+
return this.client.sendOperationRequest(
|
|
185
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
186
|
+
createOperationSpec
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
119
190
|
/**
|
|
191
|
+
* Updates a move collection.
|
|
120
192
|
* @param resourceGroupName The Resource Group Name.
|
|
121
193
|
* @param moveCollectionName The Move Collection Name.
|
|
122
|
-
* @param options The
|
|
123
|
-
* @param callback The callback
|
|
194
|
+
* @param options The options parameters.
|
|
124
195
|
*/
|
|
125
|
-
|
|
126
|
-
|
|
196
|
+
update(
|
|
197
|
+
resourceGroupName: string,
|
|
198
|
+
moveCollectionName: string,
|
|
199
|
+
options?: MoveCollectionsUpdateOptionalParams
|
|
200
|
+
): Promise<MoveCollectionsUpdateResponse> {
|
|
127
201
|
return this.client.sendOperationRequest(
|
|
128
|
-
{
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
options
|
|
132
|
-
},
|
|
133
|
-
getOperationSpec,
|
|
134
|
-
callback) as Promise<Models.MoveCollectionsGetResponse>;
|
|
202
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
203
|
+
updateOperationSpec
|
|
204
|
+
);
|
|
135
205
|
}
|
|
136
206
|
|
|
137
207
|
/**
|
|
138
|
-
*
|
|
139
|
-
* is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a
|
|
140
|
-
* successful completion the moveResource moveState do a transition to MovePending. To aid the user
|
|
141
|
-
* to prerequisite the operation the client can call operation with validateOnly property set to
|
|
142
|
-
* true.
|
|
208
|
+
* Deletes a move collection.
|
|
143
209
|
* @param resourceGroupName The Resource Group Name.
|
|
144
210
|
* @param moveCollectionName The Move Collection Name.
|
|
145
|
-
* @param
|
|
146
|
-
* @returns Promise<Models.MoveCollectionsPrepareResponse>
|
|
211
|
+
* @param options The options parameters.
|
|
147
212
|
*/
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
213
|
+
async beginDelete(
|
|
214
|
+
resourceGroupName: string,
|
|
215
|
+
moveCollectionName: string,
|
|
216
|
+
options?: MoveCollectionsDeleteOptionalParams
|
|
217
|
+
): Promise<
|
|
218
|
+
PollerLike<
|
|
219
|
+
PollOperationState<MoveCollectionsDeleteResponse>,
|
|
220
|
+
MoveCollectionsDeleteResponse
|
|
221
|
+
>
|
|
222
|
+
> {
|
|
223
|
+
const directSendOperation = async (
|
|
224
|
+
args: coreClient.OperationArguments,
|
|
225
|
+
spec: coreClient.OperationSpec
|
|
226
|
+
): Promise<MoveCollectionsDeleteResponse> => {
|
|
227
|
+
return this.client.sendOperationRequest(args, spec);
|
|
228
|
+
};
|
|
229
|
+
const sendOperation = async (
|
|
230
|
+
args: coreClient.OperationArguments,
|
|
231
|
+
spec: coreClient.OperationSpec
|
|
232
|
+
) => {
|
|
233
|
+
let currentRawResponse:
|
|
234
|
+
| coreClient.FullOperationResponse
|
|
235
|
+
| undefined = undefined;
|
|
236
|
+
const providedCallback = args.options?.onResponse;
|
|
237
|
+
const callback: coreClient.RawResponseCallback = (
|
|
238
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
239
|
+
flatResponse: unknown
|
|
240
|
+
) => {
|
|
241
|
+
currentRawResponse = rawResponse;
|
|
242
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
243
|
+
};
|
|
244
|
+
const updatedArgs = {
|
|
245
|
+
...args,
|
|
246
|
+
options: {
|
|
247
|
+
...args.options,
|
|
248
|
+
onResponse: callback
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
252
|
+
return {
|
|
253
|
+
flatResponse,
|
|
254
|
+
rawResponse: {
|
|
255
|
+
statusCode: currentRawResponse!.status,
|
|
256
|
+
body: currentRawResponse!.parsedBody,
|
|
257
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
const lro = new LroImpl(
|
|
263
|
+
sendOperation,
|
|
264
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
265
|
+
deleteOperationSpec
|
|
266
|
+
);
|
|
267
|
+
return new LroEngine(lro, {
|
|
268
|
+
resumeFrom: options?.resumeFrom,
|
|
269
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
270
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
271
|
+
});
|
|
151
272
|
}
|
|
152
273
|
|
|
153
274
|
/**
|
|
154
|
-
*
|
|
155
|
-
* the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion
|
|
156
|
-
* the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
|
|
157
|
-
* operation the client can call operation with validateOnly property set to true.
|
|
275
|
+
* Deletes a move collection.
|
|
158
276
|
* @param resourceGroupName The Resource Group Name.
|
|
159
277
|
* @param moveCollectionName The Move Collection Name.
|
|
160
|
-
* @param
|
|
161
|
-
* @returns Promise<Models.MoveCollectionsInitiateMoveResponse>
|
|
278
|
+
* @param options The options parameters.
|
|
162
279
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
280
|
+
async beginDeleteAndWait(
|
|
281
|
+
resourceGroupName: string,
|
|
282
|
+
moveCollectionName: string,
|
|
283
|
+
options?: MoveCollectionsDeleteOptionalParams
|
|
284
|
+
): Promise<MoveCollectionsDeleteResponse> {
|
|
285
|
+
const poller = await this.beginDelete(
|
|
286
|
+
resourceGroupName,
|
|
287
|
+
moveCollectionName,
|
|
288
|
+
options
|
|
289
|
+
);
|
|
290
|
+
return poller.pollUntilDone();
|
|
166
291
|
}
|
|
167
292
|
|
|
168
293
|
/**
|
|
169
|
-
*
|
|
170
|
-
* the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion
|
|
171
|
-
* the moveResource moveState do a transition to Committed. To aid the user to prerequisite the
|
|
172
|
-
* operation the client can call operation with validateOnly property set to true.
|
|
294
|
+
* Gets the move collection.
|
|
173
295
|
* @param resourceGroupName The Resource Group Name.
|
|
174
296
|
* @param moveCollectionName The Move Collection Name.
|
|
175
|
-
* @param
|
|
176
|
-
* @returns Promise<Models.MoveCollectionsCommitResponse>
|
|
297
|
+
* @param options The options parameters.
|
|
177
298
|
*/
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
299
|
+
get(
|
|
300
|
+
resourceGroupName: string,
|
|
301
|
+
moveCollectionName: string,
|
|
302
|
+
options?: MoveCollectionsGetOptionalParams
|
|
303
|
+
): Promise<MoveCollectionsGetResponse> {
|
|
304
|
+
return this.client.sendOperationRequest(
|
|
305
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
306
|
+
getOperationSpec
|
|
307
|
+
);
|
|
181
308
|
}
|
|
182
309
|
|
|
183
310
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
311
|
+
* Initiates prepare for the set of resources included in the request body. The prepare operation is on
|
|
312
|
+
* the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
|
|
186
313
|
* completion the moveResource moveState do a transition to MovePending. To aid the user to
|
|
187
314
|
* prerequisite the operation the client can call operation with validateOnly property set to true.
|
|
188
315
|
* @param resourceGroupName The Resource Group Name.
|
|
189
316
|
* @param moveCollectionName The Move Collection Name.
|
|
190
|
-
* @param
|
|
191
|
-
* @returns Promise<Models.MoveCollectionsDiscardResponse>
|
|
317
|
+
* @param options The options parameters.
|
|
192
318
|
*/
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
319
|
+
async beginPrepare(
|
|
320
|
+
resourceGroupName: string,
|
|
321
|
+
moveCollectionName: string,
|
|
322
|
+
options?: MoveCollectionsPrepareOptionalParams
|
|
323
|
+
): Promise<
|
|
324
|
+
PollerLike<
|
|
325
|
+
PollOperationState<MoveCollectionsPrepareResponse>,
|
|
326
|
+
MoveCollectionsPrepareResponse
|
|
327
|
+
>
|
|
328
|
+
> {
|
|
329
|
+
const directSendOperation = async (
|
|
330
|
+
args: coreClient.OperationArguments,
|
|
331
|
+
spec: coreClient.OperationSpec
|
|
332
|
+
): Promise<MoveCollectionsPrepareResponse> => {
|
|
333
|
+
return this.client.sendOperationRequest(args, spec);
|
|
334
|
+
};
|
|
335
|
+
const sendOperation = async (
|
|
336
|
+
args: coreClient.OperationArguments,
|
|
337
|
+
spec: coreClient.OperationSpec
|
|
338
|
+
) => {
|
|
339
|
+
let currentRawResponse:
|
|
340
|
+
| coreClient.FullOperationResponse
|
|
341
|
+
| undefined = undefined;
|
|
342
|
+
const providedCallback = args.options?.onResponse;
|
|
343
|
+
const callback: coreClient.RawResponseCallback = (
|
|
344
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
345
|
+
flatResponse: unknown
|
|
346
|
+
) => {
|
|
347
|
+
currentRawResponse = rawResponse;
|
|
348
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
349
|
+
};
|
|
350
|
+
const updatedArgs = {
|
|
351
|
+
...args,
|
|
352
|
+
options: {
|
|
353
|
+
...args.options,
|
|
354
|
+
onResponse: callback
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
358
|
+
return {
|
|
359
|
+
flatResponse,
|
|
360
|
+
rawResponse: {
|
|
361
|
+
statusCode: currentRawResponse!.status,
|
|
362
|
+
body: currentRawResponse!.parsedBody,
|
|
363
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
const lro = new LroImpl(
|
|
369
|
+
sendOperation,
|
|
370
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
371
|
+
prepareOperationSpec
|
|
372
|
+
);
|
|
373
|
+
return new LroEngine(lro, {
|
|
374
|
+
resumeFrom: options?.resumeFrom,
|
|
375
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
376
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
377
|
+
});
|
|
196
378
|
}
|
|
197
379
|
|
|
198
380
|
/**
|
|
199
|
-
*
|
|
381
|
+
* Initiates prepare for the set of resources included in the request body. The prepare operation is on
|
|
382
|
+
* the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
|
|
383
|
+
* completion the moveResource moveState do a transition to MovePending. To aid the user to
|
|
384
|
+
* prerequisite the operation the client can call operation with validateOnly property set to true.
|
|
200
385
|
* @param resourceGroupName The Resource Group Name.
|
|
201
386
|
* @param moveCollectionName The Move Collection Name.
|
|
202
|
-
* @param
|
|
203
|
-
* @returns Promise<Models.MoveCollectionsResolveDependenciesResponse>
|
|
204
|
-
*/
|
|
205
|
-
resolveDependencies(resourceGroupName: string, moveCollectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.MoveCollectionsResolveDependenciesResponse> {
|
|
206
|
-
return this.beginResolveDependencies(resourceGroupName,moveCollectionName,options)
|
|
207
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.MoveCollectionsResolveDependenciesResponse>;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Removes the set of move resources included in the request body from move collection. The
|
|
212
|
-
* orchestration is done by service. To aid the user to prerequisite the operation the client can
|
|
213
|
-
* call operation with validateOnly property set to true.
|
|
214
|
-
* @param resourceGroupName
|
|
215
|
-
* @param moveCollectionName
|
|
216
|
-
* @param [options] The optional parameters
|
|
217
|
-
* @returns Promise<Models.MoveCollectionsBulkRemoveResponse>
|
|
387
|
+
* @param options The options parameters.
|
|
218
388
|
*/
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
389
|
+
async beginPrepareAndWait(
|
|
390
|
+
resourceGroupName: string,
|
|
391
|
+
moveCollectionName: string,
|
|
392
|
+
options?: MoveCollectionsPrepareOptionalParams
|
|
393
|
+
): Promise<MoveCollectionsPrepareResponse> {
|
|
394
|
+
const poller = await this.beginPrepare(
|
|
395
|
+
resourceGroupName,
|
|
396
|
+
moveCollectionName,
|
|
397
|
+
options
|
|
398
|
+
);
|
|
399
|
+
return poller.pollUntilDone();
|
|
222
400
|
}
|
|
223
401
|
|
|
224
402
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*/
|
|
230
|
-
listMoveCollectionsBySubscription(options?: msRest.RequestOptionsBase): Promise<Models.MoveCollectionsListMoveCollectionsBySubscriptionResponse>;
|
|
231
|
-
/**
|
|
232
|
-
* @param callback The callback
|
|
233
|
-
*/
|
|
234
|
-
listMoveCollectionsBySubscription(callback: msRest.ServiceCallback<Models.MoveCollectionResultList>): void;
|
|
235
|
-
/**
|
|
236
|
-
* @param options The optional parameters
|
|
237
|
-
* @param callback The callback
|
|
238
|
-
*/
|
|
239
|
-
listMoveCollectionsBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.MoveCollectionResultList>): void;
|
|
240
|
-
listMoveCollectionsBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MoveCollectionResultList>, callback?: msRest.ServiceCallback<Models.MoveCollectionResultList>): Promise<Models.MoveCollectionsListMoveCollectionsBySubscriptionResponse> {
|
|
241
|
-
return this.client.sendOperationRequest(
|
|
242
|
-
{
|
|
243
|
-
options
|
|
244
|
-
},
|
|
245
|
-
listMoveCollectionsBySubscriptionOperationSpec,
|
|
246
|
-
callback) as Promise<Models.MoveCollectionsListMoveCollectionsBySubscriptionResponse>;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Get all the Move Collections in the resource group.
|
|
251
|
-
* @summary Get all Move Collections.
|
|
252
|
-
* @param resourceGroupName The Resource Group Name.
|
|
253
|
-
* @param [options] The optional parameters
|
|
254
|
-
* @returns Promise<Models.MoveCollectionsListMoveCollectionsByResourceGroupResponse>
|
|
255
|
-
*/
|
|
256
|
-
listMoveCollectionsByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.MoveCollectionsListMoveCollectionsByResourceGroupResponse>;
|
|
257
|
-
/**
|
|
258
|
-
* @param resourceGroupName The Resource Group Name.
|
|
259
|
-
* @param callback The callback
|
|
260
|
-
*/
|
|
261
|
-
listMoveCollectionsByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.MoveCollectionResultList>): void;
|
|
262
|
-
/**
|
|
403
|
+
* Moves the set of resources included in the request body. The move operation is triggered after the
|
|
404
|
+
* moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
|
|
405
|
+
* moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
|
|
406
|
+
* operation the client can call operation with validateOnly property set to true.
|
|
263
407
|
* @param resourceGroupName The Resource Group Name.
|
|
264
|
-
* @param
|
|
265
|
-
* @param
|
|
408
|
+
* @param moveCollectionName The Move Collection Name.
|
|
409
|
+
* @param options The options parameters.
|
|
266
410
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
411
|
+
async beginInitiateMove(
|
|
412
|
+
resourceGroupName: string,
|
|
413
|
+
moveCollectionName: string,
|
|
414
|
+
options?: MoveCollectionsInitiateMoveOptionalParams
|
|
415
|
+
): Promise<
|
|
416
|
+
PollerLike<
|
|
417
|
+
PollOperationState<MoveCollectionsInitiateMoveResponse>,
|
|
418
|
+
MoveCollectionsInitiateMoveResponse
|
|
419
|
+
>
|
|
420
|
+
> {
|
|
421
|
+
const directSendOperation = async (
|
|
422
|
+
args: coreClient.OperationArguments,
|
|
423
|
+
spec: coreClient.OperationSpec
|
|
424
|
+
): Promise<MoveCollectionsInitiateMoveResponse> => {
|
|
425
|
+
return this.client.sendOperationRequest(args, spec);
|
|
426
|
+
};
|
|
427
|
+
const sendOperation = async (
|
|
428
|
+
args: coreClient.OperationArguments,
|
|
429
|
+
spec: coreClient.OperationSpec
|
|
430
|
+
) => {
|
|
431
|
+
let currentRawResponse:
|
|
432
|
+
| coreClient.FullOperationResponse
|
|
433
|
+
| undefined = undefined;
|
|
434
|
+
const providedCallback = args.options?.onResponse;
|
|
435
|
+
const callback: coreClient.RawResponseCallback = (
|
|
436
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
437
|
+
flatResponse: unknown
|
|
438
|
+
) => {
|
|
439
|
+
currentRawResponse = rawResponse;
|
|
440
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
441
|
+
};
|
|
442
|
+
const updatedArgs = {
|
|
443
|
+
...args,
|
|
444
|
+
options: {
|
|
445
|
+
...args.options,
|
|
446
|
+
onResponse: callback
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
450
|
+
return {
|
|
451
|
+
flatResponse,
|
|
452
|
+
rawResponse: {
|
|
453
|
+
statusCode: currentRawResponse!.status,
|
|
454
|
+
body: currentRawResponse!.parsedBody,
|
|
455
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
const lro = new LroImpl(
|
|
461
|
+
sendOperation,
|
|
462
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
463
|
+
initiateMoveOperationSpec
|
|
464
|
+
);
|
|
465
|
+
return new LroEngine(lro, {
|
|
466
|
+
resumeFrom: options?.resumeFrom,
|
|
467
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
468
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
469
|
+
});
|
|
276
470
|
}
|
|
277
471
|
|
|
278
472
|
/**
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* @param [options] The optional parameters
|
|
284
|
-
* @returns Promise<Models.MoveCollectionsListRequiredForResponse>
|
|
285
|
-
*/
|
|
286
|
-
listRequiredFor(resourceGroupName: string, moveCollectionName: string, sourceId: string, options?: msRest.RequestOptionsBase): Promise<Models.MoveCollectionsListRequiredForResponse>;
|
|
287
|
-
/**
|
|
288
|
-
* @param resourceGroupName The Resource Group Name.
|
|
289
|
-
* @param moveCollectionName The Move Collection Name.
|
|
290
|
-
* @param sourceId The sourceId for which the api is invoked.
|
|
291
|
-
* @param callback The callback
|
|
292
|
-
*/
|
|
293
|
-
listRequiredFor(resourceGroupName: string, moveCollectionName: string, sourceId: string, callback: msRest.ServiceCallback<Models.RequiredForResourcesCollection>): void;
|
|
294
|
-
/**
|
|
473
|
+
* Moves the set of resources included in the request body. The move operation is triggered after the
|
|
474
|
+
* moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
|
|
475
|
+
* moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
|
|
476
|
+
* operation the client can call operation with validateOnly property set to true.
|
|
295
477
|
* @param resourceGroupName The Resource Group Name.
|
|
296
478
|
* @param moveCollectionName The Move Collection Name.
|
|
297
|
-
* @param
|
|
298
|
-
* @param options The optional parameters
|
|
299
|
-
* @param callback The callback
|
|
479
|
+
* @param options The options parameters.
|
|
300
480
|
*/
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
481
|
+
async beginInitiateMoveAndWait(
|
|
482
|
+
resourceGroupName: string,
|
|
483
|
+
moveCollectionName: string,
|
|
484
|
+
options?: MoveCollectionsInitiateMoveOptionalParams
|
|
485
|
+
): Promise<MoveCollectionsInitiateMoveResponse> {
|
|
486
|
+
const poller = await this.beginInitiateMove(
|
|
487
|
+
resourceGroupName,
|
|
488
|
+
moveCollectionName,
|
|
489
|
+
options
|
|
490
|
+
);
|
|
491
|
+
return poller.pollUntilDone();
|
|
312
492
|
}
|
|
313
493
|
|
|
314
494
|
/**
|
|
315
|
-
*
|
|
495
|
+
* Commits the set of resources included in the request body. The commit operation is triggered on the
|
|
496
|
+
* moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
|
|
497
|
+
* moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation
|
|
498
|
+
* the client can call operation with validateOnly property set to true.
|
|
316
499
|
* @param resourceGroupName The Resource Group Name.
|
|
317
500
|
* @param moveCollectionName The Move Collection Name.
|
|
318
|
-
* @param
|
|
319
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
501
|
+
* @param options The options parameters.
|
|
320
502
|
*/
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
503
|
+
async beginCommit(
|
|
504
|
+
resourceGroupName: string,
|
|
505
|
+
moveCollectionName: string,
|
|
506
|
+
options?: MoveCollectionsCommitOptionalParams
|
|
507
|
+
): Promise<
|
|
508
|
+
PollerLike<
|
|
509
|
+
PollOperationState<MoveCollectionsCommitResponse>,
|
|
510
|
+
MoveCollectionsCommitResponse
|
|
511
|
+
>
|
|
512
|
+
> {
|
|
513
|
+
const directSendOperation = async (
|
|
514
|
+
args: coreClient.OperationArguments,
|
|
515
|
+
spec: coreClient.OperationSpec
|
|
516
|
+
): Promise<MoveCollectionsCommitResponse> => {
|
|
517
|
+
return this.client.sendOperationRequest(args, spec);
|
|
518
|
+
};
|
|
519
|
+
const sendOperation = async (
|
|
520
|
+
args: coreClient.OperationArguments,
|
|
521
|
+
spec: coreClient.OperationSpec
|
|
522
|
+
) => {
|
|
523
|
+
let currentRawResponse:
|
|
524
|
+
| coreClient.FullOperationResponse
|
|
525
|
+
| undefined = undefined;
|
|
526
|
+
const providedCallback = args.options?.onResponse;
|
|
527
|
+
const callback: coreClient.RawResponseCallback = (
|
|
528
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
529
|
+
flatResponse: unknown
|
|
530
|
+
) => {
|
|
531
|
+
currentRawResponse = rawResponse;
|
|
532
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
533
|
+
};
|
|
534
|
+
const updatedArgs = {
|
|
535
|
+
...args,
|
|
536
|
+
options: {
|
|
537
|
+
...args.options,
|
|
538
|
+
onResponse: callback
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
542
|
+
return {
|
|
543
|
+
flatResponse,
|
|
544
|
+
rawResponse: {
|
|
545
|
+
statusCode: currentRawResponse!.status,
|
|
546
|
+
body: currentRawResponse!.parsedBody,
|
|
547
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
const lro = new LroImpl(
|
|
553
|
+
sendOperation,
|
|
554
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
555
|
+
commitOperationSpec
|
|
556
|
+
);
|
|
557
|
+
return new LroEngine(lro, {
|
|
558
|
+
resumeFrom: options?.resumeFrom,
|
|
559
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
560
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
561
|
+
});
|
|
330
562
|
}
|
|
331
563
|
|
|
332
564
|
/**
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
* true.
|
|
565
|
+
* Commits the set of resources included in the request body. The commit operation is triggered on the
|
|
566
|
+
* moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
|
|
567
|
+
* moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation
|
|
568
|
+
* the client can call operation with validateOnly property set to true.
|
|
338
569
|
* @param resourceGroupName The Resource Group Name.
|
|
339
570
|
* @param moveCollectionName The Move Collection Name.
|
|
340
|
-
* @param
|
|
341
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
571
|
+
* @param options The options parameters.
|
|
342
572
|
*/
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
options
|
|
573
|
+
async beginCommitAndWait(
|
|
574
|
+
resourceGroupName: string,
|
|
575
|
+
moveCollectionName: string,
|
|
576
|
+
options?: MoveCollectionsCommitOptionalParams
|
|
577
|
+
): Promise<MoveCollectionsCommitResponse> {
|
|
578
|
+
const poller = await this.beginCommit(
|
|
579
|
+
resourceGroupName,
|
|
580
|
+
moveCollectionName,
|
|
581
|
+
options
|
|
582
|
+
);
|
|
583
|
+
return poller.pollUntilDone();
|
|
352
584
|
}
|
|
353
585
|
|
|
354
586
|
/**
|
|
355
|
-
*
|
|
356
|
-
* the moveResources
|
|
357
|
-
* the moveResource moveState do a transition to
|
|
587
|
+
* Discards the set of resources included in the request body. The discard operation is triggered on
|
|
588
|
+
* the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
|
|
589
|
+
* the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the
|
|
358
590
|
* operation the client can call operation with validateOnly property set to true.
|
|
359
591
|
* @param resourceGroupName The Resource Group Name.
|
|
360
592
|
* @param moveCollectionName The Move Collection Name.
|
|
361
|
-
* @param
|
|
362
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
593
|
+
* @param options The options parameters.
|
|
363
594
|
*/
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
595
|
+
async beginDiscard(
|
|
596
|
+
resourceGroupName: string,
|
|
597
|
+
moveCollectionName: string,
|
|
598
|
+
options?: MoveCollectionsDiscardOptionalParams
|
|
599
|
+
): Promise<
|
|
600
|
+
PollerLike<
|
|
601
|
+
PollOperationState<MoveCollectionsDiscardResponse>,
|
|
602
|
+
MoveCollectionsDiscardResponse
|
|
603
|
+
>
|
|
604
|
+
> {
|
|
605
|
+
const directSendOperation = async (
|
|
606
|
+
args: coreClient.OperationArguments,
|
|
607
|
+
spec: coreClient.OperationSpec
|
|
608
|
+
): Promise<MoveCollectionsDiscardResponse> => {
|
|
609
|
+
return this.client.sendOperationRequest(args, spec);
|
|
610
|
+
};
|
|
611
|
+
const sendOperation = async (
|
|
612
|
+
args: coreClient.OperationArguments,
|
|
613
|
+
spec: coreClient.OperationSpec
|
|
614
|
+
) => {
|
|
615
|
+
let currentRawResponse:
|
|
616
|
+
| coreClient.FullOperationResponse
|
|
617
|
+
| undefined = undefined;
|
|
618
|
+
const providedCallback = args.options?.onResponse;
|
|
619
|
+
const callback: coreClient.RawResponseCallback = (
|
|
620
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
621
|
+
flatResponse: unknown
|
|
622
|
+
) => {
|
|
623
|
+
currentRawResponse = rawResponse;
|
|
624
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
625
|
+
};
|
|
626
|
+
const updatedArgs = {
|
|
627
|
+
...args,
|
|
628
|
+
options: {
|
|
629
|
+
...args.options,
|
|
630
|
+
onResponse: callback
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
634
|
+
return {
|
|
635
|
+
flatResponse,
|
|
636
|
+
rawResponse: {
|
|
637
|
+
statusCode: currentRawResponse!.status,
|
|
638
|
+
body: currentRawResponse!.parsedBody,
|
|
639
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
const lro = new LroImpl(
|
|
645
|
+
sendOperation,
|
|
646
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
647
|
+
discardOperationSpec
|
|
648
|
+
);
|
|
649
|
+
return new LroEngine(lro, {
|
|
650
|
+
resumeFrom: options?.resumeFrom,
|
|
651
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
652
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
653
|
+
});
|
|
373
654
|
}
|
|
374
655
|
|
|
375
656
|
/**
|
|
376
|
-
*
|
|
377
|
-
* the moveResources in the moveState 'CommitPending' or '
|
|
378
|
-
* the moveResource moveState do a transition to
|
|
657
|
+
* Discards the set of resources included in the request body. The discard operation is triggered on
|
|
658
|
+
* the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
|
|
659
|
+
* the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the
|
|
379
660
|
* operation the client can call operation with validateOnly property set to true.
|
|
380
661
|
* @param resourceGroupName The Resource Group Name.
|
|
381
662
|
* @param moveCollectionName The Move Collection Name.
|
|
382
|
-
* @param
|
|
383
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
663
|
+
* @param options The options parameters.
|
|
384
664
|
*/
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
options
|
|
665
|
+
async beginDiscardAndWait(
|
|
666
|
+
resourceGroupName: string,
|
|
667
|
+
moveCollectionName: string,
|
|
668
|
+
options?: MoveCollectionsDiscardOptionalParams
|
|
669
|
+
): Promise<MoveCollectionsDiscardResponse> {
|
|
670
|
+
const poller = await this.beginDiscard(
|
|
671
|
+
resourceGroupName,
|
|
672
|
+
moveCollectionName,
|
|
673
|
+
options
|
|
674
|
+
);
|
|
675
|
+
return poller.pollUntilDone();
|
|
394
676
|
}
|
|
395
677
|
|
|
396
678
|
/**
|
|
397
|
-
*
|
|
398
|
-
* on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful
|
|
399
|
-
* completion the moveResource moveState do a transition to MovePending. To aid the user to
|
|
400
|
-
* prerequisite the operation the client can call operation with validateOnly property set to true.
|
|
679
|
+
* Computes, resolves and validate the dependencies of the moveResources in the move collection.
|
|
401
680
|
* @param resourceGroupName The Resource Group Name.
|
|
402
681
|
* @param moveCollectionName The Move Collection Name.
|
|
403
|
-
* @param
|
|
404
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
682
|
+
* @param options The options parameters.
|
|
405
683
|
*/
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
684
|
+
async beginResolveDependencies(
|
|
685
|
+
resourceGroupName: string,
|
|
686
|
+
moveCollectionName: string,
|
|
687
|
+
options?: MoveCollectionsResolveDependenciesOptionalParams
|
|
688
|
+
): Promise<
|
|
689
|
+
PollerLike<
|
|
690
|
+
PollOperationState<MoveCollectionsResolveDependenciesResponse>,
|
|
691
|
+
MoveCollectionsResolveDependenciesResponse
|
|
692
|
+
>
|
|
693
|
+
> {
|
|
694
|
+
const directSendOperation = async (
|
|
695
|
+
args: coreClient.OperationArguments,
|
|
696
|
+
spec: coreClient.OperationSpec
|
|
697
|
+
): Promise<MoveCollectionsResolveDependenciesResponse> => {
|
|
698
|
+
return this.client.sendOperationRequest(args, spec);
|
|
699
|
+
};
|
|
700
|
+
const sendOperation = async (
|
|
701
|
+
args: coreClient.OperationArguments,
|
|
702
|
+
spec: coreClient.OperationSpec
|
|
703
|
+
) => {
|
|
704
|
+
let currentRawResponse:
|
|
705
|
+
| coreClient.FullOperationResponse
|
|
706
|
+
| undefined = undefined;
|
|
707
|
+
const providedCallback = args.options?.onResponse;
|
|
708
|
+
const callback: coreClient.RawResponseCallback = (
|
|
709
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
710
|
+
flatResponse: unknown
|
|
711
|
+
) => {
|
|
712
|
+
currentRawResponse = rawResponse;
|
|
713
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
714
|
+
};
|
|
715
|
+
const updatedArgs = {
|
|
716
|
+
...args,
|
|
717
|
+
options: {
|
|
718
|
+
...args.options,
|
|
719
|
+
onResponse: callback
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
723
|
+
return {
|
|
724
|
+
flatResponse,
|
|
725
|
+
rawResponse: {
|
|
726
|
+
statusCode: currentRawResponse!.status,
|
|
727
|
+
body: currentRawResponse!.parsedBody,
|
|
728
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
const lro = new LroImpl(
|
|
734
|
+
sendOperation,
|
|
735
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
736
|
+
resolveDependenciesOperationSpec
|
|
737
|
+
);
|
|
738
|
+
return new LroEngine(lro, {
|
|
739
|
+
resumeFrom: options?.resumeFrom,
|
|
740
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
741
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
742
|
+
});
|
|
415
743
|
}
|
|
416
744
|
|
|
417
745
|
/**
|
|
418
746
|
* Computes, resolves and validate the dependencies of the moveResources in the move collection.
|
|
419
747
|
* @param resourceGroupName The Resource Group Name.
|
|
420
748
|
* @param moveCollectionName The Move Collection Name.
|
|
421
|
-
* @param
|
|
422
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
749
|
+
* @param options The options parameters.
|
|
423
750
|
*/
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
options
|
|
751
|
+
async beginResolveDependenciesAndWait(
|
|
752
|
+
resourceGroupName: string,
|
|
753
|
+
moveCollectionName: string,
|
|
754
|
+
options?: MoveCollectionsResolveDependenciesOptionalParams
|
|
755
|
+
): Promise<MoveCollectionsResolveDependenciesResponse> {
|
|
756
|
+
const poller = await this.beginResolveDependencies(
|
|
757
|
+
resourceGroupName,
|
|
758
|
+
moveCollectionName,
|
|
759
|
+
options
|
|
760
|
+
);
|
|
761
|
+
return poller.pollUntilDone();
|
|
433
762
|
}
|
|
434
763
|
|
|
435
764
|
/**
|
|
436
765
|
* Removes the set of move resources included in the request body from move collection. The
|
|
437
|
-
* orchestration is done by service. To aid the user to prerequisite the operation the client can
|
|
438
|
-
*
|
|
766
|
+
* orchestration is done by service. To aid the user to prerequisite the operation the client can call
|
|
767
|
+
* operation with validateOnly property set to true.
|
|
439
768
|
* @param resourceGroupName
|
|
440
769
|
* @param moveCollectionName
|
|
441
|
-
* @param
|
|
442
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
770
|
+
* @param options The options parameters.
|
|
443
771
|
*/
|
|
444
|
-
beginBulkRemove(
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
772
|
+
async beginBulkRemove(
|
|
773
|
+
resourceGroupName: string,
|
|
774
|
+
moveCollectionName: string,
|
|
775
|
+
options?: MoveCollectionsBulkRemoveOptionalParams
|
|
776
|
+
): Promise<
|
|
777
|
+
PollerLike<
|
|
778
|
+
PollOperationState<MoveCollectionsBulkRemoveResponse>,
|
|
779
|
+
MoveCollectionsBulkRemoveResponse
|
|
780
|
+
>
|
|
781
|
+
> {
|
|
782
|
+
const directSendOperation = async (
|
|
783
|
+
args: coreClient.OperationArguments,
|
|
784
|
+
spec: coreClient.OperationSpec
|
|
785
|
+
): Promise<MoveCollectionsBulkRemoveResponse> => {
|
|
786
|
+
return this.client.sendOperationRequest(args, spec);
|
|
787
|
+
};
|
|
788
|
+
const sendOperation = async (
|
|
789
|
+
args: coreClient.OperationArguments,
|
|
790
|
+
spec: coreClient.OperationSpec
|
|
791
|
+
) => {
|
|
792
|
+
let currentRawResponse:
|
|
793
|
+
| coreClient.FullOperationResponse
|
|
794
|
+
| undefined = undefined;
|
|
795
|
+
const providedCallback = args.options?.onResponse;
|
|
796
|
+
const callback: coreClient.RawResponseCallback = (
|
|
797
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
798
|
+
flatResponse: unknown
|
|
799
|
+
) => {
|
|
800
|
+
currentRawResponse = rawResponse;
|
|
801
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
802
|
+
};
|
|
803
|
+
const updatedArgs = {
|
|
804
|
+
...args,
|
|
805
|
+
options: {
|
|
806
|
+
...args.options,
|
|
807
|
+
onResponse: callback
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
811
|
+
return {
|
|
812
|
+
flatResponse,
|
|
813
|
+
rawResponse: {
|
|
814
|
+
statusCode: currentRawResponse!.status,
|
|
815
|
+
body: currentRawResponse!.parsedBody,
|
|
816
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
817
|
+
}
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
const lro = new LroImpl(
|
|
822
|
+
sendOperation,
|
|
823
|
+
{ resourceGroupName, moveCollectionName, options },
|
|
824
|
+
bulkRemoveOperationSpec
|
|
825
|
+
);
|
|
826
|
+
return new LroEngine(lro, {
|
|
827
|
+
resumeFrom: options?.resumeFrom,
|
|
828
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
829
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
830
|
+
});
|
|
453
831
|
}
|
|
454
832
|
|
|
455
833
|
/**
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
* @param
|
|
460
|
-
* @
|
|
834
|
+
* Removes the set of move resources included in the request body from move collection. The
|
|
835
|
+
* orchestration is done by service. To aid the user to prerequisite the operation the client can call
|
|
836
|
+
* operation with validateOnly property set to true.
|
|
837
|
+
* @param resourceGroupName
|
|
838
|
+
* @param moveCollectionName
|
|
839
|
+
* @param options The options parameters.
|
|
461
840
|
*/
|
|
462
|
-
|
|
841
|
+
async beginBulkRemoveAndWait(
|
|
842
|
+
resourceGroupName: string,
|
|
843
|
+
moveCollectionName: string,
|
|
844
|
+
options?: MoveCollectionsBulkRemoveOptionalParams
|
|
845
|
+
): Promise<MoveCollectionsBulkRemoveResponse> {
|
|
846
|
+
const poller = await this.beginBulkRemove(
|
|
847
|
+
resourceGroupName,
|
|
848
|
+
moveCollectionName,
|
|
849
|
+
options
|
|
850
|
+
);
|
|
851
|
+
return poller.pollUntilDone();
|
|
852
|
+
}
|
|
853
|
+
|
|
463
854
|
/**
|
|
464
|
-
*
|
|
465
|
-
* @param
|
|
855
|
+
* Get all the Move Collections in the subscription.
|
|
856
|
+
* @param options The options parameters.
|
|
466
857
|
*/
|
|
467
|
-
|
|
858
|
+
private _listMoveCollectionsBySubscription(
|
|
859
|
+
options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
|
|
860
|
+
): Promise<MoveCollectionsListMoveCollectionsBySubscriptionResponse> {
|
|
861
|
+
return this.client.sendOperationRequest(
|
|
862
|
+
{ options },
|
|
863
|
+
listMoveCollectionsBySubscriptionOperationSpec
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
|
|
468
867
|
/**
|
|
469
|
-
*
|
|
470
|
-
* @param
|
|
471
|
-
* @param
|
|
868
|
+
* Get all the Move Collections in the resource group.
|
|
869
|
+
* @param resourceGroupName The Resource Group Name.
|
|
870
|
+
* @param options The options parameters.
|
|
472
871
|
*/
|
|
473
|
-
|
|
474
|
-
|
|
872
|
+
private _listMoveCollectionsByResourceGroup(
|
|
873
|
+
resourceGroupName: string,
|
|
874
|
+
options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
|
|
875
|
+
): Promise<MoveCollectionsListMoveCollectionsByResourceGroupResponse> {
|
|
475
876
|
return this.client.sendOperationRequest(
|
|
476
|
-
{
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
},
|
|
480
|
-
listMoveCollectionsBySubscriptionNextOperationSpec,
|
|
481
|
-
callback) as Promise<Models.MoveCollectionsListMoveCollectionsBySubscriptionNextResponse>;
|
|
877
|
+
{ resourceGroupName, options },
|
|
878
|
+
listMoveCollectionsByResourceGroupOperationSpec
|
|
879
|
+
);
|
|
482
880
|
}
|
|
483
881
|
|
|
484
882
|
/**
|
|
485
|
-
*
|
|
486
|
-
* @
|
|
487
|
-
* @param
|
|
488
|
-
* @param
|
|
489
|
-
* @
|
|
883
|
+
* List of the move resources for which an arm resource is required for.
|
|
884
|
+
* @param resourceGroupName The Resource Group Name.
|
|
885
|
+
* @param moveCollectionName The Move Collection Name.
|
|
886
|
+
* @param sourceId The sourceId for which the api is invoked.
|
|
887
|
+
* @param options The options parameters.
|
|
490
888
|
*/
|
|
491
|
-
|
|
889
|
+
listRequiredFor(
|
|
890
|
+
resourceGroupName: string,
|
|
891
|
+
moveCollectionName: string,
|
|
892
|
+
sourceId: string,
|
|
893
|
+
options?: MoveCollectionsListRequiredForOptionalParams
|
|
894
|
+
): Promise<MoveCollectionsListRequiredForResponse> {
|
|
895
|
+
return this.client.sendOperationRequest(
|
|
896
|
+
{ resourceGroupName, moveCollectionName, sourceId, options },
|
|
897
|
+
listRequiredForOperationSpec
|
|
898
|
+
);
|
|
899
|
+
}
|
|
900
|
+
|
|
492
901
|
/**
|
|
493
|
-
*
|
|
494
|
-
* @param
|
|
902
|
+
* ListMoveCollectionsBySubscriptionNext
|
|
903
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
904
|
+
* ListMoveCollectionsBySubscription method.
|
|
905
|
+
* @param options The options parameters.
|
|
495
906
|
*/
|
|
496
|
-
|
|
907
|
+
private _listMoveCollectionsBySubscriptionNext(
|
|
908
|
+
nextLink: string,
|
|
909
|
+
options?: MoveCollectionsListMoveCollectionsBySubscriptionNextOptionalParams
|
|
910
|
+
): Promise<MoveCollectionsListMoveCollectionsBySubscriptionNextResponse> {
|
|
911
|
+
return this.client.sendOperationRequest(
|
|
912
|
+
{ nextLink, options },
|
|
913
|
+
listMoveCollectionsBySubscriptionNextOperationSpec
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
|
|
497
917
|
/**
|
|
498
|
-
*
|
|
499
|
-
* @param
|
|
500
|
-
* @param
|
|
918
|
+
* ListMoveCollectionsByResourceGroupNext
|
|
919
|
+
* @param resourceGroupName The Resource Group Name.
|
|
920
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
921
|
+
* ListMoveCollectionsByResourceGroup method.
|
|
922
|
+
* @param options The options parameters.
|
|
501
923
|
*/
|
|
502
|
-
|
|
503
|
-
|
|
924
|
+
private _listMoveCollectionsByResourceGroupNext(
|
|
925
|
+
resourceGroupName: string,
|
|
926
|
+
nextLink: string,
|
|
927
|
+
options?: MoveCollectionsListMoveCollectionsByResourceGroupNextOptionalParams
|
|
928
|
+
): Promise<MoveCollectionsListMoveCollectionsByResourceGroupNextResponse> {
|
|
504
929
|
return this.client.sendOperationRequest(
|
|
505
|
-
{
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
},
|
|
509
|
-
listMoveCollectionsByResourceGroupNextOperationSpec,
|
|
510
|
-
callback) as Promise<Models.MoveCollectionsListMoveCollectionsByResourceGroupNextResponse>;
|
|
930
|
+
{ resourceGroupName, nextLink, options },
|
|
931
|
+
listMoveCollectionsByResourceGroupNextOperationSpec
|
|
932
|
+
);
|
|
511
933
|
}
|
|
512
934
|
}
|
|
513
|
-
|
|
514
935
|
// Operation Specifications
|
|
515
|
-
const serializer =
|
|
516
|
-
|
|
936
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
937
|
+
|
|
938
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
939
|
+
path:
|
|
940
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
517
941
|
httpMethod: "PUT",
|
|
518
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
519
|
-
urlParameters: [
|
|
520
|
-
Parameters.subscriptionId,
|
|
521
|
-
Parameters.resourceGroupName,
|
|
522
|
-
Parameters.moveCollectionName
|
|
523
|
-
],
|
|
524
|
-
queryParameters: [
|
|
525
|
-
Parameters.apiVersion
|
|
526
|
-
],
|
|
527
|
-
headerParameters: [
|
|
528
|
-
Parameters.acceptLanguage
|
|
529
|
-
],
|
|
530
|
-
requestBody: {
|
|
531
|
-
parameterPath: [
|
|
532
|
-
"options",
|
|
533
|
-
"body"
|
|
534
|
-
],
|
|
535
|
-
mapper: Mappers.MoveCollection
|
|
536
|
-
},
|
|
537
942
|
responses: {
|
|
538
943
|
200: {
|
|
539
944
|
bodyMapper: Mappers.MoveCollection
|
|
@@ -545,30 +950,22 @@ const createOperationSpec: msRest.OperationSpec = {
|
|
|
545
950
|
bodyMapper: Mappers.CloudError
|
|
546
951
|
}
|
|
547
952
|
},
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
552
|
-
httpMethod: "PATCH",
|
|
553
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
953
|
+
requestBody: Parameters.body,
|
|
954
|
+
queryParameters: [Parameters.apiVersion],
|
|
554
955
|
urlParameters: [
|
|
956
|
+
Parameters.$host,
|
|
555
957
|
Parameters.subscriptionId,
|
|
556
958
|
Parameters.resourceGroupName,
|
|
557
959
|
Parameters.moveCollectionName
|
|
558
960
|
],
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
"options",
|
|
568
|
-
"body"
|
|
569
|
-
],
|
|
570
|
-
mapper: Mappers.UpdateMoveCollectionRequest
|
|
571
|
-
},
|
|
961
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
962
|
+
mediaType: "json",
|
|
963
|
+
serializer
|
|
964
|
+
};
|
|
965
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
966
|
+
path:
|
|
967
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
968
|
+
httpMethod: "PATCH",
|
|
572
969
|
responses: {
|
|
573
970
|
200: {
|
|
574
971
|
bodyMapper: Mappers.MoveCollection
|
|
@@ -577,338 +974,330 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
577
974
|
bodyMapper: Mappers.CloudError
|
|
578
975
|
}
|
|
579
976
|
},
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
584
|
-
httpMethod: "GET",
|
|
585
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
977
|
+
requestBody: Parameters.body1,
|
|
978
|
+
queryParameters: [Parameters.apiVersion],
|
|
586
979
|
urlParameters: [
|
|
980
|
+
Parameters.$host,
|
|
587
981
|
Parameters.subscriptionId,
|
|
588
982
|
Parameters.resourceGroupName,
|
|
589
983
|
Parameters.moveCollectionName
|
|
590
984
|
],
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
985
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
986
|
+
mediaType: "json",
|
|
987
|
+
serializer
|
|
988
|
+
};
|
|
989
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
990
|
+
path:
|
|
991
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
992
|
+
httpMethod: "DELETE",
|
|
597
993
|
responses: {
|
|
598
994
|
200: {
|
|
599
|
-
bodyMapper: Mappers.
|
|
995
|
+
bodyMapper: Mappers.OperationStatus
|
|
996
|
+
},
|
|
997
|
+
201: {
|
|
998
|
+
bodyMapper: Mappers.OperationStatus
|
|
999
|
+
},
|
|
1000
|
+
202: {
|
|
1001
|
+
bodyMapper: Mappers.OperationStatus
|
|
1002
|
+
},
|
|
1003
|
+
204: {
|
|
1004
|
+
bodyMapper: Mappers.OperationStatus
|
|
600
1005
|
},
|
|
601
1006
|
default: {
|
|
602
1007
|
bodyMapper: Mappers.CloudError
|
|
603
1008
|
}
|
|
604
1009
|
},
|
|
1010
|
+
queryParameters: [Parameters.apiVersion],
|
|
1011
|
+
urlParameters: [
|
|
1012
|
+
Parameters.$host,
|
|
1013
|
+
Parameters.subscriptionId,
|
|
1014
|
+
Parameters.resourceGroupName,
|
|
1015
|
+
Parameters.moveCollectionName
|
|
1016
|
+
],
|
|
1017
|
+
headerParameters: [Parameters.accept],
|
|
605
1018
|
serializer
|
|
606
1019
|
};
|
|
607
|
-
|
|
608
|
-
|
|
1020
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
1021
|
+
path:
|
|
1022
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
609
1023
|
httpMethod: "GET",
|
|
610
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Migrate/moveCollections",
|
|
611
|
-
urlParameters: [
|
|
612
|
-
Parameters.subscriptionId
|
|
613
|
-
],
|
|
614
|
-
queryParameters: [
|
|
615
|
-
Parameters.apiVersion
|
|
616
|
-
],
|
|
617
|
-
headerParameters: [
|
|
618
|
-
Parameters.acceptLanguage
|
|
619
|
-
],
|
|
620
1024
|
responses: {
|
|
621
1025
|
200: {
|
|
622
|
-
bodyMapper: Mappers.
|
|
1026
|
+
bodyMapper: Mappers.MoveCollection
|
|
623
1027
|
},
|
|
624
1028
|
default: {
|
|
625
1029
|
bodyMapper: Mappers.CloudError
|
|
626
1030
|
}
|
|
627
1031
|
},
|
|
628
|
-
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
const listMoveCollectionsByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
632
|
-
httpMethod: "GET",
|
|
633
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections",
|
|
1032
|
+
queryParameters: [Parameters.apiVersion],
|
|
634
1033
|
urlParameters: [
|
|
1034
|
+
Parameters.$host,
|
|
635
1035
|
Parameters.subscriptionId,
|
|
636
|
-
Parameters.resourceGroupName
|
|
637
|
-
|
|
638
|
-
queryParameters: [
|
|
639
|
-
Parameters.apiVersion
|
|
640
|
-
],
|
|
641
|
-
headerParameters: [
|
|
642
|
-
Parameters.acceptLanguage
|
|
1036
|
+
Parameters.resourceGroupName,
|
|
1037
|
+
Parameters.moveCollectionName
|
|
643
1038
|
],
|
|
1039
|
+
headerParameters: [Parameters.accept],
|
|
1040
|
+
serializer
|
|
1041
|
+
};
|
|
1042
|
+
const prepareOperationSpec: coreClient.OperationSpec = {
|
|
1043
|
+
path:
|
|
1044
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/prepare",
|
|
1045
|
+
httpMethod: "POST",
|
|
644
1046
|
responses: {
|
|
645
1047
|
200: {
|
|
646
|
-
bodyMapper: Mappers.
|
|
1048
|
+
bodyMapper: Mappers.OperationStatus
|
|
1049
|
+
},
|
|
1050
|
+
201: {
|
|
1051
|
+
bodyMapper: Mappers.OperationStatus
|
|
1052
|
+
},
|
|
1053
|
+
202: {
|
|
1054
|
+
bodyMapper: Mappers.OperationStatus
|
|
1055
|
+
},
|
|
1056
|
+
204: {
|
|
1057
|
+
bodyMapper: Mappers.OperationStatus
|
|
647
1058
|
},
|
|
648
1059
|
default: {
|
|
649
1060
|
bodyMapper: Mappers.CloudError
|
|
650
1061
|
}
|
|
651
1062
|
},
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
const listRequiredForOperationSpec: msRest.OperationSpec = {
|
|
656
|
-
httpMethod: "GET",
|
|
657
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/requiredFor",
|
|
1063
|
+
requestBody: Parameters.body2,
|
|
1064
|
+
queryParameters: [Parameters.apiVersion],
|
|
658
1065
|
urlParameters: [
|
|
1066
|
+
Parameters.$host,
|
|
659
1067
|
Parameters.subscriptionId,
|
|
660
1068
|
Parameters.resourceGroupName,
|
|
661
1069
|
Parameters.moveCollectionName
|
|
662
1070
|
],
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
1071
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1072
|
+
mediaType: "json",
|
|
1073
|
+
serializer
|
|
1074
|
+
};
|
|
1075
|
+
const initiateMoveOperationSpec: coreClient.OperationSpec = {
|
|
1076
|
+
path:
|
|
1077
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/initiateMove",
|
|
1078
|
+
httpMethod: "POST",
|
|
670
1079
|
responses: {
|
|
671
1080
|
200: {
|
|
672
|
-
bodyMapper: Mappers.
|
|
1081
|
+
bodyMapper: Mappers.OperationStatus
|
|
1082
|
+
},
|
|
1083
|
+
201: {
|
|
1084
|
+
bodyMapper: Mappers.OperationStatus
|
|
1085
|
+
},
|
|
1086
|
+
202: {
|
|
1087
|
+
bodyMapper: Mappers.OperationStatus
|
|
1088
|
+
},
|
|
1089
|
+
204: {
|
|
1090
|
+
bodyMapper: Mappers.OperationStatus
|
|
673
1091
|
},
|
|
674
1092
|
default: {
|
|
675
1093
|
bodyMapper: Mappers.CloudError
|
|
676
1094
|
}
|
|
677
1095
|
},
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
682
|
-
httpMethod: "DELETE",
|
|
683
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
1096
|
+
requestBody: Parameters.body3,
|
|
1097
|
+
queryParameters: [Parameters.apiVersion],
|
|
684
1098
|
urlParameters: [
|
|
1099
|
+
Parameters.$host,
|
|
685
1100
|
Parameters.subscriptionId,
|
|
686
1101
|
Parameters.resourceGroupName,
|
|
687
1102
|
Parameters.moveCollectionName
|
|
688
1103
|
],
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
1104
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1105
|
+
mediaType: "json",
|
|
1106
|
+
serializer
|
|
1107
|
+
};
|
|
1108
|
+
const commitOperationSpec: coreClient.OperationSpec = {
|
|
1109
|
+
path:
|
|
1110
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit",
|
|
1111
|
+
httpMethod: "POST",
|
|
695
1112
|
responses: {
|
|
696
1113
|
200: {
|
|
697
1114
|
bodyMapper: Mappers.OperationStatus
|
|
698
1115
|
},
|
|
699
|
-
|
|
700
|
-
|
|
1116
|
+
201: {
|
|
1117
|
+
bodyMapper: Mappers.OperationStatus
|
|
1118
|
+
},
|
|
1119
|
+
202: {
|
|
1120
|
+
bodyMapper: Mappers.OperationStatus
|
|
1121
|
+
},
|
|
1122
|
+
204: {
|
|
1123
|
+
bodyMapper: Mappers.OperationStatus
|
|
1124
|
+
},
|
|
701
1125
|
default: {
|
|
702
1126
|
bodyMapper: Mappers.CloudError
|
|
703
1127
|
}
|
|
704
1128
|
},
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
const beginPrepareOperationSpec: msRest.OperationSpec = {
|
|
709
|
-
httpMethod: "POST",
|
|
710
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/prepare",
|
|
1129
|
+
requestBody: Parameters.body4,
|
|
1130
|
+
queryParameters: [Parameters.apiVersion],
|
|
711
1131
|
urlParameters: [
|
|
1132
|
+
Parameters.$host,
|
|
712
1133
|
Parameters.subscriptionId,
|
|
713
1134
|
Parameters.resourceGroupName,
|
|
714
1135
|
Parameters.moveCollectionName
|
|
715
1136
|
],
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
"options",
|
|
725
|
-
"body"
|
|
726
|
-
],
|
|
727
|
-
mapper: Mappers.PrepareRequest
|
|
728
|
-
},
|
|
1137
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1138
|
+
mediaType: "json",
|
|
1139
|
+
serializer
|
|
1140
|
+
};
|
|
1141
|
+
const discardOperationSpec: coreClient.OperationSpec = {
|
|
1142
|
+
path:
|
|
1143
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/discard",
|
|
1144
|
+
httpMethod: "POST",
|
|
729
1145
|
responses: {
|
|
730
1146
|
200: {
|
|
731
1147
|
bodyMapper: Mappers.OperationStatus
|
|
732
1148
|
},
|
|
733
|
-
|
|
1149
|
+
201: {
|
|
1150
|
+
bodyMapper: Mappers.OperationStatus
|
|
1151
|
+
},
|
|
1152
|
+
202: {
|
|
1153
|
+
bodyMapper: Mappers.OperationStatus
|
|
1154
|
+
},
|
|
1155
|
+
204: {
|
|
1156
|
+
bodyMapper: Mappers.OperationStatus
|
|
1157
|
+
},
|
|
734
1158
|
default: {
|
|
735
1159
|
bodyMapper: Mappers.CloudError
|
|
736
1160
|
}
|
|
737
1161
|
},
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
const beginInitiateMoveOperationSpec: msRest.OperationSpec = {
|
|
742
|
-
httpMethod: "POST",
|
|
743
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/initiateMove",
|
|
1162
|
+
requestBody: Parameters.body5,
|
|
1163
|
+
queryParameters: [Parameters.apiVersion],
|
|
744
1164
|
urlParameters: [
|
|
1165
|
+
Parameters.$host,
|
|
745
1166
|
Parameters.subscriptionId,
|
|
746
1167
|
Parameters.resourceGroupName,
|
|
747
1168
|
Parameters.moveCollectionName
|
|
748
1169
|
],
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
"options",
|
|
758
|
-
"body"
|
|
759
|
-
],
|
|
760
|
-
mapper: Mappers.ResourceMoveRequest
|
|
761
|
-
},
|
|
1170
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1171
|
+
mediaType: "json",
|
|
1172
|
+
serializer
|
|
1173
|
+
};
|
|
1174
|
+
const resolveDependenciesOperationSpec: coreClient.OperationSpec = {
|
|
1175
|
+
path:
|
|
1176
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/resolveDependencies",
|
|
1177
|
+
httpMethod: "POST",
|
|
762
1178
|
responses: {
|
|
763
1179
|
200: {
|
|
764
1180
|
bodyMapper: Mappers.OperationStatus
|
|
765
1181
|
},
|
|
766
|
-
|
|
1182
|
+
201: {
|
|
1183
|
+
bodyMapper: Mappers.OperationStatus
|
|
1184
|
+
},
|
|
1185
|
+
202: {
|
|
1186
|
+
bodyMapper: Mappers.OperationStatus
|
|
1187
|
+
},
|
|
1188
|
+
204: {
|
|
1189
|
+
bodyMapper: Mappers.OperationStatus
|
|
1190
|
+
},
|
|
767
1191
|
default: {
|
|
768
1192
|
bodyMapper: Mappers.CloudError
|
|
769
1193
|
}
|
|
770
1194
|
},
|
|
771
|
-
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
const beginCommitOperationSpec: msRest.OperationSpec = {
|
|
775
|
-
httpMethod: "POST",
|
|
776
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit",
|
|
1195
|
+
queryParameters: [Parameters.apiVersion],
|
|
777
1196
|
urlParameters: [
|
|
1197
|
+
Parameters.$host,
|
|
778
1198
|
Parameters.subscriptionId,
|
|
779
1199
|
Parameters.resourceGroupName,
|
|
780
1200
|
Parameters.moveCollectionName
|
|
781
1201
|
],
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
parameterPath: [
|
|
790
|
-
"options",
|
|
791
|
-
"body"
|
|
792
|
-
],
|
|
793
|
-
mapper: Mappers.CommitRequest
|
|
794
|
-
},
|
|
1202
|
+
headerParameters: [Parameters.accept],
|
|
1203
|
+
serializer
|
|
1204
|
+
};
|
|
1205
|
+
const bulkRemoveOperationSpec: coreClient.OperationSpec = {
|
|
1206
|
+
path:
|
|
1207
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/bulkRemove",
|
|
1208
|
+
httpMethod: "POST",
|
|
795
1209
|
responses: {
|
|
796
1210
|
200: {
|
|
797
1211
|
bodyMapper: Mappers.OperationStatus
|
|
798
1212
|
},
|
|
799
|
-
|
|
1213
|
+
201: {
|
|
1214
|
+
bodyMapper: Mappers.OperationStatus
|
|
1215
|
+
},
|
|
1216
|
+
202: {
|
|
1217
|
+
bodyMapper: Mappers.OperationStatus
|
|
1218
|
+
},
|
|
1219
|
+
204: {
|
|
1220
|
+
bodyMapper: Mappers.OperationStatus
|
|
1221
|
+
},
|
|
800
1222
|
default: {
|
|
801
1223
|
bodyMapper: Mappers.CloudError
|
|
802
1224
|
}
|
|
803
1225
|
},
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
const beginDiscardOperationSpec: msRest.OperationSpec = {
|
|
808
|
-
httpMethod: "POST",
|
|
809
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/discard",
|
|
1226
|
+
requestBody: Parameters.body6,
|
|
1227
|
+
queryParameters: [Parameters.apiVersion],
|
|
810
1228
|
urlParameters: [
|
|
1229
|
+
Parameters.$host,
|
|
811
1230
|
Parameters.subscriptionId,
|
|
812
1231
|
Parameters.resourceGroupName,
|
|
813
1232
|
Parameters.moveCollectionName
|
|
814
1233
|
],
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
"options",
|
|
824
|
-
"body"
|
|
825
|
-
],
|
|
826
|
-
mapper: Mappers.DiscardRequest
|
|
827
|
-
},
|
|
1234
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1235
|
+
mediaType: "json",
|
|
1236
|
+
serializer
|
|
1237
|
+
};
|
|
1238
|
+
const listMoveCollectionsBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1239
|
+
path:
|
|
1240
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Migrate/moveCollections",
|
|
1241
|
+
httpMethod: "GET",
|
|
828
1242
|
responses: {
|
|
829
1243
|
200: {
|
|
830
|
-
bodyMapper: Mappers.
|
|
1244
|
+
bodyMapper: Mappers.MoveCollectionResultList
|
|
831
1245
|
},
|
|
832
|
-
202: {},
|
|
833
1246
|
default: {
|
|
834
1247
|
bodyMapper: Mappers.CloudError
|
|
835
1248
|
}
|
|
836
1249
|
},
|
|
1250
|
+
queryParameters: [Parameters.apiVersion],
|
|
1251
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1252
|
+
headerParameters: [Parameters.accept],
|
|
837
1253
|
serializer
|
|
838
1254
|
};
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
urlParameters: [
|
|
844
|
-
Parameters.subscriptionId,
|
|
845
|
-
Parameters.resourceGroupName,
|
|
846
|
-
Parameters.moveCollectionName
|
|
847
|
-
],
|
|
848
|
-
queryParameters: [
|
|
849
|
-
Parameters.apiVersion
|
|
850
|
-
],
|
|
851
|
-
headerParameters: [
|
|
852
|
-
Parameters.acceptLanguage
|
|
853
|
-
],
|
|
1255
|
+
const listMoveCollectionsByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1256
|
+
path:
|
|
1257
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections",
|
|
1258
|
+
httpMethod: "GET",
|
|
854
1259
|
responses: {
|
|
855
1260
|
200: {
|
|
856
|
-
bodyMapper: Mappers.
|
|
1261
|
+
bodyMapper: Mappers.MoveCollectionResultList
|
|
857
1262
|
},
|
|
858
|
-
202: {},
|
|
859
1263
|
default: {
|
|
860
1264
|
bodyMapper: Mappers.CloudError
|
|
861
1265
|
}
|
|
862
1266
|
},
|
|
863
|
-
|
|
864
|
-
};
|
|
865
|
-
|
|
866
|
-
const beginBulkRemoveOperationSpec: msRest.OperationSpec = {
|
|
867
|
-
httpMethod: "POST",
|
|
868
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/bulkRemove",
|
|
1267
|
+
queryParameters: [Parameters.apiVersion],
|
|
869
1268
|
urlParameters: [
|
|
1269
|
+
Parameters.$host,
|
|
870
1270
|
Parameters.subscriptionId,
|
|
871
|
-
Parameters.resourceGroupName
|
|
872
|
-
Parameters.moveCollectionName
|
|
873
|
-
],
|
|
874
|
-
queryParameters: [
|
|
875
|
-
Parameters.apiVersion
|
|
876
|
-
],
|
|
877
|
-
headerParameters: [
|
|
878
|
-
Parameters.acceptLanguage
|
|
1271
|
+
Parameters.resourceGroupName
|
|
879
1272
|
],
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
1273
|
+
headerParameters: [Parameters.accept],
|
|
1274
|
+
serializer
|
|
1275
|
+
};
|
|
1276
|
+
const listRequiredForOperationSpec: coreClient.OperationSpec = {
|
|
1277
|
+
path:
|
|
1278
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/requiredFor",
|
|
1279
|
+
httpMethod: "GET",
|
|
887
1280
|
responses: {
|
|
888
1281
|
200: {
|
|
889
|
-
bodyMapper: Mappers.
|
|
1282
|
+
bodyMapper: Mappers.RequiredForResourcesCollection
|
|
890
1283
|
},
|
|
891
|
-
202: {},
|
|
892
1284
|
default: {
|
|
893
1285
|
bodyMapper: Mappers.CloudError
|
|
894
1286
|
}
|
|
895
1287
|
},
|
|
1288
|
+
queryParameters: [Parameters.apiVersion, Parameters.sourceId],
|
|
1289
|
+
urlParameters: [
|
|
1290
|
+
Parameters.$host,
|
|
1291
|
+
Parameters.subscriptionId,
|
|
1292
|
+
Parameters.resourceGroupName,
|
|
1293
|
+
Parameters.moveCollectionName
|
|
1294
|
+
],
|
|
1295
|
+
headerParameters: [Parameters.accept],
|
|
896
1296
|
serializer
|
|
897
1297
|
};
|
|
898
|
-
|
|
899
|
-
const listMoveCollectionsBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
900
|
-
httpMethod: "GET",
|
|
901
|
-
baseUrl: "https://management.azure.com",
|
|
1298
|
+
const listMoveCollectionsBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
902
1299
|
path: "{nextLink}",
|
|
903
|
-
|
|
904
|
-
Parameters.nextPageLink
|
|
905
|
-
],
|
|
906
|
-
queryParameters: [
|
|
907
|
-
Parameters.apiVersion
|
|
908
|
-
],
|
|
909
|
-
headerParameters: [
|
|
910
|
-
Parameters.acceptLanguage
|
|
911
|
-
],
|
|
1300
|
+
httpMethod: "GET",
|
|
912
1301
|
responses: {
|
|
913
1302
|
200: {
|
|
914
1303
|
bodyMapper: Mappers.MoveCollectionResultList
|
|
@@ -917,22 +1306,18 @@ const listMoveCollectionsBySubscriptionNextOperationSpec: msRest.OperationSpec =
|
|
|
917
1306
|
bodyMapper: Mappers.CloudError
|
|
918
1307
|
}
|
|
919
1308
|
},
|
|
1309
|
+
queryParameters: [Parameters.apiVersion],
|
|
1310
|
+
urlParameters: [
|
|
1311
|
+
Parameters.$host,
|
|
1312
|
+
Parameters.subscriptionId,
|
|
1313
|
+
Parameters.nextLink
|
|
1314
|
+
],
|
|
1315
|
+
headerParameters: [Parameters.accept],
|
|
920
1316
|
serializer
|
|
921
1317
|
};
|
|
922
|
-
|
|
923
|
-
const listMoveCollectionsByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
924
|
-
httpMethod: "GET",
|
|
925
|
-
baseUrl: "https://management.azure.com",
|
|
1318
|
+
const listMoveCollectionsByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
926
1319
|
path: "{nextLink}",
|
|
927
|
-
|
|
928
|
-
Parameters.nextPageLink
|
|
929
|
-
],
|
|
930
|
-
queryParameters: [
|
|
931
|
-
Parameters.apiVersion
|
|
932
|
-
],
|
|
933
|
-
headerParameters: [
|
|
934
|
-
Parameters.acceptLanguage
|
|
935
|
-
],
|
|
1320
|
+
httpMethod: "GET",
|
|
936
1321
|
responses: {
|
|
937
1322
|
200: {
|
|
938
1323
|
bodyMapper: Mappers.MoveCollectionResultList
|
|
@@ -941,5 +1326,13 @@ const listMoveCollectionsByResourceGroupNextOperationSpec: msRest.OperationSpec
|
|
|
941
1326
|
bodyMapper: Mappers.CloudError
|
|
942
1327
|
}
|
|
943
1328
|
},
|
|
1329
|
+
queryParameters: [Parameters.apiVersion],
|
|
1330
|
+
urlParameters: [
|
|
1331
|
+
Parameters.$host,
|
|
1332
|
+
Parameters.subscriptionId,
|
|
1333
|
+
Parameters.resourceGroupName,
|
|
1334
|
+
Parameters.nextLink
|
|
1335
|
+
],
|
|
1336
|
+
headerParameters: [Parameters.accept],
|
|
944
1337
|
serializer
|
|
945
1338
|
};
|