@azure/arm-devcenter 1.0.0-beta.2 → 1.0.0-beta.3
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 +24 -0
- package/README.md +1 -1
- package/dist/index.js +748 -346
- 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/attachedNetworksCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/attachedNetworksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/attachedNetworksGetByDevCenterSample.js +1 -1
- package/dist-esm/samples-dev/attachedNetworksGetByProjectSample.js +1 -1
- package/dist-esm/samples-dev/attachedNetworksListByDevCenterSample.js +1 -1
- package/dist-esm/samples-dev/attachedNetworksListByProjectSample.js +1 -1
- package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/catalogsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/catalogsGetSample.js +1 -1
- package/dist-esm/samples-dev/catalogsListByDevCenterSample.js +1 -1
- package/dist-esm/samples-dev/catalogsSyncSample.js +1 -1
- package/dist-esm/samples-dev/catalogsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsGetByProjectSample.js +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsGetSample.js +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsListByDevCenterSample.js +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsListByProjectSample.js +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/devCentersCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/devCentersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/devCentersGetSample.js +1 -1
- package/dist-esm/samples-dev/devCentersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/devCentersListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/devCentersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/environmentTypesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/environmentTypesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/environmentTypesGetSample.js +1 -1
- package/dist-esm/samples-dev/environmentTypesListByDevCenterSample.js +1 -1
- package/dist-esm/samples-dev/environmentTypesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/galleriesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/galleriesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/galleriesGetSample.js +1 -1
- package/dist-esm/samples-dev/galleriesListByDevCenterSample.js +1 -1
- package/dist-esm/samples-dev/imageVersionsGetSample.js +1 -1
- package/dist-esm/samples-dev/imageVersionsListByImageSample.js +1 -1
- package/dist-esm/samples-dev/imagesGetSample.js +1 -1
- package/dist-esm/samples-dev/imagesListByDevCenterSample.js +1 -1
- package/dist-esm/samples-dev/imagesListByGallerySample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsGetHealthDetailsSample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsListHealthDetailsSample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsRunHealthChecksSample.js +1 -1
- package/dist-esm/samples-dev/networkConnectionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/operationStatusesGetSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/poolsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/poolsGetSample.js +1 -1
- package/dist-esm/samples-dev/poolsListByProjectSample.js +1 -1
- package/dist-esm/samples-dev/poolsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js +1 -1
- package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesGetSample.js +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesListSample.js +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/projectsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/projectsGetSample.js +1 -1
- package/dist-esm/samples-dev/projectsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/projectsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/projectsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/schedulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/schedulesGetSample.js +1 -1
- package/dist-esm/samples-dev/schedulesListByPoolSample.js +1 -1
- package/dist-esm/samples-dev/schedulesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/skusListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/usagesListByLocationSample.js +1 -1
- package/dist-esm/src/devCenterClient.d.ts +1 -2
- package/dist-esm/src/devCenterClient.d.ts.map +1 -1
- package/dist-esm/src/devCenterClient.js +6 -10
- package/dist-esm/src/devCenterClient.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 +84 -35
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +12 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +110 -30
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +8 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/attachedNetworks.d.ts +12 -12
- package/dist-esm/src/operations/attachedNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/attachedNetworks.js +49 -26
- package/dist-esm/src/operations/attachedNetworks.js.map +1 -1
- package/dist-esm/src/operations/catalogs.d.ts +12 -12
- package/dist-esm/src/operations/catalogs.d.ts.map +1 -1
- package/dist-esm/src/operations/catalogs.js +32 -20
- package/dist-esm/src/operations/catalogs.js.map +1 -1
- package/dist-esm/src/operations/devBoxDefinitions.d.ts +14 -14
- package/dist-esm/src/operations/devBoxDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operations/devBoxDefinitions.js +51 -28
- package/dist-esm/src/operations/devBoxDefinitions.js.map +1 -1
- package/dist-esm/src/operations/devCenters.d.ts +10 -10
- package/dist-esm/src/operations/devCenters.d.ts.map +1 -1
- package/dist-esm/src/operations/devCenters.js +47 -24
- package/dist-esm/src/operations/devCenters.js.map +1 -1
- package/dist-esm/src/operations/environmentTypes.d.ts +7 -7
- package/dist-esm/src/operations/environmentTypes.d.ts.map +1 -1
- package/dist-esm/src/operations/environmentTypes.js +26 -14
- package/dist-esm/src/operations/environmentTypes.js.map +1 -1
- package/dist-esm/src/operations/galleries.d.ts +8 -8
- package/dist-esm/src/operations/galleries.d.ts.map +1 -1
- package/dist-esm/src/operations/galleries.js +27 -15
- package/dist-esm/src/operations/galleries.js.map +1 -1
- package/dist-esm/src/operations/imageVersions.d.ts +4 -4
- package/dist-esm/src/operations/imageVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/imageVersions.js +23 -11
- package/dist-esm/src/operations/imageVersions.js.map +1 -1
- package/dist-esm/src/operations/images.d.ts +7 -7
- package/dist-esm/src/operations/images.d.ts.map +1 -1
- package/dist-esm/src/operations/images.js +44 -21
- package/dist-esm/src/operations/images.js.map +1 -1
- package/dist-esm/src/operations/networkConnections.d.ts +15 -15
- package/dist-esm/src/operations/networkConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/networkConnections.js +70 -36
- package/dist-esm/src/operations/networkConnections.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/pools.d.ts +10 -10
- package/dist-esm/src/operations/pools.d.ts.map +1 -1
- package/dist-esm/src/operations/pools.js +29 -17
- package/dist-esm/src/operations/pools.js.map +1 -1
- package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts +4 -4
- package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts.map +1 -1
- package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js +23 -11
- package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js.map +1 -1
- package/dist-esm/src/operations/projectEnvironmentTypes.d.ts +7 -7
- package/dist-esm/src/operations/projectEnvironmentTypes.d.ts.map +1 -1
- package/dist-esm/src/operations/projectEnvironmentTypes.js +26 -14
- package/dist-esm/src/operations/projectEnvironmentTypes.js.map +1 -1
- package/dist-esm/src/operations/projects.d.ts +10 -10
- package/dist-esm/src/operations/projects.d.ts.map +1 -1
- package/dist-esm/src/operations/projects.js +47 -24
- package/dist-esm/src/operations/projects.js.map +1 -1
- package/dist-esm/src/operations/schedules.d.ts +13 -13
- package/dist-esm/src/operations/schedules.d.ts.map +1 -1
- package/dist-esm/src/operations/schedules.js +41 -21
- package/dist-esm/src/operations/schedules.js.map +1 -1
- package/dist-esm/src/operations/skus.d.ts.map +1 -1
- package/dist-esm/src/operations/skus.js +19 -7
- package/dist-esm/src/operations/skus.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +19 -7
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/attachedNetworks.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/catalogs.d.ts +10 -10
- package/dist-esm/src/operationsInterfaces/devBoxDefinitions.d.ts +10 -10
- package/dist-esm/src/operationsInterfaces/devCenters.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/environmentTypes.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/galleries.d.ts +6 -6
- package/dist-esm/src/operationsInterfaces/imageVersions.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/images.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/networkConnections.d.ts +11 -11
- package/dist-esm/src/operationsInterfaces/pools.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/projectEnvironmentTypes.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/projects.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/schedules.d.ts +11 -11
- package/dist-esm/src/operationsInterfaces/schedules.d.ts.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/devcenter_examples.spec.js +3 -3
- package/dist-esm/test/devcenter_examples.spec.js.map +1 -1
- package/package.json +5 -4
- package/review/arm-devcenter.api.md +49 -16
- package/src/devCenterClient.ts +7 -9
- package/src/index.ts +1 -0
- package/src/models/index.ts +89 -35
- package/src/models/mappers.ts +118 -30
- package/src/models/parameters.ts +8 -1
- package/src/operations/attachedNetworks.ts +64 -37
- package/src/operations/catalogs.ts +39 -25
- package/src/operations/devBoxDefinitions.ts +66 -39
- package/src/operations/devCenters.ts +55 -26
- package/src/operations/environmentTypes.ts +33 -19
- package/src/operations/galleries.ts +34 -20
- package/src/operations/imageVersions.ts +32 -18
- package/src/operations/images.ts +59 -32
- package/src/operations/networkConnections.ts +86 -44
- package/src/operations/operations.ts +21 -8
- package/src/operations/pools.ts +36 -22
- package/src/operations/projectAllowedEnvironmentTypes.ts +30 -12
- package/src/operations/projectEnvironmentTypes.ts +33 -15
- package/src/operations/projects.ts +55 -26
- package/src/operations/schedules.ts +58 -30
- package/src/operations/skus.ts +21 -8
- package/src/operations/usages.ts +21 -8
- package/src/operationsInterfaces/attachedNetworks.ts +8 -8
- package/src/operationsInterfaces/catalogs.ts +10 -10
- package/src/operationsInterfaces/devBoxDefinitions.ts +10 -10
- package/src/operationsInterfaces/devCenters.ts +8 -8
- package/src/operationsInterfaces/environmentTypes.ts +5 -5
- package/src/operationsInterfaces/galleries.ts +6 -6
- package/src/operationsInterfaces/imageVersions.ts +2 -2
- package/src/operationsInterfaces/images.ts +3 -3
- package/src/operationsInterfaces/networkConnections.ts +11 -11
- package/src/operationsInterfaces/pools.ts +8 -8
- package/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts +2 -2
- package/src/operationsInterfaces/projectEnvironmentTypes.ts +5 -5
- package/src/operationsInterfaces/projects.ts +8 -8
- package/src/operationsInterfaces/schedules.ts +16 -10
- package/src/pagingHelper.ts +39 -0
- package/types/arm-devcenter.d.ts +207 -145
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -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 { Galleries } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -42,7 +43,7 @@ export class GalleriesImpl implements Galleries {
|
|
|
42
43
|
|
|
43
44
|
/**
|
|
44
45
|
* Lists galleries for a devcenter.
|
|
45
|
-
* @param resourceGroupName
|
|
46
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
46
47
|
* @param devCenterName The name of the devcenter.
|
|
47
48
|
* @param options The options parameters.
|
|
48
49
|
*/
|
|
@@ -63,11 +64,15 @@ export class GalleriesImpl implements Galleries {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
67
71
|
return this.listByDevCenterPagingPage(
|
|
68
72
|
resourceGroupName,
|
|
69
73
|
devCenterName,
|
|
70
|
-
options
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
71
76
|
);
|
|
72
77
|
}
|
|
73
78
|
};
|
|
@@ -76,15 +81,22 @@ export class GalleriesImpl implements Galleries {
|
|
|
76
81
|
private async *listByDevCenterPagingPage(
|
|
77
82
|
resourceGroupName: string,
|
|
78
83
|
devCenterName: string,
|
|
79
|
-
options?: GalleriesListByDevCenterOptionalParams
|
|
84
|
+
options?: GalleriesListByDevCenterOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
80
86
|
): AsyncIterableIterator<Gallery[]> {
|
|
81
|
-
let result
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
let result: GalleriesListByDevCenterResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._listByDevCenter(
|
|
91
|
+
resourceGroupName,
|
|
92
|
+
devCenterName,
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
88
100
|
while (continuationToken) {
|
|
89
101
|
result = await this._listByDevCenterNext(
|
|
90
102
|
resourceGroupName,
|
|
@@ -93,7 +105,9 @@ export class GalleriesImpl implements Galleries {
|
|
|
93
105
|
options
|
|
94
106
|
);
|
|
95
107
|
continuationToken = result.nextLink;
|
|
96
|
-
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
97
111
|
}
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -113,7 +127,7 @@ export class GalleriesImpl implements Galleries {
|
|
|
113
127
|
|
|
114
128
|
/**
|
|
115
129
|
* Lists galleries for a devcenter.
|
|
116
|
-
* @param resourceGroupName
|
|
130
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
117
131
|
* @param devCenterName The name of the devcenter.
|
|
118
132
|
* @param options The options parameters.
|
|
119
133
|
*/
|
|
@@ -130,7 +144,7 @@ export class GalleriesImpl implements Galleries {
|
|
|
130
144
|
|
|
131
145
|
/**
|
|
132
146
|
* Gets a gallery
|
|
133
|
-
* @param resourceGroupName
|
|
147
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
134
148
|
* @param devCenterName The name of the devcenter.
|
|
135
149
|
* @param galleryName The name of the gallery.
|
|
136
150
|
* @param options The options parameters.
|
|
@@ -149,7 +163,7 @@ export class GalleriesImpl implements Galleries {
|
|
|
149
163
|
|
|
150
164
|
/**
|
|
151
165
|
* Creates or updates a gallery.
|
|
152
|
-
* @param resourceGroupName
|
|
166
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
153
167
|
* @param devCenterName The name of the devcenter.
|
|
154
168
|
* @param galleryName The name of the gallery.
|
|
155
169
|
* @param body Represents a gallery.
|
|
@@ -222,7 +236,7 @@ export class GalleriesImpl implements Galleries {
|
|
|
222
236
|
|
|
223
237
|
/**
|
|
224
238
|
* Creates or updates a gallery.
|
|
225
|
-
* @param resourceGroupName
|
|
239
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
226
240
|
* @param devCenterName The name of the devcenter.
|
|
227
241
|
* @param galleryName The name of the gallery.
|
|
228
242
|
* @param body Represents a gallery.
|
|
@@ -247,7 +261,7 @@ export class GalleriesImpl implements Galleries {
|
|
|
247
261
|
|
|
248
262
|
/**
|
|
249
263
|
* Deletes a gallery resource.
|
|
250
|
-
* @param resourceGroupName
|
|
264
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
251
265
|
* @param devCenterName The name of the devcenter.
|
|
252
266
|
* @param galleryName The name of the gallery.
|
|
253
267
|
* @param options The options parameters.
|
|
@@ -313,7 +327,7 @@ export class GalleriesImpl implements Galleries {
|
|
|
313
327
|
|
|
314
328
|
/**
|
|
315
329
|
* Deletes a gallery resource.
|
|
316
|
-
* @param resourceGroupName
|
|
330
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
317
331
|
* @param devCenterName The name of the devcenter.
|
|
318
332
|
* @param galleryName The name of the gallery.
|
|
319
333
|
* @param options The options parameters.
|
|
@@ -335,7 +349,7 @@ export class GalleriesImpl implements Galleries {
|
|
|
335
349
|
|
|
336
350
|
/**
|
|
337
351
|
* ListByDevCenterNext
|
|
338
|
-
* @param resourceGroupName
|
|
352
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
339
353
|
* @param devCenterName The name of the devcenter.
|
|
340
354
|
* @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
|
|
341
355
|
* @param options The options parameters.
|
|
@@ -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 { ImageVersions } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -37,7 +38,7 @@ export class ImageVersionsImpl implements ImageVersions {
|
|
|
37
38
|
|
|
38
39
|
/**
|
|
39
40
|
* Lists versions for an image.
|
|
40
|
-
* @param resourceGroupName
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
41
42
|
* @param devCenterName The name of the devcenter.
|
|
42
43
|
* @param galleryName The name of the gallery.
|
|
43
44
|
* @param imageName The name of the image.
|
|
@@ -64,13 +65,17 @@ export class ImageVersionsImpl implements ImageVersions {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
68
72
|
return this.listByImagePagingPage(
|
|
69
73
|
resourceGroupName,
|
|
70
74
|
devCenterName,
|
|
71
75
|
galleryName,
|
|
72
76
|
imageName,
|
|
73
|
-
options
|
|
77
|
+
options,
|
|
78
|
+
settings
|
|
74
79
|
);
|
|
75
80
|
}
|
|
76
81
|
};
|
|
@@ -81,17 +86,24 @@ export class ImageVersionsImpl implements ImageVersions {
|
|
|
81
86
|
devCenterName: string,
|
|
82
87
|
galleryName: string,
|
|
83
88
|
imageName: string,
|
|
84
|
-
options?: ImageVersionsListByImageOptionalParams
|
|
89
|
+
options?: ImageVersionsListByImageOptionalParams,
|
|
90
|
+
settings?: PageSettings
|
|
85
91
|
): AsyncIterableIterator<ImageVersion[]> {
|
|
86
|
-
let result
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
let result: ImageVersionsListByImageResponse;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByImage(
|
|
96
|
+
resourceGroupName,
|
|
97
|
+
devCenterName,
|
|
98
|
+
galleryName,
|
|
99
|
+
imageName,
|
|
100
|
+
options
|
|
101
|
+
);
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
95
107
|
while (continuationToken) {
|
|
96
108
|
result = await this._listByImageNext(
|
|
97
109
|
resourceGroupName,
|
|
@@ -102,7 +114,9 @@ export class ImageVersionsImpl implements ImageVersions {
|
|
|
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
|
|
|
@@ -126,7 +140,7 @@ export class ImageVersionsImpl implements ImageVersions {
|
|
|
126
140
|
|
|
127
141
|
/**
|
|
128
142
|
* Lists versions for an image.
|
|
129
|
-
* @param resourceGroupName
|
|
143
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
130
144
|
* @param devCenterName The name of the devcenter.
|
|
131
145
|
* @param galleryName The name of the gallery.
|
|
132
146
|
* @param imageName The name of the image.
|
|
@@ -147,7 +161,7 @@ export class ImageVersionsImpl implements ImageVersions {
|
|
|
147
161
|
|
|
148
162
|
/**
|
|
149
163
|
* Gets an image version.
|
|
150
|
-
* @param resourceGroupName
|
|
164
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
151
165
|
* @param devCenterName The name of the devcenter.
|
|
152
166
|
* @param galleryName The name of the gallery.
|
|
153
167
|
* @param imageName The name of the image.
|
|
@@ -177,7 +191,7 @@ export class ImageVersionsImpl implements ImageVersions {
|
|
|
177
191
|
|
|
178
192
|
/**
|
|
179
193
|
* ListByImageNext
|
|
180
|
-
* @param resourceGroupName
|
|
194
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
181
195
|
* @param devCenterName The name of the devcenter.
|
|
182
196
|
* @param galleryName The name of the gallery.
|
|
183
197
|
* @param imageName The name of the image.
|
package/src/operations/images.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 { Images } 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
|
Image,
|
|
17
18
|
ImagesListByDevCenterNextOptionalParams,
|
|
18
19
|
ImagesListByDevCenterOptionalParams,
|
|
20
|
+
ImagesListByDevCenterResponse,
|
|
19
21
|
ImagesListByGalleryNextOptionalParams,
|
|
20
22
|
ImagesListByGalleryOptionalParams,
|
|
21
|
-
ImagesListByDevCenterResponse,
|
|
22
23
|
ImagesListByGalleryResponse,
|
|
23
24
|
ImagesGetOptionalParams,
|
|
24
25
|
ImagesGetResponse,
|
|
@@ -41,7 +42,7 @@ export class ImagesImpl implements Images {
|
|
|
41
42
|
|
|
42
43
|
/**
|
|
43
44
|
* Lists images for a devcenter.
|
|
44
|
-
* @param resourceGroupName
|
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
46
|
* @param devCenterName The name of the devcenter.
|
|
46
47
|
* @param options The options parameters.
|
|
47
48
|
*/
|
|
@@ -62,11 +63,15 @@ export class ImagesImpl implements Images {
|
|
|
62
63
|
[Symbol.asyncIterator]() {
|
|
63
64
|
return this;
|
|
64
65
|
},
|
|
65
|
-
byPage: () => {
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
66
70
|
return this.listByDevCenterPagingPage(
|
|
67
71
|
resourceGroupName,
|
|
68
72
|
devCenterName,
|
|
69
|
-
options
|
|
73
|
+
options,
|
|
74
|
+
settings
|
|
70
75
|
);
|
|
71
76
|
}
|
|
72
77
|
};
|
|
@@ -75,15 +80,22 @@ export class ImagesImpl implements Images {
|
|
|
75
80
|
private async *listByDevCenterPagingPage(
|
|
76
81
|
resourceGroupName: string,
|
|
77
82
|
devCenterName: string,
|
|
78
|
-
options?: ImagesListByDevCenterOptionalParams
|
|
83
|
+
options?: ImagesListByDevCenterOptionalParams,
|
|
84
|
+
settings?: PageSettings
|
|
79
85
|
): AsyncIterableIterator<Image[]> {
|
|
80
|
-
let result
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
let result: ImagesListByDevCenterResponse;
|
|
87
|
+
let continuationToken = settings?.continuationToken;
|
|
88
|
+
if (!continuationToken) {
|
|
89
|
+
result = await this._listByDevCenter(
|
|
90
|
+
resourceGroupName,
|
|
91
|
+
devCenterName,
|
|
92
|
+
options
|
|
93
|
+
);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
87
99
|
while (continuationToken) {
|
|
88
100
|
result = await this._listByDevCenterNext(
|
|
89
101
|
resourceGroupName,
|
|
@@ -92,7 +104,9 @@ export class ImagesImpl implements Images {
|
|
|
92
104
|
options
|
|
93
105
|
);
|
|
94
106
|
continuationToken = result.nextLink;
|
|
95
|
-
|
|
107
|
+
let page = result.value || [];
|
|
108
|
+
setContinuationToken(page, continuationToken);
|
|
109
|
+
yield page;
|
|
96
110
|
}
|
|
97
111
|
}
|
|
98
112
|
|
|
@@ -112,7 +126,7 @@ export class ImagesImpl implements Images {
|
|
|
112
126
|
|
|
113
127
|
/**
|
|
114
128
|
* Lists images for a gallery.
|
|
115
|
-
* @param resourceGroupName
|
|
129
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
116
130
|
* @param devCenterName The name of the devcenter.
|
|
117
131
|
* @param galleryName The name of the gallery.
|
|
118
132
|
* @param options The options parameters.
|
|
@@ -136,12 +150,16 @@ export class ImagesImpl implements Images {
|
|
|
136
150
|
[Symbol.asyncIterator]() {
|
|
137
151
|
return this;
|
|
138
152
|
},
|
|
139
|
-
byPage: () => {
|
|
153
|
+
byPage: (settings?: PageSettings) => {
|
|
154
|
+
if (settings?.maxPageSize) {
|
|
155
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
156
|
+
}
|
|
140
157
|
return this.listByGalleryPagingPage(
|
|
141
158
|
resourceGroupName,
|
|
142
159
|
devCenterName,
|
|
143
160
|
galleryName,
|
|
144
|
-
options
|
|
161
|
+
options,
|
|
162
|
+
settings
|
|
145
163
|
);
|
|
146
164
|
}
|
|
147
165
|
};
|
|
@@ -151,16 +169,23 @@ export class ImagesImpl implements Images {
|
|
|
151
169
|
resourceGroupName: string,
|
|
152
170
|
devCenterName: string,
|
|
153
171
|
galleryName: string,
|
|
154
|
-
options?: ImagesListByGalleryOptionalParams
|
|
172
|
+
options?: ImagesListByGalleryOptionalParams,
|
|
173
|
+
settings?: PageSettings
|
|
155
174
|
): AsyncIterableIterator<Image[]> {
|
|
156
|
-
let result
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
175
|
+
let result: ImagesListByGalleryResponse;
|
|
176
|
+
let continuationToken = settings?.continuationToken;
|
|
177
|
+
if (!continuationToken) {
|
|
178
|
+
result = await this._listByGallery(
|
|
179
|
+
resourceGroupName,
|
|
180
|
+
devCenterName,
|
|
181
|
+
galleryName,
|
|
182
|
+
options
|
|
183
|
+
);
|
|
184
|
+
let page = result.value || [];
|
|
185
|
+
continuationToken = result.nextLink;
|
|
186
|
+
setContinuationToken(page, continuationToken);
|
|
187
|
+
yield page;
|
|
188
|
+
}
|
|
164
189
|
while (continuationToken) {
|
|
165
190
|
result = await this._listByGalleryNext(
|
|
166
191
|
resourceGroupName,
|
|
@@ -170,7 +195,9 @@ export class ImagesImpl implements Images {
|
|
|
170
195
|
options
|
|
171
196
|
);
|
|
172
197
|
continuationToken = result.nextLink;
|
|
173
|
-
|
|
198
|
+
let page = result.value || [];
|
|
199
|
+
setContinuationToken(page, continuationToken);
|
|
200
|
+
yield page;
|
|
174
201
|
}
|
|
175
202
|
}
|
|
176
203
|
|
|
@@ -192,7 +219,7 @@ export class ImagesImpl implements Images {
|
|
|
192
219
|
|
|
193
220
|
/**
|
|
194
221
|
* Lists images for a devcenter.
|
|
195
|
-
* @param resourceGroupName
|
|
222
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
196
223
|
* @param devCenterName The name of the devcenter.
|
|
197
224
|
* @param options The options parameters.
|
|
198
225
|
*/
|
|
@@ -209,7 +236,7 @@ export class ImagesImpl implements Images {
|
|
|
209
236
|
|
|
210
237
|
/**
|
|
211
238
|
* Lists images for a gallery.
|
|
212
|
-
* @param resourceGroupName
|
|
239
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
213
240
|
* @param devCenterName The name of the devcenter.
|
|
214
241
|
* @param galleryName The name of the gallery.
|
|
215
242
|
* @param options The options parameters.
|
|
@@ -228,7 +255,7 @@ export class ImagesImpl implements Images {
|
|
|
228
255
|
|
|
229
256
|
/**
|
|
230
257
|
* Gets a gallery image.
|
|
231
|
-
* @param resourceGroupName
|
|
258
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
232
259
|
* @param devCenterName The name of the devcenter.
|
|
233
260
|
* @param galleryName The name of the gallery.
|
|
234
261
|
* @param imageName The name of the image.
|
|
@@ -249,7 +276,7 @@ export class ImagesImpl implements Images {
|
|
|
249
276
|
|
|
250
277
|
/**
|
|
251
278
|
* ListByDevCenterNext
|
|
252
|
-
* @param resourceGroupName
|
|
279
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
253
280
|
* @param devCenterName The name of the devcenter.
|
|
254
281
|
* @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
|
|
255
282
|
* @param options The options parameters.
|
|
@@ -268,7 +295,7 @@ export class ImagesImpl implements Images {
|
|
|
268
295
|
|
|
269
296
|
/**
|
|
270
297
|
* ListByGalleryNext
|
|
271
|
-
* @param resourceGroupName
|
|
298
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
272
299
|
* @param devCenterName The name of the devcenter.
|
|
273
300
|
* @param galleryName The name of the gallery.
|
|
274
301
|
* @param nextLink The nextLink from the previous successful call to the ListByGallery method.
|