@azure/arm-devcenter 1.0.0-beta.1 → 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.
Files changed (252) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +1 -1
  3. package/dist/index.js +1020 -402
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/attachedNetworksCreateOrUpdateSample.js +1 -1
  8. package/dist-esm/samples-dev/attachedNetworksDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/attachedNetworksGetByDevCenterSample.js +1 -1
  10. package/dist-esm/samples-dev/attachedNetworksGetByProjectSample.js +1 -1
  11. package/dist-esm/samples-dev/attachedNetworksListByDevCenterSample.js +1 -1
  12. package/dist-esm/samples-dev/attachedNetworksListByProjectSample.js +1 -1
  13. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +2 -2
  14. package/dist-esm/samples-dev/catalogsDeleteSample.js +1 -1
  15. package/dist-esm/samples-dev/catalogsGetSample.js +1 -1
  16. package/dist-esm/samples-dev/catalogsListByDevCenterSample.js +1 -1
  17. package/dist-esm/samples-dev/catalogsSyncSample.js +1 -1
  18. package/dist-esm/samples-dev/catalogsUpdateSample.js +1 -1
  19. package/dist-esm/samples-dev/devBoxDefinitionsCreateOrUpdateSample.js +1 -1
  20. package/dist-esm/samples-dev/devBoxDefinitionsDeleteSample.js +1 -1
  21. package/dist-esm/samples-dev/devBoxDefinitionsGetByProjectSample.js +1 -1
  22. package/dist-esm/samples-dev/devBoxDefinitionsGetSample.js +1 -1
  23. package/dist-esm/samples-dev/devBoxDefinitionsListByDevCenterSample.js +1 -1
  24. package/dist-esm/samples-dev/devBoxDefinitionsListByProjectSample.js +1 -1
  25. package/dist-esm/samples-dev/devBoxDefinitionsUpdateSample.js +1 -1
  26. package/dist-esm/samples-dev/devCentersCreateOrUpdateSample.js +2 -2
  27. package/dist-esm/samples-dev/devCentersDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/devCentersGetSample.js +1 -1
  29. package/dist-esm/samples-dev/devCentersListByResourceGroupSample.js +1 -1
  30. package/dist-esm/samples-dev/devCentersListBySubscriptionSample.js +1 -1
  31. package/dist-esm/samples-dev/devCentersUpdateSample.js +1 -1
  32. package/dist-esm/samples-dev/environmentTypesCreateOrUpdateSample.js +1 -1
  33. package/dist-esm/samples-dev/environmentTypesDeleteSample.js +1 -1
  34. package/dist-esm/samples-dev/environmentTypesGetSample.js +1 -1
  35. package/dist-esm/samples-dev/environmentTypesListByDevCenterSample.js +1 -1
  36. package/dist-esm/samples-dev/environmentTypesUpdateSample.js +1 -1
  37. package/dist-esm/samples-dev/galleriesCreateOrUpdateSample.js +1 -1
  38. package/dist-esm/samples-dev/galleriesDeleteSample.js +1 -1
  39. package/dist-esm/samples-dev/galleriesGetSample.js +1 -1
  40. package/dist-esm/samples-dev/galleriesListByDevCenterSample.js +1 -1
  41. package/dist-esm/samples-dev/imageVersionsGetSample.js +1 -1
  42. package/dist-esm/samples-dev/imageVersionsListByImageSample.js +1 -1
  43. package/dist-esm/samples-dev/imagesGetSample.js +1 -1
  44. package/dist-esm/samples-dev/imagesListByDevCenterSample.js +1 -1
  45. package/dist-esm/samples-dev/imagesListByGallerySample.js +1 -1
  46. package/dist-esm/samples-dev/networkConnectionsCreateOrUpdateSample.js +1 -1
  47. package/dist-esm/samples-dev/networkConnectionsDeleteSample.js +1 -1
  48. package/dist-esm/samples-dev/networkConnectionsGetHealthDetailsSample.js +1 -1
  49. package/dist-esm/samples-dev/networkConnectionsGetSample.js +1 -1
  50. package/dist-esm/samples-dev/networkConnectionsListByResourceGroupSample.js +1 -1
  51. package/dist-esm/samples-dev/networkConnectionsListBySubscriptionSample.js +1 -1
  52. package/dist-esm/samples-dev/networkConnectionsListHealthDetailsSample.js +1 -1
  53. package/dist-esm/samples-dev/networkConnectionsRunHealthChecksSample.js +1 -1
  54. package/dist-esm/samples-dev/networkConnectionsUpdateSample.js +1 -1
  55. package/dist-esm/samples-dev/operationStatusesGetSample.js +1 -1
  56. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  57. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js +1 -1
  58. package/dist-esm/samples-dev/poolsDeleteSample.js +1 -1
  59. package/dist-esm/samples-dev/poolsGetSample.js +1 -1
  60. package/dist-esm/samples-dev/poolsListByProjectSample.js +1 -1
  61. package/dist-esm/samples-dev/poolsUpdateSample.js +1 -1
  62. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.d.ts +2 -0
  63. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.d.ts.map +1 -0
  64. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js +32 -0
  65. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js.map +1 -0
  66. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js +45 -0
  69. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js.map +1 -0
  70. package/dist-esm/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.js +1 -1
  71. package/dist-esm/samples-dev/projectEnvironmentTypesDeleteSample.js +1 -1
  72. package/dist-esm/samples-dev/projectEnvironmentTypesGetSample.js +1 -1
  73. package/dist-esm/samples-dev/projectEnvironmentTypesListSample.js +1 -1
  74. package/dist-esm/samples-dev/projectEnvironmentTypesUpdateSample.js +1 -1
  75. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +1 -1
  76. package/dist-esm/samples-dev/projectsDeleteSample.js +1 -1
  77. package/dist-esm/samples-dev/projectsGetSample.js +1 -1
  78. package/dist-esm/samples-dev/projectsListByResourceGroupSample.js +1 -1
  79. package/dist-esm/samples-dev/projectsListBySubscriptionSample.js +1 -1
  80. package/dist-esm/samples-dev/projectsUpdateSample.js +1 -1
  81. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js +1 -1
  82. package/dist-esm/samples-dev/schedulesDeleteSample.js +1 -1
  83. package/dist-esm/samples-dev/schedulesGetSample.js +1 -1
  84. package/dist-esm/samples-dev/schedulesListByPoolSample.js +1 -1
  85. package/dist-esm/samples-dev/schedulesUpdateSample.js +1 -1
  86. package/dist-esm/samples-dev/skusListBySubscriptionSample.js +1 -1
  87. package/dist-esm/samples-dev/usagesListByLocationSample.js +1 -1
  88. package/dist-esm/src/devCenterClient.d.ts +3 -3
  89. package/dist-esm/src/devCenterClient.d.ts.map +1 -1
  90. package/dist-esm/src/devCenterClient.js +8 -11
  91. package/dist-esm/src/devCenterClient.js.map +1 -1
  92. package/dist-esm/src/index.d.ts +1 -0
  93. package/dist-esm/src/index.d.ts.map +1 -1
  94. package/dist-esm/src/index.js +1 -0
  95. package/dist-esm/src/index.js.map +1 -1
  96. package/dist-esm/src/models/index.d.ts +124 -30
  97. package/dist-esm/src/models/index.d.ts.map +1 -1
  98. package/dist-esm/src/models/index.js +12 -0
  99. package/dist-esm/src/models/index.js.map +1 -1
  100. package/dist-esm/src/models/mappers.d.ts +6 -2
  101. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  102. package/dist-esm/src/models/mappers.js +154 -26
  103. package/dist-esm/src/models/mappers.js.map +1 -1
  104. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  105. package/dist-esm/src/models/parameters.js +8 -1
  106. package/dist-esm/src/models/parameters.js.map +1 -1
  107. package/dist-esm/src/operations/attachedNetworks.d.ts +12 -12
  108. package/dist-esm/src/operations/attachedNetworks.d.ts.map +1 -1
  109. package/dist-esm/src/operations/attachedNetworks.js +49 -26
  110. package/dist-esm/src/operations/attachedNetworks.js.map +1 -1
  111. package/dist-esm/src/operations/catalogs.d.ts +12 -12
  112. package/dist-esm/src/operations/catalogs.d.ts.map +1 -1
  113. package/dist-esm/src/operations/catalogs.js +32 -20
  114. package/dist-esm/src/operations/catalogs.js.map +1 -1
  115. package/dist-esm/src/operations/devBoxDefinitions.d.ts +14 -14
  116. package/dist-esm/src/operations/devBoxDefinitions.d.ts.map +1 -1
  117. package/dist-esm/src/operations/devBoxDefinitions.js +51 -28
  118. package/dist-esm/src/operations/devBoxDefinitions.js.map +1 -1
  119. package/dist-esm/src/operations/devCenters.d.ts +10 -10
  120. package/dist-esm/src/operations/devCenters.d.ts.map +1 -1
  121. package/dist-esm/src/operations/devCenters.js +47 -24
  122. package/dist-esm/src/operations/devCenters.js.map +1 -1
  123. package/dist-esm/src/operations/environmentTypes.d.ts +7 -7
  124. package/dist-esm/src/operations/environmentTypes.d.ts.map +1 -1
  125. package/dist-esm/src/operations/environmentTypes.js +26 -14
  126. package/dist-esm/src/operations/environmentTypes.js.map +1 -1
  127. package/dist-esm/src/operations/galleries.d.ts +8 -8
  128. package/dist-esm/src/operations/galleries.d.ts.map +1 -1
  129. package/dist-esm/src/operations/galleries.js +27 -15
  130. package/dist-esm/src/operations/galleries.js.map +1 -1
  131. package/dist-esm/src/operations/imageVersions.d.ts +4 -4
  132. package/dist-esm/src/operations/imageVersions.d.ts.map +1 -1
  133. package/dist-esm/src/operations/imageVersions.js +23 -11
  134. package/dist-esm/src/operations/imageVersions.js.map +1 -1
  135. package/dist-esm/src/operations/images.d.ts +7 -7
  136. package/dist-esm/src/operations/images.d.ts.map +1 -1
  137. package/dist-esm/src/operations/images.js +44 -21
  138. package/dist-esm/src/operations/images.js.map +1 -1
  139. package/dist-esm/src/operations/index.d.ts +1 -0
  140. package/dist-esm/src/operations/index.d.ts.map +1 -1
  141. package/dist-esm/src/operations/index.js +1 -0
  142. package/dist-esm/src/operations/index.js.map +1 -1
  143. package/dist-esm/src/operations/networkConnections.d.ts +15 -15
  144. package/dist-esm/src/operations/networkConnections.d.ts.map +1 -1
  145. package/dist-esm/src/operations/networkConnections.js +70 -36
  146. package/dist-esm/src/operations/networkConnections.js.map +1 -1
  147. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  148. package/dist-esm/src/operations/operations.js +19 -7
  149. package/dist-esm/src/operations/operations.js.map +1 -1
  150. package/dist-esm/src/operations/pools.d.ts +10 -10
  151. package/dist-esm/src/operations/pools.d.ts.map +1 -1
  152. package/dist-esm/src/operations/pools.js +29 -17
  153. package/dist-esm/src/operations/pools.js.map +1 -1
  154. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts +46 -0
  155. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts.map +1 -0
  156. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js +181 -0
  157. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js.map +1 -0
  158. package/dist-esm/src/operations/projectEnvironmentTypes.d.ts +7 -7
  159. package/dist-esm/src/operations/projectEnvironmentTypes.d.ts.map +1 -1
  160. package/dist-esm/src/operations/projectEnvironmentTypes.js +26 -14
  161. package/dist-esm/src/operations/projectEnvironmentTypes.js.map +1 -1
  162. package/dist-esm/src/operations/projects.d.ts +10 -10
  163. package/dist-esm/src/operations/projects.d.ts.map +1 -1
  164. package/dist-esm/src/operations/projects.js +47 -24
  165. package/dist-esm/src/operations/projects.js.map +1 -1
  166. package/dist-esm/src/operations/schedules.d.ts +13 -13
  167. package/dist-esm/src/operations/schedules.d.ts.map +1 -1
  168. package/dist-esm/src/operations/schedules.js +41 -21
  169. package/dist-esm/src/operations/schedules.js.map +1 -1
  170. package/dist-esm/src/operations/skus.d.ts.map +1 -1
  171. package/dist-esm/src/operations/skus.js +19 -7
  172. package/dist-esm/src/operations/skus.js.map +1 -1
  173. package/dist-esm/src/operations/usages.d.ts.map +1 -1
  174. package/dist-esm/src/operations/usages.js +19 -7
  175. package/dist-esm/src/operations/usages.js.map +1 -1
  176. package/dist-esm/src/operationsInterfaces/attachedNetworks.d.ts +8 -8
  177. package/dist-esm/src/operationsInterfaces/catalogs.d.ts +10 -10
  178. package/dist-esm/src/operationsInterfaces/devBoxDefinitions.d.ts +10 -10
  179. package/dist-esm/src/operationsInterfaces/devCenters.d.ts +8 -8
  180. package/dist-esm/src/operationsInterfaces/environmentTypes.d.ts +5 -5
  181. package/dist-esm/src/operationsInterfaces/galleries.d.ts +6 -6
  182. package/dist-esm/src/operationsInterfaces/imageVersions.d.ts +2 -2
  183. package/dist-esm/src/operationsInterfaces/images.d.ts +3 -3
  184. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  185. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  186. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  187. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  188. package/dist-esm/src/operationsInterfaces/networkConnections.d.ts +11 -11
  189. package/dist-esm/src/operationsInterfaces/pools.d.ts +8 -8
  190. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.d.ts +21 -0
  191. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.d.ts.map +1 -0
  192. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.js +9 -0
  193. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.js.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/projectEnvironmentTypes.d.ts +5 -5
  195. package/dist-esm/src/operationsInterfaces/projects.d.ts +8 -8
  196. package/dist-esm/src/operationsInterfaces/schedules.d.ts +11 -11
  197. package/dist-esm/src/operationsInterfaces/schedules.d.ts.map +1 -1
  198. package/dist-esm/src/pagingHelper.d.ts +13 -0
  199. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  200. package/dist-esm/src/pagingHelper.js +32 -0
  201. package/dist-esm/src/pagingHelper.js.map +1 -0
  202. package/dist-esm/test/devcenter_examples.spec.d.ts +4 -0
  203. package/dist-esm/test/devcenter_examples.spec.d.ts.map +1 -0
  204. package/dist-esm/test/devcenter_examples.spec.js +109 -0
  205. package/dist-esm/test/devcenter_examples.spec.js.map +1 -0
  206. package/package.json +5 -4
  207. package/review/arm-devcenter.api.md +92 -16
  208. package/src/devCenterClient.ts +13 -9
  209. package/src/index.ts +1 -0
  210. package/src/models/index.ts +139 -30
  211. package/src/models/mappers.ts +167 -26
  212. package/src/models/parameters.ts +8 -1
  213. package/src/operations/attachedNetworks.ts +64 -37
  214. package/src/operations/catalogs.ts +39 -25
  215. package/src/operations/devBoxDefinitions.ts +66 -39
  216. package/src/operations/devCenters.ts +55 -26
  217. package/src/operations/environmentTypes.ts +33 -19
  218. package/src/operations/galleries.ts +34 -20
  219. package/src/operations/imageVersions.ts +32 -18
  220. package/src/operations/images.ts +59 -32
  221. package/src/operations/index.ts +1 -0
  222. package/src/operations/networkConnections.ts +86 -44
  223. package/src/operations/operations.ts +21 -8
  224. package/src/operations/pools.ts +36 -22
  225. package/src/operations/projectAllowedEnvironmentTypes.ts +240 -0
  226. package/src/operations/projectEnvironmentTypes.ts +33 -15
  227. package/src/operations/projects.ts +55 -26
  228. package/src/operations/schedules.ts +58 -30
  229. package/src/operations/skus.ts +21 -8
  230. package/src/operations/usages.ts +21 -8
  231. package/src/operationsInterfaces/attachedNetworks.ts +8 -8
  232. package/src/operationsInterfaces/catalogs.ts +10 -10
  233. package/src/operationsInterfaces/devBoxDefinitions.ts +10 -10
  234. package/src/operationsInterfaces/devCenters.ts +8 -8
  235. package/src/operationsInterfaces/environmentTypes.ts +5 -5
  236. package/src/operationsInterfaces/galleries.ts +6 -6
  237. package/src/operationsInterfaces/imageVersions.ts +2 -2
  238. package/src/operationsInterfaces/images.ts +3 -3
  239. package/src/operationsInterfaces/index.ts +1 -0
  240. package/src/operationsInterfaces/networkConnections.ts +11 -11
  241. package/src/operationsInterfaces/pools.ts +8 -8
  242. package/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts +44 -0
  243. package/src/operationsInterfaces/projectEnvironmentTypes.ts +5 -5
  244. package/src/operationsInterfaces/projects.ts +8 -8
  245. package/src/operationsInterfaces/schedules.ts +16 -10
  246. package/src/pagingHelper.ts +39 -0
  247. package/types/arm-devcenter.d.ts +275 -140
  248. package/types/tsdoc-metadata.json +1 -1
  249. package/dist-esm/test/sampleTest.d.ts +0 -2
  250. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  251. package/dist-esm/test/sampleTest.js +0 -38
  252. 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 { DevBoxDefinitions } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -18,9 +19,10 @@ import {
18
19
  DevBoxDefinition,
19
20
  DevBoxDefinitionsListByDevCenterNextOptionalParams,
20
21
  DevBoxDefinitionsListByDevCenterOptionalParams,
22
+ DevBoxDefinitionsListByDevCenterResponse,
21
23
  DevBoxDefinitionsListByProjectNextOptionalParams,
22
24
  DevBoxDefinitionsListByProjectOptionalParams,
23
- DevBoxDefinitionsListByDevCenterResponse,
25
+ DevBoxDefinitionsListByProjectResponse,
24
26
  DevBoxDefinitionsGetOptionalParams,
25
27
  DevBoxDefinitionsGetResponse,
26
28
  DevBoxDefinitionsCreateOrUpdateOptionalParams,
@@ -29,7 +31,6 @@ import {
29
31
  DevBoxDefinitionsUpdateOptionalParams,
30
32
  DevBoxDefinitionsUpdateResponse,
31
33
  DevBoxDefinitionsDeleteOptionalParams,
32
- DevBoxDefinitionsListByProjectResponse,
33
34
  DevBoxDefinitionsGetByProjectOptionalParams,
34
35
  DevBoxDefinitionsGetByProjectResponse,
35
36
  DevBoxDefinitionsListByDevCenterNextResponse,
@@ -51,7 +52,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
51
52
 
52
53
  /**
53
54
  * List Dev Box definitions for a devcenter.
54
- * @param resourceGroupName Name of the resource group within the Azure subscription.
55
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
55
56
  * @param devCenterName The name of the devcenter.
56
57
  * @param options The options parameters.
57
58
  */
@@ -72,11 +73,15 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
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.listByDevCenterPagingPage(
77
81
  resourceGroupName,
78
82
  devCenterName,
79
- options
83
+ options,
84
+ settings
80
85
  );
81
86
  }
82
87
  };
