@azure/arm-containerregistry 10.1.0-beta.2 → 10.1.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 +32 -11
- package/README.md +1 -1
- package/dist/index.js +623 -167
- 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/connectedRegistriesCreateSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesDeactivateSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesGetSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesListSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/exportPipelinesCreateSample.js +1 -1
- package/dist-esm/samples-dev/exportPipelinesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/exportPipelinesGetSample.js +1 -1
- package/dist-esm/samples-dev/exportPipelinesListSample.js +1 -1
- package/dist-esm/samples-dev/importPipelinesCreateSample.js +1 -1
- package/dist-esm/samples-dev/importPipelinesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/importPipelinesGetSample.js +1 -1
- package/dist-esm/samples-dev/importPipelinesListSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/pipelineRunsCreateSample.js +2 -2
- package/dist-esm/samples-dev/pipelineRunsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/pipelineRunsGetSample.js +1 -1
- package/dist-esm/samples-dev/pipelineRunsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/registriesCheckNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/registriesCreateSample.js +2 -2
- package/dist-esm/samples-dev/registriesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/registriesGenerateCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/registriesGetPrivateLinkResourceSample.js +1 -1
- package/dist-esm/samples-dev/registriesGetSample.js +1 -1
- package/dist-esm/samples-dev/registriesImportImageSample.js +3 -3
- package/dist-esm/samples-dev/registriesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/registriesListCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/registriesListPrivateLinkResourcesSample.js +1 -1
- package/dist-esm/samples-dev/registriesListSample.js +1 -1
- package/dist-esm/samples-dev/registriesListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/registriesRegenerateCredentialSample.js +1 -1
- package/dist-esm/samples-dev/registriesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/replicationsCreateSample.js +2 -2
- package/dist-esm/samples-dev/replicationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsCreateSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsGetSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsListSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/tokensCreateSample.js +1 -1
- package/dist-esm/samples-dev/tokensDeleteSample.js +1 -1
- package/dist-esm/samples-dev/tokensGetSample.js +1 -1
- package/dist-esm/samples-dev/tokensListSample.js +1 -1
- package/dist-esm/samples-dev/tokensUpdateSample.js +1 -1
- package/dist-esm/samples-dev/webhooksCreateSample.js +1 -1
- package/dist-esm/samples-dev/webhooksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/webhooksGetCallbackConfigSample.js +1 -1
- package/dist-esm/samples-dev/webhooksGetSample.js +1 -1
- package/dist-esm/samples-dev/webhooksListEventsSample.js +1 -1
- package/dist-esm/samples-dev/webhooksListSample.js +1 -1
- package/dist-esm/samples-dev/webhooksPingSample.js +1 -1
- package/dist-esm/samples-dev/webhooksUpdateSample.js +1 -1
- package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
- package/dist-esm/src/containerRegistryManagementClient.js +25 -6
- package/dist-esm/src/containerRegistryManagementClient.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 +235 -59
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +141 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +94 -33
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/agentPools.d.ts.map +1 -1
- package/dist-esm/src/operations/agentPools.js +19 -7
- package/dist-esm/src/operations/agentPools.js.map +1 -1
- package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -1
- package/dist-esm/src/operations/connectedRegistries.js +19 -7
- package/dist-esm/src/operations/connectedRegistries.js.map +1 -1
- package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -1
- package/dist-esm/src/operations/exportPipelines.js +19 -7
- package/dist-esm/src/operations/exportPipelines.js.map +1 -1
- package/dist-esm/src/operations/importPipelines.d.ts.map +1 -1
- package/dist-esm/src/operations/importPipelines.js +19 -7
- package/dist-esm/src/operations/importPipelines.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/pipelineRuns.d.ts.map +1 -1
- package/dist-esm/src/operations/pipelineRuns.js +19 -7
- package/dist-esm/src/operations/pipelineRuns.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/registries.d.ts.map +1 -1
- package/dist-esm/src/operations/registries.js +55 -21
- package/dist-esm/src/operations/registries.js.map +1 -1
- package/dist-esm/src/operations/replications.d.ts.map +1 -1
- package/dist-esm/src/operations/replications.js +19 -7
- package/dist-esm/src/operations/replications.js.map +1 -1
- package/dist-esm/src/operations/runs.d.ts.map +1 -1
- package/dist-esm/src/operations/runs.js +19 -7
- package/dist-esm/src/operations/runs.js.map +1 -1
- package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -1
- package/dist-esm/src/operations/scopeMaps.js +19 -7
- package/dist-esm/src/operations/scopeMaps.js.map +1 -1
- package/dist-esm/src/operations/taskRuns.d.ts.map +1 -1
- package/dist-esm/src/operations/taskRuns.js +19 -7
- package/dist-esm/src/operations/taskRuns.js.map +1 -1
- package/dist-esm/src/operations/tasks.d.ts.map +1 -1
- package/dist-esm/src/operations/tasks.js +19 -7
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/tokens.d.ts.map +1 -1
- package/dist-esm/src/operations/tokens.js +19 -7
- package/dist-esm/src/operations/tokens.js.map +1 -1
- package/dist-esm/src/operations/webhooks.d.ts.map +1 -1
- package/dist-esm/src/operations/webhooks.js +37 -14
- package/dist-esm/src/operations/webhooks.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/containerregistry_examples.d.ts.map +1 -1
- package/dist-esm/test/containerregistry_examples.js +16 -18
- package/dist-esm/test/containerregistry_examples.js.map +1 -1
- package/package.json +15 -11
- package/review/arm-containerregistry.api.md +177 -280
- package/src/containerRegistryManagementClient.ts +35 -5
- package/src/index.ts +1 -0
- package/src/models/index.ts +243 -60
- package/src/models/mappers.ts +98 -34
- package/src/models/parameters.ts +1 -1
- package/src/operations/agentPools.ts +27 -9
- package/src/operations/connectedRegistries.ts +26 -8
- package/src/operations/exportPipelines.ts +26 -8
- package/src/operations/importPipelines.ts +26 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/pipelineRuns.ts +26 -8
- package/src/operations/privateEndpointConnections.ts +26 -8
- package/src/operations/registries.ts +71 -29
- package/src/operations/replications.ts +26 -8
- package/src/operations/runs.ts +26 -8
- package/src/operations/scopeMaps.ts +26 -8
- package/src/operations/taskRuns.ts +27 -9
- package/src/operations/tasks.ts +26 -8
- package/src/operations/tokens.ts +26 -8
- package/src/operations/webhooks.ts +53 -22
- package/src/pagingHelper.ts +39 -0
- package/types/arm-containerregistry.d.ts +250 -60
- 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 { Registries } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -18,18 +19,19 @@ import {
|
|
18
19
|
Registry,
|
19
20
|
RegistriesListNextOptionalParams,
|
20
21
|
RegistriesListOptionalParams,
|
22
|
+
RegistriesListResponse,
|
21
23
|
RegistriesListByResourceGroupNextOptionalParams,
|
22
24
|
RegistriesListByResourceGroupOptionalParams,
|
25
|
+
RegistriesListByResourceGroupResponse,
|
23
26
|
PrivateLinkResource,
|
24
27
|
RegistriesListPrivateLinkResourcesNextOptionalParams,
|
25
28
|
RegistriesListPrivateLinkResourcesOptionalParams,
|
29
|
+
RegistriesListPrivateLinkResourcesResponse,
|
26
30
|
ImportImageParameters,
|
27
31
|
RegistriesImportImageOptionalParams,
|
28
32
|
RegistryNameCheckRequest,
|
29
33
|
RegistriesCheckNameAvailabilityOptionalParams,
|
30
34
|
RegistriesCheckNameAvailabilityResponse,
|
31
|
-
RegistriesListResponse,
|
32
|
-
RegistriesListByResourceGroupResponse,
|
33
35
|
RegistriesGetOptionalParams,
|
34
36
|
RegistriesGetResponse,
|
35
37
|
RegistriesCreateOptionalParams,
|
@@ -40,7 +42,6 @@ import {
|
|
40
42
|
RegistriesUpdateResponse,
|
41
43
|
RegistriesListUsagesOptionalParams,
|
42
44
|
RegistriesListUsagesResponse,
|
43
|
-
RegistriesListPrivateLinkResourcesResponse,
|
44
45
|
RegistriesGetPrivateLinkResourceOptionalParams,
|
45
46
|
RegistriesGetPrivateLinkResourceResponse,
|
46
47
|
RegistriesListCredentialsOptionalParams,
|
@@ -89,22 +90,34 @@ export class RegistriesImpl implements Registries {
|
|
89
90
|
[Symbol.asyncIterator]() {
|
90
91
|
return this;
|
91
92
|
},
|
92
|
-
byPage: () => {
|
93
|
-
|
93
|
+
byPage: (settings?: PageSettings) => {
|
94
|
+
if (settings?.maxPageSize) {
|
95
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
96
|
+
}
|
97
|
+
return this.listPagingPage(options, settings);
|
94
98
|
}
|
95
99
|
};
|
96
100
|
}
|
97
101
|
|
98
102
|
private async *listPagingPage(
|
99
|
-
options?: RegistriesListOptionalParams
|
103
|
+
options?: RegistriesListOptionalParams,
|
104
|
+
settings?: PageSettings
|
100
105
|
): AsyncIterableIterator<Registry[]> {
|
101
|
-
let result
|
102
|
-
|
103
|
-
|
106
|
+
let result: RegistriesListResponse;
|
107
|
+
let continuationToken = settings?.continuationToken;
|
108
|
+
if (!continuationToken) {
|
109
|
+
result = await this._list(options);
|
110
|
+
let page = result.value || [];
|
111
|
+
continuationToken = result.nextLink;
|
112
|
+
setContinuationToken(page, continuationToken);
|
113
|
+
yield page;
|
114
|
+
}
|
104
115
|
while (continuationToken) {
|
105
116
|
result = await this._listNext(continuationToken, options);
|
106
117
|
continuationToken = result.nextLink;
|
107
|
-
|
118
|
+
let page = result.value || [];
|
119
|
+
setContinuationToken(page, continuationToken);
|
120
|
+
yield page;
|
108
121
|
}
|
109
122
|
}
|
110
123
|
|
@@ -133,19 +146,33 @@ export class RegistriesImpl implements Registries {
|
|
133
146
|
[Symbol.asyncIterator]() {
|
134
147
|
return this;
|
135
148
|
},
|
136
|
-
byPage: () => {
|
137
|
-
|
149
|
+
byPage: (settings?: PageSettings) => {
|
150
|
+
if (settings?.maxPageSize) {
|
151
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
152
|
+
}
|
153
|
+
return this.listByResourceGroupPagingPage(
|
154
|
+
resourceGroupName,
|
155
|
+
options,
|
156
|
+
settings
|
157
|
+
);
|
138
158
|
}
|
139
159
|
};
|
140
160
|
}
|
141
161
|
|
142
162
|
private async *listByResourceGroupPagingPage(
|
143
163
|
resourceGroupName: string,
|
144
|
-
options?: RegistriesListByResourceGroupOptionalParams
|
164
|
+
options?: RegistriesListByResourceGroupOptionalParams,
|
165
|
+
settings?: PageSettings
|
145
166
|
): AsyncIterableIterator<Registry[]> {
|
146
|
-
let result
|
147
|
-
|
148
|
-
|
167
|
+
let result: RegistriesListByResourceGroupResponse;
|
168
|
+
let continuationToken = settings?.continuationToken;
|
169
|
+
if (!continuationToken) {
|
170
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
171
|
+
let page = result.value || [];
|
172
|
+
continuationToken = result.nextLink;
|
173
|
+
setContinuationToken(page, continuationToken);
|
174
|
+
yield page;
|
175
|
+
}
|
149
176
|
while (continuationToken) {
|
150
177
|
result = await this._listByResourceGroupNext(
|
151
178
|
resourceGroupName,
|
@@ -153,7 +180,9 @@ export class RegistriesImpl implements Registries {
|
|
153
180
|
options
|
154
181
|
);
|
155
182
|
continuationToken = result.nextLink;
|
156
|
-
|
183
|
+
let page = result.value || [];
|
184
|
+
setContinuationToken(page, continuationToken);
|
185
|
+
yield page;
|
157
186
|
}
|
158
187
|
}
|
159
188
|
|
@@ -192,11 +221,15 @@ export class RegistriesImpl implements Registries {
|
|
192
221
|
[Symbol.asyncIterator]() {
|
193
222
|
return this;
|
194
223
|
},
|
195
|
-
byPage: () => {
|
224
|
+
byPage: (settings?: PageSettings) => {
|
225
|
+
if (settings?.maxPageSize) {
|
226
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
227
|
+
}
|
196
228
|
return this.listPrivateLinkResourcesPagingPage(
|
197
229
|
resourceGroupName,
|
198
230
|
registryName,
|
199
|
-
options
|
231
|
+
options,
|
232
|
+
settings
|
200
233
|
);
|
201
234
|
}
|
202
235
|
};
|
@@ -205,15 +238,22 @@ export class RegistriesImpl implements Registries {
|
|
205
238
|
private async *listPrivateLinkResourcesPagingPage(
|
206
239
|
resourceGroupName: string,
|
207
240
|
registryName: string,
|
208
|
-
options?: RegistriesListPrivateLinkResourcesOptionalParams
|
241
|
+
options?: RegistriesListPrivateLinkResourcesOptionalParams,
|
242
|
+
settings?: PageSettings
|
209
243
|
): AsyncIterableIterator<PrivateLinkResource[]> {
|
210
|
-
let result
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
244
|
+
let result: RegistriesListPrivateLinkResourcesResponse;
|
245
|
+
let continuationToken = settings?.continuationToken;
|
246
|
+
if (!continuationToken) {
|
247
|
+
result = await this._listPrivateLinkResources(
|
248
|
+
resourceGroupName,
|
249
|
+
registryName,
|
250
|
+
options
|
251
|
+
);
|
252
|
+
let page = result.value || [];
|
253
|
+
continuationToken = result.nextLink;
|
254
|
+
setContinuationToken(page, continuationToken);
|
255
|
+
yield page;
|
256
|
+
}
|
217
257
|
while (continuationToken) {
|
218
258
|
result = await this._listPrivateLinkResourcesNext(
|
219
259
|
resourceGroupName,
|
@@ -222,7 +262,9 @@ export class RegistriesImpl implements Registries {
|
|
222
262
|
options
|
223
263
|
);
|
224
264
|
continuationToken = result.nextLink;
|
225
|
-
|
265
|
+
let page = result.value || [];
|
266
|
+
setContinuationToken(page, continuationToken);
|
267
|
+
yield page;
|
226
268
|
}
|
227
269
|
}
|
228
270
|
|
@@ -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 { Replications } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -62,8 +63,16 @@ export class ReplicationsImpl implements Replications {
|
|
62
63
|
[Symbol.asyncIterator]() {
|
63
64
|
return this;
|
64
65
|
},
|
65
|
-
byPage: () => {
|
66
|
-
|
66
|
+
byPage: (settings?: PageSettings) => {
|
67
|
+
if (settings?.maxPageSize) {
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
69
|
+
}
|
70
|
+
return this.listPagingPage(
|
71
|
+
resourceGroupName,
|
72
|
+
registryName,
|
73
|
+
options,
|
74
|
+
settings
|
75
|
+
);
|
67
76
|
}
|
68
77
|
};
|
69
78
|
}
|
@@ -71,11 +80,18 @@ export class ReplicationsImpl implements Replications {
|
|
71
80
|
private async *listPagingPage(
|
72
81
|
resourceGroupName: string,
|
73
82
|
registryName: string,
|
74
|
-
options?: ReplicationsListOptionalParams
|
83
|
+
options?: ReplicationsListOptionalParams,
|
84
|
+
settings?: PageSettings
|
75
85
|
): AsyncIterableIterator<Replication[]> {
|
76
|
-
let result
|
77
|
-
|
78
|
-
|
86
|
+
let result: ReplicationsListResponse;
|
87
|
+
let continuationToken = settings?.continuationToken;
|
88
|
+
if (!continuationToken) {
|
89
|
+
result = await this._list(resourceGroupName, registryName, options);
|
90
|
+
let page = result.value || [];
|
91
|
+
continuationToken = result.nextLink;
|
92
|
+
setContinuationToken(page, continuationToken);
|
93
|
+
yield page;
|
94
|
+
}
|
79
95
|
while (continuationToken) {
|
80
96
|
result = await this._listNext(
|
81
97
|
resourceGroupName,
|
@@ -84,7 +100,9 @@ export class ReplicationsImpl implements Replications {
|
|
84
100
|
options
|
85
101
|
);
|
86
102
|
continuationToken = result.nextLink;
|
87
|
-
|
103
|
+
let page = result.value || [];
|
104
|
+
setContinuationToken(page, continuationToken);
|
105
|
+
yield page;
|
88
106
|
}
|
89
107
|
}
|
90
108
|
|
package/src/operations/runs.ts
CHANGED
@@ -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 { Runs } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -62,8 +63,16 @@ export class RunsImpl implements Runs {
|
|
62
63
|
[Symbol.asyncIterator]() {
|
63
64
|
return this;
|
64
65
|
},
|
65
|
-
byPage: () => {
|
66
|
-
|
66
|
+
byPage: (settings?: PageSettings) => {
|
67
|
+
if (settings?.maxPageSize) {
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
69
|
+
}
|
70
|
+
return this.listPagingPage(
|
71
|
+
resourceGroupName,
|
72
|
+
registryName,
|
73
|
+
options,
|
74
|
+
settings
|
75
|
+
);
|
67
76
|
}
|
68
77
|
};
|
69
78
|
}
|
@@ -71,11 +80,18 @@ export class RunsImpl implements Runs {
|
|
71
80
|
private async *listPagingPage(
|
72
81
|
resourceGroupName: string,
|
73
82
|
registryName: string,
|
74
|
-
options?: RunsListOptionalParams
|
83
|
+
options?: RunsListOptionalParams,
|
84
|
+
settings?: PageSettings
|
75
85
|
): AsyncIterableIterator<Run[]> {
|
76
|
-
let result
|
77
|
-
|
78
|
-
|
86
|
+
let result: RunsListResponse;
|
87
|
+
let continuationToken = settings?.continuationToken;
|
88
|
+
if (!continuationToken) {
|
89
|
+
result = await this._list(resourceGroupName, registryName, options);
|
90
|
+
let page = result.value || [];
|
91
|
+
continuationToken = result.nextLink;
|
92
|
+
setContinuationToken(page, continuationToken);
|
93
|
+
yield page;
|
94
|
+
}
|
79
95
|
while (continuationToken) {
|
80
96
|
result = await this._listNext(
|
81
97
|
resourceGroupName,
|
@@ -84,7 +100,9 @@ export class RunsImpl implements Runs {
|
|
84
100
|
options
|
85
101
|
);
|
86
102
|
continuationToken = result.nextLink;
|
87
|
-
|
103
|
+
let page = result.value || [];
|
104
|
+
setContinuationToken(page, continuationToken);
|
105
|
+
yield page;
|
88
106
|
}
|
89
107
|
}
|
90
108
|
|
@@ -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 { ScopeMaps } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -62,8 +63,16 @@ export class ScopeMapsImpl implements ScopeMaps {
|
|
62
63
|
[Symbol.asyncIterator]() {
|
63
64
|
return this;
|
64
65
|
},
|
65
|
-
byPage: () => {
|
66
|
-
|
66
|
+
byPage: (settings?: PageSettings) => {
|
67
|
+
if (settings?.maxPageSize) {
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
69
|
+
}
|
70
|
+
return this.listPagingPage(
|
71
|
+
resourceGroupName,
|
72
|
+
registryName,
|
73
|
+
options,
|
74
|
+
settings
|
75
|
+
);
|
67
76
|
}
|
68
77
|
};
|
69
78
|
}
|
@@ -71,11 +80,18 @@ export class ScopeMapsImpl implements ScopeMaps {
|
|
71
80
|
private async *listPagingPage(
|
72
81
|
resourceGroupName: string,
|
73
82
|
registryName: string,
|
74
|
-
options?: ScopeMapsListOptionalParams
|
83
|
+
options?: ScopeMapsListOptionalParams,
|
84
|
+
settings?: PageSettings
|
75
85
|
): AsyncIterableIterator<ScopeMap[]> {
|
76
|
-
let result
|
77
|
-
|
78
|
-
|
86
|
+
let result: ScopeMapsListResponse;
|
87
|
+
let continuationToken = settings?.continuationToken;
|
88
|
+
if (!continuationToken) {
|
89
|
+
result = await this._list(resourceGroupName, registryName, options);
|
90
|
+
let page = result.value || [];
|
91
|
+
continuationToken = result.nextLink;
|
92
|
+
setContinuationToken(page, continuationToken);
|
93
|
+
yield page;
|
94
|
+
}
|
79
95
|
while (continuationToken) {
|
80
96
|
result = await this._listNext(
|
81
97
|
resourceGroupName,
|
@@ -84,7 +100,9 @@ export class ScopeMapsImpl implements ScopeMaps {
|
|
84
100
|
options
|
85
101
|
);
|
86
102
|
continuationToken = result.nextLink;
|
87
|
-
|
103
|
+
let page = result.value || [];
|
104
|
+
setContinuationToken(page, continuationToken);
|
105
|
+
yield page;
|
88
106
|
}
|
89
107
|
}
|
90
108
|
|
@@ -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 { TaskRuns } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -18,6 +19,7 @@ import {
|
|
18
19
|
TaskRun,
|
19
20
|
TaskRunsListNextOptionalParams,
|
20
21
|
TaskRunsListOptionalParams,
|
22
|
+
TaskRunsListResponse,
|
21
23
|
TaskRunsGetOptionalParams,
|
22
24
|
TaskRunsGetResponse,
|
23
25
|
TaskRunsCreateOptionalParams,
|
@@ -28,7 +30,6 @@ import {
|
|
28
30
|
TaskRunsUpdateResponse,
|
29
31
|
TaskRunsGetDetailsOptionalParams,
|
30
32
|
TaskRunsGetDetailsResponse,
|
31
|
-
TaskRunsListResponse,
|
32
33
|
TaskRunsListNextResponse
|
33
34
|
} from "../models";
|
34
35
|
|
@@ -64,8 +65,16 @@ export class TaskRunsImpl implements TaskRuns {
|
|
64
65
|
[Symbol.asyncIterator]() {
|
65
66
|
return this;
|
66
67
|
},
|
67
|
-
byPage: () => {
|
68
|
-
|
68
|
+
byPage: (settings?: PageSettings) => {
|
69
|
+
if (settings?.maxPageSize) {
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
71
|
+
}
|
72
|
+
return this.listPagingPage(
|
73
|
+
resourceGroupName,
|
74
|
+
registryName,
|
75
|
+
options,
|
76
|
+
settings
|
77
|
+
);
|
69
78
|
}
|
70
79
|
};
|
71
80
|
}
|
@@ -73,11 +82,18 @@ export class TaskRunsImpl implements TaskRuns {
|
|
73
82
|
private async *listPagingPage(
|
74
83
|
resourceGroupName: string,
|
75
84
|
registryName: string,
|
76
|
-
options?: TaskRunsListOptionalParams
|
85
|
+
options?: TaskRunsListOptionalParams,
|
86
|
+
settings?: PageSettings
|
77
87
|
): AsyncIterableIterator<TaskRun[]> {
|
78
|
-
let result
|
79
|
-
|
80
|
-
|
88
|
+
let result: TaskRunsListResponse;
|
89
|
+
let continuationToken = settings?.continuationToken;
|
90
|
+
if (!continuationToken) {
|
91
|
+
result = await this._list(resourceGroupName, registryName, options);
|
92
|
+
let page = result.value || [];
|
93
|
+
continuationToken = result.nextLink;
|
94
|
+
setContinuationToken(page, continuationToken);
|
95
|
+
yield page;
|
96
|
+
}
|
81
97
|
while (continuationToken) {
|
82
98
|
result = await this._listNext(
|
83
99
|
resourceGroupName,
|
@@ -86,7 +102,9 @@ export class TaskRunsImpl implements TaskRuns {
|
|
86
102
|
options
|
87
103
|
);
|
88
104
|
continuationToken = result.nextLink;
|
89
|
-
|
105
|
+
let page = result.value || [];
|
106
|
+
setContinuationToken(page, continuationToken);
|
107
|
+
yield page;
|
90
108
|
}
|
91
109
|
}
|
92
110
|
|
package/src/operations/tasks.ts
CHANGED
@@ -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 { Tasks } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -64,8 +65,16 @@ export class TasksImpl implements Tasks {
|
|
64
65
|
[Symbol.asyncIterator]() {
|
65
66
|
return this;
|
66
67
|
},
|
67
|
-
byPage: () => {
|
68
|
-
|
68
|
+
byPage: (settings?: PageSettings) => {
|
69
|
+
if (settings?.maxPageSize) {
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
71
|
+
}
|
72
|
+
return this.listPagingPage(
|
73
|
+
resourceGroupName,
|
74
|
+
registryName,
|
75
|
+
options,
|
76
|
+
settings
|
77
|
+
);
|
69
78
|
}
|
70
79
|
};
|
71
80
|
}
|
@@ -73,11 +82,18 @@ export class TasksImpl implements Tasks {
|
|
73
82
|
private async *listPagingPage(
|
74
83
|
resourceGroupName: string,
|
75
84
|
registryName: string,
|
76
|
-
options?: TasksListOptionalParams
|
85
|
+
options?: TasksListOptionalParams,
|
86
|
+
settings?: PageSettings
|
77
87
|
): AsyncIterableIterator<Task[]> {
|
78
|
-
let result
|
79
|
-
|
80
|
-
|
88
|
+
let result: TasksListResponse;
|
89
|
+
let continuationToken = settings?.continuationToken;
|
90
|
+
if (!continuationToken) {
|
91
|
+
result = await this._list(resourceGroupName, registryName, options);
|
92
|
+
let page = result.value || [];
|
93
|
+
continuationToken = result.nextLink;
|
94
|
+
setContinuationToken(page, continuationToken);
|
95
|
+
yield page;
|
96
|
+
}
|
81
97
|
while (continuationToken) {
|
82
98
|
result = await this._listNext(
|
83
99
|
resourceGroupName,
|
@@ -86,7 +102,9 @@ export class TasksImpl implements Tasks {
|
|
86
102
|
options
|
87
103
|
);
|
88
104
|
continuationToken = result.nextLink;
|
89
|
-
|
105
|
+
let page = result.value || [];
|
106
|
+
setContinuationToken(page, continuationToken);
|
107
|
+
yield page;
|
90
108
|
}
|
91
109
|
}
|
92
110
|
|
package/src/operations/tokens.ts
CHANGED
@@ -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 { Tokens } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -62,8 +63,16 @@ export class TokensImpl implements Tokens {
|
|
62
63
|
[Symbol.asyncIterator]() {
|
63
64
|
return this;
|
64
65
|
},
|
65
|
-
byPage: () => {
|
66
|
-
|
66
|
+
byPage: (settings?: PageSettings) => {
|
67
|
+
if (settings?.maxPageSize) {
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
69
|
+
}
|
70
|
+
return this.listPagingPage(
|
71
|
+
resourceGroupName,
|
72
|
+
registryName,
|
73
|
+
options,
|
74
|
+
settings
|
75
|
+
);
|
67
76
|
}
|
68
77
|
};
|
69
78
|
}
|
@@ -71,11 +80,18 @@ export class TokensImpl implements Tokens {
|
|
71
80
|
private async *listPagingPage(
|
72
81
|
resourceGroupName: string,
|
73
82
|
registryName: string,
|
74
|
-
options?: TokensListOptionalParams
|
83
|
+
options?: TokensListOptionalParams,
|
84
|
+
settings?: PageSettings
|
75
85
|
): AsyncIterableIterator<Token[]> {
|
76
|
-
let result
|
77
|
-
|
78
|
-
|
86
|
+
let result: TokensListResponse;
|
87
|
+
let continuationToken = settings?.continuationToken;
|
88
|
+
if (!continuationToken) {
|
89
|
+
result = await this._list(resourceGroupName, registryName, options);
|
90
|
+
let page = result.value || [];
|
91
|
+
continuationToken = result.nextLink;
|
92
|
+
setContinuationToken(page, continuationToken);
|
93
|
+
yield page;
|
94
|
+
}
|
79
95
|
while (continuationToken) {
|
80
96
|
result = await this._listNext(
|
81
97
|
resourceGroupName,
|
@@ -84,7 +100,9 @@ export class TokensImpl implements Tokens {
|
|
84
100
|
options
|
85
101
|
);
|
86
102
|
continuationToken = result.nextLink;
|
87
|
-
|
103
|
+
let page = result.value || [];
|
104
|
+
setContinuationToken(page, continuationToken);
|
105
|
+
yield page;
|
88
106
|
}
|
89
107
|
}
|
90
108
|
|