@azure/arm-connectedvmware 1.0.0-beta.1 → 1.0.0-beta.2
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 +7 -0
- package/README.md +1 -1
- package/dist/index.js +415 -175
- 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/clustersCreateSample.js +11 -3
- package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +11 -3
- package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +11 -3
- package/dist-esm/samples-dev/clustersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListSample.js +10 -2
- package/dist-esm/samples-dev/clustersListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +11 -3
- package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/datastoresCreateSample.js +11 -3
- package/dist-esm/samples-dev/datastoresCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/datastoresDeleteSample.js +11 -3
- package/dist-esm/samples-dev/datastoresDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/datastoresGetSample.js +11 -3
- package/dist-esm/samples-dev/datastoresGetSample.js.map +1 -1
- package/dist-esm/samples-dev/datastoresListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/datastoresListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/datastoresListSample.js +10 -2
- package/dist-esm/samples-dev/datastoresListSample.js.map +1 -1
- package/dist-esm/samples-dev/datastoresUpdateSample.js +11 -3
- package/dist-esm/samples-dev/datastoresUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/guestAgentsCreateSample.js +11 -3
- package/dist-esm/samples-dev/guestAgentsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/guestAgentsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/guestAgentsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/guestAgentsGetSample.js +11 -3
- package/dist-esm/samples-dev/guestAgentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/guestAgentsListByVMSample.js +11 -3
- package/dist-esm/samples-dev/guestAgentsListByVMSample.js.map +1 -1
- package/dist-esm/samples-dev/hostsCreateSample.js +11 -3
- package/dist-esm/samples-dev/hostsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/hostsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/hostsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/hostsGetSample.js +11 -3
- package/dist-esm/samples-dev/hostsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/hostsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/hostsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/hostsListSample.js +10 -2
- package/dist-esm/samples-dev/hostsListSample.js.map +1 -1
- package/dist-esm/samples-dev/hostsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/hostsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/hybridIdentityMetadataCreateSample.js +11 -3
- package/dist-esm/samples-dev/hybridIdentityMetadataCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/hybridIdentityMetadataDeleteSample.js +11 -3
- package/dist-esm/samples-dev/hybridIdentityMetadataDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/hybridIdentityMetadataGetSample.js +11 -3
- package/dist-esm/samples-dev/hybridIdentityMetadataGetSample.js.map +1 -1
- package/dist-esm/samples-dev/hybridIdentityMetadataListByVMSample.js +11 -3
- package/dist-esm/samples-dev/hybridIdentityMetadataListByVMSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsCreateSample.js +11 -3
- package/dist-esm/samples-dev/inventoryItemsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsGetSample.js +11 -3
- package/dist-esm/samples-dev/inventoryItemsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsListByVCenterSample.js +11 -3
- package/dist-esm/samples-dev/inventoryItemsListByVCenterSample.js.map +1 -1
- package/dist-esm/samples-dev/machineExtensionsCreateOrUpdateSample.js +10 -3
- package/dist-esm/samples-dev/machineExtensionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/machineExtensionsDeleteSample.js +10 -3
- package/dist-esm/samples-dev/machineExtensionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/machineExtensionsGetSample.js +10 -3
- package/dist-esm/samples-dev/machineExtensionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/machineExtensionsListSample.js +10 -3
- package/dist-esm/samples-dev/machineExtensionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/machineExtensionsUpdateSample.js +10 -3
- package/dist-esm/samples-dev/machineExtensionsUpdateSample.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/resourcePoolsCreateSample.js +11 -3
- package/dist-esm/samples-dev/resourcePoolsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/resourcePoolsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/resourcePoolsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/resourcePoolsGetSample.js +11 -3
- package/dist-esm/samples-dev/resourcePoolsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/resourcePoolsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/resourcePoolsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/resourcePoolsListSample.js +10 -2
- package/dist-esm/samples-dev/resourcePoolsListSample.js.map +1 -1
- package/dist-esm/samples-dev/resourcePoolsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/resourcePoolsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/vCentersCreateSample.js +11 -3
- package/dist-esm/samples-dev/vCentersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/vCentersDeleteSample.js +11 -3
- package/dist-esm/samples-dev/vCentersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/vCentersGetSample.js +11 -3
- package/dist-esm/samples-dev/vCentersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/vCentersListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/vCentersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/vCentersListSample.js +10 -2
- package/dist-esm/samples-dev/vCentersListSample.js.map +1 -1
- package/dist-esm/samples-dev/vCentersUpdateSample.js +11 -3
- package/dist-esm/samples-dev/vCentersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesListSample.js +10 -2
- package/dist-esm/samples-dev/virtualMachineTemplatesListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesAssessPatchesSample.js +10 -3
- package/dist-esm/samples-dev/virtualMachinesAssessPatchesSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesCreateSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesInstallPatchesSample.js +10 -3
- package/dist-esm/samples-dev/virtualMachinesInstallPatchesSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesListSample.js +10 -2
- package/dist-esm/samples-dev/virtualMachinesListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesStartSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesStartSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesStopSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesStopSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksCreateSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksGetSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksListSample.js +10 -2
- package/dist-esm/samples-dev/virtualNetworksListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.js.map +1 -1
- package/dist-esm/src/azureArcVMwareManagementServiceAPI.d.ts.map +1 -1
- package/dist-esm/src/azureArcVMwareManagementServiceAPI.js +4 -7
- package/dist-esm/src/azureArcVMwareManagementServiceAPI.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/models/index.d.ts +0 -2
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +37 -16
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/datastores.d.ts.map +1 -1
- package/dist-esm/src/operations/datastores.js +37 -16
- package/dist-esm/src/operations/datastores.js.map +1 -1
- package/dist-esm/src/operations/guestAgents.d.ts.map +1 -1
- package/dist-esm/src/operations/guestAgents.js +19 -8
- package/dist-esm/src/operations/guestAgents.js.map +1 -1
- package/dist-esm/src/operations/hosts.d.ts.map +1 -1
- package/dist-esm/src/operations/hosts.js +37 -16
- package/dist-esm/src/operations/hosts.js.map +1 -1
- package/dist-esm/src/operations/hybridIdentityMetadataOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/hybridIdentityMetadataOperations.js +19 -8
- package/dist-esm/src/operations/hybridIdentityMetadataOperations.js.map +1 -1
- package/dist-esm/src/operations/inventoryItems.d.ts.map +1 -1
- package/dist-esm/src/operations/inventoryItems.js +19 -8
- package/dist-esm/src/operations/inventoryItems.js.map +1 -1
- package/dist-esm/src/operations/machineExtensions.d.ts.map +1 -1
- package/dist-esm/src/operations/machineExtensions.js +19 -8
- package/dist-esm/src/operations/machineExtensions.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/resourcePools.d.ts.map +1 -1
- package/dist-esm/src/operations/resourcePools.js +37 -16
- package/dist-esm/src/operations/resourcePools.js.map +1 -1
- package/dist-esm/src/operations/vCenters.d.ts.map +1 -1
- package/dist-esm/src/operations/vCenters.js +37 -16
- package/dist-esm/src/operations/vCenters.js.map +1 -1
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachineTemplates.js +37 -16
- package/dist-esm/src/operations/virtualMachineTemplates.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +37 -16
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworks.js +37 -16
- package/dist-esm/src/operations/virtualNetworks.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-connectedvmware.api.md +3 -1
- package/src/azureArcVMwareManagementServiceAPI.ts +5 -6
- package/src/index.ts +1 -0
- package/src/models/index.ts +1 -4
- package/src/operations/clusters.ts +46 -19
- package/src/operations/datastores.ts +46 -19
- package/src/operations/guestAgents.ts +27 -14
- package/src/operations/hosts.ts +46 -19
- package/src/operations/hybridIdentityMetadataOperations.ts +27 -14
- package/src/operations/inventoryItems.ts +27 -14
- package/src/operations/machineExtensions.ts +22 -10
- package/src/operations/operations.ts +21 -9
- package/src/operations/resourcePools.ts +46 -19
- package/src/operations/vCenters.ts +46 -19
- package/src/operations/virtualMachineTemplates.ts +46 -19
- package/src/operations/virtualMachines.ts +46 -19
- package/src/operations/virtualNetworks.ts +46 -19
- package/src/pagingHelper.ts +39 -0
- package/types/arm-connectedvmware.d.ts +9 -2
- package/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -4750,20 +4782,31 @@ class OperationsImpl {
|
|
|
4750
4782
|
[Symbol.asyncIterator]() {
|
|
4751
4783
|
return this;
|
|
4752
4784
|
},
|
|
4753
|
-
byPage: () => {
|
|
4754
|
-
|
|
4785
|
+
byPage: (settings) => {
|
|
4786
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4787
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4788
|
+
}
|
|
4789
|
+
return this.listPagingPage(options, settings);
|
|
4755
4790
|
}
|
|
4756
4791
|
};
|
|
4757
4792
|
}
|
|
4758
|
-
listPagingPage(options) {
|
|
4793
|
+
listPagingPage(options, settings) {
|
|
4759
4794
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4760
|
-
let result
|
|
4761
|
-
|
|
4762
|
-
|
|
4795
|
+
let result;
|
|
4796
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4797
|
+
if (!continuationToken) {
|
|
4798
|
+
result = yield tslib.__await(this._list(options));
|
|
4799
|
+
let page = result.value || [];
|
|
4800
|
+
continuationToken = result.nextLink;
|
|
4801
|
+
setContinuationToken(page, continuationToken);
|
|
4802
|
+
yield yield tslib.__await(page);
|
|
4803
|
+
}
|
|
4763
4804
|
while (continuationToken) {
|
|
4764
4805
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4765
4806
|
continuationToken = result.nextLink;
|
|
4766
|
-
|
|
4807
|
+
let page = result.value || [];
|
|
4808
|
+
setContinuationToken(page, continuationToken);
|
|
4809
|
+
yield yield tslib.__await(page);
|
|
4767
4810
|
}
|
|
4768
4811
|
});
|
|
4769
4812
|
}
|
|
@@ -4830,7 +4873,6 @@ const listNextOperationSpec$9 = {
|
|
|
4830
4873
|
bodyMapper: ErrorResponse
|
|
4831
4874
|
}
|
|
4832
4875
|
},
|
|
4833
|
-
queryParameters: [apiVersion],
|
|
4834
4876
|
urlParameters: [$host, nextLink],
|
|
4835
4877
|
headerParameters: [accept],
|
|
4836
4878
|
serializer: serializer$c
|
|
@@ -4894,20 +4936,31 @@ class VirtualMachinesImpl {
|
|
|
4894
4936
|
[Symbol.asyncIterator]() {
|
|
4895
4937
|
return this;
|
|
4896
4938
|
},
|
|
4897
|
-
byPage: () => {
|
|
4898
|
-
|
|
4939
|
+
byPage: (settings) => {
|
|
4940
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4941
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4942
|
+
}
|
|
4943
|
+
return this.listPagingPage(options, settings);
|
|
4899
4944
|
}
|
|
4900
4945
|
};
|
|
4901
4946
|
}
|
|
4902
|
-
listPagingPage(options) {
|
|
4947
|
+
listPagingPage(options, settings) {
|
|
4903
4948
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4904
|
-
let result
|
|
4905
|
-
|
|
4906
|
-
|
|
4949
|
+
let result;
|
|
4950
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4951
|
+
if (!continuationToken) {
|
|
4952
|
+
result = yield tslib.__await(this._list(options));
|
|
4953
|
+
let page = result.value || [];
|
|
4954
|
+
continuationToken = result.nextLink;
|
|
4955
|
+
setContinuationToken(page, continuationToken);
|
|
4956
|
+
yield yield tslib.__await(page);
|
|
4957
|
+
}
|
|
4907
4958
|
while (continuationToken) {
|
|
4908
4959
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4909
4960
|
continuationToken = result.nextLink;
|
|
4910
|
-
|
|
4961
|
+
let page = result.value || [];
|
|
4962
|
+
setContinuationToken(page, continuationToken);
|
|
4963
|
+
yield yield tslib.__await(page);
|
|
4911
4964
|
}
|
|
4912
4965
|
});
|
|
4913
4966
|
}
|
|
@@ -4943,20 +4996,31 @@ class VirtualMachinesImpl {
|
|
|
4943
4996
|
[Symbol.asyncIterator]() {
|
|
4944
4997
|
return this;
|
|
4945
4998
|
},
|
|
4946
|
-
byPage: () => {
|
|
4947
|
-
|
|
4999
|
+
byPage: (settings) => {
|
|
5000
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5001
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5002
|
+
}
|
|
5003
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
4948
5004
|
}
|
|
4949
5005
|
};
|
|
4950
5006
|
}
|
|
4951
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5007
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4952
5008
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4953
|
-
let result
|
|
4954
|
-
|
|
4955
|
-
|
|
5009
|
+
let result;
|
|
5010
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5011
|
+
if (!continuationToken) {
|
|
5012
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5013
|
+
let page = result.value || [];
|
|
5014
|
+
continuationToken = result.nextLink;
|
|
5015
|
+
setContinuationToken(page, continuationToken);
|
|
5016
|
+
yield yield tslib.__await(page);
|
|
5017
|
+
}
|
|
4956
5018
|
while (continuationToken) {
|
|
4957
5019
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
4958
5020
|
continuationToken = result.nextLink;
|
|
4959
|
-
|
|
5021
|
+
let page = result.value || [];
|
|
5022
|
+
setContinuationToken(page, continuationToken);
|
|
5023
|
+
yield yield tslib.__await(page);
|
|
4960
5024
|
}
|
|
4961
5025
|
});
|
|
4962
5026
|
}
|
|
@@ -5719,7 +5783,6 @@ const listNextOperationSpec$8 = {
|
|
|
5719
5783
|
bodyMapper: ErrorResponse
|
|
5720
5784
|
}
|
|
5721
5785
|
},
|
|
5722
|
-
queryParameters: [apiVersion],
|
|
5723
5786
|
urlParameters: [
|
|
5724
5787
|
$host,
|
|
5725
5788
|
nextLink,
|
|
@@ -5739,7 +5802,6 @@ const listByResourceGroupNextOperationSpec$7 = {
|
|
|
5739
5802
|
bodyMapper: ErrorResponse
|
|
5740
5803
|
}
|
|
5741
5804
|
},
|
|
5742
|
-
queryParameters: [apiVersion],
|
|
5743
5805
|
urlParameters: [
|
|
5744
5806
|
$host,
|
|
5745
5807
|
nextLink,
|
|
@@ -5780,20 +5842,31 @@ class ResourcePoolsImpl {
|
|
|
5780
5842
|
[Symbol.asyncIterator]() {
|
|
5781
5843
|
return this;
|
|
5782
5844
|
},
|
|
5783
|
-
byPage: () => {
|
|
5784
|
-
|
|
5845
|
+
byPage: (settings) => {
|
|
5846
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5847
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5848
|
+
}
|
|
5849
|
+
return this.listPagingPage(options, settings);
|
|
5785
5850
|
}
|
|
5786
5851
|
};
|
|
5787
5852
|
}
|
|
5788
|
-
listPagingPage(options) {
|
|
5853
|
+
listPagingPage(options, settings) {
|
|
5789
5854
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5790
|
-
let result
|
|
5791
|
-
|
|
5792
|
-
|
|
5855
|
+
let result;
|
|
5856
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5857
|
+
if (!continuationToken) {
|
|
5858
|
+
result = yield tslib.__await(this._list(options));
|
|
5859
|
+
let page = result.value || [];
|
|
5860
|
+
continuationToken = result.nextLink;
|
|
5861
|
+
setContinuationToken(page, continuationToken);
|
|
5862
|
+
yield yield tslib.__await(page);
|
|
5863
|
+
}
|
|
5793
5864
|
while (continuationToken) {
|
|
5794
5865
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
5795
5866
|
continuationToken = result.nextLink;
|
|
5796
|
-
|
|
5867
|
+
let page = result.value || [];
|
|
5868
|
+
setContinuationToken(page, continuationToken);
|
|
5869
|
+
yield yield tslib.__await(page);
|
|
5797
5870
|
}
|
|
5798
5871
|
});
|
|
5799
5872
|
}
|
|
@@ -5829,20 +5902,31 @@ class ResourcePoolsImpl {
|
|
|
5829
5902
|
[Symbol.asyncIterator]() {
|
|
5830
5903
|
return this;
|
|
5831
5904
|
},
|
|
5832
|
-
byPage: () => {
|
|
5833
|
-
|
|
5905
|
+
byPage: (settings) => {
|
|
5906
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5907
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5908
|
+
}
|
|
5909
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
5834
5910
|
}
|
|
5835
5911
|
};
|
|
5836
5912
|
}
|
|
5837
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5913
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5838
5914
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5839
|
-
let result
|
|
5840
|
-
|
|
5841
|
-
|
|
5915
|
+
let result;
|
|
5916
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5917
|
+
if (!continuationToken) {
|
|
5918
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5919
|
+
let page = result.value || [];
|
|
5920
|
+
continuationToken = result.nextLink;
|
|
5921
|
+
setContinuationToken(page, continuationToken);
|
|
5922
|
+
yield yield tslib.__await(page);
|
|
5923
|
+
}
|
|
5842
5924
|
while (continuationToken) {
|
|
5843
5925
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
5844
5926
|
continuationToken = result.nextLink;
|
|
5845
|
-
|
|
5927
|
+
let page = result.value || [];
|
|
5928
|
+
setContinuationToken(page, continuationToken);
|
|
5929
|
+
yield yield tslib.__await(page);
|
|
5846
5930
|
}
|
|
5847
5931
|
});
|
|
5848
5932
|
}
|
|
@@ -6165,7 +6249,6 @@ const listNextOperationSpec$7 = {
|
|
|
6165
6249
|
bodyMapper: ErrorResponse
|
|
6166
6250
|
}
|
|
6167
6251
|
},
|
|
6168
|
-
queryParameters: [apiVersion],
|
|
6169
6252
|
urlParameters: [
|
|
6170
6253
|
$host,
|
|
6171
6254
|
nextLink,
|
|
@@ -6185,7 +6268,6 @@ const listByResourceGroupNextOperationSpec$6 = {
|
|
|
6185
6268
|
bodyMapper: ErrorResponse
|
|
6186
6269
|
}
|
|
6187
6270
|
},
|
|
6188
|
-
queryParameters: [apiVersion],
|
|
6189
6271
|
urlParameters: [
|
|
6190
6272
|
$host,
|
|
6191
6273
|
nextLink,
|
|
@@ -6226,20 +6308,31 @@ class ClustersImpl {
|
|
|
6226
6308
|
[Symbol.asyncIterator]() {
|
|
6227
6309
|
return this;
|
|
6228
6310
|
},
|
|
6229
|
-
byPage: () => {
|
|
6230
|
-
|
|
6311
|
+
byPage: (settings) => {
|
|
6312
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6313
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6314
|
+
}
|
|
6315
|
+
return this.listPagingPage(options, settings);
|
|
6231
6316
|
}
|
|
6232
6317
|
};
|
|
6233
6318
|
}
|
|
6234
|
-
listPagingPage(options) {
|
|
6319
|
+
listPagingPage(options, settings) {
|
|
6235
6320
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6236
|
-
let result
|
|
6237
|
-
|
|
6238
|
-
|
|
6321
|
+
let result;
|
|
6322
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6323
|
+
if (!continuationToken) {
|
|
6324
|
+
result = yield tslib.__await(this._list(options));
|
|
6325
|
+
let page = result.value || [];
|
|
6326
|
+
continuationToken = result.nextLink;
|
|
6327
|
+
setContinuationToken(page, continuationToken);
|
|
6328
|
+
yield yield tslib.__await(page);
|
|
6329
|
+
}
|
|
6239
6330
|
while (continuationToken) {
|
|
6240
6331
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
6241
6332
|
continuationToken = result.nextLink;
|
|
6242
|
-
|
|
6333
|
+
let page = result.value || [];
|
|
6334
|
+
setContinuationToken(page, continuationToken);
|
|
6335
|
+
yield yield tslib.__await(page);
|
|
6243
6336
|
}
|
|
6244
6337
|
});
|
|
6245
6338
|
}
|
|
@@ -6275,20 +6368,31 @@ class ClustersImpl {
|
|
|
6275
6368
|
[Symbol.asyncIterator]() {
|
|
6276
6369
|
return this;
|
|
6277
6370
|
},
|
|
6278
|
-
byPage: () => {
|
|
6279
|
-
|
|
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.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
6280
6376
|
}
|
|
6281
6377
|
};
|
|
6282
6378
|
}
|
|
6283
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
6379
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6284
6380
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6285
|
-
let result
|
|
6286
|
-
|
|
6287
|
-
|
|
6381
|
+
let result;
|
|
6382
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6383
|
+
if (!continuationToken) {
|
|
6384
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6385
|
+
let page = result.value || [];
|
|
6386
|
+
continuationToken = result.nextLink;
|
|
6387
|
+
setContinuationToken(page, continuationToken);
|
|
6388
|
+
yield yield tslib.__await(page);
|
|
6389
|
+
}
|
|
6288
6390
|
while (continuationToken) {
|
|
6289
6391
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
6290
6392
|
continuationToken = result.nextLink;
|
|
6291
|
-
|
|
6393
|
+
let page = result.value || [];
|
|
6394
|
+
setContinuationToken(page, continuationToken);
|
|
6395
|
+
yield yield tslib.__await(page);
|
|
6292
6396
|
}
|
|
6293
6397
|
});
|
|
6294
6398
|
}
|
|
@@ -6611,7 +6715,6 @@ const listNextOperationSpec$6 = {
|
|
|
6611
6715
|
bodyMapper: ErrorResponse
|
|
6612
6716
|
}
|
|
6613
6717
|
},
|
|
6614
|
-
queryParameters: [apiVersion],
|
|
6615
6718
|
urlParameters: [
|
|
6616
6719
|
$host,
|
|
6617
6720
|
nextLink,
|
|
@@ -6631,7 +6734,6 @@ const listByResourceGroupNextOperationSpec$5 = {
|
|
|
6631
6734
|
bodyMapper: ErrorResponse
|
|
6632
6735
|
}
|
|
6633
6736
|
},
|
|
6634
|
-
queryParameters: [apiVersion],
|
|
6635
6737
|
urlParameters: [
|
|
6636
6738
|
$host,
|
|
6637
6739
|
nextLink,
|
|
@@ -6672,20 +6774,31 @@ class HostsImpl {
|
|
|
6672
6774
|
[Symbol.asyncIterator]() {
|
|
6673
6775
|
return this;
|
|
6674
6776
|
},
|
|
6675
|
-
byPage: () => {
|
|
6676
|
-
|
|
6777
|
+
byPage: (settings) => {
|
|
6778
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6779
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6780
|
+
}
|
|
6781
|
+
return this.listPagingPage(options, settings);
|
|
6677
6782
|
}
|
|
6678
6783
|
};
|
|
6679
6784
|
}
|
|
6680
|
-
listPagingPage(options) {
|
|
6785
|
+
listPagingPage(options, settings) {
|
|
6681
6786
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6682
|
-
let result
|
|
6683
|
-
|
|
6684
|
-
|
|
6787
|
+
let result;
|
|
6788
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6789
|
+
if (!continuationToken) {
|
|
6790
|
+
result = yield tslib.__await(this._list(options));
|
|
6791
|
+
let page = result.value || [];
|
|
6792
|
+
continuationToken = result.nextLink;
|
|
6793
|
+
setContinuationToken(page, continuationToken);
|
|
6794
|
+
yield yield tslib.__await(page);
|
|
6795
|
+
}
|
|
6685
6796
|
while (continuationToken) {
|
|
6686
6797
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
6687
6798
|
continuationToken = result.nextLink;
|
|
6688
|
-
|
|
6799
|
+
let page = result.value || [];
|
|
6800
|
+
setContinuationToken(page, continuationToken);
|
|
6801
|
+
yield yield tslib.__await(page);
|
|
6689
6802
|
}
|
|
6690
6803
|
});
|
|
6691
6804
|
}
|
|
@@ -6721,20 +6834,31 @@ class HostsImpl {
|
|
|
6721
6834
|
[Symbol.asyncIterator]() {
|
|
6722
6835
|
return this;
|
|
6723
6836
|
},
|
|
6724
|
-
byPage: () => {
|
|
6725
|
-
|
|
6837
|
+
byPage: (settings) => {
|
|
6838
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6839
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6840
|
+
}
|
|
6841
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
6726
6842
|
}
|
|
6727
6843
|
};
|
|
6728
6844
|
}
|
|
6729
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
6845
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6730
6846
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6731
|
-
let result
|
|
6732
|
-
|
|
6733
|
-
|
|
6847
|
+
let result;
|
|
6848
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6849
|
+
if (!continuationToken) {
|
|
6850
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6851
|
+
let page = result.value || [];
|
|
6852
|
+
continuationToken = result.nextLink;
|
|
6853
|
+
setContinuationToken(page, continuationToken);
|
|
6854
|
+
yield yield tslib.__await(page);
|
|
6855
|
+
}
|
|
6734
6856
|
while (continuationToken) {
|
|
6735
6857
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
6736
6858
|
continuationToken = result.nextLink;
|
|
6737
|
-
|
|
6859
|
+
let page = result.value || [];
|
|
6860
|
+
setContinuationToken(page, continuationToken);
|
|
6861
|
+
yield yield tslib.__await(page);
|
|
6738
6862
|
}
|
|
6739
6863
|
});
|
|
6740
6864
|
}
|
|
@@ -7057,7 +7181,6 @@ const listNextOperationSpec$5 = {
|
|
|
7057
7181
|
bodyMapper: ErrorResponse
|
|
7058
7182
|
}
|
|
7059
7183
|
},
|
|
7060
|
-
queryParameters: [apiVersion],
|
|
7061
7184
|
urlParameters: [
|
|
7062
7185
|
$host,
|
|
7063
7186
|
nextLink,
|
|
@@ -7077,7 +7200,6 @@ const listByResourceGroupNextOperationSpec$4 = {
|
|
|
7077
7200
|
bodyMapper: ErrorResponse
|
|
7078
7201
|
}
|
|
7079
7202
|
},
|
|
7080
|
-
queryParameters: [apiVersion],
|
|
7081
7203
|
urlParameters: [
|
|
7082
7204
|
$host,
|
|
7083
7205
|
nextLink,
|
|
@@ -7118,20 +7240,31 @@ class DatastoresImpl {
|
|
|
7118
7240
|
[Symbol.asyncIterator]() {
|
|
7119
7241
|
return this;
|
|
7120
7242
|
},
|
|
7121
|
-
byPage: () => {
|
|
7122
|
-
|
|
7243
|
+
byPage: (settings) => {
|
|
7244
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7245
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
7246
|
+
}
|
|
7247
|
+
return this.listPagingPage(options, settings);
|
|
7123
7248
|
}
|
|
7124
7249
|
};
|
|
7125
7250
|
}
|
|
7126
|
-
listPagingPage(options) {
|
|
7251
|
+
listPagingPage(options, settings) {
|
|
7127
7252
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7128
|
-
let result
|
|
7129
|
-
|
|
7130
|
-
|
|
7253
|
+
let result;
|
|
7254
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7255
|
+
if (!continuationToken) {
|
|
7256
|
+
result = yield tslib.__await(this._list(options));
|
|
7257
|
+
let page = result.value || [];
|
|
7258
|
+
continuationToken = result.nextLink;
|
|
7259
|
+
setContinuationToken(page, continuationToken);
|
|
7260
|
+
yield yield tslib.__await(page);
|
|
7261
|
+
}
|
|
7131
7262
|
while (continuationToken) {
|
|
7132
7263
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
7133
7264
|
continuationToken = result.nextLink;
|
|
7134
|
-
|
|
7265
|
+
let page = result.value || [];
|
|
7266
|
+
setContinuationToken(page, continuationToken);
|
|
7267
|
+
yield yield tslib.__await(page);
|
|
7135
7268
|
}
|
|
7136
7269
|
});
|
|
7137
7270
|
}
|
|
@@ -7167,20 +7300,31 @@ class DatastoresImpl {
|
|
|
7167
7300
|
[Symbol.asyncIterator]() {
|
|
7168
7301
|
return this;
|
|
7169
7302
|
},
|
|
7170
|
-
byPage: () => {
|
|
7171
|
-
|
|
7303
|
+
byPage: (settings) => {
|
|
7304
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7305
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
7306
|
+
}
|
|
7307
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
7172
7308
|
}
|
|
7173
7309
|
};
|
|
7174
7310
|
}
|
|
7175
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
7311
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
7176
7312
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
7177
|
-
let result
|
|
7178
|
-
|
|
7179
|
-
|
|
7313
|
+
let result;
|
|
7314
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7315
|
+
if (!continuationToken) {
|
|
7316
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
7317
|
+
let page = result.value || [];
|
|
7318
|
+
continuationToken = result.nextLink;
|
|
7319
|
+
setContinuationToken(page, continuationToken);
|
|
7320
|
+
yield yield tslib.__await(page);
|
|
7321
|
+
}
|
|
7180
7322
|
while (continuationToken) {
|
|
7181
7323
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
7182
7324
|
continuationToken = result.nextLink;
|
|
7183
|
-
|
|
7325
|
+
let page = result.value || [];
|
|
7326
|
+
setContinuationToken(page, continuationToken);
|
|
7327
|
+
yield yield tslib.__await(page);
|
|
7184
7328
|
}
|
|
7185
7329
|
});
|
|
7186
7330
|
}
|
|
@@ -7503,7 +7647,6 @@ const listNextOperationSpec$4 = {
|
|
|
7503
7647
|
bodyMapper: ErrorResponse
|
|
7504
7648
|
}
|
|
7505
7649
|
},
|
|
7506
|
-
queryParameters: [apiVersion],
|
|
7507
7650
|
urlParameters: [
|
|
7508
7651
|
$host,
|
|
7509
7652
|
nextLink,
|
|
@@ -7523,7 +7666,6 @@ const listByResourceGroupNextOperationSpec$3 = {
|
|
|
7523
7666
|
bodyMapper: ErrorResponse
|
|
7524
7667
|
}
|
|
7525
7668
|
},
|
|
7526
|
-
queryParameters: [apiVersion],
|
|
7527
7669
|
urlParameters: [
|
|
7528
7670
|
$host,
|
|
7529
7671
|
nextLink,
|
|
@@ -7564,20 +7706,31 @@ class VCentersImpl {
|
|
|
7564
7706
|
[Symbol.asyncIterator]() {
|
|
7565
7707
|
return this;
|
|
7566
7708
|
},
|
|
7567
|
-
byPage: () => {
|
|
7568
|
-
|
|
7709
|
+
byPage: (settings) => {
|
|
7710
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7711
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
7712
|
+
}
|
|
7713
|
+
return this.listPagingPage(options, settings);
|
|
7569
7714
|
}
|
|
7570
7715
|
};
|
|
7571
7716
|
}
|
|
7572
|
-
listPagingPage(options) {
|
|
7717
|
+
listPagingPage(options, settings) {
|
|
7573
7718
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7574
|
-
let result
|
|
7575
|
-
|
|
7576
|
-
|
|
7719
|
+
let result;
|
|
7720
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7721
|
+
if (!continuationToken) {
|
|
7722
|
+
result = yield tslib.__await(this._list(options));
|
|
7723
|
+
let page = result.value || [];
|
|
7724
|
+
continuationToken = result.nextLink;
|
|
7725
|
+
setContinuationToken(page, continuationToken);
|
|
7726
|
+
yield yield tslib.__await(page);
|
|
7727
|
+
}
|
|
7577
7728
|
while (continuationToken) {
|
|
7578
7729
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
7579
7730
|
continuationToken = result.nextLink;
|
|
7580
|
-
|
|
7731
|
+
let page = result.value || [];
|
|
7732
|
+
setContinuationToken(page, continuationToken);
|
|
7733
|
+
yield yield tslib.__await(page);
|
|
7581
7734
|
}
|
|
7582
7735
|
});
|
|
7583
7736
|
}
|
|
@@ -7613,20 +7766,31 @@ class VCentersImpl {
|
|
|
7613
7766
|
[Symbol.asyncIterator]() {
|
|
7614
7767
|
return this;
|
|
7615
7768
|
},
|
|
7616
|
-
byPage: () => {
|
|
7617
|
-
|
|
7769
|
+
byPage: (settings) => {
|
|
7770
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7771
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
7772
|
+
}
|
|
7773
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
7618
7774
|
}
|
|
7619
7775
|
};
|
|
7620
7776
|
}
|
|
7621
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
7777
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
7622
7778
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
7623
|
-
let result
|
|
7624
|
-
|
|
7625
|
-
|
|
7779
|
+
let result;
|
|
7780
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7781
|
+
if (!continuationToken) {
|
|
7782
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
7783
|
+
let page = result.value || [];
|
|
7784
|
+
continuationToken = result.nextLink;
|
|
7785
|
+
setContinuationToken(page, continuationToken);
|
|
7786
|
+
yield yield tslib.__await(page);
|
|
7787
|
+
}
|
|
7626
7788
|
while (continuationToken) {
|
|
7627
7789
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
7628
7790
|
continuationToken = result.nextLink;
|
|
7629
|
-
|
|
7791
|
+
let page = result.value || [];
|
|
7792
|
+
setContinuationToken(page, continuationToken);
|
|
7793
|
+
yield yield tslib.__await(page);
|
|
7630
7794
|
}
|
|
7631
7795
|
});
|
|
7632
7796
|
}
|
|
@@ -7949,7 +8113,6 @@ const listNextOperationSpec$3 = {
|
|
|
7949
8113
|
bodyMapper: ErrorResponse
|
|
7950
8114
|
}
|
|
7951
8115
|
},
|
|
7952
|
-
queryParameters: [apiVersion],
|
|
7953
8116
|
urlParameters: [
|
|
7954
8117
|
$host,
|
|
7955
8118
|
nextLink,
|
|
@@ -7969,7 +8132,6 @@ const listByResourceGroupNextOperationSpec$2 = {
|
|
|
7969
8132
|
bodyMapper: ErrorResponse
|
|
7970
8133
|
}
|
|
7971
8134
|
},
|
|
7972
|
-
queryParameters: [apiVersion],
|
|
7973
8135
|
urlParameters: [
|
|
7974
8136
|
$host,
|
|
7975
8137
|
nextLink,
|
|
@@ -8010,20 +8172,31 @@ class VirtualMachineTemplatesImpl {
|
|
|
8010
8172
|
[Symbol.asyncIterator]() {
|
|
8011
8173
|
return this;
|
|
8012
8174
|
},
|
|
8013
|
-
byPage: () => {
|
|
8014
|
-
|
|
8175
|
+
byPage: (settings) => {
|
|
8176
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8177
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
8178
|
+
}
|
|
8179
|
+
return this.listPagingPage(options, settings);
|
|
8015
8180
|
}
|
|
8016
8181
|
};
|
|
8017
8182
|
}
|
|
8018
|
-
listPagingPage(options) {
|
|
8183
|
+
listPagingPage(options, settings) {
|
|
8019
8184
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8020
|
-
let result
|
|
8021
|
-
|
|
8022
|
-
|
|
8185
|
+
let result;
|
|
8186
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8187
|
+
if (!continuationToken) {
|
|
8188
|
+
result = yield tslib.__await(this._list(options));
|
|
8189
|
+
let page = result.value || [];
|
|
8190
|
+
continuationToken = result.nextLink;
|
|
8191
|
+
setContinuationToken(page, continuationToken);
|
|
8192
|
+
yield yield tslib.__await(page);
|
|
8193
|
+
}
|
|
8023
8194
|
while (continuationToken) {
|
|
8024
8195
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
8025
8196
|
continuationToken = result.nextLink;
|
|
8026
|
-
|
|
8197
|
+
let page = result.value || [];
|
|
8198
|
+
setContinuationToken(page, continuationToken);
|
|
8199
|
+
yield yield tslib.__await(page);
|
|
8027
8200
|
}
|
|
8028
8201
|
});
|
|
8029
8202
|
}
|
|
@@ -8059,20 +8232,31 @@ class VirtualMachineTemplatesImpl {
|
|
|
8059
8232
|
[Symbol.asyncIterator]() {
|
|
8060
8233
|
return this;
|
|
8061
8234
|
},
|
|
8062
|
-
byPage: () => {
|
|
8063
|
-
|
|
8235
|
+
byPage: (settings) => {
|
|
8236
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8237
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
8238
|
+
}
|
|
8239
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
8064
8240
|
}
|
|
8065
8241
|
};
|
|
8066
8242
|
}
|
|
8067
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
8243
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
8068
8244
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
8069
|
-
let result
|
|
8070
|
-
|
|
8071
|
-
|
|
8245
|
+
let result;
|
|
8246
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8247
|
+
if (!continuationToken) {
|
|
8248
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
8249
|
+
let page = result.value || [];
|
|
8250
|
+
continuationToken = result.nextLink;
|
|
8251
|
+
setContinuationToken(page, continuationToken);
|
|
8252
|
+
yield yield tslib.__await(page);
|
|
8253
|
+
}
|
|
8072
8254
|
while (continuationToken) {
|
|
8073
8255
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
8074
8256
|
continuationToken = result.nextLink;
|
|
8075
|
-
|
|
8257
|
+
let page = result.value || [];
|
|
8258
|
+
setContinuationToken(page, continuationToken);
|
|
8259
|
+
yield yield tslib.__await(page);
|
|
8076
8260
|
}
|
|
8077
8261
|
});
|
|
8078
8262
|
}
|
|
@@ -8395,7 +8579,6 @@ const listNextOperationSpec$2 = {
|
|
|
8395
8579
|
bodyMapper: ErrorResponse
|
|
8396
8580
|
}
|
|
8397
8581
|
},
|
|
8398
|
-
queryParameters: [apiVersion],
|
|
8399
8582
|
urlParameters: [
|
|
8400
8583
|
$host,
|
|
8401
8584
|
nextLink,
|
|
@@ -8415,7 +8598,6 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
8415
8598
|
bodyMapper: ErrorResponse
|
|
8416
8599
|
}
|
|
8417
8600
|
},
|
|
8418
|
-
queryParameters: [apiVersion],
|
|
8419
8601
|
urlParameters: [
|
|
8420
8602
|
$host,
|
|
8421
8603
|
nextLink,
|
|
@@ -8456,20 +8638,31 @@ class VirtualNetworksImpl {
|
|
|
8456
8638
|
[Symbol.asyncIterator]() {
|
|
8457
8639
|
return this;
|
|
8458
8640
|
},
|
|
8459
|
-
byPage: () => {
|
|
8460
|
-
|
|
8641
|
+
byPage: (settings) => {
|
|
8642
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8643
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
8644
|
+
}
|
|
8645
|
+
return this.listPagingPage(options, settings);
|
|
8461
8646
|
}
|
|
8462
8647
|
};
|
|
8463
8648
|
}
|
|
8464
|
-
listPagingPage(options) {
|
|
8649
|
+
listPagingPage(options, settings) {
|
|
8465
8650
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8466
|
-
let result
|
|
8467
|
-
|
|
8468
|
-
|
|
8651
|
+
let result;
|
|
8652
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8653
|
+
if (!continuationToken) {
|
|
8654
|
+
result = yield tslib.__await(this._list(options));
|
|
8655
|
+
let page = result.value || [];
|
|
8656
|
+
continuationToken = result.nextLink;
|
|
8657
|
+
setContinuationToken(page, continuationToken);
|
|
8658
|
+
yield yield tslib.__await(page);
|
|
8659
|
+
}
|
|
8469
8660
|
while (continuationToken) {
|
|
8470
8661
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
8471
8662
|
continuationToken = result.nextLink;
|
|
8472
|
-
|
|
8663
|
+
let page = result.value || [];
|
|
8664
|
+
setContinuationToken(page, continuationToken);
|
|
8665
|
+
yield yield tslib.__await(page);
|
|
8473
8666
|
}
|
|
8474
8667
|
});
|
|
8475
8668
|
}
|
|
@@ -8505,20 +8698,31 @@ class VirtualNetworksImpl {
|
|
|
8505
8698
|
[Symbol.asyncIterator]() {
|
|
8506
8699
|
return this;
|
|
8507
8700
|
},
|
|
8508
|
-
byPage: () => {
|
|
8509
|
-
|
|
8701
|
+
byPage: (settings) => {
|
|
8702
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8703
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
8704
|
+
}
|
|
8705
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
8510
8706
|
}
|
|
8511
8707
|
};
|
|
8512
8708
|
}
|
|
8513
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
8709
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
8514
8710
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
8515
|
-
let result
|
|
8516
|
-
|
|
8517
|
-
|
|
8711
|
+
let result;
|
|
8712
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8713
|
+
if (!continuationToken) {
|
|
8714
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
8715
|
+
let page = result.value || [];
|
|
8716
|
+
continuationToken = result.nextLink;
|
|
8717
|
+
setContinuationToken(page, continuationToken);
|
|
8718
|
+
yield yield tslib.__await(page);
|
|
8719
|
+
}
|
|
8518
8720
|
while (continuationToken) {
|
|
8519
8721
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
8520
8722
|
continuationToken = result.nextLink;
|
|
8521
|
-
|
|
8723
|
+
let page = result.value || [];
|
|
8724
|
+
setContinuationToken(page, continuationToken);
|
|
8725
|
+
yield yield tslib.__await(page);
|
|
8522
8726
|
}
|
|
8523
8727
|
});
|
|
8524
8728
|
}
|
|
@@ -8841,7 +9045,6 @@ const listNextOperationSpec$1 = {
|
|
|
8841
9045
|
bodyMapper: ErrorResponse
|
|
8842
9046
|
}
|
|
8843
9047
|
},
|
|
8844
|
-
queryParameters: [apiVersion],
|
|
8845
9048
|
urlParameters: [
|
|
8846
9049
|
$host,
|
|
8847
9050
|
nextLink,
|
|
@@ -8861,7 +9064,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
8861
9064
|
bodyMapper: ErrorResponse
|
|
8862
9065
|
}
|
|
8863
9066
|
},
|
|
8864
|
-
queryParameters: [apiVersion],
|
|
8865
9067
|
urlParameters: [
|
|
8866
9068
|
$host,
|
|
8867
9069
|
nextLink,
|
|
@@ -8904,20 +9106,31 @@ class InventoryItemsImpl {
|
|
|
8904
9106
|
[Symbol.asyncIterator]() {
|
|
8905
9107
|
return this;
|
|
8906
9108
|
},
|
|
8907
|
-
byPage: () => {
|
|
8908
|
-
|
|
9109
|
+
byPage: (settings) => {
|
|
9110
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9111
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
9112
|
+
}
|
|
9113
|
+
return this.listByVCenterPagingPage(resourceGroupName, vcenterName, options, settings);
|
|
8909
9114
|
}
|
|
8910
9115
|
};
|
|
8911
9116
|
}
|
|
8912
|
-
listByVCenterPagingPage(resourceGroupName, vcenterName, options) {
|
|
9117
|
+
listByVCenterPagingPage(resourceGroupName, vcenterName, options, settings) {
|
|
8913
9118
|
return tslib.__asyncGenerator(this, arguments, function* listByVCenterPagingPage_1() {
|
|
8914
|
-
let result
|
|
8915
|
-
|
|
8916
|
-
|
|
9119
|
+
let result;
|
|
9120
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
9121
|
+
if (!continuationToken) {
|
|
9122
|
+
result = yield tslib.__await(this._listByVCenter(resourceGroupName, vcenterName, options));
|
|
9123
|
+
let page = result.value || [];
|
|
9124
|
+
continuationToken = result.nextLink;
|
|
9125
|
+
setContinuationToken(page, continuationToken);
|
|
9126
|
+
yield yield tslib.__await(page);
|
|
9127
|
+
}
|
|
8917
9128
|
while (continuationToken) {
|
|
8918
9129
|
result = yield tslib.__await(this._listByVCenterNext(resourceGroupName, vcenterName, continuationToken, options));
|
|
8919
9130
|
continuationToken = result.nextLink;
|
|
8920
|
-
|
|
9131
|
+
let page = result.value || [];
|
|
9132
|
+
setContinuationToken(page, continuationToken);
|
|
9133
|
+
yield yield tslib.__await(page);
|
|
8921
9134
|
}
|
|
8922
9135
|
});
|
|
8923
9136
|
}
|
|
@@ -9090,7 +9303,6 @@ const listByVCenterNextOperationSpec = {
|
|
|
9090
9303
|
bodyMapper: ErrorResponse
|
|
9091
9304
|
}
|
|
9092
9305
|
},
|
|
9093
|
-
queryParameters: [apiVersion],
|
|
9094
9306
|
urlParameters: [
|
|
9095
9307
|
$host,
|
|
9096
9308
|
nextLink,
|
|
@@ -9134,20 +9346,31 @@ class HybridIdentityMetadataOperationsImpl {
|
|
|
9134
9346
|
[Symbol.asyncIterator]() {
|
|
9135
9347
|
return this;
|
|
9136
9348
|
},
|
|
9137
|
-
byPage: () => {
|
|
9138
|
-
|
|
9349
|
+
byPage: (settings) => {
|
|
9350
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9351
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
9352
|
+
}
|
|
9353
|
+
return this.listByVmPagingPage(resourceGroupName, virtualMachineName, options, settings);
|
|
9139
9354
|
}
|
|
9140
9355
|
};
|
|
9141
9356
|
}
|
|
9142
|
-
listByVmPagingPage(resourceGroupName, virtualMachineName, options) {
|
|
9357
|
+
listByVmPagingPage(resourceGroupName, virtualMachineName, options, settings) {
|
|
9143
9358
|
return tslib.__asyncGenerator(this, arguments, function* listByVmPagingPage_1() {
|
|
9144
|
-
let result
|
|
9145
|
-
|
|
9146
|
-
|
|
9359
|
+
let result;
|
|
9360
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
9361
|
+
if (!continuationToken) {
|
|
9362
|
+
result = yield tslib.__await(this._listByVm(resourceGroupName, virtualMachineName, options));
|
|
9363
|
+
let page = result.value || [];
|
|
9364
|
+
continuationToken = result.nextLink;
|
|
9365
|
+
setContinuationToken(page, continuationToken);
|
|
9366
|
+
yield yield tslib.__await(page);
|
|
9367
|
+
}
|
|
9147
9368
|
while (continuationToken) {
|
|
9148
9369
|
result = yield tslib.__await(this._listByVmNext(resourceGroupName, virtualMachineName, continuationToken, options));
|
|
9149
9370
|
continuationToken = result.nextLink;
|
|
9150
|
-
|
|
9371
|
+
let page = result.value || [];
|
|
9372
|
+
setContinuationToken(page, continuationToken);
|
|
9373
|
+
yield yield tslib.__await(page);
|
|
9151
9374
|
}
|
|
9152
9375
|
});
|
|
9153
9376
|
}
|
|
@@ -9320,7 +9543,6 @@ const listByVmNextOperationSpec$1 = {
|
|
|
9320
9543
|
bodyMapper: ErrorResponse
|
|
9321
9544
|
}
|
|
9322
9545
|
},
|
|
9323
|
-
queryParameters: [apiVersion],
|
|
9324
9546
|
urlParameters: [
|
|
9325
9547
|
$host,
|
|
9326
9548
|
nextLink,
|
|
@@ -9364,20 +9586,31 @@ class MachineExtensionsImpl {
|
|
|
9364
9586
|
[Symbol.asyncIterator]() {
|
|
9365
9587
|
return this;
|
|
9366
9588
|
},
|
|
9367
|
-
byPage: () => {
|
|
9368
|
-
|
|
9589
|
+
byPage: (settings) => {
|
|
9590
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9591
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
9592
|
+
}
|
|
9593
|
+
return this.listPagingPage(resourceGroupName, name, options, settings);
|
|
9369
9594
|
}
|
|
9370
9595
|
};
|
|
9371
9596
|
}
|
|
9372
|
-
listPagingPage(resourceGroupName, name, options) {
|
|
9597
|
+
listPagingPage(resourceGroupName, name, options, settings) {
|
|
9373
9598
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9374
|
-
let result
|
|
9375
|
-
|
|
9376
|
-
|
|
9599
|
+
let result;
|
|
9600
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
9601
|
+
if (!continuationToken) {
|
|
9602
|
+
result = yield tslib.__await(this._list(resourceGroupName, name, options));
|
|
9603
|
+
let page = result.value || [];
|
|
9604
|
+
continuationToken = result.nextLink;
|
|
9605
|
+
setContinuationToken(page, continuationToken);
|
|
9606
|
+
yield yield tslib.__await(page);
|
|
9607
|
+
}
|
|
9377
9608
|
while (continuationToken) {
|
|
9378
9609
|
result = yield tslib.__await(this._listNext(resourceGroupName, name, continuationToken, options));
|
|
9379
9610
|
continuationToken = result.nextLink;
|
|
9380
|
-
|
|
9611
|
+
let page = result.value || [];
|
|
9612
|
+
setContinuationToken(page, continuationToken);
|
|
9613
|
+
yield yield tslib.__await(page);
|
|
9381
9614
|
}
|
|
9382
9615
|
});
|
|
9383
9616
|
}
|
|
@@ -9738,7 +9971,6 @@ const listNextOperationSpec = {
|
|
|
9738
9971
|
bodyMapper: ErrorResponse
|
|
9739
9972
|
}
|
|
9740
9973
|
},
|
|
9741
|
-
queryParameters: [apiVersion, expand],
|
|
9742
9974
|
urlParameters: [
|
|
9743
9975
|
$host,
|
|
9744
9976
|
nextLink,
|
|
@@ -9782,20 +10014,31 @@ class GuestAgentsImpl {
|
|
|
9782
10014
|
[Symbol.asyncIterator]() {
|
|
9783
10015
|
return this;
|
|
9784
10016
|
},
|
|
9785
|
-
byPage: () => {
|
|
9786
|
-
|
|
10017
|
+
byPage: (settings) => {
|
|
10018
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
10019
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
10020
|
+
}
|
|
10021
|
+
return this.listByVmPagingPage(resourceGroupName, virtualMachineName, options, settings);
|
|
9787
10022
|
}
|
|
9788
10023
|
};
|
|
9789
10024
|
}
|
|
9790
|
-
listByVmPagingPage(resourceGroupName, virtualMachineName, options) {
|
|
10025
|
+
listByVmPagingPage(resourceGroupName, virtualMachineName, options, settings) {
|
|
9791
10026
|
return tslib.__asyncGenerator(this, arguments, function* listByVmPagingPage_1() {
|
|
9792
|
-
let result
|
|
9793
|
-
|
|
9794
|
-
|
|
10027
|
+
let result;
|
|
10028
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
10029
|
+
if (!continuationToken) {
|
|
10030
|
+
result = yield tslib.__await(this._listByVm(resourceGroupName, virtualMachineName, options));
|
|
10031
|
+
let page = result.value || [];
|
|
10032
|
+
continuationToken = result.nextLink;
|
|
10033
|
+
setContinuationToken(page, continuationToken);
|
|
10034
|
+
yield yield tslib.__await(page);
|
|
10035
|
+
}
|
|
9795
10036
|
while (continuationToken) {
|
|
9796
10037
|
result = yield tslib.__await(this._listByVmNext(resourceGroupName, virtualMachineName, continuationToken, options));
|
|
9797
10038
|
continuationToken = result.nextLink;
|
|
9798
|
-
|
|
10039
|
+
let page = result.value || [];
|
|
10040
|
+
setContinuationToken(page, continuationToken);
|
|
10041
|
+
yield yield tslib.__await(page);
|
|
9799
10042
|
}
|
|
9800
10043
|
});
|
|
9801
10044
|
}
|
|
@@ -10066,7 +10309,6 @@ const listByVmNextOperationSpec = {
|
|
|
10066
10309
|
bodyMapper: ErrorResponse
|
|
10067
10310
|
}
|
|
10068
10311
|
},
|
|
10069
|
-
queryParameters: [apiVersion],
|
|
10070
10312
|
urlParameters: [
|
|
10071
10313
|
$host,
|
|
10072
10314
|
nextLink,
|
|
@@ -10093,7 +10335,7 @@ class AzureArcVMwareManagementServiceAPI extends coreClient__namespace.ServiceCl
|
|
|
10093
10335
|
* @param options The parameter options
|
|
10094
10336
|
*/
|
|
10095
10337
|
constructor(credentials, subscriptionId, options) {
|
|
10096
|
-
var _a, _b;
|
|
10338
|
+
var _a, _b, _c;
|
|
10097
10339
|
if (credentials === undefined) {
|
|
10098
10340
|
throw new Error("'credentials' cannot be null");
|
|
10099
10341
|
}
|
|
@@ -10108,16 +10350,13 @@ class AzureArcVMwareManagementServiceAPI extends coreClient__namespace.ServiceCl
|
|
|
10108
10350
|
requestContentType: "application/json; charset=utf-8",
|
|
10109
10351
|
credential: credentials
|
|
10110
10352
|
};
|
|
10111
|
-
const packageDetails = `azsdk-js-arm-connectedvmware/1.0.0-beta.
|
|
10353
|
+
const packageDetails = `azsdk-js-arm-connectedvmware/1.0.0-beta.2`;
|
|
10112
10354
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10113
10355
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10114
10356
|
: `${packageDetails}`;
|
|
10115
|
-
if (!options.credentialScopes) {
|
|
10116
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
10117
|
-
}
|
|
10118
10357
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
10119
10358
|
userAgentPrefix
|
|
10120
|
-
},
|
|
10359
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
10121
10360
|
super(optionsWithDefaults);
|
|
10122
10361
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
10123
10362
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
@@ -10134,7 +10373,7 @@ class AzureArcVMwareManagementServiceAPI extends coreClient__namespace.ServiceCl
|
|
|
10134
10373
|
});
|
|
10135
10374
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
10136
10375
|
credential: credentials,
|
|
10137
|
-
scopes: `${optionsWithDefaults.
|
|
10376
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
10138
10377
|
challengeCallbacks: {
|
|
10139
10378
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
10140
10379
|
}
|
|
@@ -10190,4 +10429,5 @@ class AzureArcVMwareManagementServiceAPI extends coreClient__namespace.ServiceCl
|
|
|
10190
10429
|
}
|
|
10191
10430
|
|
|
10192
10431
|
exports.AzureArcVMwareManagementServiceAPI = AzureArcVMwareManagementServiceAPI;
|
|
10432
|
+
exports.getContinuationToken = getContinuationToken;
|
|
10193
10433
|
//# sourceMappingURL=index.js.map
|