@@ -85,15 +90,22 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
85
90
  private async *listByDevCenterPagingPage(
86
91
  resourceGroupName: string,
87
92
  devCenterName: string,
88
- options?: DevBoxDefinitionsListByDevCenterOptionalParams
93
+ options?: DevBoxDefinitionsListByDevCenterOptionalParams,
94
+ settings?: PageSettings
89
95
  ): AsyncIterableIterator<DevBoxDefinition[]> {
90
- let result = await this._listByDevCenter(
91
- resourceGroupName,
92
- devCenterName,
93
- options
94
- );
95
- yield result.value || [];
96
- let continuationToken = result.nextLink;
96
+ let result: DevBoxDefinitionsListByDevCenterResponse;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._listByDevCenter(
100
+ resourceGroupName,
101
+ devCenterName,
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._listByDevCenterNext(
99
111
  resourceGroupName,
@@ -102,7 +114,9 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
102
114
  options
103
115
  );
104
116
  continuationToken = result.nextLink;
105
- yield result.value || [];
117
+ let page = result.value || [];
118
+ setContinuationToken(page, continuationToken);
119
+ yield page;
106
120
  }
107
121
  }
108
122
 
@@ -122,7 +136,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
122
136
 
123
137
  /**
124
138
  * List Dev Box definitions configured for a project.
125
- * @param resourceGroupName Name of the resource group within the Azure subscription.
139
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
126
140
  * @param projectName The name of the project.
127
141
  * @param options The options parameters.
128
142
  */
