@azure/arm-migrate 2.0.3-alpha.20230202.1 → 2.0.3
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 +5 -5
- package/LICENSE +1 -1
- package/dist/index.js +196 -82
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/assessedMachinesGetSample.js +11 -3
- package/dist-esm/samples-dev/assessedMachinesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/assessedMachinesListByAssessmentSample.js +11 -3
- package/dist-esm/samples-dev/assessedMachinesListByAssessmentSample.js.map +1 -1
- package/dist-esm/samples-dev/assessmentsCreateSample.js +11 -3
- package/dist-esm/samples-dev/assessmentsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/assessmentsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/assessmentsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/assessmentsGetReportDownloadUrlSample.js +11 -3
- package/dist-esm/samples-dev/assessmentsGetReportDownloadUrlSample.js.map +1 -1
- package/dist-esm/samples-dev/assessmentsGetSample.js +11 -3
- package/dist-esm/samples-dev/assessmentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/assessmentsListByGroupSample.js +11 -3
- package/dist-esm/samples-dev/assessmentsListByGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/assessmentsListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/assessmentsListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/groupsCreateSample.js +11 -3
- package/dist-esm/samples-dev/groupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/groupsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/groupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/groupsGetSample.js +11 -3
- package/dist-esm/samples-dev/groupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/groupsListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/groupsListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/groupsUpdateMachinesSample.js +11 -3
- package/dist-esm/samples-dev/groupsUpdateMachinesSample.js.map +1 -1
- package/dist-esm/samples-dev/hyperVCollectorsCreateSample.js +11 -3
- package/dist-esm/samples-dev/hyperVCollectorsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/hyperVCollectorsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/hyperVCollectorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/hyperVCollectorsGetSample.js +11 -3
- package/dist-esm/samples-dev/hyperVCollectorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/hyperVCollectorsListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/hyperVCollectorsListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/importCollectorsCreateSample.js +11 -3
- package/dist-esm/samples-dev/importCollectorsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/importCollectorsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/importCollectorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/importCollectorsGetSample.js +11 -3
- package/dist-esm/samples-dev/importCollectorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/importCollectorsListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/importCollectorsListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/machinesGetSample.js +11 -3
- package/dist-esm/samples-dev/machinesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/machinesListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/machinesListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkResourceListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsAssessmentOptionsListSample.js +11 -3
- package/dist-esm/samples-dev/projectsAssessmentOptionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsAssessmentOptionsSample.js +11 -3
- package/dist-esm/samples-dev/projectsAssessmentOptionsSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsCreateSample.js +11 -3
- package/dist-esm/samples-dev/projectsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsGetSample.js +11 -3
- package/dist-esm/samples-dev/projectsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/projectsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsListSample.js +11 -3
- package/dist-esm/samples-dev/projectsListSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/serverCollectorsCreateSample.js +11 -3
- package/dist-esm/samples-dev/serverCollectorsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/serverCollectorsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/serverCollectorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/serverCollectorsGetSample.js +11 -3
- package/dist-esm/samples-dev/serverCollectorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/serverCollectorsListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/serverCollectorsListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/vMwareCollectorsCreateSample.js +11 -3
- package/dist-esm/samples-dev/vMwareCollectorsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/vMwareCollectorsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/vMwareCollectorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/vMwareCollectorsGetSample.js +11 -3
- package/dist-esm/samples-dev/vMwareCollectorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/vMwareCollectorsListByProjectSample.js +11 -3
- package/dist-esm/samples-dev/vMwareCollectorsListByProjectSample.js.map +1 -1
- package/dist-esm/src/azureMigrateV2.d.ts.map +1 -1
- package/dist-esm/src/azureMigrateV2.js +19 -14
- package/dist-esm/src/azureMigrateV2.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/operations/assessedMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/assessedMachines.js +19 -8
- package/dist-esm/src/operations/assessedMachines.js.map +1 -1
- package/dist-esm/src/operations/assessments.d.ts.map +1 -1
- package/dist-esm/src/operations/assessments.js +16 -8
- package/dist-esm/src/operations/assessments.js.map +1 -1
- package/dist-esm/src/operations/groups.d.ts.map +1 -1
- package/dist-esm/src/operations/groups.js +8 -4
- package/dist-esm/src/operations/groups.js.map +1 -1
- package/dist-esm/src/operations/hyperVCollectors.d.ts.map +1 -1
- package/dist-esm/src/operations/hyperVCollectors.js +8 -4
- package/dist-esm/src/operations/hyperVCollectors.js.map +1 -1
- package/dist-esm/src/operations/importCollectors.d.ts.map +1 -1
- package/dist-esm/src/operations/importCollectors.js +8 -4
- package/dist-esm/src/operations/importCollectors.js.map +1 -1
- package/dist-esm/src/operations/machines.d.ts.map +1 -1
- package/dist-esm/src/operations/machines.js +19 -8
- package/dist-esm/src/operations/machines.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +8 -4
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/projects.d.ts.map +1 -1
- package/dist-esm/src/operations/projects.js +45 -20
- package/dist-esm/src/operations/projects.js.map +1 -1
- package/dist-esm/src/operations/serverCollectors.d.ts.map +1 -1
- package/dist-esm/src/operations/serverCollectors.js +8 -4
- package/dist-esm/src/operations/serverCollectors.js.map +1 -1
- package/dist-esm/src/operations/vMwareCollectors.d.ts.map +1 -1
- package/dist-esm/src/operations/vMwareCollectors.js +8 -4
- package/dist-esm/src/operations/vMwareCollectors.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +8 -6
- package/review/arm-migrate.api.md +3 -0
- package/src/azureMigrateV2.ts +25 -16
- package/src/index.ts +1 -0
- package/src/operations/assessedMachines.ts +28 -15
- package/src/operations/assessments.ts +22 -14
- package/src/operations/groups.ts +11 -9
- package/src/operations/hyperVCollectors.ts +11 -9
- package/src/operations/importCollectors.ts +11 -9
- package/src/operations/machines.ts +26 -13
- package/src/operations/operations.ts +10 -5
- package/src/operations/projects.ts +53 -24
- package/src/operations/serverCollectors.ts +11 -9
- package/src/operations/vMwareCollectors.ts +11 -9
- package/src/pagingHelper.ts +39 -0
- package/types/arm-migrate.d.ts +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 2.0.3 (
|
|
3
|
+
## 2.0.3 (2023-01-29)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Features**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Exposes `getContinuationToken` helper function to extract continuation token
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Bugs Fixed**
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
- A series of small bug fixs relevant to authentication and apiVersion policy
|
|
12
12
|
|
|
13
13
|
## 2.0.2 (2022-07-04)
|
|
14
14
|
|
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -27,6 +27,38 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
28
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
29
29
|
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) Microsoft Corporation.
|
|
32
|
+
* Licensed under the MIT License.
|
|
33
|
+
*
|
|
34
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
+
*/
|
|
37
|
+
const pageMap = new WeakMap();
|
|
38
|
+
/**
|
|
39
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
+
* returns a continuation token that can be used to begin paging from
|
|
41
|
+
* that point later.
|
|
42
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
43
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
44
|
+
*/
|
|
45
|
+
function getContinuationToken(page) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (typeof page !== "object" || page === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
+
}
|
|
52
|
+
function setContinuationToken(page, continuationToken) {
|
|
53
|
+
var _a;
|
|
54
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
+
pageInfo.continuationToken = continuationToken;
|
|
59
|
+
pageMap.set(page, pageInfo);
|
|
60
|
+
}
|
|
61
|
+
|
|
30
62
|
/*
|
|
31
63
|
* Copyright (c) Microsoft Corporation.
|
|
32
64
|
* Licensed under the MIT License.
|
|
@@ -4416,20 +4448,31 @@ class ProjectsImpl {
|
|
|
4416
4448
|
[Symbol.asyncIterator]() {
|
|
4417
4449
|
return this;
|
|
4418
4450
|
},
|
|
4419
|
-
byPage: () => {
|
|
4420
|
-
|
|
4451
|
+
byPage: (settings) => {
|
|
4452
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4453
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4454
|
+
}
|
|
4455
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
4421
4456
|
}
|
|
4422
4457
|
};
|
|
4423
4458
|
}
|
|
4424
|
-
listBySubscriptionPagingPage(options) {
|
|
4459
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
4425
4460
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
4426
|
-
let result
|
|
4427
|
-
|
|
4428
|
-
|
|
4461
|
+
let result;
|
|
4462
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4463
|
+
if (!continuationToken) {
|
|
4464
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
4465
|
+
let page = result.value || [];
|
|
4466
|
+
continuationToken = result.nextLink;
|
|
4467
|
+
setContinuationToken(page, continuationToken);
|
|
4468
|
+
yield yield tslib.__await(page);
|
|
4469
|
+
}
|
|
4429
4470
|
while (continuationToken) {
|
|
4430
4471
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
4431
4472
|
continuationToken = result.nextLink;
|
|
4432
|
-
|
|
4473
|
+
let page = result.value || [];
|
|
4474
|
+
setContinuationToken(page, continuationToken);
|
|
4475
|
+
yield yield tslib.__await(page);
|
|
4433
4476
|
}
|
|
4434
4477
|
});
|
|
4435
4478
|
}
|
|
@@ -4465,20 +4508,31 @@ class ProjectsImpl {
|
|
|
4465
4508
|
[Symbol.asyncIterator]() {
|
|
4466
4509
|
return this;
|
|
4467
4510
|
},
|
|
4468
|
-
byPage: () => {
|
|
4469
|
-
|
|
4511
|
+
byPage: (settings) => {
|
|
4512
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4513
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4514
|
+
}
|
|
4515
|
+
return this.listPagingPage(resourceGroupName, options, settings);
|
|
4470
4516
|
}
|
|
4471
4517
|
};
|
|
4472
4518
|
}
|
|
4473
|
-
listPagingPage(resourceGroupName, options) {
|
|
4519
|
+
listPagingPage(resourceGroupName, options, settings) {
|
|
4474
4520
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4475
|
-
let result
|
|
4476
|
-
|
|
4477
|
-
|
|
4521
|
+
let result;
|
|
4522
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4523
|
+
if (!continuationToken) {
|
|
4524
|
+
result = yield tslib.__await(this._list(resourceGroupName, options));
|
|
4525
|
+
let page = result.value || [];
|
|
4526
|
+
continuationToken = result.nextLink;
|
|
4527
|
+
setContinuationToken(page, continuationToken);
|
|
4528
|
+
yield yield tslib.__await(page);
|
|
4529
|
+
}
|
|
4478
4530
|
while (continuationToken) {
|
|
4479
4531
|
result = yield tslib.__await(this._listNext(resourceGroupName, continuationToken, options));
|
|
4480
4532
|
continuationToken = result.nextLink;
|
|
4481
|
-
|
|
4533
|
+
let page = result.value || [];
|
|
4534
|
+
setContinuationToken(page, continuationToken);
|
|
4535
|
+
yield yield tslib.__await(page);
|
|
4482
4536
|
}
|
|
4483
4537
|
});
|
|
4484
4538
|
}
|
|
@@ -4515,14 +4569,18 @@ class ProjectsImpl {
|
|
|
4515
4569
|
[Symbol.asyncIterator]() {
|
|
4516
4570
|
return this;
|
|
4517
4571
|
},
|
|
4518
|
-
byPage: () => {
|
|
4519
|
-
|
|
4572
|
+
byPage: (settings) => {
|
|
4573
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4574
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4575
|
+
}
|
|
4576
|
+
return this.assessmentOptionsListPagingPage(resourceGroupName, projectName, options, settings);
|
|
4520
4577
|
}
|
|
4521
4578
|
};
|
|
4522
4579
|
}
|
|
4523
|
-
assessmentOptionsListPagingPage(resourceGroupName, projectName, options) {
|
|
4580
|
+
assessmentOptionsListPagingPage(resourceGroupName, projectName, options, _settings) {
|
|
4524
4581
|
return tslib.__asyncGenerator(this, arguments, function* assessmentOptionsListPagingPage_1() {
|
|
4525
|
-
let result
|
|
4582
|
+
let result;
|
|
4583
|
+
result = yield tslib.__await(this._assessmentOptionsList(resourceGroupName, projectName, options));
|
|
4526
4584
|
yield yield tslib.__await(result.value || []);
|
|
4527
4585
|
});
|
|
4528
4586
|
}
|
|
@@ -4826,7 +4884,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
4826
4884
|
bodyMapper: CloudError
|
|
4827
4885
|
}
|
|
4828
4886
|
},
|
|
4829
|
-
queryParameters: [apiVersion],
|
|
4830
4887
|
urlParameters: [
|
|
4831
4888
|
$host,
|
|
4832
4889
|
subscriptionId,
|
|
@@ -4847,7 +4904,6 @@ const listNextOperationSpec = {
|
|
|
4847
4904
|
bodyMapper: CloudError
|
|
4848
4905
|
}
|
|
4849
4906
|
},
|
|
4850
|
-
queryParameters: [apiVersion],
|
|
4851
4907
|
urlParameters: [
|
|
4852
4908
|
$host,
|
|
4853
4909
|
subscriptionId,
|
|
@@ -4891,20 +4947,31 @@ class MachinesImpl {
|
|
|
4891
4947
|
[Symbol.asyncIterator]() {
|
|
4892
4948
|
return this;
|
|
4893
4949
|
},
|
|
4894
|
-
byPage: () => {
|
|
4895
|
-
|
|
4950
|
+
byPage: (settings) => {
|
|
4951
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4952
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4953
|
+
}
|
|
4954
|
+
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
4896
4955
|
}
|
|
4897
4956
|
};
|
|
4898
4957
|
}
|
|
4899
|
-
listByProjectPagingPage(resourceGroupName, projectName, options) {
|
|
4958
|
+
listByProjectPagingPage(resourceGroupName, projectName, options, settings) {
|
|
4900
4959
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
4901
|
-
let result
|
|
4902
|
-
|
|
4903
|
-
|
|
4960
|
+
let result;
|
|
4961
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4962
|
+
if (!continuationToken) {
|
|
4963
|
+
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
4964
|
+
let page = result.value || [];
|
|
4965
|
+
continuationToken = result.nextLink;
|
|
4966
|
+
setContinuationToken(page, continuationToken);
|
|
4967
|
+
yield yield tslib.__await(page);
|
|
4968
|
+
}
|
|
4904
4969
|
while (continuationToken) {
|
|
4905
4970
|
result = yield tslib.__await(this._listByProjectNext(resourceGroupName, projectName, continuationToken, options));
|
|
4906
4971
|
continuationToken = result.nextLink;
|
|
4907
|
-
|
|
4972
|
+
let page = result.value || [];
|
|
4973
|
+
setContinuationToken(page, continuationToken);
|
|
4974
|
+
yield yield tslib.__await(page);
|
|
4908
4975
|
}
|
|
4909
4976
|
});
|
|
4910
4977
|
}
|
|
@@ -5017,7 +5084,6 @@ const listByProjectNextOperationSpec = {
|
|
|
5017
5084
|
bodyMapper: CloudError
|
|
5018
5085
|
}
|
|
5019
5086
|
},
|
|
5020
|
-
queryParameters: [apiVersion],
|
|
5021
5087
|
urlParameters: [
|
|
5022
5088
|
$host,
|
|
5023
5089
|
subscriptionId,
|
|
@@ -5062,14 +5128,18 @@ class GroupsImpl {
|
|
|
5062
5128
|
[Symbol.asyncIterator]() {
|
|
5063
5129
|
return this;
|
|
5064
5130
|
},
|
|
5065
|
-
byPage: () => {
|
|
5066
|
-
|
|
5131
|
+
byPage: (settings) => {
|
|
5132
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5133
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5134
|
+
}
|
|
5135
|
+
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
5067
5136
|
}
|
|
5068
5137
|
};
|
|
5069
5138
|
}
|
|
5070
|
-
listByProjectPagingPage(resourceGroupName, projectName, options) {
|
|
5139
|
+
listByProjectPagingPage(resourceGroupName, projectName, options, _settings) {
|
|
5071
5140
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
5072
|
-
let result
|
|
5141
|
+
let result;
|
|
5142
|
+
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
5073
5143
|
yield yield tslib.__await(result.value || []);
|
|
5074
5144
|
});
|
|
5075
5145
|
}
|
|
@@ -5313,14 +5383,18 @@ class AssessmentsImpl {
|
|
|
5313
5383
|
[Symbol.asyncIterator]() {
|
|
5314
5384
|
return this;
|
|
5315
5385
|
},
|
|
5316
|
-
byPage: () => {
|
|
5317
|
-
|
|
5386
|
+
byPage: (settings) => {
|
|
5387
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5388
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5389
|
+
}
|
|
5390
|
+
return this.listByGroupPagingPage(resourceGroupName, projectName, groupName, options, settings);
|
|
5318
5391
|
}
|
|
5319
5392
|
};
|
|
5320
5393
|
}
|
|
5321
|
-
listByGroupPagingPage(resourceGroupName, projectName, groupName, options) {
|
|
5394
|
+
listByGroupPagingPage(resourceGroupName, projectName, groupName, options, _settings) {
|
|
5322
5395
|
return tslib.__asyncGenerator(this, arguments, function* listByGroupPagingPage_1() {
|
|
5323
|
-
let result
|
|
5396
|
+
let result;
|
|
5397
|
+
result = yield tslib.__await(this._listByGroup(resourceGroupName, projectName, groupName, options));
|
|
5324
5398
|
yield yield tslib.__await(result.value || []);
|
|
5325
5399
|
});
|
|
5326
5400
|
}
|
|
@@ -5360,14 +5434,18 @@ class AssessmentsImpl {
|
|
|
5360
5434
|
[Symbol.asyncIterator]() {
|
|
5361
5435
|
return this;
|
|
5362
5436
|
},
|
|
5363
|
-
byPage: () => {
|
|
5364
|
-
|
|
5437
|
+
byPage: (settings) => {
|
|
5438
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5439
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5440
|
+
}
|
|
5441
|
+
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
5365
5442
|
}
|
|
5366
5443
|
};
|
|
5367
5444
|
}
|
|
5368
|
-
listByProjectPagingPage(resourceGroupName, projectName, options) {
|
|
5445
|
+
listByProjectPagingPage(resourceGroupName, projectName, options, _settings) {
|
|
5369
5446
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
5370
|
-
let result
|
|
5447
|
+
let result;
|
|
5448
|
+
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
5371
5449
|
yield yield tslib.__await(result.value || []);
|
|
5372
5450
|
});
|
|
5373
5451
|
}
|
|
@@ -5668,20 +5746,31 @@ class AssessedMachinesImpl {
|
|
|
5668
5746
|
[Symbol.asyncIterator]() {
|
|
5669
5747
|
return this;
|
|
5670
5748
|
},
|
|
5671
|
-
byPage: () => {
|
|
5672
|
-
|
|
5749
|
+
byPage: (settings) => {
|
|
5750
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5751
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5752
|
+
}
|
|
5753
|
+
return this.listByAssessmentPagingPage(resourceGroupName, projectName, groupName, assessmentName, options, settings);
|
|
5673
5754
|
}
|
|
5674
5755
|
};
|
|
5675
5756
|
}
|
|
5676
|
-
listByAssessmentPagingPage(resourceGroupName, projectName, groupName, assessmentName, options) {
|
|
5757
|
+
listByAssessmentPagingPage(resourceGroupName, projectName, groupName, assessmentName, options, settings) {
|
|
5677
5758
|
return tslib.__asyncGenerator(this, arguments, function* listByAssessmentPagingPage_1() {
|
|
5678
|
-
let result
|
|
5679
|
-
|
|
5680
|
-
|
|
5759
|
+
let result;
|
|
5760
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5761
|
+
if (!continuationToken) {
|
|
5762
|
+
result = yield tslib.__await(this._listByAssessment(resourceGroupName, projectName, groupName, assessmentName, options));
|
|
5763
|
+
let page = result.value || [];
|
|
5764
|
+
continuationToken = result.nextLink;
|
|
5765
|
+
setContinuationToken(page, continuationToken);
|
|
5766
|
+
yield yield tslib.__await(page);
|
|
5767
|
+
}
|
|
5681
5768
|
while (continuationToken) {
|
|
5682
5769
|
result = yield tslib.__await(this._listByAssessmentNext(resourceGroupName, projectName, groupName, assessmentName, continuationToken, options));
|
|
5683
5770
|
continuationToken = result.nextLink;
|
|
5684
|
-
|
|
5771
|
+
let page = result.value || [];
|
|
5772
|
+
setContinuationToken(page, continuationToken);
|
|
5773
|
+
yield yield tslib.__await(page);
|
|
5685
5774
|
}
|
|
5686
5775
|
});
|
|
5687
5776
|
}
|
|
@@ -5824,7 +5913,6 @@ const listByAssessmentNextOperationSpec = {
|
|
|
5824
5913
|
bodyMapper: CloudError
|
|
5825
5914
|
}
|
|
5826
5915
|
},
|
|
5827
|
-
queryParameters: [apiVersion],
|
|
5828
5916
|
urlParameters: [
|
|
5829
5917
|
$host,
|
|
5830
5918
|
subscriptionId,
|
|
@@ -5870,14 +5958,18 @@ class HyperVCollectorsImpl {
|
|
|
5870
5958
|
[Symbol.asyncIterator]() {
|
|
5871
5959
|
return this;
|
|
5872
5960
|
},
|
|
5873
|
-
byPage: () => {
|
|
5874
|
-
|
|
5961
|
+
byPage: (settings) => {
|
|
5962
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5963
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5964
|
+
}
|
|
5965
|
+
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
5875
5966
|
}
|
|
5876
5967
|
};
|
|
5877
5968
|
}
|
|
5878
|
-
listByProjectPagingPage(resourceGroupName, projectName, options) {
|
|
5969
|
+
listByProjectPagingPage(resourceGroupName, projectName, options, _settings) {
|
|
5879
5970
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
5880
|
-
let result
|
|
5971
|
+
let result;
|
|
5972
|
+
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
5881
5973
|
yield yield tslib.__await(result.value || []);
|
|
5882
5974
|
});
|
|
5883
5975
|
}
|
|
@@ -6071,14 +6163,18 @@ class ServerCollectorsImpl {
|
|
|
6071
6163
|
[Symbol.asyncIterator]() {
|
|
6072
6164
|
return this;
|
|
6073
6165
|
},
|
|
6074
|
-
byPage: () => {
|
|
6075
|
-
|
|
6166
|
+
byPage: (settings) => {
|
|
6167
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6168
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6169
|
+
}
|
|
6170
|
+
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
6076
6171
|
}
|
|
6077
6172
|
};
|
|
6078
6173
|
}
|
|
6079
|
-
listByProjectPagingPage(resourceGroupName, projectName, options) {
|
|
6174
|
+
listByProjectPagingPage(resourceGroupName, projectName, options, _settings) {
|
|
6080
6175
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
6081
|
-
let result
|
|
6176
|
+
let result;
|
|
6177
|
+
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
6082
6178
|
yield yield tslib.__await(result.value || []);
|
|
6083
6179
|
});
|
|
6084
6180
|
}
|
|
@@ -6272,14 +6368,18 @@ class VMwareCollectorsImpl {
|
|
|
6272
6368
|
[Symbol.asyncIterator]() {
|
|
6273
6369
|
return this;
|
|
6274
6370
|
},
|
|
6275
|
-
byPage: () => {
|
|
6276
|
-
|
|
6371
|
+
byPage: (settings) => {
|
|
6372
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6373
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6374
|
+
}
|
|
6375
|
+
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
6277
6376
|
}
|
|
6278
6377
|
};
|
|
6279
6378
|
}
|
|
6280
|
-
listByProjectPagingPage(resourceGroupName, projectName, options) {
|
|
6379
|
+
listByProjectPagingPage(resourceGroupName, projectName, options, _settings) {
|
|
6281
6380
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
6282
|
-
let result
|
|
6381
|
+
let result;
|
|
6382
|
+
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
6283
6383
|
yield yield tslib.__await(result.value || []);
|
|
6284
6384
|
});
|
|
6285
6385
|
}
|
|
@@ -6473,14 +6573,18 @@ class ImportCollectorsImpl {
|
|
|
6473
6573
|
[Symbol.asyncIterator]() {
|
|
6474
6574
|
return this;
|
|
6475
6575
|
},
|
|
6476
|
-
byPage: () => {
|
|
6477
|
-
|
|
6576
|
+
byPage: (settings) => {
|
|
6577
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6578
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6579
|
+
}
|
|
6580
|
+
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
6478
6581
|
}
|
|
6479
6582
|
};
|
|
6480
6583
|
}
|
|
6481
|
-
listByProjectPagingPage(resourceGroupName, projectName, options) {
|
|
6584
|
+
listByProjectPagingPage(resourceGroupName, projectName, options, _settings) {
|
|
6482
6585
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
6483
|
-
let result
|
|
6586
|
+
let result;
|
|
6587
|
+
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
6484
6588
|
yield yield tslib.__await(result.value || []);
|
|
6485
6589
|
});
|
|
6486
6590
|
}
|
|
@@ -6932,14 +7036,18 @@ class OperationsImpl {
|
|
|
6932
7036
|
[Symbol.asyncIterator]() {
|
|
6933
7037
|
return this;
|
|
6934
7038
|
},
|
|
6935
|
-
byPage: () => {
|
|
6936
|
-
|
|
7039
|
+
byPage: (settings) => {
|
|
7040
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7041
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
7042
|
+
}
|
|
7043
|
+
return this.listPagingPage(options, settings);
|
|
6937
7044
|
}
|
|
6938
7045
|
};
|
|
6939
7046
|
}
|
|
6940
|
-
listPagingPage(options) {
|
|
7047
|
+
listPagingPage(options, _settings) {
|
|
6941
7048
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6942
|
-
let result
|
|
7049
|
+
let result;
|
|
7050
|
+
result = yield tslib.__await(this._list(options));
|
|
6943
7051
|
yield yield tslib.__await(result.value || []);
|
|
6944
7052
|
});
|
|
6945
7053
|
}
|
|
@@ -6999,7 +7107,7 @@ class AzureMigrateV2 extends coreClient__namespace.ServiceClient {
|
|
|
6999
7107
|
* @param options The parameter options
|
|
7000
7108
|
*/
|
|
7001
7109
|
constructor(credentials, subscriptionId, options) {
|
|
7002
|
-
var _a, _b;
|
|
7110
|
+
var _a, _b, _c;
|
|
7003
7111
|
if (credentials === undefined) {
|
|
7004
7112
|
throw new Error("'credentials' cannot be null");
|
|
7005
7113
|
}
|
|
@@ -7020,23 +7128,28 @@ class AzureMigrateV2 extends coreClient__namespace.ServiceClient {
|
|
|
7020
7128
|
: `${packageDetails}`;
|
|
7021
7129
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
7022
7130
|
userAgentPrefix
|
|
7023
|
-
},
|
|
7131
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
7024
7132
|
super(optionsWithDefaults);
|
|
7133
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
7025
7134
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
7026
7135
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
7027
|
-
|
|
7136
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
7028
7137
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7138
|
+
}
|
|
7139
|
+
if (!options ||
|
|
7140
|
+
!options.pipeline ||
|
|
7141
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
7142
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
7143
|
+
this.pipeline.removePolicy({
|
|
7144
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
7145
|
+
});
|
|
7146
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
7147
|
+
credential: credentials,
|
|
7148
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
7149
|
+
challengeCallbacks: {
|
|
7150
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
7151
|
+
}
|
|
7152
|
+
}));
|
|
7040
7153
|
}
|
|
7041
7154
|
// Parameter assignments
|
|
7042
7155
|
this.subscriptionId = subscriptionId;
|
|
@@ -7087,4 +7200,5 @@ class AzureMigrateV2 extends coreClient__namespace.ServiceClient {
|
|
|
7087
7200
|
}
|
|
7088
7201
|
|
|
7089
7202
|
exports.AzureMigrateV2 = AzureMigrateV2;
|
|
7203
|
+
exports.getContinuationToken = getContinuationToken;
|
|
7090
7204
|
//# sourceMappingURL=index.js.map
|