@azure/arm-labservices 3.0.1-alpha.20230127.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -11
- package/LICENSE +1 -1
- package/dist/index.js +235 -95
- 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/imagesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesGetSample.js +11 -3
- package/dist-esm/samples-dev/imagesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesListByLabPlanSample.js +11 -3
- package/dist-esm/samples-dev/imagesListByLabPlanSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/imagesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/labPlansDeleteSample.js +11 -3
- package/dist-esm/samples-dev/labPlansDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/labPlansGetSample.js +11 -3
- package/dist-esm/samples-dev/labPlansGetSample.js.map +1 -1
- package/dist-esm/samples-dev/labPlansListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/labPlansListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/labPlansListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/labPlansListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/labPlansSaveImageSample.js +11 -3
- package/dist-esm/samples-dev/labPlansSaveImageSample.js.map +1 -1
- package/dist-esm/samples-dev/labPlansUpdateSample.js +11 -3
- package/dist-esm/samples-dev/labPlansUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/labsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/labsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/labsGetSample.js +11 -3
- package/dist-esm/samples-dev/labsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/labsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/labsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/labsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/labsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/labsPublishSample.js +11 -3
- package/dist-esm/samples-dev/labsPublishSample.js.map +1 -1
- package/dist-esm/samples-dev/labsSyncGroupSample.js +11 -3
- package/dist-esm/samples-dev/labsSyncGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/labsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/labsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationResultsGetSample.js +10 -2
- package/dist-esm/samples-dev/operationResultsGetSample.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/schedulesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/schedulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesGetSample.js +11 -3
- package/dist-esm/samples-dev/schedulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesListByLabSample.js +11 -3
- package/dist-esm/samples-dev/schedulesListByLabSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/schedulesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/skusListSample.js +10 -2
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/usagesListByLocationSample.js +10 -2
- package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -1
- package/dist-esm/samples-dev/usersCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/usersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/usersDeleteSample.js +11 -3
- package/dist-esm/samples-dev/usersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/usersGetSample.js +11 -3
- package/dist-esm/samples-dev/usersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/usersInviteSample.js +11 -3
- package/dist-esm/samples-dev/usersInviteSample.js.map +1 -1
- package/dist-esm/samples-dev/usersListByLabSample.js +11 -3
- package/dist-esm/samples-dev/usersListByLabSample.js.map +1 -1
- package/dist-esm/samples-dev/usersUpdateSample.js +11 -3
- package/dist-esm/samples-dev/usersUpdateSample.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/virtualMachinesListByLabSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesListByLabSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesRedeploySample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesRedeploySample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesReimageSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesReimageSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.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/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/labServicesClient.d.ts.map +1 -1
- package/dist-esm/src/labServicesClient.js +4 -7
- package/dist-esm/src/labServicesClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +0 -16
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/operations/images.d.ts.map +1 -1
- package/dist-esm/src/operations/images.js +19 -8
- package/dist-esm/src/operations/images.js.map +1 -1
- package/dist-esm/src/operations/labPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/labPlans.js +37 -16
- package/dist-esm/src/operations/labPlans.js.map +1 -1
- package/dist-esm/src/operations/labs.d.ts.map +1 -1
- package/dist-esm/src/operations/labs.js +37 -16
- package/dist-esm/src/operations/labs.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/schedules.d.ts.map +1 -1
- package/dist-esm/src/operations/schedules.js +19 -8
- package/dist-esm/src/operations/schedules.js.map +1 -1
- package/dist-esm/src/operations/skus.d.ts.map +1 -1
- package/dist-esm/src/operations/skus.js +19 -8
- package/dist-esm/src/operations/skus.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +19 -8
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operations/users.d.ts.map +1 -1
- package/dist-esm/src/operations/users.js +19 -8
- package/dist-esm/src/operations/users.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +19 -8
- package/dist-esm/src/operations/virtualMachines.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 +7 -5
- package/review/arm-labservices.api.md +3 -8
- package/src/index.ts +1 -0
- package/src/labServicesClient.ts +5 -6
- package/src/models/index.ts +8 -32
- package/src/operations/images.ts +26 -13
- package/src/operations/labPlans.ts +45 -18
- package/src/operations/labs.ts +45 -18
- package/src/operations/operations.ts +21 -9
- package/src/operations/schedules.ts +26 -9
- package/src/operations/skus.ts +21 -9
- package/src/operations/usages.ts +21 -9
- package/src/operations/users.ts +26 -9
- package/src/operations/virtualMachines.ts +26 -9
- package/src/pagingHelper.ts +39 -0
- package/types/arm-labservices.d.ts +9 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
3
|
-
## 3.0
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
|
|
3
|
+
## 3.1.0 (2023-01-17)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Added Type Alias ConnectionType
|
|
8
|
+
- Added function getContinuationToken
|
|
9
|
+
- Interface ImagesListByLabPlanNextOptionalParams no longer has parameter filter
|
|
10
|
+
- Interface LabPlansListBySubscriptionNextOptionalParams no longer has parameter filter
|
|
11
|
+
- Interface LabsListBySubscriptionNextOptionalParams no longer has parameter filter
|
|
12
|
+
- Interface SchedulesListByLabNextOptionalParams no longer has parameter filter
|
|
13
|
+
- Interface SkusListNextOptionalParams no longer has parameter filter
|
|
14
|
+
- Interface UsagesListByLocationNextOptionalParams no longer has parameter filter
|
|
15
|
+
- Interface UsersListByLabNextOptionalParams no longer has parameter filter
|
|
16
|
+
- Interface VirtualMachinesListByLabNextOptionalParams no longer has parameter filter
|
|
17
|
+
|
|
18
|
+
|
|
13
19
|
## 3.0.0 (2022-08-24)
|
|
14
20
|
|
|
15
21
|
The package of @azure/arm-labservices is using our next generation design principles since version 3.0.0, which contains breaking changes.
|
package/LICENSE
CHANGED
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.
|
|
@@ -3201,20 +3233,31 @@ class ImagesImpl {
|
|
|
3201
3233
|
[Symbol.asyncIterator]() {
|
|
3202
3234
|
return this;
|
|
3203
3235
|
},
|
|
3204
|
-
byPage: () => {
|
|
3205
|
-
|
|
3236
|
+
byPage: (settings) => {
|
|
3237
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3238
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3239
|
+
}
|
|
3240
|
+
return this.listByLabPlanPagingPage(resourceGroupName, labPlanName, options, settings);
|
|
3206
3241
|
}
|
|
3207
3242
|
};
|
|
3208
3243
|
}
|
|
3209
|
-
listByLabPlanPagingPage(resourceGroupName, labPlanName, options) {
|
|
3244
|
+
listByLabPlanPagingPage(resourceGroupName, labPlanName, options, settings) {
|
|
3210
3245
|
return tslib.__asyncGenerator(this, arguments, function* listByLabPlanPagingPage_1() {
|
|
3211
|
-
let result
|
|
3212
|
-
|
|
3213
|
-
|
|
3246
|
+
let result;
|
|
3247
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3248
|
+
if (!continuationToken) {
|
|
3249
|
+
result = yield tslib.__await(this._listByLabPlan(resourceGroupName, labPlanName, options));
|
|
3250
|
+
let page = result.value || [];
|
|
3251
|
+
continuationToken = result.nextLink;
|
|
3252
|
+
setContinuationToken(page, continuationToken);
|
|
3253
|
+
yield yield tslib.__await(page);
|
|
3254
|
+
}
|
|
3214
3255
|
while (continuationToken) {
|
|
3215
3256
|
result = yield tslib.__await(this._listByLabPlanNext(resourceGroupName, labPlanName, continuationToken, options));
|
|
3216
3257
|
continuationToken = result.nextLink;
|
|
3217
|
-
|
|
3258
|
+
let page = result.value || [];
|
|
3259
|
+
setContinuationToken(page, continuationToken);
|
|
3260
|
+
yield yield tslib.__await(page);
|
|
3218
3261
|
}
|
|
3219
3262
|
});
|
|
3220
3263
|
}
|
|
@@ -3397,7 +3440,6 @@ const listByLabPlanNextOperationSpec = {
|
|
|
3397
3440
|
bodyMapper: ErrorResponse
|
|
3398
3441
|
}
|
|
3399
3442
|
},
|
|
3400
|
-
queryParameters: [apiVersion, filter],
|
|
3401
3443
|
urlParameters: [
|
|
3402
3444
|
$host,
|
|
3403
3445
|
subscriptionId,
|
|
@@ -3467,20 +3509,31 @@ class LabPlansImpl {
|
|
|
3467
3509
|
[Symbol.asyncIterator]() {
|
|
3468
3510
|
return this;
|
|
3469
3511
|
},
|
|
3470
|
-
byPage: () => {
|
|
3471
|
-
|
|
3512
|
+
byPage: (settings) => {
|
|
3513
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3514
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3515
|
+
}
|
|
3516
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3472
3517
|
}
|
|
3473
3518
|
};
|
|
3474
3519
|
}
|
|
3475
|
-
listBySubscriptionPagingPage(options) {
|
|
3520
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3476
3521
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3477
|
-
let result
|
|
3478
|
-
|
|
3479
|
-
|
|
3522
|
+
let result;
|
|
3523
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3524
|
+
if (!continuationToken) {
|
|
3525
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3526
|
+
let page = result.value || [];
|
|
3527
|
+
continuationToken = result.nextLink;
|
|
3528
|
+
setContinuationToken(page, continuationToken);
|
|
3529
|
+
yield yield tslib.__await(page);
|
|
3530
|
+
}
|
|
3480
3531
|
while (continuationToken) {
|
|
3481
3532
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3482
3533
|
continuationToken = result.nextLink;
|
|
3483
|
-
|
|
3534
|
+
let page = result.value || [];
|
|
3535
|
+
setContinuationToken(page, continuationToken);
|
|
3536
|
+
yield yield tslib.__await(page);
|
|
3484
3537
|
}
|
|
3485
3538
|
});
|
|
3486
3539
|
}
|
|
@@ -3516,20 +3569,31 @@ class LabPlansImpl {
|
|
|
3516
3569
|
[Symbol.asyncIterator]() {
|
|
3517
3570
|
return this;
|
|
3518
3571
|
},
|
|
3519
|
-
byPage: () => {
|
|
3520
|
-
|
|
3572
|
+
byPage: (settings) => {
|
|
3573
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3574
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3575
|
+
}
|
|
3576
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3521
3577
|
}
|
|
3522
3578
|
};
|
|
3523
3579
|
}
|
|
3524
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3580
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3525
3581
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3526
|
-
let result
|
|
3527
|
-
|
|
3528
|
-
|
|
3582
|
+
let result;
|
|
3583
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3584
|
+
if (!continuationToken) {
|
|
3585
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3586
|
+
let page = result.value || [];
|
|
3587
|
+
continuationToken = result.nextLink;
|
|
3588
|
+
setContinuationToken(page, continuationToken);
|
|
3589
|
+
yield yield tslib.__await(page);
|
|
3590
|
+
}
|
|
3529
3591
|
while (continuationToken) {
|
|
3530
3592
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3531
3593
|
continuationToken = result.nextLink;
|
|
3532
|
-
|
|
3594
|
+
let page = result.value || [];
|
|
3595
|
+
setContinuationToken(page, continuationToken);
|
|
3596
|
+
yield yield tslib.__await(page);
|
|
3533
3597
|
}
|
|
3534
3598
|
});
|
|
3535
3599
|
}
|
|
@@ -3998,7 +4062,6 @@ const listBySubscriptionNextOperationSpec$1 = {
|
|
|
3998
4062
|
bodyMapper: ErrorResponse
|
|
3999
4063
|
}
|
|
4000
4064
|
},
|
|
4001
|
-
queryParameters: [apiVersion, filter],
|
|
4002
4065
|
urlParameters: [
|
|
4003
4066
|
$host,
|
|
4004
4067
|
subscriptionId,
|
|
@@ -4018,7 +4081,6 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
4018
4081
|
bodyMapper: ErrorResponse
|
|
4019
4082
|
}
|
|
4020
4083
|
},
|
|
4021
|
-
queryParameters: [apiVersion],
|
|
4022
4084
|
urlParameters: [
|
|
4023
4085
|
$host,
|
|
4024
4086
|
subscriptionId,
|
|
@@ -4059,20 +4121,31 @@ class OperationsImpl {
|
|
|
4059
4121
|
[Symbol.asyncIterator]() {
|
|
4060
4122
|
return this;
|
|
4061
4123
|
},
|
|
4062
|
-
byPage: () => {
|
|
4063
|
-
|
|
4124
|
+
byPage: (settings) => {
|
|
4125
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4126
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4127
|
+
}
|
|
4128
|
+
return this.listPagingPage(options, settings);
|
|
4064
4129
|
}
|
|
4065
4130
|
};
|
|
4066
4131
|
}
|
|
4067
|
-
listPagingPage(options) {
|
|
4132
|
+
listPagingPage(options, settings) {
|
|
4068
4133
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4069
|
-
let result
|
|
4070
|
-
|
|
4071
|
-
|
|
4134
|
+
let result;
|
|
4135
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4136
|
+
if (!continuationToken) {
|
|
4137
|
+
result = yield tslib.__await(this._list(options));
|
|
4138
|
+
let page = result.value || [];
|
|
4139
|
+
continuationToken = result.nextLink;
|
|
4140
|
+
setContinuationToken(page, continuationToken);
|
|
4141
|
+
yield yield tslib.__await(page);
|
|
4142
|
+
}
|
|
4072
4143
|
while (continuationToken) {
|
|
4073
4144
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4074
4145
|
continuationToken = result.nextLink;
|
|
4075
|
-
|
|
4146
|
+
let page = result.value || [];
|
|
4147
|
+
setContinuationToken(page, continuationToken);
|
|
4148
|
+
yield yield tslib.__await(page);
|
|
4076
4149
|
}
|
|
4077
4150
|
});
|
|
4078
4151
|
}
|
|
@@ -4139,7 +4212,6 @@ const listNextOperationSpec$1 = {
|
|
|
4139
4212
|
bodyMapper: ErrorResponse
|
|
4140
4213
|
}
|
|
4141
4214
|
},
|
|
4142
|
-
queryParameters: [apiVersion],
|
|
4143
4215
|
urlParameters: [$host, nextLink],
|
|
4144
4216
|
headerParameters: [accept],
|
|
4145
4217
|
serializer: serializer$7
|
|
@@ -4175,20 +4247,31 @@ class LabsImpl {
|
|
|
4175
4247
|
[Symbol.asyncIterator]() {
|
|
4176
4248
|
return this;
|
|
4177
4249
|
},
|
|
4178
|
-
byPage: () => {
|
|
4179
|
-
|
|
4250
|
+
byPage: (settings) => {
|
|
4251
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4252
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4253
|
+
}
|
|
4254
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
4180
4255
|
}
|
|
4181
4256
|
};
|
|
4182
4257
|
}
|
|
4183
|
-
listBySubscriptionPagingPage(options) {
|
|
4258
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
4184
4259
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
4185
|
-
let result
|
|
4186
|
-
|
|
4187
|
-
|
|
4260
|
+
let result;
|
|
4261
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4262
|
+
if (!continuationToken) {
|
|
4263
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
4264
|
+
let page = result.value || [];
|
|
4265
|
+
continuationToken = result.nextLink;
|
|
4266
|
+
setContinuationToken(page, continuationToken);
|
|
4267
|
+
yield yield tslib.__await(page);
|
|
4268
|
+
}
|
|
4188
4269
|
while (continuationToken) {
|
|
4189
4270
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
4190
4271
|
continuationToken = result.nextLink;
|
|
4191
|
-
|
|
4272
|
+
let page = result.value || [];
|
|
4273
|
+
setContinuationToken(page, continuationToken);
|
|
4274
|
+
yield yield tslib.__await(page);
|
|
4192
4275
|
}
|
|
4193
4276
|
});
|
|
4194
4277
|
}
|
|
@@ -4224,20 +4307,31 @@ class LabsImpl {
|
|
|
4224
4307
|
[Symbol.asyncIterator]() {
|
|
4225
4308
|
return this;
|
|
4226
4309
|
},
|
|
4227
|
-
byPage: () => {
|
|
4228
|
-
|
|
4310
|
+
byPage: (settings) => {
|
|
4311
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4312
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4313
|
+
}
|
|
4314
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
4229
4315
|
}
|
|
4230
4316
|
};
|
|
4231
4317
|
}
|
|
4232
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
4318
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4233
4319
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4234
|
-
let result
|
|
4235
|
-
|
|
4236
|
-
|
|
4320
|
+
let result;
|
|
4321
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4322
|
+
if (!continuationToken) {
|
|
4323
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4324
|
+
let page = result.value || [];
|
|
4325
|
+
continuationToken = result.nextLink;
|
|
4326
|
+
setContinuationToken(page, continuationToken);
|
|
4327
|
+
yield yield tslib.__await(page);
|
|
4328
|
+
}
|
|
4237
4329
|
while (continuationToken) {
|
|
4238
4330
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
4239
4331
|
continuationToken = result.nextLink;
|
|
4240
|
-
|
|
4332
|
+
let page = result.value || [];
|
|
4333
|
+
setContinuationToken(page, continuationToken);
|
|
4334
|
+
yield yield tslib.__await(page);
|
|
4241
4335
|
}
|
|
4242
4336
|
});
|
|
4243
4337
|
}
|
|
@@ -4776,7 +4870,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
4776
4870
|
bodyMapper: ErrorResponse
|
|
4777
4871
|
}
|
|
4778
4872
|
},
|
|
4779
|
-
queryParameters: [apiVersion, filter],
|
|
4780
4873
|
urlParameters: [
|
|
4781
4874
|
$host,
|
|
4782
4875
|
subscriptionId,
|
|
@@ -4796,7 +4889,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
4796
4889
|
bodyMapper: ErrorResponse
|
|
4797
4890
|
}
|
|
4798
4891
|
},
|
|
4799
|
-
queryParameters: [apiVersion],
|
|
4800
4892
|
urlParameters: [
|
|
4801
4893
|
$host,
|
|
4802
4894
|
subscriptionId,
|
|
@@ -4889,20 +4981,31 @@ class SchedulesImpl {
|
|
|
4889
4981
|
[Symbol.asyncIterator]() {
|
|
4890
4982
|
return this;
|
|
4891
4983
|
},
|
|
4892
|
-
byPage: () => {
|
|
4893
|
-
|
|
4984
|
+
byPage: (settings) => {
|
|
4985
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4986
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4987
|
+
}
|
|
4988
|
+
return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
|
|
4894
4989
|
}
|
|
4895
4990
|
};
|
|
4896
4991
|
}
|
|
4897
|
-
listByLabPagingPage(resourceGroupName, labName, options) {
|
|
4992
|
+
listByLabPagingPage(resourceGroupName, labName, options, settings) {
|
|
4898
4993
|
return tslib.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
|
|
4899
|
-
let result
|
|
4900
|
-
|
|
4901
|
-
|
|
4994
|
+
let result;
|
|
4995
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4996
|
+
if (!continuationToken) {
|
|
4997
|
+
result = yield tslib.__await(this._listByLab(resourceGroupName, labName, options));
|
|
4998
|
+
let page = result.value || [];
|
|
4999
|
+
continuationToken = result.nextLink;
|
|
5000
|
+
setContinuationToken(page, continuationToken);
|
|
5001
|
+
yield yield tslib.__await(page);
|
|
5002
|
+
}
|
|
4902
5003
|
while (continuationToken) {
|
|
4903
5004
|
result = yield tslib.__await(this._listByLabNext(resourceGroupName, labName, continuationToken, options));
|
|
4904
5005
|
continuationToken = result.nextLink;
|
|
4905
|
-
|
|
5006
|
+
let page = result.value || [];
|
|
5007
|
+
setContinuationToken(page, continuationToken);
|
|
5008
|
+
yield yield tslib.__await(page);
|
|
4906
5009
|
}
|
|
4907
5010
|
});
|
|
4908
5011
|
}
|
|
@@ -5172,7 +5275,6 @@ const listByLabNextOperationSpec$2 = {
|
|
|
5172
5275
|
bodyMapper: ErrorResponse
|
|
5173
5276
|
}
|
|
5174
5277
|
},
|
|
5175
|
-
queryParameters: [apiVersion, filter],
|
|
5176
5278
|
urlParameters: [
|
|
5177
5279
|
$host,
|
|
5178
5280
|
subscriptionId,
|
|
@@ -5214,20 +5316,31 @@ class SkusImpl {
|
|
|
5214
5316
|
[Symbol.asyncIterator]() {
|
|
5215
5317
|
return this;
|
|
5216
5318
|
},
|
|
5217
|
-
byPage: () => {
|
|
5218
|
-
|
|
5319
|
+
byPage: (settings) => {
|
|
5320
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5321
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5322
|
+
}
|
|
5323
|
+
return this.listPagingPage(options, settings);
|
|
5219
5324
|
}
|
|
5220
5325
|
};
|
|
5221
5326
|
}
|
|
5222
|
-
listPagingPage(options) {
|
|
5327
|
+
listPagingPage(options, settings) {
|
|
5223
5328
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5224
|
-
let result
|
|
5225
|
-
|
|
5226
|
-
|
|
5329
|
+
let result;
|
|
5330
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5331
|
+
if (!continuationToken) {
|
|
5332
|
+
result = yield tslib.__await(this._list(options));
|
|
5333
|
+
let page = result.value || [];
|
|
5334
|
+
continuationToken = result.nextLink;
|
|
5335
|
+
setContinuationToken(page, continuationToken);
|
|
5336
|
+
yield yield tslib.__await(page);
|
|
5337
|
+
}
|
|
5227
5338
|
while (continuationToken) {
|
|
5228
5339
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
5229
5340
|
continuationToken = result.nextLink;
|
|
5230
|
-
|
|
5341
|
+
let page = result.value || [];
|
|
5342
|
+
setContinuationToken(page, continuationToken);
|
|
5343
|
+
yield yield tslib.__await(page);
|
|
5231
5344
|
}
|
|
5232
5345
|
});
|
|
5233
5346
|
}
|
|
@@ -5294,7 +5407,6 @@ const listNextOperationSpec = {
|
|
|
5294
5407
|
bodyMapper: ErrorResponse
|
|
5295
5408
|
}
|
|
5296
5409
|
},
|
|
5297
|
-
queryParameters: [apiVersion, filter],
|
|
5298
5410
|
urlParameters: [
|
|
5299
5411
|
$host,
|
|
5300
5412
|
subscriptionId,
|
|
@@ -5335,20 +5447,31 @@ class UsagesImpl {
|
|
|
5335
5447
|
[Symbol.asyncIterator]() {
|
|
5336
5448
|
return this;
|
|
5337
5449
|
},
|
|
5338
|
-
byPage: () => {
|
|
5339
|
-
|
|
5450
|
+
byPage: (settings) => {
|
|
5451
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5452
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5453
|
+
}
|
|
5454
|
+
return this.listByLocationPagingPage(location, options, settings);
|
|
5340
5455
|
}
|
|
5341
5456
|
};
|
|
5342
5457
|
}
|
|
5343
|
-
listByLocationPagingPage(location, options) {
|
|
5458
|
+
listByLocationPagingPage(location, options, settings) {
|
|
5344
5459
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
5345
|
-
let result
|
|
5346
|
-
|
|
5347
|
-
|
|
5460
|
+
let result;
|
|
5461
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5462
|
+
if (!continuationToken) {
|
|
5463
|
+
result = yield tslib.__await(this._listByLocation(location, options));
|
|
5464
|
+
let page = result.value || [];
|
|
5465
|
+
continuationToken = result.nextLink;
|
|
5466
|
+
setContinuationToken(page, continuationToken);
|
|
5467
|
+
yield yield tslib.__await(page);
|
|
5468
|
+
}
|
|
5348
5469
|
while (continuationToken) {
|
|
5349
5470
|
result = yield tslib.__await(this._listByLocationNext(location, continuationToken, options));
|
|
5350
5471
|
continuationToken = result.nextLink;
|
|
5351
|
-
|
|
5472
|
+
let page = result.value || [];
|
|
5473
|
+
setContinuationToken(page, continuationToken);
|
|
5474
|
+
yield yield tslib.__await(page);
|
|
5352
5475
|
}
|
|
5353
5476
|
});
|
|
5354
5477
|
}
|
|
@@ -5421,7 +5544,6 @@ const listByLocationNextOperationSpec = {
|
|
|
5421
5544
|
bodyMapper: ErrorResponse
|
|
5422
5545
|
}
|
|
5423
5546
|
},
|
|
5424
|
-
queryParameters: [apiVersion, filter],
|
|
5425
5547
|
urlParameters: [
|
|
5426
5548
|
$host,
|
|
5427
5549
|
subscriptionId,
|
|
@@ -5465,20 +5587,31 @@ class UsersImpl {
|
|
|
5465
5587
|
[Symbol.asyncIterator]() {
|
|
5466
5588
|
return this;
|
|
5467
5589
|
},
|
|
5468
|
-
byPage: () => {
|
|
5469
|
-
|
|
5590
|
+
byPage: (settings) => {
|
|
5591
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5592
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5593
|
+
}
|
|
5594
|
+
return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
|
|
5470
5595
|
}
|
|
5471
5596
|
};
|
|
5472
5597
|
}
|
|
5473
|
-
listByLabPagingPage(resourceGroupName, labName, options) {
|
|
5598
|
+
listByLabPagingPage(resourceGroupName, labName, options, settings) {
|
|
5474
5599
|
return tslib.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
|
|
5475
|
-
let result
|
|
5476
|
-
|
|
5477
|
-
|
|
5600
|
+
let result;
|
|
5601
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5602
|
+
if (!continuationToken) {
|
|
5603
|
+
result = yield tslib.__await(this._listByLab(resourceGroupName, labName, options));
|
|
5604
|
+
let page = result.value || [];
|
|
5605
|
+
continuationToken = result.nextLink;
|
|
5606
|
+
setContinuationToken(page, continuationToken);
|
|
5607
|
+
yield yield tslib.__await(page);
|
|
5608
|
+
}
|
|
5478
5609
|
while (continuationToken) {
|
|
5479
5610
|
result = yield tslib.__await(this._listByLabNext(resourceGroupName, labName, continuationToken, options));
|
|
5480
5611
|
continuationToken = result.nextLink;
|
|
5481
|
-
|
|
5612
|
+
let page = result.value || [];
|
|
5613
|
+
setContinuationToken(page, continuationToken);
|
|
5614
|
+
yield yield tslib.__await(page);
|
|
5482
5615
|
}
|
|
5483
5616
|
});
|
|
5484
5617
|
}
|
|
@@ -5942,7 +6075,6 @@ const listByLabNextOperationSpec$1 = {
|
|
|
5942
6075
|
bodyMapper: ErrorResponse
|
|
5943
6076
|
}
|
|
5944
6077
|
},
|
|
5945
|
-
queryParameters: [apiVersion, filter],
|
|
5946
6078
|
urlParameters: [
|
|
5947
6079
|
$host,
|
|
5948
6080
|
subscriptionId,
|
|
@@ -5987,20 +6119,31 @@ class VirtualMachinesImpl {
|
|
|
5987
6119
|
[Symbol.asyncIterator]() {
|
|
5988
6120
|
return this;
|
|
5989
6121
|
},
|
|
5990
|
-
byPage: () => {
|
|
5991
|
-
|
|
6122
|
+
byPage: (settings) => {
|
|
6123
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6124
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6125
|
+
}
|
|
6126
|
+
return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
|
|
5992
6127
|
}
|
|
5993
6128
|
};
|
|
5994
6129
|
}
|
|
5995
|
-
listByLabPagingPage(resourceGroupName, labName, options) {
|
|
6130
|
+
listByLabPagingPage(resourceGroupName, labName, options, settings) {
|
|
5996
6131
|
return tslib.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
|
|
5997
|
-
let result
|
|
5998
|
-
|
|
5999
|
-
|
|
6132
|
+
let result;
|
|
6133
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6134
|
+
if (!continuationToken) {
|
|
6135
|
+
result = yield tslib.__await(this._listByLab(resourceGroupName, labName, options));
|
|
6136
|
+
let page = result.value || [];
|
|
6137
|
+
continuationToken = result.nextLink;
|
|
6138
|
+
setContinuationToken(page, continuationToken);
|
|
6139
|
+
yield yield tslib.__await(page);
|
|
6140
|
+
}
|
|
6000
6141
|
while (continuationToken) {
|
|
6001
6142
|
result = yield tslib.__await(this._listByLabNext(resourceGroupName, labName, continuationToken, options));
|
|
6002
6143
|
continuationToken = result.nextLink;
|
|
6003
|
-
|
|
6144
|
+
let page = result.value || [];
|
|
6145
|
+
setContinuationToken(page, continuationToken);
|
|
6146
|
+
yield yield tslib.__await(page);
|
|
6004
6147
|
}
|
|
6005
6148
|
});
|
|
6006
6149
|
}
|
|
@@ -6525,7 +6668,6 @@ const listByLabNextOperationSpec = {
|
|
|
6525
6668
|
bodyMapper: ErrorResponse
|
|
6526
6669
|
}
|
|
6527
6670
|
},
|
|
6528
|
-
queryParameters: [apiVersion, filter],
|
|
6529
6671
|
urlParameters: [
|
|
6530
6672
|
$host,
|
|
6531
6673
|
subscriptionId,
|
|
@@ -6552,7 +6694,7 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
|
|
|
6552
6694
|
* @param options The parameter options
|
|
6553
6695
|
*/
|
|
6554
6696
|
constructor(credentials, subscriptionId, options) {
|
|
6555
|
-
var _a, _b;
|
|
6697
|
+
var _a, _b, _c;
|
|
6556
6698
|
if (credentials === undefined) {
|
|
6557
6699
|
throw new Error("'credentials' cannot be null");
|
|
6558
6700
|
}
|
|
@@ -6567,16 +6709,13 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
|
|
|
6567
6709
|
requestContentType: "application/json; charset=utf-8",
|
|
6568
6710
|
credential: credentials
|
|
6569
6711
|
};
|
|
6570
|
-
const packageDetails = `azsdk-js-arm-labservices/3.0
|
|
6712
|
+
const packageDetails = `azsdk-js-arm-labservices/3.1.0`;
|
|
6571
6713
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
6572
6714
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
6573
6715
|
: `${packageDetails}`;
|
|
6574
|
-
if (!options.credentialScopes) {
|
|
6575
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
6576
|
-
}
|
|
6577
6716
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
6578
6717
|
userAgentPrefix
|
|
6579
|
-
},
|
|
6718
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
6580
6719
|
super(optionsWithDefaults);
|
|
6581
6720
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
6582
6721
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
@@ -6593,7 +6732,7 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
|
|
|
6593
6732
|
});
|
|
6594
6733
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
6595
6734
|
credential: credentials,
|
|
6596
|
-
scopes: `${optionsWithDefaults.
|
|
6735
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
6597
6736
|
challengeCallbacks: {
|
|
6598
6737
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
6599
6738
|
}
|
|
@@ -6646,4 +6785,5 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
|
|
|
6646
6785
|
}
|
|
6647
6786
|
|
|
6648
6787
|
exports.LabServicesClient = LabServicesClient;
|
|
6788
|
+
exports.getContinuationToken = getContinuationToken;
|
|
6649
6789
|
//# sourceMappingURL=index.js.map
|