@@ -143,11 +157,15 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
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.listByProjectPagingPage(
148
165
  resourceGroupName,
149
166
  projectName,
150
- options
167
+ options,
168
+ settings
151
169
  );
152
170
  }
153
171
  };
@@ -156,15 +174,22 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
156
174
  private async *listByProjectPagingPage(
157
175
  resourceGroupName: string,
158
176
  projectName: string,
159
- options?: DevBoxDefinitionsListByProjectOptionalParams
177
+ options?: DevBoxDefinitionsListByProjectOptionalParams,
178
+ settings?: PageSettings
160
179
  ): AsyncIterableIterator<DevBoxDefinition[]> {
161
- let result = await this._listByProject(
162
- resourceGroupName,
163
- projectName,
164
- options
165
- );
166
- yield result.value || [];
167
- let continuationToken = result.nextLink;
180
+ let result: DevBoxDefinitionsListByProjectResponse;
181
+ let continuationToken = settings?.continuationToken;
182
+ if (!continuationToken) {
183
+ result = await this._listByProject(
184
+ resourceGroupName,
185
+ projectName,
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._listByProjectNext(
170
195
  resourceGroupName,
@@ -173,7 +198,9 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
173
198
  options
174
199
  );
175
200
  continuationToken = result.nextLink;
176
- yield result.value || [];
201
+ let page = result.value || [];
202
+ setContinuationToken(page, continuationToken);
203
+ yield page;
177
204
  }
178
205
  }
179
206
 
@@ -193,7 +220,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
193
220
 
194
221
  /**
195
222
  * List Dev Box definitions for a devcenter.
196
- * @param resourceGroupName Name of the resource group within the Azure subscription.
223
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
197
224
  * @param devCenterName The name of the devcenter.
198
225
  * @param options The options parameters.
199
226
  */
@@ -210,7 +237,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
210
237
 
211
238
  /**
212
239
  * Gets a Dev Box definition
213
- * @param resourceGroupName Name of the resource group within the Azure subscription.
240
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
214
241
  * @param devCenterName The name of the devcenter.
215
242
  * @param devBoxDefinitionName The name of the Dev Box definition.
216
243
  * @param options The options parameters.
@@ -229,7 +256,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
229
256
 
230
257
  /**
231
258
  * Creates or updates a Dev Box definition.
232
- * @param resourceGroupName Name of the resource group within the Azure subscription.
259
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
233
260
  * @param devCenterName The name of the devcenter.
234
261
  * @param devBoxDefinitionName The name of the Dev Box definition.
235
262
  * @param body Represents a Dev Box definition.
@@ -302,7 +329,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
302
329
 
303
330
  /**
304
331
  * Creates or updates a Dev Box definition.
305
- * @param resourceGroupName Name of the resource group within the Azure subscription.
332
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
306
333
  * @param devCenterName The name of the devcenter.
307
334
  * @param devBoxDefinitionName The name of the Dev Box definition.
308
335
  * @param body Represents a Dev Box definition.
@@ -327,7 +354,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
327
354
 
328
355
  /**
329
356
  * Partially updates a Dev Box definition.
330
- * @param resourceGroupName Name of the resource group within the Azure subscription.
357
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
331
358
  * @param devCenterName The name of the devcenter.
332
359
  * @param devBoxDefinitionName The name of the Dev Box definition.
333
360
  * @param body Represents a Dev Box definition.
@@ -400,7 +427,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
400
427
 
401
428
  /**
402
429
  * Partially updates a Dev Box definition.
403
- * @param resourceGroupName Name of the resource group within the Azure subscription.
430
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
404
431
  * @param devCenterName The name of the devcenter.
405
432
  * @param devBoxDefinitionName The name of the Dev Box definition.
406
433
  * @param body Represents a Dev Box definition.
@@ -425,7 +452,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
425
452
 
426
453
  /**
427
454
  * Deletes a Dev Box definition
428
- * @param resourceGroupName Name of the resource group within the Azure subscription.
455
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
429
456
  * @param devCenterName The name of the devcenter.
430
457
  * @param devBoxDefinitionName The name of the Dev Box definition.
431
458
  * @param options The options parameters.
@@ -491,7 +518,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
491
518
 
492
519
  /**
493
520
  * Deletes a Dev Box definition
494
- * @param resourceGroupName Name of the resource group within the Azure subscription.
521
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
495
522
  * @param devCenterName The name of the devcenter.
496
523
  * @param devBoxDefinitionName The name of the Dev Box definition.
497
524
  * @param options The options parameters.
@@ -513,7 +540,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
513
540
 
514
541
  /**
515
542
  * List Dev Box definitions configured for a project.
516
- * @param resourceGroupName Name of the resource group within the Azure subscription.
543
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
517
544
  * @param projectName The name of the project.
518
545
  * @param options The options parameters.
519
546
  */
@@ -530,7 +557,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
530
557
 
531
558
  /**
532
559
  * Gets a Dev Box definition configured for a project
533
- * @param resourceGroupName Name of the resource group within the Azure subscription.
560
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
534
561
  * @param projectName The name of the project.
535
562
  * @param devBoxDefinitionName The name of the Dev Box definition.
536
563
  * @param options The options parameters.
@@ -549,7 +576,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
549
576
 
550
577
  /**
551
578
  * ListByDevCenterNext
552
- * @param resourceGroupName Name of the resource group within the Azure subscription.
579
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
553
580
  * @param devCenterName The name of the devcenter.
554
581
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
555
582
  * @param options The options parameters.
@@ -568,7 +595,7 @@ export class DevBoxDefinitionsImpl implements DevBoxDefinitions {
568
595
 
569
596
  /**
570
597
  * ListByProjectNext
571
- * @param resourceGroupName Name of the resource group within the Azure subscription.
598
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
572
599
  * @param projectName The name of the project.
573
600
  * @param nextLink The nextLink from the previous successful call to the ListByProject method.
574
601
  * @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 { DevCenters } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -18,9 +19,9 @@ import {
18
19
  DevCenter,
19
20
  DevCentersListBySubscriptionNextOptionalParams,
20
21
  DevCentersListBySubscriptionOptionalParams,
22
+ DevCentersListBySubscriptionResponse,
21
23
  DevCentersListByResourceGroupNextOptionalParams,
22
24
  DevCentersListByResourceGroupOptionalParams,
23
- DevCentersListBySubscriptionResponse,
24
25
  DevCentersListByResourceGroupResponse,
25
26
  DevCentersGetOptionalParams,
26
27
  DevCentersGetResponse,
@@ -62,22 +63,34 @@ export class DevCentersImpl implements DevCenters {
62
63
  [Symbol.asyncIterator]() {
63
64
  return this;
64
65
  },
65
- byPage: () => {
66
- return this.listBySubscriptionPagingPage(options);
66
+ byPage: (settings?: PageSettings) => {
67
+ if (settings?.maxPageSize) {
68
+ throw new Error("maxPageSize is not supported by this operation.");
69
+ }
70
+ return this.listBySubscriptionPagingPage(options, settings);
67
71
  }
68
72
  };
69
73
  }
70
74
 
71
75
  private async *listBySubscriptionPagingPage(
72
- options?: DevCentersListBySubscriptionOptionalParams
76
+ options?: DevCentersListBySubscriptionOptionalParams,
77
+ settings?: PageSettings
73
78
  ): AsyncIterableIterator<DevCenter[]> {
74
- let result = await this._listBySubscription(options);
75
- yield result.value || [];
76
- let continuationToken = result.nextLink;
79
+ let result: DevCentersListBySubscriptionResponse;
80
+ let continuationToken = settings?.continuationToken;
81
+ if (!continuationToken) {
82
+ result = await this._listBySubscription(options);
83
+ let page = result.value || [];
84
+ continuationToken = result.nextLink;
85
+ setContinuationToken(page, continuationToken);
86
+ yield page;
87
+ }
77
88
  while (continuationToken) {
78
89
  result = await this._listBySubscriptionNext(continuationToken, options);
79
90
  continuationToken = result.nextLink;
80
- yield result.value || [];
91
+ let page = result.value || [];
92
+ setContinuationToken(page, continuationToken);
93
+ yield page;
81
94
  }
82
95
  }
83
96
 
@@ -91,7 +104,7 @@ export class DevCentersImpl implements DevCenters {
91
104
 
92
105
  /**
93
106
  * Lists all devcenters in a resource group.
94
- * @param resourceGroupName Name of the resource group within the Azure subscription.
107
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
95
108
  * @param options The options parameters.
96
109
  */
97
110
  public listByResourceGroup(
@@ -106,19 +119,33 @@ export class DevCentersImpl implements DevCenters {
106
119
  [Symbol.asyncIterator]() {
107
120
  return this;
108
121
  },
109
- byPage: () => {
110
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
122
+ byPage: (settings?: PageSettings) => {
123
+ if (settings?.maxPageSize) {
124
+ throw new Error("maxPageSize is not supported by this operation.");
125
+ }
126
+ return this.listByResourceGroupPagingPage(
127
+ resourceGroupName,
128
+ options,
129
+ settings
130
+ );
111
131
  }
112
132
  };
113
133
  }
114
134
 
115
135
  private async *listByResourceGroupPagingPage(
116
136
  resourceGroupName: string,
117
- options?: DevCentersListByResourceGroupOptionalParams
137
+ options?: DevCentersListByResourceGroupOptionalParams,
138
+ settings?: PageSettings
118
139
  ): AsyncIterableIterator<DevCenter[]> {
119
- let result = await this._listByResourceGroup(resourceGroupName, options);
120
- yield result.value || [];
121
- let continuationToken = result.nextLink;
140
+ let result: DevCentersListByResourceGroupResponse;
141
+ let continuationToken = settings?.continuationToken;
142
+ if (!continuationToken) {
143
+ result = await this._listByResourceGroup(resourceGroupName, options);
144
+ let page = result.value || [];
145
+ continuationToken = result.nextLink;
146
+ setContinuationToken(page, continuationToken);
147
+ yield page;
148
+ }
122
149
  while (continuationToken) {
123
150
  result = await this._listByResourceGroupNext(
124
151
  resourceGroupName,
@@ -126,7 +153,9 @@ export class DevCentersImpl implements DevCenters {
126
153
  options
127
154
  );
128
155
  continuationToken = result.nextLink;
129
- yield result.value || [];
156
+ let page = result.value || [];
157
+ setContinuationToken(page, continuationToken);
158
+ yield page;
130
159
  }
131
160
  }
132
161
 
@@ -157,7 +186,7 @@ export class DevCentersImpl implements DevCenters {
157
186
 
158
187
  /**
159
188
  * Lists all devcenters in a resource group.
160
- * @param resourceGroupName Name of the resource group within the Azure subscription.
189
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
161
190
  * @param options The options parameters.
162
191
  */
163
192
  private _listByResourceGroup(
@@ -172,7 +201,7 @@ export class DevCentersImpl implements DevCenters {
172
201
 
173
202
  /**
174
203
  * Gets a devcenter.
175
- * @param resourceGroupName Name of the resource group within the Azure subscription.
204
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
176
205
  * @param devCenterName The name of the devcenter.
177
206
  * @param options The options parameters.
178
207
  */
@@ -189,7 +218,7 @@ export class DevCentersImpl implements DevCenters {
189
218
 
190
219
  /**
191
220
  * Creates or updates a devcenter resource
192
- * @param resourceGroupName Name of the resource group within the Azure subscription.
221
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
193
222
  * @param devCenterName The name of the devcenter.
194
223
  * @param body Represents a devcenter.
195
224
  * @param options The options parameters.
@@ -260,7 +289,7 @@ export class DevCentersImpl implements DevCenters {
260
289
 
261
290
  /**
262
291
  * Creates or updates a devcenter resource
263
- * @param resourceGroupName Name of the resource group within the Azure subscription.
292
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
264
293
  * @param devCenterName The name of the devcenter.
265
294
  * @param body Represents a devcenter.
266
295
  * @param options The options parameters.
@@ -282,7 +311,7 @@ export class DevCentersImpl implements DevCenters {
282
311
 
283
312
  /**
284
313
  * Partially updates a devcenter.
285
- * @param resourceGroupName Name of the resource group within the Azure subscription.
314
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
286
315
  * @param devCenterName The name of the devcenter.
287
316
  * @param body Updatable devcenter properties.
288
317
  * @param options The options parameters.
@@ -353,7 +382,7 @@ export class DevCentersImpl implements DevCenters {
353
382
 
354
383
  /**
355
384
  * Partially updates a devcenter.
356
- * @param resourceGroupName Name of the resource group within the Azure subscription.
385
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
357
386
  * @param devCenterName The name of the devcenter.
358
387
  * @param body Updatable devcenter properties.
359
388
  * @param options The options parameters.
@@ -375,7 +404,7 @@ export class DevCentersImpl implements DevCenters {
375
404
 
376
405
  /**
377
406
  * Deletes a devcenter
378
- * @param resourceGroupName Name of the resource group within the Azure subscription.
407
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
379
408
  * @param devCenterName The name of the devcenter.
380
409
  * @param options The options parameters.
381
410
  */
@@ -439,7 +468,7 @@ export class DevCentersImpl implements DevCenters {
439
468
 
440
469
  /**
441
470
  * Deletes a devcenter
442
- * @param resourceGroupName Name of the resource group within the Azure subscription.
471
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
443
472
  * @param devCenterName The name of the devcenter.
444
473
  * @param options The options parameters.
445
474
  */
@@ -473,7 +502,7 @@ export class DevCentersImpl implements DevCenters {
473
502
 
474
503
  /**
475
504
  * ListByResourceGroupNext
476
- * @param resourceGroupName Name of the resource group within the Azure subscription.
505
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
477
506
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
478
507
  * @param options The options parameters.
479
508
  */
@@ -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 { EnvironmentTypes } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -43,7 +44,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
43
44
 
44
45
  /**
45
46
  * Lists environment types for the devcenter.
46
- * @param resourceGroupName Name of the resource group within the Azure subscription.
47
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
47
48
  * @param devCenterName The name of the devcenter.
48
49
  * @param options The options parameters.
49
50
  */
@@ -64,11 +65,15 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
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.listByDevCenterPagingPage(
69
73
  resourceGroupName,
70
74
  devCenterName,
71
- options
75
+ options,
76
+ settings
72
77
  );
73
78
  }
74
79
  };
@@ -77,15 +82,22 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
77
82
  private async *listByDevCenterPagingPage(
78
83
  resourceGroupName: string,
79
84
  devCenterName: string,
80
- options?: EnvironmentTypesListByDevCenterOptionalParams
85
+ options?: EnvironmentTypesListByDevCenterOptionalParams,
86
+ settings?: PageSettings
81
87
  ): AsyncIterableIterator<EnvironmentType[]> {
82
- let result = await this._listByDevCenter(
83
- resourceGroupName,
84
- devCenterName,
85
- options
86
- );
87
- yield result.value || [];
88
- let continuationToken = result.nextLink;
88
+ let result: EnvironmentTypesListByDevCenterResponse;
89
+ let continuationToken = settings?.continuationToken;
90
+ if (!continuationToken) {
91
+ result = await this._listByDevCenter(
92
+ resourceGroupName,
93
+ devCenterName,
94
+ options
95
+ );
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
89
101
  while (continuationToken) {
90
102
  result = await this._listByDevCenterNext(
91
103
  resourceGroupName,
@@ -94,7 +106,9 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
94
106
  options
95
107
  );
96
108
  continuationToken = result.nextLink;
97
- yield result.value || [];
109
+ let page = result.value || [];
110
+ setContinuationToken(page, continuationToken);
111
+ yield page;
98
112
  }
99
113
  }
100
114
 
@@ -114,7 +128,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
114
128
 
115
129
  /**
116
130
  * Lists environment types for the devcenter.
117
- * @param resourceGroupName Name of the resource group within the Azure subscription.
131
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
118
132
  * @param devCenterName The name of the devcenter.
119
133
  * @param options The options parameters.
120
134
  */
@@ -131,7 +145,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
131
145
 
132
146
  /**
133
147
  * Gets an environment type.
134
- * @param resourceGroupName Name of the resource group within the Azure subscription.
148
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
135
149
  * @param devCenterName The name of the devcenter.
136
150
  * @param environmentTypeName The name of the environment type.
137
151
  * @param options The options parameters.
@@ -150,7 +164,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
150
164
 
151
165
  /**
152
166
  * Creates or updates an environment type.
153
- * @param resourceGroupName Name of the resource group within the Azure subscription.
167
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
154
168
  * @param devCenterName The name of the devcenter.
155
169
  * @param environmentTypeName The name of the environment type.
156
170
  * @param body Represents an Environment Type.
@@ -171,7 +185,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
171
185
 
172
186
  /**
173
187
  * Partially updates an environment type.
174
- * @param resourceGroupName Name of the resource group within the Azure subscription.
188
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
175
189
  * @param devCenterName The name of the devcenter.
176
190
  * @param environmentTypeName The name of the environment type.
177
191
  * @param body Updatable environment type properties.
@@ -192,7 +206,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
192
206
 
193
207
  /**
194
208
  * Deletes an environment type.
195
- * @param resourceGroupName Name of the resource group within the Azure subscription.
209
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
196
210
  * @param devCenterName The name of the devcenter.
197
211
  * @param environmentTypeName The name of the environment type.
198
212
  * @param options The options parameters.
@@ -211,7 +225,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
211
225
 
212
226
  /**
213
227
  * ListByDevCenterNext
214
- * @param resourceGroupName Name of the resource group within the Azure subscription.
228
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
215
229
  * @param devCenterName The name of the devcenter.
216
230
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
217
231
  * @param options The options parameters.