@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
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,16 +17,16 @@ import {
|
|
|
16
17
|
PrivateEndpointConnectionWithSystemData,
|
|
17
18
|
PrivateEndpointConnectionsListByHostPoolNextOptionalParams,
|
|
18
19
|
PrivateEndpointConnectionsListByHostPoolOptionalParams,
|
|
20
|
+
PrivateEndpointConnectionsListByHostPoolResponse,
|
|
19
21
|
PrivateEndpointConnectionsListByWorkspaceNextOptionalParams,
|
|
20
22
|
PrivateEndpointConnectionsListByWorkspaceOptionalParams,
|
|
21
|
-
|
|
23
|
+
PrivateEndpointConnectionsListByWorkspaceResponse,
|
|
22
24
|
PrivateEndpointConnectionsGetByHostPoolOptionalParams,
|
|
23
25
|
PrivateEndpointConnectionsGetByHostPoolResponse,
|
|
24
26
|
PrivateEndpointConnectionsDeleteByHostPoolOptionalParams,
|
|
25
27
|
PrivateEndpointConnection,
|
|
26
28
|
PrivateEndpointConnectionsUpdateByHostPoolOptionalParams,
|
|
27
29
|
PrivateEndpointConnectionsUpdateByHostPoolResponse,
|
|
28
|
-
PrivateEndpointConnectionsListByWorkspaceResponse,
|
|
29
30
|
PrivateEndpointConnectionsGetByWorkspaceOptionalParams,
|
|
30
31
|
PrivateEndpointConnectionsGetByWorkspaceResponse,
|
|
31
32
|
PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams,
|
|
@@ -72,11 +73,15 @@ export class PrivateEndpointConnectionsImpl
|
|
|
72
73
|
[Symbol.asyncIterator]() {
|
|
73
74
|
return this;
|
|
74
75
|
},
|
|
75
|
-
byPage: () => {
|
|
76
|
+
byPage: (settings?: PageSettings) => {
|
|
77
|
+
if (settings?.maxPageSize) {
|
|
78
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
79
|
+
}
|
|
76
80
|
return this.listByHostPoolPagingPage(
|
|
77
81
|
resourceGroupName,
|
|
78
82
|
hostPoolName,
|
|
79
|
-
options
|
|
83
|
+
options,
|
|
84
|
+
settings
|
|
80
85
|
);
|
|
81
86
|
}
|
|
82
87
|
};
|
|
@@ -85,15 +90,22 @@ export class PrivateEndpointConnectionsImpl
|
|
|
85
90
|
private async *listByHostPoolPagingPage(
|
|
86
91
|
resourceGroupName: string,
|
|
87
92
|
hostPoolName: string,
|
|
88
|
-
options?: PrivateEndpointConnectionsListByHostPoolOptionalParams
|
|
93
|
+
options?: PrivateEndpointConnectionsListByHostPoolOptionalParams,
|
|
94
|
+
settings?: PageSettings
|
|
89
95
|
): AsyncIterableIterator<PrivateEndpointConnectionWithSystemData[]> {
|
|
90
|
-
let result
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
let result: PrivateEndpointConnectionsListByHostPoolResponse;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listByHostPool(
|
|
100
|
+
resourceGroupName,
|
|
101
|
+
hostPoolName,
|
|
102
|
+
options
|
|
103
|
+
);
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
108
|
+
}
|
|
97
109
|
while (continuationToken) {
|
|
98
110
|
result = await this._listByHostPoolNext(
|
|
99
111
|
resourceGroupName,
|
|
@@ -102,7 +114,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
102
114
|
options
|
|
103
115
|
);
|
|
104
116
|
continuationToken = result.nextLink;
|
|
105
|
-
|
|
117
|
+
let page = result.value || [];
|
|
118
|
+
setContinuationToken(page, continuationToken);
|
|
119
|
+
yield page;
|
|
106
120
|
}
|
|
107
121
|
}
|
|
108
122
|
|
|
@@ -143,11 +157,15 @@ export class PrivateEndpointConnectionsImpl
|
|
|
143
157
|
[Symbol.asyncIterator]() {
|
|
144
158
|
return this;
|
|
145
159
|
},
|
|
146
|
-
byPage: () => {
|
|
160
|
+
byPage: (settings?: PageSettings) => {
|
|
161
|
+
if (settings?.maxPageSize) {
|
|
162
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
163
|
+
}
|
|
147
164
|
return this.listByWorkspacePagingPage(
|
|
148
165
|
resourceGroupName,
|
|
149
166
|
workspaceName,
|
|
150
|
-
options
|
|
167
|
+
options,
|
|
168
|
+
settings
|
|
151
169
|
);
|
|
152
170
|
}
|
|
153
171
|
};
|
|
@@ -156,15 +174,22 @@ export class PrivateEndpointConnectionsImpl
|
|
|
156
174
|
private async *listByWorkspacePagingPage(
|
|
157
175
|
resourceGroupName: string,
|
|
158
176
|
workspaceName: string,
|
|
159
|
-
options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams
|
|
177
|
+
options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams,
|
|
178
|
+
settings?: PageSettings
|
|
160
179
|
): AsyncIterableIterator<PrivateEndpointConnectionWithSystemData[]> {
|
|
161
|
-
let result
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
180
|
+
let result: PrivateEndpointConnectionsListByWorkspaceResponse;
|
|
181
|
+
let continuationToken = settings?.continuationToken;
|
|
182
|
+
if (!continuationToken) {
|
|
183
|
+
result = await this._listByWorkspace(
|
|
184
|
+
resourceGroupName,
|
|
185
|
+
workspaceName,
|
|
186
|
+
options
|
|
187
|
+
);
|
|
188
|
+
let page = result.value || [];
|
|
189
|
+
continuationToken = result.nextLink;
|
|
190
|
+
setContinuationToken(page, continuationToken);
|
|
191
|
+
yield page;
|
|
192
|
+
}
|
|
168
193
|
while (continuationToken) {
|
|
169
194
|
result = await this._listByWorkspaceNext(
|
|
170
195
|
resourceGroupName,
|
|
@@ -173,7 +198,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
173
198
|
options
|
|
174
199
|
);
|
|
175
200
|
continuationToken = result.nextLink;
|
|
176
|
-
|
|
201
|
+
let page = result.value || [];
|
|
202
|
+
setContinuationToken(page, continuationToken);
|
|
203
|
+
yield page;
|
|
177
204
|
}
|
|
178
205
|
}
|
|
179
206
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
PrivateLinkResource,
|
|
17
18
|
PrivateLinkResourcesListByHostPoolNextOptionalParams,
|
|
18
19
|
PrivateLinkResourcesListByHostPoolOptionalParams,
|
|
20
|
+
PrivateLinkResourcesListByHostPoolResponse,
|
|
19
21
|
PrivateLinkResourcesListByWorkspaceNextOptionalParams,
|
|
20
22
|
PrivateLinkResourcesListByWorkspaceOptionalParams,
|
|
21
|
-
PrivateLinkResourcesListByHostPoolResponse,
|
|
22
23
|
PrivateLinkResourcesListByWorkspaceResponse,
|
|
23
24
|
PrivateLinkResourcesListByHostPoolNextResponse,
|
|
24
25
|
PrivateLinkResourcesListByWorkspaceNextResponse
|
|
@@ -60,11 +61,15 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
64
68
|
return this.listByHostPoolPagingPage(
|
|
65
69
|
resourceGroupName,
|
|
66
70
|
hostPoolName,
|
|
67
|
-
options
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
68
73
|
);
|
|
69
74
|
}
|
|
70
75
|
};
|
|
@@ -73,15 +78,22 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
73
78
|
private async *listByHostPoolPagingPage(
|
|
74
79
|
resourceGroupName: string,
|
|
75
80
|
hostPoolName: string,
|
|
76
|
-
options?: PrivateLinkResourcesListByHostPoolOptionalParams
|
|
81
|
+
options?: PrivateLinkResourcesListByHostPoolOptionalParams,
|
|
82
|
+
settings?: PageSettings
|
|
77
83
|
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
78
|
-
let result
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
let result: PrivateLinkResourcesListByHostPoolResponse;
|
|
85
|
+
let continuationToken = settings?.continuationToken;
|
|
86
|
+
if (!continuationToken) {
|
|
87
|
+
result = await this._listByHostPool(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
hostPoolName,
|
|
90
|
+
options
|
|
91
|
+
);
|
|
92
|
+
let page = result.value || [];
|
|
93
|
+
continuationToken = result.nextLink;
|
|
94
|
+
setContinuationToken(page, continuationToken);
|
|
95
|
+
yield page;
|
|
96
|
+
}
|
|
85
97
|
while (continuationToken) {
|
|
86
98
|
result = await this._listByHostPoolNext(
|
|
87
99
|
resourceGroupName,
|
|
@@ -90,7 +102,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
90
102
|
options
|
|
91
103
|
);
|
|
92
104
|
continuationToken = result.nextLink;
|
|
93
|
-
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
94
108
|
}
|
|
95
109
|
}
|
|
96
110
|
|
|
@@ -131,11 +145,15 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
131
145
|
[Symbol.asyncIterator]() {
|
|
132
146
|
return this;
|
|
133
147
|
},
|
|
134
|
-
byPage: () => {
|
|
148
|
+
byPage: (settings?: PageSettings) => {
|
|
149
|
+
if (settings?.maxPageSize) {
|
|
150
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
151
|
+
}
|
|
135
152
|
return this.listByWorkspacePagingPage(
|
|
136
153
|
resourceGroupName,
|
|
137
154
|
workspaceName,
|
|
138
|
-
options
|
|
155
|
+
options,
|
|
156
|
+
settings
|
|
139
157
|
);
|
|
140
158
|
}
|
|
141
159
|
};
|
|
@@ -144,15 +162,22 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
144
162
|
private async *listByWorkspacePagingPage(
|
|
145
163
|
resourceGroupName: string,
|
|
146
164
|
workspaceName: string,
|
|
147
|
-
options?: PrivateLinkResourcesListByWorkspaceOptionalParams
|
|
165
|
+
options?: PrivateLinkResourcesListByWorkspaceOptionalParams,
|
|
166
|
+
settings?: PageSettings
|
|
148
167
|
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
149
|
-
let result
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
168
|
+
let result: PrivateLinkResourcesListByWorkspaceResponse;
|
|
169
|
+
let continuationToken = settings?.continuationToken;
|
|
170
|
+
if (!continuationToken) {
|
|
171
|
+
result = await this._listByWorkspace(
|
|
172
|
+
resourceGroupName,
|
|
173
|
+
workspaceName,
|
|
174
|
+
options
|
|
175
|
+
);
|
|
176
|
+
let page = result.value || [];
|
|
177
|
+
continuationToken = result.nextLink;
|
|
178
|
+
setContinuationToken(page, continuationToken);
|
|
179
|
+
yield page;
|
|
180
|
+
}
|
|
156
181
|
while (continuationToken) {
|
|
157
182
|
result = await this._listByWorkspaceNext(
|
|
158
183
|
resourceGroupName,
|
|
@@ -161,7 +186,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
161
186
|
options
|
|
162
187
|
);
|
|
163
188
|
continuationToken = result.nextLink;
|
|
164
|
-
|
|
189
|
+
let page = result.value || [];
|
|
190
|
+
setContinuationToken(page, continuationToken);
|
|
191
|
+
yield page;
|
|
165
192
|
}
|
|
166
193
|
}
|
|
167
194
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ScalingPlans } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,10 +17,13 @@ import {
|
|
|
16
17
|
ScalingPlan,
|
|
17
18
|
ScalingPlansListByResourceGroupNextOptionalParams,
|
|
18
19
|
ScalingPlansListByResourceGroupOptionalParams,
|
|
20
|
+
ScalingPlansListByResourceGroupResponse,
|
|
19
21
|
ScalingPlansListBySubscriptionNextOptionalParams,
|
|
20
22
|
ScalingPlansListBySubscriptionOptionalParams,
|
|
23
|
+
ScalingPlansListBySubscriptionResponse,
|
|
21
24
|
ScalingPlansListByHostPoolNextOptionalParams,
|
|
22
25
|
ScalingPlansListByHostPoolOptionalParams,
|
|
26
|
+
ScalingPlansListByHostPoolResponse,
|
|
23
27
|
ScalingPlansGetOptionalParams,
|
|
24
28
|
ScalingPlansGetResponse,
|
|
25
29
|
ScalingPlansCreateOptionalParams,
|
|
@@ -27,9 +31,6 @@ import {
|
|
|
27
31
|
ScalingPlansDeleteOptionalParams,
|
|
28
32
|
ScalingPlansUpdateOptionalParams,
|
|
29
33
|
ScalingPlansUpdateResponse,
|
|
30
|
-
ScalingPlansListByResourceGroupResponse,
|
|
31
|
-
ScalingPlansListBySubscriptionResponse,
|
|
32
|
-
ScalingPlansListByHostPoolResponse,
|
|
33
34
|
ScalingPlansListByResourceGroupNextResponse,
|
|
34
35
|
ScalingPlansListBySubscriptionNextResponse,
|
|
35
36
|
ScalingPlansListByHostPoolNextResponse
|
|
@@ -65,19 +66,33 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
65
66
|
[Symbol.asyncIterator]() {
|
|
66
67
|
return this;
|
|
67
68
|
},
|
|
68
|
-
byPage: () => {
|
|
69
|
-
|
|
69
|
+
byPage: (settings?: PageSettings) => {
|
|
70
|
+
if (settings?.maxPageSize) {
|
|
71
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
72
|
+
}
|
|
73
|
+
return this.listByResourceGroupPagingPage(
|
|
74
|
+
resourceGroupName,
|
|
75
|
+
options,
|
|
76
|
+
settings
|
|
77
|
+
);
|
|
70
78
|
}
|
|
71
79
|
};
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
private async *listByResourceGroupPagingPage(
|
|
75
83
|
resourceGroupName: string,
|
|
76
|
-
options?: ScalingPlansListByResourceGroupOptionalParams
|
|
84
|
+
options?: ScalingPlansListByResourceGroupOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
77
86
|
): AsyncIterableIterator<ScalingPlan[]> {
|
|
78
|
-
let result
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
let result: ScalingPlansListByResourceGroupResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
81
96
|
while (continuationToken) {
|
|
82
97
|
result = await this._listByResourceGroupNext(
|
|
83
98
|
resourceGroupName,
|
|
@@ -85,7 +100,9 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
85
100
|
options
|
|
86
101
|
);
|
|
87
102
|
continuationToken = result.nextLink;
|
|
88
|
-
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
89
106
|
}
|
|
90
107
|
}
|
|
91
108
|
|
|
@@ -116,22 +133,34 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
116
133
|
[Symbol.asyncIterator]() {
|
|
117
134
|
return this;
|
|
118
135
|
},
|
|
119
|
-
byPage: () => {
|
|
120
|
-
|
|
136
|
+
byPage: (settings?: PageSettings) => {
|
|
137
|
+
if (settings?.maxPageSize) {
|
|
138
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
139
|
+
}
|
|
140
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
121
141
|
}
|
|
122
142
|
};
|
|
123
143
|
}
|
|
124
144
|
|
|
125
145
|
private async *listBySubscriptionPagingPage(
|
|
126
|
-
options?: ScalingPlansListBySubscriptionOptionalParams
|
|
146
|
+
options?: ScalingPlansListBySubscriptionOptionalParams,
|
|
147
|
+
settings?: PageSettings
|
|
127
148
|
): AsyncIterableIterator<ScalingPlan[]> {
|
|
128
|
-
let result
|
|
129
|
-
|
|
130
|
-
|
|
149
|
+
let result: ScalingPlansListBySubscriptionResponse;
|
|
150
|
+
let continuationToken = settings?.continuationToken;
|
|
151
|
+
if (!continuationToken) {
|
|
152
|
+
result = await this._listBySubscription(options);
|
|
153
|
+
let page = result.value || [];
|
|
154
|
+
continuationToken = result.nextLink;
|
|
155
|
+
setContinuationToken(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
131
158
|
while (continuationToken) {
|
|
132
159
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
133
160
|
continuationToken = result.nextLink;
|
|
134
|
-
|
|
161
|
+
let page = result.value || [];
|
|
162
|
+
setContinuationToken(page, continuationToken);
|
|
163
|
+
yield page;
|
|
135
164
|
}
|
|
136
165
|
}
|
|
137
166
|
|
|
@@ -166,11 +195,15 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
166
195
|
[Symbol.asyncIterator]() {
|
|
167
196
|
return this;
|
|
168
197
|
},
|
|
169
|
-
byPage: () => {
|
|
198
|
+
byPage: (settings?: PageSettings) => {
|
|
199
|
+
if (settings?.maxPageSize) {
|
|
200
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
201
|
+
}
|
|
170
202
|
return this.listByHostPoolPagingPage(
|
|
171
203
|
resourceGroupName,
|
|
172
204
|
hostPoolName,
|
|
173
|
-
options
|
|
205
|
+
options,
|
|
206
|
+
settings
|
|
174
207
|
);
|
|
175
208
|
}
|
|
176
209
|
};
|
|
@@ -179,15 +212,22 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
179
212
|
private async *listByHostPoolPagingPage(
|
|
180
213
|
resourceGroupName: string,
|
|
181
214
|
hostPoolName: string,
|
|
182
|
-
options?: ScalingPlansListByHostPoolOptionalParams
|
|
215
|
+
options?: ScalingPlansListByHostPoolOptionalParams,
|
|
216
|
+
settings?: PageSettings
|
|
183
217
|
): AsyncIterableIterator<ScalingPlan[]> {
|
|
184
|
-
let result
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
218
|
+
let result: ScalingPlansListByHostPoolResponse;
|
|
219
|
+
let continuationToken = settings?.continuationToken;
|
|
220
|
+
if (!continuationToken) {
|
|
221
|
+
result = await this._listByHostPool(
|
|
222
|
+
resourceGroupName,
|
|
223
|
+
hostPoolName,
|
|
224
|
+
options
|
|
225
|
+
);
|
|
226
|
+
let page = result.value || [];
|
|
227
|
+
continuationToken = result.nextLink;
|
|
228
|
+
setContinuationToken(page, continuationToken);
|
|
229
|
+
yield page;
|
|
230
|
+
}
|
|
191
231
|
while (continuationToken) {
|
|
192
232
|
result = await this._listByHostPoolNext(
|
|
193
233
|
resourceGroupName,
|
|
@@ -196,7 +236,9 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
196
236
|
options
|
|
197
237
|
);
|
|
198
238
|
continuationToken = result.nextLink;
|
|
199
|
-
|
|
239
|
+
let page = result.value || [];
|
|
240
|
+
setContinuationToken(page, continuationToken);
|
|
241
|
+
yield page;
|
|
200
242
|
}
|
|
201
243
|
}
|
|
202
244
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { SessionHosts } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,12 +17,12 @@ import {
|
|
|
16
17
|
SessionHost,
|
|
17
18
|
SessionHostsListNextOptionalParams,
|
|
18
19
|
SessionHostsListOptionalParams,
|
|
20
|
+
SessionHostsListResponse,
|
|
19
21
|
SessionHostsGetOptionalParams,
|
|
20
22
|
SessionHostsGetResponse,
|
|
21
23
|
SessionHostsDeleteOptionalParams,
|
|
22
24
|
SessionHostsUpdateOptionalParams,
|
|
23
25
|
SessionHostsUpdateResponse,
|
|
24
|
-
SessionHostsListResponse,
|
|
25
26
|
SessionHostsListNextResponse
|
|
26
27
|
} from "../models";
|
|
27
28
|
|
|
@@ -57,8 +58,16 @@ export class SessionHostsImpl implements SessionHosts {
|
|
|
57
58
|
[Symbol.asyncIterator]() {
|
|
58
59
|
return this;
|
|
59
60
|
},
|
|
60
|
-
byPage: () => {
|
|
61
|
-
|
|
61
|
+
byPage: (settings?: PageSettings) => {
|
|
62
|
+
if (settings?.maxPageSize) {
|
|
63
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
64
|
+
}
|
|
65
|
+
return this.listPagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
hostPoolName,
|
|
68
|
+
options,
|
|
69
|
+
settings
|
|
70
|
+
);
|
|
62
71
|
}
|
|
63
72
|
};
|
|
64
73
|
}
|
|
@@ -66,11 +75,18 @@ export class SessionHostsImpl implements SessionHosts {
|
|
|
66
75
|
private async *listPagingPage(
|
|
67
76
|
resourceGroupName: string,
|
|
68
77
|
hostPoolName: string,
|
|
69
|
-
options?: SessionHostsListOptionalParams
|
|
78
|
+
options?: SessionHostsListOptionalParams,
|
|
79
|
+
settings?: PageSettings
|
|
70
80
|
): AsyncIterableIterator<SessionHost[]> {
|
|
71
|
-
let result
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
let result: SessionHostsListResponse;
|
|
82
|
+
let continuationToken = settings?.continuationToken;
|
|
83
|
+
if (!continuationToken) {
|
|
84
|
+
result = await this._list(resourceGroupName, hostPoolName, options);
|
|
85
|
+
let page = result.value || [];
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
setContinuationToken(page, continuationToken);
|
|
88
|
+
yield page;
|
|
89
|
+
}
|
|
74
90
|
while (continuationToken) {
|
|
75
91
|
result = await this._listNext(
|
|
76
92
|
resourceGroupName,
|
|
@@ -79,7 +95,9 @@ export class SessionHostsImpl implements SessionHosts {
|
|
|
79
95
|
options
|
|
80
96
|
);
|
|
81
97
|
continuationToken = result.nextLink;
|
|
82
|
-
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
83
101
|
}
|
|
84
102
|
}
|
|
85
103
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { StartMenuItems } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -56,11 +57,15 @@ export class StartMenuItemsImpl implements StartMenuItems {
|
|
|
56
57
|
[Symbol.asyncIterator]() {
|
|
57
58
|
return this;
|
|
58
59
|
},
|
|
59
|
-
byPage: () => {
|
|
60
|
+
byPage: (settings?: PageSettings) => {
|
|
61
|
+
if (settings?.maxPageSize) {
|
|
62
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
63
|
+
}
|
|
60
64
|
return this.listPagingPage(
|
|
61
65
|
resourceGroupName,
|
|
62
66
|
applicationGroupName,
|
|
63
|
-
options
|
|
67
|
+
options,
|
|
68
|
+
settings
|
|
64
69
|
);
|
|
65
70
|
}
|
|
66
71
|
};
|
|
@@ -69,15 +74,22 @@ export class StartMenuItemsImpl implements StartMenuItems {
|
|
|
69
74
|
private async *listPagingPage(
|
|
70
75
|
resourceGroupName: string,
|
|
71
76
|
applicationGroupName: string,
|
|
72
|
-
options?: StartMenuItemsListOptionalParams
|
|
77
|
+
options?: StartMenuItemsListOptionalParams,
|
|
78
|
+
settings?: PageSettings
|
|
73
79
|
): AsyncIterableIterator<StartMenuItem[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
let result: StartMenuItemsListResponse;
|
|
81
|
+
let continuationToken = settings?.continuationToken;
|
|
82
|
+
if (!continuationToken) {
|
|
83
|
+
result = await this._list(
|
|
84
|
+
resourceGroupName,
|
|
85
|
+
applicationGroupName,
|
|
86
|
+
options
|
|
87
|
+
);
|
|
88
|
+
let page = result.value || [];
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
setContinuationToken(page, continuationToken);
|
|
91
|
+
yield page;
|
|
92
|
+
}
|
|
81
93
|
while (continuationToken) {
|
|
82
94
|
result = await this._listNext(
|
|
83
95
|
resourceGroupName,
|
|
@@ -86,7 +98,9 @@ export class StartMenuItemsImpl implements StartMenuItems {
|
|
|
86
98
|
options
|
|
87
99
|
);
|
|
88
100
|
continuationToken = result.nextLink;
|
|
89
|
-
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
90
104
|
}
|
|
91
105
|
}
|
|
92
106
|
|