@azure/arm-desktopvirtualization 1.0.0-beta.3 → 1.0.0-beta.4
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 +26 -0
- package/README.md +1 -1
- package/dist/index.js +537 -173
- 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/msixPackagesCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/msixPackagesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/src/desktopVirtualizationAPIClient.d.ts +2 -0
- package/dist-esm/src/desktopVirtualizationAPIClient.d.ts.map +1 -1
- package/dist-esm/src/desktopVirtualizationAPIClient.js +49 -18
- package/dist-esm/src/desktopVirtualizationAPIClient.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 +101 -39
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +59 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/applicationGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationGroups.js +37 -14
- package/dist-esm/src/operations/applicationGroups.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +19 -7
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/desktops.d.ts.map +1 -1
- package/dist-esm/src/operations/desktops.js +19 -7
- package/dist-esm/src/operations/desktops.js.map +1 -1
- package/dist-esm/src/operations/hostPools.d.ts.map +1 -1
- package/dist-esm/src/operations/hostPools.js +37 -14
- package/dist-esm/src/operations/hostPools.js.map +1 -1
- package/dist-esm/src/operations/msixImages.d.ts.map +1 -1
- package/dist-esm/src/operations/msixImages.js +19 -7
- package/dist-esm/src/operations/msixImages.js.map +1 -1
- package/dist-esm/src/operations/msixPackages.d.ts.map +1 -1
- package/dist-esm/src/operations/msixPackages.js +19 -7
- package/dist-esm/src/operations/msixPackages.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +37 -14
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +37 -14
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/scalingPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/scalingPlans.js +55 -21
- package/dist-esm/src/operations/scalingPlans.js.map +1 -1
- package/dist-esm/src/operations/sessionHosts.d.ts.map +1 -1
- package/dist-esm/src/operations/sessionHosts.js +19 -7
- package/dist-esm/src/operations/sessionHosts.js.map +1 -1
- package/dist-esm/src/operations/startMenuItems.d.ts.map +1 -1
- package/dist-esm/src/operations/startMenuItems.js +19 -7
- package/dist-esm/src/operations/startMenuItems.js.map +1 -1
- package/dist-esm/src/operations/userSessions.d.ts.map +1 -1
- package/dist-esm/src/operations/userSessions.js +37 -14
- package/dist-esm/src/operations/userSessions.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +37 -14
- package/dist-esm/src/operations/workspaces.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/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +15 -11
- package/review/arm-desktopvirtualization.api.md +134 -187
- package/src/desktopVirtualizationAPIClient.ts +60 -20
- package/src/index.ts +1 -0
- package/src/models/index.ts +99 -39
- package/src/operations/applicationGroups.ts +46 -17
- package/src/operations/applications.ts +27 -13
- package/src/operations/desktops.ts +27 -13
- package/src/operations/hostPools.ts +46 -17
- package/src/operations/msixImages.ts +27 -13
- package/src/operations/msixPackages.ts +27 -9
- package/src/operations/operations.ts +21 -8
- package/src/operations/privateEndpointConnections.ts +52 -25
- package/src/operations/privateLinkResources.ts +51 -24
- package/src/operations/scalingPlans.ts +71 -29
- package/src/operations/sessionHosts.ts +27 -9
- package/src/operations/startMenuItems.ts +26 -12
- package/src/operations/userSessions.ts +53 -26
- package/src/operations/workspaces.ts +46 -17
- package/src/pagingHelper.ts +39 -0
- package/types/arm-desktopvirtualization.d.ts +112 -39
- package/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tslib = require('tslib');
|
|
5
6
|
var coreClient = require('@azure/core-client');
|
|
6
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
|
-
var tslib = require('tslib');
|
|
8
8
|
|
|
9
9
|
function _interopNamespace(e) {
|
|
10
10
|
if (e && e.__esModule) return e;
|
|
@@ -27,6 +27,38 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
28
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
29
29
|
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) Microsoft Corporation.
|
|
32
|
+
* Licensed under the MIT License.
|
|
33
|
+
*
|
|
34
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
+
*/
|
|
37
|
+
const pageMap = new WeakMap();
|
|
38
|
+
/**
|
|
39
|
+
* Given a result page from a pageable operation, returns a
|
|
40
|
+
* continuation token that can be used to begin paging from
|
|
41
|
+
* that point later.
|
|
42
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
43
|
+
* @returns The continuation token that can be passed into byPage().
|
|
44
|
+
*/
|
|
45
|
+
function getContinuationToken(page) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (typeof page !== "object" || page === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
+
}
|
|
52
|
+
function setContinuationToken(page, continuationToken) {
|
|
53
|
+
var _a;
|
|
54
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
+
pageInfo.continuationToken = continuationToken;
|
|
59
|
+
pageMap.set(page, pageInfo);
|
|
60
|
+
}
|
|
61
|
+
|
|
30
62
|
/*
|
|
31
63
|
* Copyright (c) Microsoft Corporation.
|
|
32
64
|
* Licensed under the MIT License.
|
|
@@ -37,15 +69,21 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
37
69
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
38
70
|
exports.KnownCreatedByType = void 0;
|
|
39
71
|
(function (KnownCreatedByType) {
|
|
72
|
+
/** User */
|
|
40
73
|
KnownCreatedByType["User"] = "User";
|
|
74
|
+
/** Application */
|
|
41
75
|
KnownCreatedByType["Application"] = "Application";
|
|
76
|
+
/** ManagedIdentity */
|
|
42
77
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
78
|
+
/** Key */
|
|
43
79
|
KnownCreatedByType["Key"] = "Key";
|
|
44
80
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
45
81
|
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
46
82
|
exports.KnownPublicNetworkAccess = void 0;
|
|
47
83
|
(function (KnownPublicNetworkAccess) {
|
|
84
|
+
/** Enabled */
|
|
48
85
|
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
86
|
+
/** Disabled */
|
|
49
87
|
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
50
88
|
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
51
89
|
/** Known values of {@link ScalingHostPoolType} that the service accepts. */
|
|
@@ -57,30 +95,43 @@ exports.KnownScalingHostPoolType = void 0;
|
|
|
57
95
|
/** Known values of {@link ScalingScheduleDaysOfWeekItem} that the service accepts. */
|
|
58
96
|
exports.KnownScalingScheduleDaysOfWeekItem = void 0;
|
|
59
97
|
(function (KnownScalingScheduleDaysOfWeekItem) {
|
|
98
|
+
/** Sunday */
|
|
60
99
|
KnownScalingScheduleDaysOfWeekItem["Sunday"] = "Sunday";
|
|
100
|
+
/** Monday */
|
|
61
101
|
KnownScalingScheduleDaysOfWeekItem["Monday"] = "Monday";
|
|
102
|
+
/** Tuesday */
|
|
62
103
|
KnownScalingScheduleDaysOfWeekItem["Tuesday"] = "Tuesday";
|
|
104
|
+
/** Wednesday */
|
|
63
105
|
KnownScalingScheduleDaysOfWeekItem["Wednesday"] = "Wednesday";
|
|
106
|
+
/** Thursday */
|
|
64
107
|
KnownScalingScheduleDaysOfWeekItem["Thursday"] = "Thursday";
|
|
108
|
+
/** Friday */
|
|
65
109
|
KnownScalingScheduleDaysOfWeekItem["Friday"] = "Friday";
|
|
110
|
+
/** Saturday */
|
|
66
111
|
KnownScalingScheduleDaysOfWeekItem["Saturday"] = "Saturday";
|
|
67
112
|
})(exports.KnownScalingScheduleDaysOfWeekItem || (exports.KnownScalingScheduleDaysOfWeekItem = {}));
|
|
68
113
|
/** Known values of {@link SessionHostLoadBalancingAlgorithm} that the service accepts. */
|
|
69
114
|
exports.KnownSessionHostLoadBalancingAlgorithm = void 0;
|
|
70
115
|
(function (KnownSessionHostLoadBalancingAlgorithm) {
|
|
116
|
+
/** BreadthFirst */
|
|
71
117
|
KnownSessionHostLoadBalancingAlgorithm["BreadthFirst"] = "BreadthFirst";
|
|
118
|
+
/** DepthFirst */
|
|
72
119
|
KnownSessionHostLoadBalancingAlgorithm["DepthFirst"] = "DepthFirst";
|
|
73
120
|
})(exports.KnownSessionHostLoadBalancingAlgorithm || (exports.KnownSessionHostLoadBalancingAlgorithm = {}));
|
|
74
121
|
/** Known values of {@link StopHostsWhen} that the service accepts. */
|
|
75
122
|
exports.KnownStopHostsWhen = void 0;
|
|
76
123
|
(function (KnownStopHostsWhen) {
|
|
124
|
+
/** ZeroSessions */
|
|
77
125
|
KnownStopHostsWhen["ZeroSessions"] = "ZeroSessions";
|
|
126
|
+
/** ZeroActiveSessions */
|
|
78
127
|
KnownStopHostsWhen["ZeroActiveSessions"] = "ZeroActiveSessions";
|
|
79
128
|
})(exports.KnownStopHostsWhen || (exports.KnownStopHostsWhen = {}));
|
|
80
129
|
/** Known values of {@link ApplicationGroupType} that the service accepts. */
|
|
81
130
|
exports.KnownApplicationGroupType = void 0;
|
|
82
131
|
(function (KnownApplicationGroupType) {
|
|
132
|
+
/** RemoteApp */
|
|
83
133
|
KnownApplicationGroupType["RemoteApp"] = "RemoteApp";
|
|
134
|
+
/** Desktop */
|
|
84
135
|
KnownApplicationGroupType["Desktop"] = "Desktop";
|
|
85
136
|
})(exports.KnownApplicationGroupType || (exports.KnownApplicationGroupType = {}));
|
|
86
137
|
/** Known values of {@link Operation} that the service accepts. */
|
|
@@ -100,14 +151,19 @@ exports.KnownOperation = void 0;
|
|
|
100
151
|
/** Known values of {@link RemoteApplicationType} that the service accepts. */
|
|
101
152
|
exports.KnownRemoteApplicationType = void 0;
|
|
102
153
|
(function (KnownRemoteApplicationType) {
|
|
154
|
+
/** InBuilt */
|
|
103
155
|
KnownRemoteApplicationType["InBuilt"] = "InBuilt";
|
|
156
|
+
/** MsixApplication */
|
|
104
157
|
KnownRemoteApplicationType["MsixApplication"] = "MsixApplication";
|
|
105
158
|
})(exports.KnownRemoteApplicationType || (exports.KnownRemoteApplicationType = {}));
|
|
106
159
|
/** Known values of {@link CommandLineSetting} that the service accepts. */
|
|
107
160
|
exports.KnownCommandLineSetting = void 0;
|
|
108
161
|
(function (KnownCommandLineSetting) {
|
|
162
|
+
/** DoNotAllow */
|
|
109
163
|
KnownCommandLineSetting["DoNotAllow"] = "DoNotAllow";
|
|
164
|
+
/** Allow */
|
|
110
165
|
KnownCommandLineSetting["Allow"] = "Allow";
|
|
166
|
+
/** Require */
|
|
111
167
|
KnownCommandLineSetting["Require"] = "Require";
|
|
112
168
|
})(exports.KnownCommandLineSetting || (exports.KnownCommandLineSetting = {}));
|
|
113
169
|
/** Known values of {@link HostPoolType} that the service accepts. */
|
|
@@ -123,52 +179,75 @@ exports.KnownHostPoolType = void 0;
|
|
|
123
179
|
/** Known values of {@link PersonalDesktopAssignmentType} that the service accepts. */
|
|
124
180
|
exports.KnownPersonalDesktopAssignmentType = void 0;
|
|
125
181
|
(function (KnownPersonalDesktopAssignmentType) {
|
|
182
|
+
/** Automatic */
|
|
126
183
|
KnownPersonalDesktopAssignmentType["Automatic"] = "Automatic";
|
|
184
|
+
/** Direct */
|
|
127
185
|
KnownPersonalDesktopAssignmentType["Direct"] = "Direct";
|
|
128
186
|
})(exports.KnownPersonalDesktopAssignmentType || (exports.KnownPersonalDesktopAssignmentType = {}));
|
|
129
187
|
/** Known values of {@link LoadBalancerType} that the service accepts. */
|
|
130
188
|
exports.KnownLoadBalancerType = void 0;
|
|
131
189
|
(function (KnownLoadBalancerType) {
|
|
190
|
+
/** BreadthFirst */
|
|
132
191
|
KnownLoadBalancerType["BreadthFirst"] = "BreadthFirst";
|
|
192
|
+
/** DepthFirst */
|
|
133
193
|
KnownLoadBalancerType["DepthFirst"] = "DepthFirst";
|
|
194
|
+
/** Persistent */
|
|
134
195
|
KnownLoadBalancerType["Persistent"] = "Persistent";
|
|
135
196
|
})(exports.KnownLoadBalancerType || (exports.KnownLoadBalancerType = {}));
|
|
136
197
|
/** Known values of {@link RegistrationTokenOperation} that the service accepts. */
|
|
137
198
|
exports.KnownRegistrationTokenOperation = void 0;
|
|
138
199
|
(function (KnownRegistrationTokenOperation) {
|
|
200
|
+
/** Delete */
|
|
139
201
|
KnownRegistrationTokenOperation["Delete"] = "Delete";
|
|
202
|
+
/** None */
|
|
140
203
|
KnownRegistrationTokenOperation["None"] = "None";
|
|
204
|
+
/** Update */
|
|
141
205
|
KnownRegistrationTokenOperation["Update"] = "Update";
|
|
142
206
|
})(exports.KnownRegistrationTokenOperation || (exports.KnownRegistrationTokenOperation = {}));
|
|
143
207
|
/** Known values of {@link SSOSecretType} that the service accepts. */
|
|
144
208
|
exports.KnownSSOSecretType = void 0;
|
|
145
209
|
(function (KnownSSOSecretType) {
|
|
210
|
+
/** SharedKey */
|
|
146
211
|
KnownSSOSecretType["SharedKey"] = "SharedKey";
|
|
212
|
+
/** Certificate */
|
|
147
213
|
KnownSSOSecretType["Certificate"] = "Certificate";
|
|
214
|
+
/** SharedKeyInKeyVault */
|
|
148
215
|
KnownSSOSecretType["SharedKeyInKeyVault"] = "SharedKeyInKeyVault";
|
|
216
|
+
/** CertificateInKeyVault */
|
|
149
217
|
KnownSSOSecretType["CertificateInKeyVault"] = "CertificateInKeyVault";
|
|
150
218
|
})(exports.KnownSSOSecretType || (exports.KnownSSOSecretType = {}));
|
|
151
219
|
/** Known values of {@link PreferredAppGroupType} that the service accepts. */
|
|
152
220
|
exports.KnownPreferredAppGroupType = void 0;
|
|
153
221
|
(function (KnownPreferredAppGroupType) {
|
|
222
|
+
/** None */
|
|
154
223
|
KnownPreferredAppGroupType["None"] = "None";
|
|
224
|
+
/** Desktop */
|
|
155
225
|
KnownPreferredAppGroupType["Desktop"] = "Desktop";
|
|
226
|
+
/** RailApplications */
|
|
156
227
|
KnownPreferredAppGroupType["RailApplications"] = "RailApplications";
|
|
157
228
|
})(exports.KnownPreferredAppGroupType || (exports.KnownPreferredAppGroupType = {}));
|
|
158
229
|
/** Known values of {@link ApplicationType} that the service accepts. */
|
|
159
230
|
exports.KnownApplicationType = void 0;
|
|
160
231
|
(function (KnownApplicationType) {
|
|
232
|
+
/** RemoteApp */
|
|
161
233
|
KnownApplicationType["RemoteApp"] = "RemoteApp";
|
|
234
|
+
/** Desktop */
|
|
162
235
|
KnownApplicationType["Desktop"] = "Desktop";
|
|
163
236
|
})(exports.KnownApplicationType || (exports.KnownApplicationType = {}));
|
|
164
237
|
/** Known values of {@link SessionState} that the service accepts. */
|
|
165
238
|
exports.KnownSessionState = void 0;
|
|
166
239
|
(function (KnownSessionState) {
|
|
240
|
+
/** Unknown */
|
|
167
241
|
KnownSessionState["Unknown"] = "Unknown";
|
|
242
|
+
/** Active */
|
|
168
243
|
KnownSessionState["Active"] = "Active";
|
|
244
|
+
/** Disconnected */
|
|
169
245
|
KnownSessionState["Disconnected"] = "Disconnected";
|
|
246
|
+
/** Pending */
|
|
170
247
|
KnownSessionState["Pending"] = "Pending";
|
|
248
|
+
/** LogOff */
|
|
171
249
|
KnownSessionState["LogOff"] = "LogOff";
|
|
250
|
+
/** UserProfileDiskMounted */
|
|
172
251
|
KnownSessionState["UserProfileDiskMounted"] = "UserProfileDiskMounted";
|
|
173
252
|
})(exports.KnownSessionState || (exports.KnownSessionState = {}));
|
|
174
253
|
/** Known values of {@link Status} that the service accepts. */
|
|
@@ -202,10 +281,15 @@ exports.KnownStatus = void 0;
|
|
|
202
281
|
/** Known values of {@link UpdateState} that the service accepts. */
|
|
203
282
|
exports.KnownUpdateState = void 0;
|
|
204
283
|
(function (KnownUpdateState) {
|
|
284
|
+
/** Initial */
|
|
205
285
|
KnownUpdateState["Initial"] = "Initial";
|
|
286
|
+
/** Pending */
|
|
206
287
|
KnownUpdateState["Pending"] = "Pending";
|
|
288
|
+
/** Started */
|
|
207
289
|
KnownUpdateState["Started"] = "Started";
|
|
290
|
+
/** Succeeded */
|
|
208
291
|
KnownUpdateState["Succeeded"] = "Succeeded";
|
|
292
|
+
/** Failed */
|
|
209
293
|
KnownUpdateState["Failed"] = "Failed";
|
|
210
294
|
})(exports.KnownUpdateState || (exports.KnownUpdateState = {}));
|
|
211
295
|
/** Known values of {@link HealthCheckName} that the service accepts. */
|
|
@@ -249,16 +333,23 @@ exports.KnownHealthCheckResult = void 0;
|
|
|
249
333
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
250
334
|
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
|
251
335
|
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
336
|
+
/** Pending */
|
|
252
337
|
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
338
|
+
/** Approved */
|
|
253
339
|
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
340
|
+
/** Rejected */
|
|
254
341
|
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
255
342
|
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
256
343
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
257
344
|
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
258
345
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
346
|
+
/** Succeeded */
|
|
259
347
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
348
|
+
/** Creating */
|
|
260
349
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
350
|
+
/** Deleting */
|
|
261
351
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
352
|
+
/** Failed */
|
|
262
353
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
263
354
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
264
355
|
|
|
@@ -3216,20 +3307,31 @@ class OperationsImpl {
|
|
|
3216
3307
|
[Symbol.asyncIterator]() {
|
|
3217
3308
|
return this;
|
|
3218
3309
|
},
|
|
3219
|
-
byPage: () => {
|
|
3220
|
-
|
|
3310
|
+
byPage: (settings) => {
|
|
3311
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3312
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3313
|
+
}
|
|
3314
|
+
return this.listPagingPage(options, settings);
|
|
3221
3315
|
}
|
|
3222
3316
|
};
|
|
3223
3317
|
}
|
|
3224
|
-
listPagingPage(options) {
|
|
3318
|
+
listPagingPage(options, settings) {
|
|
3225
3319
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3226
|
-
let result
|
|
3227
|
-
|
|
3228
|
-
|
|
3320
|
+
let result;
|
|
3321
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3322
|
+
if (!continuationToken) {
|
|
3323
|
+
result = yield tslib.__await(this._list(options));
|
|
3324
|
+
let page = result.value || [];
|
|
3325
|
+
continuationToken = result.nextLink;
|
|
3326
|
+
setContinuationToken(page, continuationToken);
|
|
3327
|
+
yield yield tslib.__await(page);
|
|
3328
|
+
}
|
|
3229
3329
|
while (continuationToken) {
|
|
3230
3330
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3231
3331
|
continuationToken = result.nextLink;
|
|
3232
|
-
|
|
3332
|
+
let page = result.value || [];
|
|
3333
|
+
setContinuationToken(page, continuationToken);
|
|
3334
|
+
yield yield tslib.__await(page);
|
|
3233
3335
|
}
|
|
3234
3336
|
});
|
|
3235
3337
|
}
|
|
@@ -3333,20 +3435,31 @@ class WorkspacesImpl {
|
|
|
3333
3435
|
[Symbol.asyncIterator]() {
|
|
3334
3436
|
return this;
|
|
3335
3437
|
},
|
|
3336
|
-
byPage: () => {
|
|
3337
|
-
|
|
3438
|
+
byPage: (settings) => {
|
|
3439
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3440
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3441
|
+
}
|
|
3442
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3338
3443
|
}
|
|
3339
3444
|
};
|
|
3340
3445
|
}
|
|
3341
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3446
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3342
3447
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3343
|
-
let result
|
|
3344
|
-
|
|
3345
|
-
|
|
3448
|
+
let result;
|
|
3449
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3450
|
+
if (!continuationToken) {
|
|
3451
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3452
|
+
let page = result.value || [];
|
|
3453
|
+
continuationToken = result.nextLink;
|
|
3454
|
+
setContinuationToken(page, continuationToken);
|
|
3455
|
+
yield yield tslib.__await(page);
|
|
3456
|
+
}
|
|
3346
3457
|
while (continuationToken) {
|
|
3347
3458
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3348
3459
|
continuationToken = result.nextLink;
|
|
3349
|
-
|
|
3460
|
+
let page = result.value || [];
|
|
3461
|
+
setContinuationToken(page, continuationToken);
|
|
3462
|
+
yield yield tslib.__await(page);
|
|
3350
3463
|
}
|
|
3351
3464
|
});
|
|
3352
3465
|
}
|
|
@@ -3381,20 +3494,31 @@ class WorkspacesImpl {
|
|
|
3381
3494
|
[Symbol.asyncIterator]() {
|
|
3382
3495
|
return this;
|
|
3383
3496
|
},
|
|
3384
|
-
byPage: () => {
|
|
3385
|
-
|
|
3497
|
+
byPage: (settings) => {
|
|
3498
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3499
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3500
|
+
}
|
|
3501
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3386
3502
|
}
|
|
3387
3503
|
};
|
|
3388
3504
|
}
|
|
3389
|
-
listBySubscriptionPagingPage(options) {
|
|
3505
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3390
3506
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3391
|
-
let result
|
|
3392
|
-
|
|
3393
|
-
|
|
3507
|
+
let result;
|
|
3508
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3509
|
+
if (!continuationToken) {
|
|
3510
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3511
|
+
let page = result.value || [];
|
|
3512
|
+
continuationToken = result.nextLink;
|
|
3513
|
+
setContinuationToken(page, continuationToken);
|
|
3514
|
+
yield yield tslib.__await(page);
|
|
3515
|
+
}
|
|
3394
3516
|
while (continuationToken) {
|
|
3395
3517
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3396
3518
|
continuationToken = result.nextLink;
|
|
3397
|
-
|
|
3519
|
+
let page = result.value || [];
|
|
3520
|
+
setContinuationToken(page, continuationToken);
|
|
3521
|
+
yield yield tslib.__await(page);
|
|
3398
3522
|
}
|
|
3399
3523
|
});
|
|
3400
3524
|
}
|
|
@@ -3687,20 +3811,31 @@ class ScalingPlansImpl {
|
|
|
3687
3811
|
[Symbol.asyncIterator]() {
|
|
3688
3812
|
return this;
|
|
3689
3813
|
},
|
|
3690
|
-
byPage: () => {
|
|
3691
|
-
|
|
3814
|
+
byPage: (settings) => {
|
|
3815
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3816
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3817
|
+
}
|
|
3818
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3692
3819
|
}
|
|
3693
3820
|
};
|
|
3694
3821
|
}
|
|
3695
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3822
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3696
3823
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3697
|
-
let result
|
|
3698
|
-
|
|
3699
|
-
|
|
3824
|
+
let result;
|
|
3825
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3826
|
+
if (!continuationToken) {
|
|
3827
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3828
|
+
let page = result.value || [];
|
|
3829
|
+
continuationToken = result.nextLink;
|
|
3830
|
+
setContinuationToken(page, continuationToken);
|
|
3831
|
+
yield yield tslib.__await(page);
|
|
3832
|
+
}
|
|
3700
3833
|
while (continuationToken) {
|
|
3701
3834
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3702
3835
|
continuationToken = result.nextLink;
|
|
3703
|
-
|
|
3836
|
+
let page = result.value || [];
|
|
3837
|
+
setContinuationToken(page, continuationToken);
|
|
3838
|
+
yield yield tslib.__await(page);
|
|
3704
3839
|
}
|
|
3705
3840
|
});
|
|
3706
3841
|
}
|
|
@@ -3735,20 +3870,31 @@ class ScalingPlansImpl {
|
|
|
3735
3870
|
[Symbol.asyncIterator]() {
|
|
3736
3871
|
return this;
|
|
3737
3872
|
},
|
|
3738
|
-
byPage: () => {
|
|
3739
|
-
|
|
3873
|
+
byPage: (settings) => {
|
|
3874
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3875
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3876
|
+
}
|
|
3877
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3740
3878
|
}
|
|
3741
3879
|
};
|
|
3742
3880
|
}
|
|
3743
|
-
listBySubscriptionPagingPage(options) {
|
|
3881
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3744
3882
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3745
|
-
let result
|
|
3746
|
-
|
|
3747
|
-
|
|
3883
|
+
let result;
|
|
3884
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3885
|
+
if (!continuationToken) {
|
|
3886
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3887
|
+
let page = result.value || [];
|
|
3888
|
+
continuationToken = result.nextLink;
|
|
3889
|
+
setContinuationToken(page, continuationToken);
|
|
3890
|
+
yield yield tslib.__await(page);
|
|
3891
|
+
}
|
|
3748
3892
|
while (continuationToken) {
|
|
3749
3893
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3750
3894
|
continuationToken = result.nextLink;
|
|
3751
|
-
|
|
3895
|
+
let page = result.value || [];
|
|
3896
|
+
setContinuationToken(page, continuationToken);
|
|
3897
|
+
yield yield tslib.__await(page);
|
|
3752
3898
|
}
|
|
3753
3899
|
});
|
|
3754
3900
|
}
|
|
@@ -3785,20 +3931,31 @@ class ScalingPlansImpl {
|
|
|
3785
3931
|
[Symbol.asyncIterator]() {
|
|
3786
3932
|
return this;
|
|
3787
3933
|
},
|
|
3788
|
-
byPage: () => {
|
|
3789
|
-
|
|
3934
|
+
byPage: (settings) => {
|
|
3935
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3936
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3937
|
+
}
|
|
3938
|
+
return this.listByHostPoolPagingPage(resourceGroupName, hostPoolName, options, settings);
|
|
3790
3939
|
}
|
|
3791
3940
|
};
|
|
3792
3941
|
}
|
|
3793
|
-
listByHostPoolPagingPage(resourceGroupName, hostPoolName, options) {
|
|
3942
|
+
listByHostPoolPagingPage(resourceGroupName, hostPoolName, options, settings) {
|
|
3794
3943
|
return tslib.__asyncGenerator(this, arguments, function* listByHostPoolPagingPage_1() {
|
|
3795
|
-
let result
|
|
3796
|
-
|
|
3797
|
-
|
|
3944
|
+
let result;
|
|
3945
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3946
|
+
if (!continuationToken) {
|
|
3947
|
+
result = yield tslib.__await(this._listByHostPool(resourceGroupName, hostPoolName, options));
|
|
3948
|
+
let page = result.value || [];
|
|
3949
|
+
continuationToken = result.nextLink;
|
|
3950
|
+
setContinuationToken(page, continuationToken);
|
|
3951
|
+
yield yield tslib.__await(page);
|
|
3952
|
+
}
|
|
3798
3953
|
while (continuationToken) {
|
|
3799
3954
|
result = yield tslib.__await(this._listByHostPoolNext(resourceGroupName, hostPoolName, continuationToken, options));
|
|
3800
3955
|
continuationToken = result.nextLink;
|
|
3801
|
-
|
|
3956
|
+
let page = result.value || [];
|
|
3957
|
+
setContinuationToken(page, continuationToken);
|
|
3958
|
+
yield yield tslib.__await(page);
|
|
3802
3959
|
}
|
|
3803
3960
|
});
|
|
3804
3961
|
}
|
|
@@ -4153,20 +4310,31 @@ class ApplicationGroupsImpl {
|
|
|
4153
4310
|
[Symbol.asyncIterator]() {
|
|
4154
4311
|
return this;
|
|
4155
4312
|
},
|
|
4156
|
-
byPage: () => {
|
|
4157
|
-
|
|
4313
|
+
byPage: (settings) => {
|
|
4314
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4315
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4316
|
+
}
|
|
4317
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
4158
4318
|
}
|
|
4159
4319
|
};
|
|
4160
4320
|
}
|
|
4161
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
4321
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4162
4322
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4163
|
-
let result
|
|
4164
|
-
|
|
4165
|
-
|
|
4323
|
+
let result;
|
|
4324
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4325
|
+
if (!continuationToken) {
|
|
4326
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4327
|
+
let page = result.value || [];
|
|
4328
|
+
continuationToken = result.nextLink;
|
|
4329
|
+
setContinuationToken(page, continuationToken);
|
|
4330
|
+
yield yield tslib.__await(page);
|
|
4331
|
+
}
|
|
4166
4332
|
while (continuationToken) {
|
|
4167
4333
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
4168
4334
|
continuationToken = result.nextLink;
|
|
4169
|
-
|
|
4335
|
+
let page = result.value || [];
|
|
4336
|
+
setContinuationToken(page, continuationToken);
|
|
4337
|
+
yield yield tslib.__await(page);
|
|
4170
4338
|
}
|
|
4171
4339
|
});
|
|
4172
4340
|
}
|
|
@@ -4201,20 +4369,31 @@ class ApplicationGroupsImpl {
|
|
|
4201
4369
|
[Symbol.asyncIterator]() {
|
|
4202
4370
|
return this;
|
|
4203
4371
|
},
|
|
4204
|
-
byPage: () => {
|
|
4205
|
-
|
|
4372
|
+
byPage: (settings) => {
|
|
4373
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4374
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4375
|
+
}
|
|
4376
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
4206
4377
|
}
|
|
4207
4378
|
};
|
|
4208
4379
|
}
|
|
4209
|
-
listBySubscriptionPagingPage(options) {
|
|
4380
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
4210
4381
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
4211
|
-
let result
|
|
4212
|
-
|
|
4213
|
-
|
|
4382
|
+
let result;
|
|
4383
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4384
|
+
if (!continuationToken) {
|
|
4385
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
4386
|
+
let page = result.value || [];
|
|
4387
|
+
continuationToken = result.nextLink;
|
|
4388
|
+
setContinuationToken(page, continuationToken);
|
|
4389
|
+
yield yield tslib.__await(page);
|
|
4390
|
+
}
|
|
4214
4391
|
while (continuationToken) {
|
|
4215
4392
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
4216
4393
|
continuationToken = result.nextLink;
|
|
4217
|
-
|
|
4394
|
+
let page = result.value || [];
|
|
4395
|
+
setContinuationToken(page, continuationToken);
|
|
4396
|
+
yield yield tslib.__await(page);
|
|
4218
4397
|
}
|
|
4219
4398
|
});
|
|
4220
4399
|
}
|
|
@@ -4508,20 +4687,31 @@ class StartMenuItemsImpl {
|
|
|
4508
4687
|
[Symbol.asyncIterator]() {
|
|
4509
4688
|
return this;
|
|
4510
4689
|
},
|
|
4511
|
-
byPage: () => {
|
|
4512
|
-
|
|
4690
|
+
byPage: (settings) => {
|
|
4691
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4692
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4693
|
+
}
|
|
4694
|
+
return this.listPagingPage(resourceGroupName, applicationGroupName, options, settings);
|
|
4513
4695
|
}
|
|
4514
4696
|
};
|
|
4515
4697
|
}
|
|
4516
|
-
listPagingPage(resourceGroupName, applicationGroupName, options) {
|
|
4698
|
+
listPagingPage(resourceGroupName, applicationGroupName, options, settings) {
|
|
4517
4699
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4518
|
-
let result
|
|
4519
|
-
|
|
4520
|
-
|
|
4700
|
+
let result;
|
|
4701
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4702
|
+
if (!continuationToken) {
|
|
4703
|
+
result = yield tslib.__await(this._list(resourceGroupName, applicationGroupName, options));
|
|
4704
|
+
let page = result.value || [];
|
|
4705
|
+
continuationToken = result.nextLink;
|
|
4706
|
+
setContinuationToken(page, continuationToken);
|
|
4707
|
+
yield yield tslib.__await(page);
|
|
4708
|
+
}
|
|
4521
4709
|
while (continuationToken) {
|
|
4522
4710
|
result = yield tslib.__await(this._listNext(resourceGroupName, applicationGroupName, continuationToken, options));
|
|
4523
4711
|
continuationToken = result.nextLink;
|
|
4524
|
-
|
|
4712
|
+
let page = result.value || [];
|
|
4713
|
+
setContinuationToken(page, continuationToken);
|
|
4714
|
+
yield yield tslib.__await(page);
|
|
4525
4715
|
}
|
|
4526
4716
|
});
|
|
4527
4717
|
}
|
|
@@ -4641,20 +4831,31 @@ class ApplicationsImpl {
|
|
|
4641
4831
|
[Symbol.asyncIterator]() {
|
|
4642
4832
|
return this;
|
|
4643
4833
|
},
|
|
4644
|
-
byPage: () => {
|
|
4645
|
-
|
|
4834
|
+
byPage: (settings) => {
|
|
4835
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4836
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4837
|
+
}
|
|
4838
|
+
return this.listPagingPage(resourceGroupName, applicationGroupName, options, settings);
|
|
4646
4839
|
}
|
|
4647
4840
|
};
|
|
4648
4841
|
}
|
|
4649
|
-
listPagingPage(resourceGroupName, applicationGroupName, options) {
|
|
4842
|
+
listPagingPage(resourceGroupName, applicationGroupName, options, settings) {
|
|
4650
4843
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4651
|
-
let result
|
|
4652
|
-
|
|
4653
|
-
|
|
4844
|
+
let result;
|
|
4845
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4846
|
+
if (!continuationToken) {
|
|
4847
|
+
result = yield tslib.__await(this._list(resourceGroupName, applicationGroupName, options));
|
|
4848
|
+
let page = result.value || [];
|
|
4849
|
+
continuationToken = result.nextLink;
|
|
4850
|
+
setContinuationToken(page, continuationToken);
|
|
4851
|
+
yield yield tslib.__await(page);
|
|
4852
|
+
}
|
|
4654
4853
|
while (continuationToken) {
|
|
4655
4854
|
result = yield tslib.__await(this._listNext(resourceGroupName, applicationGroupName, continuationToken, options));
|
|
4656
4855
|
continuationToken = result.nextLink;
|
|
4657
|
-
|
|
4856
|
+
let page = result.value || [];
|
|
4857
|
+
setContinuationToken(page, continuationToken);
|
|
4858
|
+
yield yield tslib.__await(page);
|
|
4658
4859
|
}
|
|
4659
4860
|
});
|
|
4660
4861
|
}
|
|
@@ -4915,20 +5116,31 @@ class DesktopsImpl {
|
|
|
4915
5116
|
[Symbol.asyncIterator]() {
|
|
4916
5117
|
return this;
|
|
4917
5118
|
},
|
|
4918
|
-
byPage: () => {
|
|
4919
|
-
|
|
5119
|
+
byPage: (settings) => {
|
|
5120
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5121
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5122
|
+
}
|
|
5123
|
+
return this.listPagingPage(resourceGroupName, applicationGroupName, options, settings);
|
|
4920
5124
|
}
|
|
4921
5125
|
};
|
|
4922
5126
|
}
|
|
4923
|
-
listPagingPage(resourceGroupName, applicationGroupName, options) {
|
|
5127
|
+
listPagingPage(resourceGroupName, applicationGroupName, options, settings) {
|
|
4924
5128
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4925
|
-
let result
|
|
4926
|
-
|
|
4927
|
-
|
|
5129
|
+
let result;
|
|
5130
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5131
|
+
if (!continuationToken) {
|
|
5132
|
+
result = yield tslib.__await(this._list(resourceGroupName, applicationGroupName, options));
|
|
5133
|
+
let page = result.value || [];
|
|
5134
|
+
continuationToken = result.nextLink;
|
|
5135
|
+
setContinuationToken(page, continuationToken);
|
|
5136
|
+
yield yield tslib.__await(page);
|
|
5137
|
+
}
|
|
4928
5138
|
while (continuationToken) {
|
|
4929
5139
|
result = yield tslib.__await(this._listNext(resourceGroupName, applicationGroupName, continuationToken, options));
|
|
4930
5140
|
continuationToken = result.nextLink;
|
|
4931
|
-
|
|
5141
|
+
let page = result.value || [];
|
|
5142
|
+
setContinuationToken(page, continuationToken);
|
|
5143
|
+
yield yield tslib.__await(page);
|
|
4932
5144
|
}
|
|
4933
5145
|
});
|
|
4934
5146
|
}
|
|
@@ -5113,20 +5325,31 @@ class HostPoolsImpl {
|
|
|
5113
5325
|
[Symbol.asyncIterator]() {
|
|
5114
5326
|
return this;
|
|
5115
5327
|
},
|
|
5116
|
-
byPage: () => {
|
|
5117
|
-
|
|
5328
|
+
byPage: (settings) => {
|
|
5329
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5330
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5331
|
+
}
|
|
5332
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
5118
5333
|
}
|
|
5119
5334
|
};
|
|
5120
5335
|
}
|
|
5121
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5336
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5122
5337
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5123
|
-
let result
|
|
5124
|
-
|
|
5125
|
-
|
|
5338
|
+
let result;
|
|
5339
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5340
|
+
if (!continuationToken) {
|
|
5341
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5342
|
+
let page = result.value || [];
|
|
5343
|
+
continuationToken = result.nextLink;
|
|
5344
|
+
setContinuationToken(page, continuationToken);
|
|
5345
|
+
yield yield tslib.__await(page);
|
|
5346
|
+
}
|
|
5126
5347
|
while (continuationToken) {
|
|
5127
5348
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
5128
5349
|
continuationToken = result.nextLink;
|
|
5129
|
-
|
|
5350
|
+
let page = result.value || [];
|
|
5351
|
+
setContinuationToken(page, continuationToken);
|
|
5352
|
+
yield yield tslib.__await(page);
|
|
5130
5353
|
}
|
|
5131
5354
|
});
|
|
5132
5355
|
}
|
|
@@ -5161,20 +5384,31 @@ class HostPoolsImpl {
|
|
|
5161
5384
|
[Symbol.asyncIterator]() {
|
|
5162
5385
|
return this;
|
|
5163
5386
|
},
|
|
5164
|
-
byPage: () => {
|
|
5165
|
-
|
|
5387
|
+
byPage: (settings) => {
|
|
5388
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5389
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5390
|
+
}
|
|
5391
|
+
return this.listPagingPage(options, settings);
|
|
5166
5392
|
}
|
|
5167
5393
|
};
|
|
5168
5394
|
}
|
|
5169
|
-
listPagingPage(options) {
|
|
5395
|
+
listPagingPage(options, settings) {
|
|
5170
5396
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5171
|
-
let result
|
|
5172
|
-
|
|
5173
|
-
|
|
5397
|
+
let result;
|
|
5398
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5399
|
+
if (!continuationToken) {
|
|
5400
|
+
result = yield tslib.__await(this._list(options));
|
|
5401
|
+
let page = result.value || [];
|
|
5402
|
+
continuationToken = result.nextLink;
|
|
5403
|
+
setContinuationToken(page, continuationToken);
|
|
5404
|
+
yield yield tslib.__await(page);
|
|
5405
|
+
}
|
|
5174
5406
|
while (continuationToken) {
|
|
5175
5407
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
5176
5408
|
continuationToken = result.nextLink;
|
|
5177
|
-
|
|
5409
|
+
let page = result.value || [];
|
|
5410
|
+
setContinuationToken(page, continuationToken);
|
|
5411
|
+
yield yield tslib.__await(page);
|
|
5178
5412
|
}
|
|
5179
5413
|
});
|
|
5180
5414
|
}
|
|
@@ -5498,20 +5732,31 @@ class UserSessionsImpl {
|
|
|
5498
5732
|
[Symbol.asyncIterator]() {
|
|
5499
5733
|
return this;
|
|
5500
5734
|
},
|
|
5501
|
-
byPage: () => {
|
|
5502
|
-
|
|
5735
|
+
byPage: (settings) => {
|
|
5736
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5737
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5738
|
+
}
|
|
5739
|
+
return this.listByHostPoolPagingPage(resourceGroupName, hostPoolName, options, settings);
|
|
5503
5740
|
}
|
|
5504
5741
|
};
|
|
5505
5742
|
}
|
|
5506
|
-
listByHostPoolPagingPage(resourceGroupName, hostPoolName, options) {
|
|
5743
|
+
listByHostPoolPagingPage(resourceGroupName, hostPoolName, options, settings) {
|
|
5507
5744
|
return tslib.__asyncGenerator(this, arguments, function* listByHostPoolPagingPage_1() {
|
|
5508
|
-
let result
|
|
5509
|
-
|
|
5510
|
-
|
|
5745
|
+
let result;
|
|
5746
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5747
|
+
if (!continuationToken) {
|
|
5748
|
+
result = yield tslib.__await(this._listByHostPool(resourceGroupName, hostPoolName, options));
|
|
5749
|
+
let page = result.value || [];
|
|
5750
|
+
continuationToken = result.nextLink;
|
|
5751
|
+
setContinuationToken(page, continuationToken);
|
|
5752
|
+
yield yield tslib.__await(page);
|
|
5753
|
+
}
|
|
5511
5754
|
while (continuationToken) {
|
|
5512
5755
|
result = yield tslib.__await(this._listByHostPoolNext(resourceGroupName, hostPoolName, continuationToken, options));
|
|
5513
5756
|
continuationToken = result.nextLink;
|
|
5514
|
-
|
|
5757
|
+
let page = result.value || [];
|
|
5758
|
+
setContinuationToken(page, continuationToken);
|
|
5759
|
+
yield yield tslib.__await(page);
|
|
5515
5760
|
}
|
|
5516
5761
|
});
|
|
5517
5762
|
}
|
|
@@ -5549,20 +5794,31 @@ class UserSessionsImpl {
|
|
|
5549
5794
|
[Symbol.asyncIterator]() {
|
|
5550
5795
|
return this;
|
|
5551
5796
|
},
|
|
5552
|
-
byPage: () => {
|
|
5553
|
-
|
|
5797
|
+
byPage: (settings) => {
|
|
5798
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5799
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5800
|
+
}
|
|
5801
|
+
return this.listPagingPage(resourceGroupName, hostPoolName, sessionHostName, options, settings);
|
|
5554
5802
|
}
|
|
5555
5803
|
};
|
|
5556
5804
|
}
|
|
5557
|
-
listPagingPage(resourceGroupName, hostPoolName, sessionHostName, options) {
|
|
5805
|
+
listPagingPage(resourceGroupName, hostPoolName, sessionHostName, options, settings) {
|
|
5558
5806
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5559
|
-
let result
|
|
5560
|
-
|
|
5561
|
-
|
|
5807
|
+
let result;
|
|
5808
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5809
|
+
if (!continuationToken) {
|
|
5810
|
+
result = yield tslib.__await(this._list(resourceGroupName, hostPoolName, sessionHostName, options));
|
|
5811
|
+
let page = result.value || [];
|
|
5812
|
+
continuationToken = result.nextLink;
|
|
5813
|
+
setContinuationToken(page, continuationToken);
|
|
5814
|
+
yield yield tslib.__await(page);
|
|
5815
|
+
}
|
|
5562
5816
|
while (continuationToken) {
|
|
5563
5817
|
result = yield tslib.__await(this._listNext(resourceGroupName, hostPoolName, sessionHostName, continuationToken, options));
|
|
5564
5818
|
continuationToken = result.nextLink;
|
|
5565
|
-
|
|
5819
|
+
let page = result.value || [];
|
|
5820
|
+
setContinuationToken(page, continuationToken);
|
|
5821
|
+
yield yield tslib.__await(page);
|
|
5566
5822
|
}
|
|
5567
5823
|
});
|
|
5568
5824
|
}
|
|
@@ -5905,20 +6161,31 @@ class SessionHostsImpl {
|
|
|
5905
6161
|
[Symbol.asyncIterator]() {
|
|
5906
6162
|
return this;
|
|
5907
6163
|
},
|
|
5908
|
-
byPage: () => {
|
|
5909
|
-
|
|
6164
|
+
byPage: (settings) => {
|
|
6165
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6166
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6167
|
+
}
|
|
6168
|
+
return this.listPagingPage(resourceGroupName, hostPoolName, options, settings);
|
|
5910
6169
|
}
|
|
5911
6170
|
};
|
|
5912
6171
|
}
|
|
5913
|
-
listPagingPage(resourceGroupName, hostPoolName, options) {
|
|
6172
|
+
listPagingPage(resourceGroupName, hostPoolName, options, settings) {
|
|
5914
6173
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5915
|
-
let result
|
|
5916
|
-
|
|
5917
|
-
|
|
6174
|
+
let result;
|
|
6175
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6176
|
+
if (!continuationToken) {
|
|
6177
|
+
result = yield tslib.__await(this._list(resourceGroupName, hostPoolName, options));
|
|
6178
|
+
let page = result.value || [];
|
|
6179
|
+
continuationToken = result.nextLink;
|
|
6180
|
+
setContinuationToken(page, continuationToken);
|
|
6181
|
+
yield yield tslib.__await(page);
|
|
6182
|
+
}
|
|
5918
6183
|
while (continuationToken) {
|
|
5919
6184
|
result = yield tslib.__await(this._listNext(resourceGroupName, hostPoolName, continuationToken, options));
|
|
5920
6185
|
continuationToken = result.nextLink;
|
|
5921
|
-
|
|
6186
|
+
let page = result.value || [];
|
|
6187
|
+
setContinuationToken(page, continuationToken);
|
|
6188
|
+
yield yield tslib.__await(page);
|
|
5922
6189
|
}
|
|
5923
6190
|
});
|
|
5924
6191
|
}
|
|
@@ -6135,20 +6402,31 @@ class MsixPackagesImpl {
|
|
|
6135
6402
|
[Symbol.asyncIterator]() {
|
|
6136
6403
|
return this;
|
|
6137
6404
|
},
|
|
6138
|
-
byPage: () => {
|
|
6139
|
-
|
|
6405
|
+
byPage: (settings) => {
|
|
6406
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6407
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6408
|
+
}
|
|
6409
|
+
return this.listPagingPage(resourceGroupName, hostPoolName, options, settings);
|
|
6140
6410
|
}
|
|
6141
6411
|
};
|
|
6142
6412
|
}
|
|
6143
|
-
listPagingPage(resourceGroupName, hostPoolName, options) {
|
|
6413
|
+
listPagingPage(resourceGroupName, hostPoolName, options, settings) {
|
|
6144
6414
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6145
|
-
let result
|
|
6146
|
-
|
|
6147
|
-
|
|
6415
|
+
let result;
|
|
6416
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6417
|
+
if (!continuationToken) {
|
|
6418
|
+
result = yield tslib.__await(this._list(resourceGroupName, hostPoolName, options));
|
|
6419
|
+
let page = result.value || [];
|
|
6420
|
+
continuationToken = result.nextLink;
|
|
6421
|
+
setContinuationToken(page, continuationToken);
|
|
6422
|
+
yield yield tslib.__await(page);
|
|
6423
|
+
}
|
|
6148
6424
|
while (continuationToken) {
|
|
6149
6425
|
result = yield tslib.__await(this._listNext(resourceGroupName, hostPoolName, continuationToken, options));
|
|
6150
6426
|
continuationToken = result.nextLink;
|
|
6151
|
-
|
|
6427
|
+
let page = result.value || [];
|
|
6428
|
+
setContinuationToken(page, continuationToken);
|
|
6429
|
+
yield yield tslib.__await(page);
|
|
6152
6430
|
}
|
|
6153
6431
|
});
|
|
6154
6432
|
}
|
|
@@ -6414,20 +6692,31 @@ class MsixImagesImpl {
|
|
|
6414
6692
|
[Symbol.asyncIterator]() {
|
|
6415
6693
|
return this;
|
|
6416
6694
|
},
|
|
6417
|
-
byPage: () => {
|
|
6418
|
-
|
|
6695
|
+
byPage: (settings) => {
|
|
6696
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6697
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6698
|
+
}
|
|
6699
|
+
return this.expandPagingPage(resourceGroupName, hostPoolName, msixImageURI, options, settings);
|
|
6419
6700
|
}
|
|
6420
6701
|
};
|
|
6421
6702
|
}
|
|
6422
|
-
expandPagingPage(resourceGroupName, hostPoolName, msixImageURI, options) {
|
|
6703
|
+
expandPagingPage(resourceGroupName, hostPoolName, msixImageURI, options, settings) {
|
|
6423
6704
|
return tslib.__asyncGenerator(this, arguments, function* expandPagingPage_1() {
|
|
6424
|
-
let result
|
|
6425
|
-
|
|
6426
|
-
|
|
6705
|
+
let result;
|
|
6706
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6707
|
+
if (!continuationToken) {
|
|
6708
|
+
result = yield tslib.__await(this._expand(resourceGroupName, hostPoolName, msixImageURI, options));
|
|
6709
|
+
let page = result.value || [];
|
|
6710
|
+
continuationToken = result.nextLink;
|
|
6711
|
+
setContinuationToken(page, continuationToken);
|
|
6712
|
+
yield yield tslib.__await(page);
|
|
6713
|
+
}
|
|
6427
6714
|
while (continuationToken) {
|
|
6428
6715
|
result = yield tslib.__await(this._expandNext(resourceGroupName, hostPoolName, msixImageURI, continuationToken, options));
|
|
6429
6716
|
continuationToken = result.nextLink;
|
|
6430
|
-
|
|
6717
|
+
let page = result.value || [];
|
|
6718
|
+
setContinuationToken(page, continuationToken);
|
|
6719
|
+
yield yield tslib.__await(page);
|
|
6431
6720
|
}
|
|
6432
6721
|
});
|
|
6433
6722
|
}
|
|
@@ -6552,20 +6841,31 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6552
6841
|
[Symbol.asyncIterator]() {
|
|
6553
6842
|
return this;
|
|
6554
6843
|
},
|
|
6555
|
-
byPage: () => {
|
|
6556
|
-
|
|
6844
|
+
byPage: (settings) => {
|
|
6845
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6846
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6847
|
+
}
|
|
6848
|
+
return this.listByHostPoolPagingPage(resourceGroupName, hostPoolName, options, settings);
|
|
6557
6849
|
}
|
|
6558
6850
|
};
|
|
6559
6851
|
}
|
|
6560
|
-
listByHostPoolPagingPage(resourceGroupName, hostPoolName, options) {
|
|
6852
|
+
listByHostPoolPagingPage(resourceGroupName, hostPoolName, options, settings) {
|
|
6561
6853
|
return tslib.__asyncGenerator(this, arguments, function* listByHostPoolPagingPage_1() {
|
|
6562
|
-
let result
|
|
6563
|
-
|
|
6564
|
-
|
|
6854
|
+
let result;
|
|
6855
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6856
|
+
if (!continuationToken) {
|
|
6857
|
+
result = yield tslib.__await(this._listByHostPool(resourceGroupName, hostPoolName, options));
|
|
6858
|
+
let page = result.value || [];
|
|
6859
|
+
continuationToken = result.nextLink;
|
|
6860
|
+
setContinuationToken(page, continuationToken);
|
|
6861
|
+
yield yield tslib.__await(page);
|
|
6862
|
+
}
|
|
6565
6863
|
while (continuationToken) {
|
|
6566
6864
|
result = yield tslib.__await(this._listByHostPoolNext(resourceGroupName, hostPoolName, continuationToken, options));
|
|
6567
6865
|
continuationToken = result.nextLink;
|
|
6568
|
-
|
|
6866
|
+
let page = result.value || [];
|
|
6867
|
+
setContinuationToken(page, continuationToken);
|
|
6868
|
+
yield yield tslib.__await(page);
|
|
6569
6869
|
}
|
|
6570
6870
|
});
|
|
6571
6871
|
}
|
|
@@ -6602,20 +6902,31 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6602
6902
|
[Symbol.asyncIterator]() {
|
|
6603
6903
|
return this;
|
|
6604
6904
|
},
|
|
6605
|
-
byPage: () => {
|
|
6606
|
-
|
|
6905
|
+
byPage: (settings) => {
|
|
6906
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6907
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6908
|
+
}
|
|
6909
|
+
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
|
6607
6910
|
}
|
|
6608
6911
|
};
|
|
6609
6912
|
}
|
|
6610
|
-
listByWorkspacePagingPage(resourceGroupName, workspaceName, options) {
|
|
6913
|
+
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
6611
6914
|
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
|
6612
|
-
let result
|
|
6613
|
-
|
|
6614
|
-
|
|
6915
|
+
let result;
|
|
6916
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6917
|
+
if (!continuationToken) {
|
|
6918
|
+
result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
|
6919
|
+
let page = result.value || [];
|
|
6920
|
+
continuationToken = result.nextLink;
|
|
6921
|
+
setContinuationToken(page, continuationToken);
|
|
6922
|
+
yield yield tslib.__await(page);
|
|
6923
|
+
}
|
|
6615
6924
|
while (continuationToken) {
|
|
6616
6925
|
result = yield tslib.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
6617
6926
|
continuationToken = result.nextLink;
|
|
6618
|
-
|
|
6927
|
+
let page = result.value || [];
|
|
6928
|
+
setContinuationToken(page, continuationToken);
|
|
6929
|
+
yield yield tslib.__await(page);
|
|
6619
6930
|
}
|
|
6620
6931
|
});
|
|
6621
6932
|
}
|
|
@@ -7031,20 +7342,31 @@ class PrivateLinkResourcesImpl {
|
|
|
7031
7342
|
[Symbol.asyncIterator]() {
|
|
7032
7343
|
return this;
|
|
7033
7344
|
},
|
|
7034
|
-
byPage: () => {
|
|
7035
|
-
|
|
7345
|
+
byPage: (settings) => {
|
|
7346
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7347
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
7348
|
+
}
|
|
7349
|
+
return this.listByHostPoolPagingPage(resourceGroupName, hostPoolName, options, settings);
|
|
7036
7350
|
}
|
|
7037
7351
|
};
|
|
7038
7352
|
}
|
|
7039
|
-
listByHostPoolPagingPage(resourceGroupName, hostPoolName, options) {
|
|
7353
|
+
listByHostPoolPagingPage(resourceGroupName, hostPoolName, options, settings) {
|
|
7040
7354
|
return tslib.__asyncGenerator(this, arguments, function* listByHostPoolPagingPage_1() {
|
|
7041
|
-
let result
|
|
7042
|
-
|
|
7043
|
-
|
|
7355
|
+
let result;
|
|
7356
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7357
|
+
if (!continuationToken) {
|
|
7358
|
+
result = yield tslib.__await(this._listByHostPool(resourceGroupName, hostPoolName, options));
|
|
7359
|
+
let page = result.value || [];
|
|
7360
|
+
continuationToken = result.nextLink;
|
|
7361
|
+
setContinuationToken(page, continuationToken);
|
|
7362
|
+
yield yield tslib.__await(page);
|
|
7363
|
+
}
|
|
7044
7364
|
while (continuationToken) {
|
|
7045
7365
|
result = yield tslib.__await(this._listByHostPoolNext(resourceGroupName, hostPoolName, continuationToken, options));
|
|
7046
7366
|
continuationToken = result.nextLink;
|
|
7047
|
-
|
|
7367
|
+
let page = result.value || [];
|
|
7368
|
+
setContinuationToken(page, continuationToken);
|
|
7369
|
+
yield yield tslib.__await(page);
|
|
7048
7370
|
}
|
|
7049
7371
|
});
|
|
7050
7372
|
}
|
|
@@ -7081,20 +7403,31 @@ class PrivateLinkResourcesImpl {
|
|
|
7081
7403
|
[Symbol.asyncIterator]() {
|
|
7082
7404
|
return this;
|
|
7083
7405
|
},
|
|
7084
|
-
byPage: () => {
|
|
7085
|
-
|
|
7406
|
+
byPage: (settings) => {
|
|
7407
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7408
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
7409
|
+
}
|
|
7410
|
+
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
|
7086
7411
|
}
|
|
7087
7412
|
};
|
|
7088
7413
|
}
|
|
7089
|
-
listByWorkspacePagingPage(resourceGroupName, workspaceName, options) {
|
|
7414
|
+
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
7090
7415
|
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
|
7091
|
-
let result
|
|
7092
|
-
|
|
7093
|
-
|
|
7416
|
+
let result;
|
|
7417
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7418
|
+
if (!continuationToken) {
|
|
7419
|
+
result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
|
7420
|
+
let page = result.value || [];
|
|
7421
|
+
continuationToken = result.nextLink;
|
|
7422
|
+
setContinuationToken(page, continuationToken);
|
|
7423
|
+
yield yield tslib.__await(page);
|
|
7424
|
+
}
|
|
7094
7425
|
while (continuationToken) {
|
|
7095
7426
|
result = yield tslib.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
7096
7427
|
continuationToken = result.nextLink;
|
|
7097
|
-
|
|
7428
|
+
let page = result.value || [];
|
|
7429
|
+
setContinuationToken(page, continuationToken);
|
|
7430
|
+
yield yield tslib.__await(page);
|
|
7098
7431
|
}
|
|
7099
7432
|
});
|
|
7100
7433
|
}
|
|
@@ -7259,7 +7592,7 @@ class DesktopVirtualizationAPIClient extends coreClient__namespace.ServiceClient
|
|
|
7259
7592
|
* @param options The parameter options
|
|
7260
7593
|
*/
|
|
7261
7594
|
constructor(credentials, subscriptionId, options) {
|
|
7262
|
-
var _a, _b;
|
|
7595
|
+
var _a, _b, _c;
|
|
7263
7596
|
if (credentials === undefined) {
|
|
7264
7597
|
throw new Error("'credentials' cannot be null");
|
|
7265
7598
|
}
|
|
@@ -7274,32 +7607,34 @@ class DesktopVirtualizationAPIClient extends coreClient__namespace.ServiceClient
|
|
|
7274
7607
|
requestContentType: "application/json; charset=utf-8",
|
|
7275
7608
|
credential: credentials
|
|
7276
7609
|
};
|
|
7277
|
-
const packageDetails = `azsdk-js-arm-desktopvirtualization/1.0.0-beta.
|
|
7610
|
+
const packageDetails = `azsdk-js-arm-desktopvirtualization/1.0.0-beta.4`;
|
|
7278
7611
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
7279
7612
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
7280
7613
|
: `${packageDetails}`;
|
|
7281
|
-
if (!options.credentialScopes) {
|
|
7282
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
7283
|
-
}
|
|
7284
7614
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
7285
7615
|
userAgentPrefix
|
|
7286
|
-
},
|
|
7616
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
7287
7617
|
super(optionsWithDefaults);
|
|
7618
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
7288
7619
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
7289
7620
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
7290
|
-
|
|
7621
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
7291
7622
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7623
|
+
}
|
|
7624
|
+
if (!options ||
|
|
7625
|
+
!options.pipeline ||
|
|
7626
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
7627
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
7628
|
+
this.pipeline.removePolicy({
|
|
7629
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
7630
|
+
});
|
|
7631
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
7632
|
+
credential: credentials,
|
|
7633
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
7634
|
+
challengeCallbacks: {
|
|
7635
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
7636
|
+
}
|
|
7637
|
+
}));
|
|
7303
7638
|
}
|
|
7304
7639
|
// Parameter assignments
|
|
7305
7640
|
this.subscriptionId = subscriptionId;
|
|
@@ -7320,8 +7655,37 @@ class DesktopVirtualizationAPIClient extends coreClient__namespace.ServiceClient
|
|
|
7320
7655
|
this.msixImages = new MsixImagesImpl(this);
|
|
7321
7656
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
7322
7657
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
7658
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
7659
|
+
}
|
|
7660
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
7661
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
7662
|
+
if (!apiVersion) {
|
|
7663
|
+
return;
|
|
7664
|
+
}
|
|
7665
|
+
const apiVersionPolicy = {
|
|
7666
|
+
name: "CustomApiVersionPolicy",
|
|
7667
|
+
sendRequest(request, next) {
|
|
7668
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7669
|
+
const param = request.url.split("?");
|
|
7670
|
+
if (param.length > 1) {
|
|
7671
|
+
const newParams = param[1].split("&").map((item) => {
|
|
7672
|
+
if (item.indexOf("api-version") > -1) {
|
|
7673
|
+
return "api-version=" + apiVersion;
|
|
7674
|
+
}
|
|
7675
|
+
else {
|
|
7676
|
+
return item;
|
|
7677
|
+
}
|
|
7678
|
+
});
|
|
7679
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
7680
|
+
}
|
|
7681
|
+
return next(request);
|
|
7682
|
+
});
|
|
7683
|
+
}
|
|
7684
|
+
};
|
|
7685
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
7323
7686
|
}
|
|
7324
7687
|
}
|
|
7325
7688
|
|
|
7326
7689
|
exports.DesktopVirtualizationAPIClient = DesktopVirtualizationAPIClient;
|
|
7690
|
+
exports.getContinuationToken = getContinuationToken;
|
|
7327
7691
|
//# sourceMappingURL=index.js.map
|