@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
package/dist/index.js CHANGED
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
28
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
29
  var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
30
 
31
+ /*
32
+ * Copyright (c) Microsoft Corporation.
33
+ * Licensed under the MIT License.
34
+ *
35
+ * Code generated by Microsoft (R) AutoRest Code Generator.
36
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
+ */
38
+ const pageMap = new WeakMap();
39
+ /**
40
+ * Given a result page from a pageable operation, returns a
41
+ * continuation token that can be used to begin paging from
42
+ * that point later.
43
+ * @param page A result object from calling .byPage() on a paged operation.
44
+ * @returns The continuation token that can be passed into byPage().
45
+ */
46
+ function getContinuationToken(page) {
47
+ var _a;
48
+ if (typeof page !== "object" || page === null) {
49
+ return undefined;
50
+ }
51
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
+ }
53
+ function setContinuationToken(page, continuationToken) {
54
+ var _a;
55
+ if (typeof page !== "object" || page === null || !continuationToken) {
56
+ return;
57
+ }
58
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
+ pageInfo.continuationToken = continuationToken;
60
+ pageMap.set(page, pageInfo);
61
+ }
62
+
31
63
  /*
32
64
  * Copyright (c) Microsoft Corporation.
33
65
  * Licensed under the MIT License.
@@ -83,6 +115,18 @@ exports.KnownDomainJoinType = void 0;
83
115
  /** AzureADJoin */
84
116
  KnownDomainJoinType["AzureADJoin"] = "AzureADJoin";
85
117
  })(exports.KnownDomainJoinType || (exports.KnownDomainJoinType = {}));
118
+ /** Known values of {@link CatalogSyncState} that the service accepts. */
119
+ exports.KnownCatalogSyncState = void 0;
120
+ (function (KnownCatalogSyncState) {
121
+ /** Succeeded */
122
+ KnownCatalogSyncState["Succeeded"] = "Succeeded";
123
+ /** InProgress */
124
+ KnownCatalogSyncState["InProgress"] = "InProgress";
125
+ /** Failed */
126
+ KnownCatalogSyncState["Failed"] = "Failed";
127
+ /** Canceled */
128
+ KnownCatalogSyncState["Canceled"] = "Canceled";
129
+ })(exports.KnownCatalogSyncState || (exports.KnownCatalogSyncState = {}));
86
130
  /** Known values of {@link EnableStatus} that the service accepts. */
87
131
  exports.KnownEnableStatus = void 0;
88
132
  (function (KnownEnableStatus) {
@@ -763,6 +807,34 @@ const EnvironmentTypeUpdate = {
763
807
  }
764
808
  }
765
809
  };
810
+ const AllowedEnvironmentTypeListResult = {
811
+ type: {
812
+ name: "Composite",
813
+ className: "AllowedEnvironmentTypeListResult",
814
+ modelProperties: {
815
+ value: {
816
+ serializedName: "value",
817
+ readOnly: true,
818
+ type: {
819
+ name: "Sequence",
820
+ element: {
821
+ type: {
822
+ name: "Composite",
823
+ className: "AllowedEnvironmentType"
824
+ }
825
+ }
826
+ }
827
+ },
828
+ nextLink: {
829
+ serializedName: "nextLink",
830
+ readOnly: true,
831
+ type: {
832
+ name: "String"
833
+ }
834
+ }
835
+ }
836
+ }
837
+ };
766
838
  const ProjectEnvironmentTypeListResult = {
767
839
  type: {
768
840
  name: "Composite",
@@ -1191,79 +1263,78 @@ const OperationDisplay = {
1191
1263
  }
1192
1264
  }
1193
1265
  };
1194
- const OperationStatus = {
1266
+ const OperationStatusResult = {
1195
1267
  type: {
1196
1268
  name: "Composite",
1197
- className: "OperationStatus",
1269
+ className: "OperationStatusResult",
1198
1270
  modelProperties: {
1199
1271
  id: {
1200
1272
  serializedName: "id",
1201
- readOnly: true,
1202
1273
  type: {
1203
1274
  name: "String"
1204
1275
  }
1205
1276
  },
1206
1277
  name: {
1207
1278
  serializedName: "name",
1208
- readOnly: true,
1209
1279
  type: {
1210
1280
  name: "String"
1211
1281
  }
1212
1282
  },
1213
1283
  status: {
1214
1284
  serializedName: "status",
1215
- readOnly: true,
1285
+ required: true,
1216
1286
  type: {
1217
1287
  name: "String"
1218
1288
  }
1219
1289
  },
1290
+ percentComplete: {
1291
+ constraints: {
1292
+ InclusiveMaximum: 100,
1293
+ InclusiveMinimum: 0
1294
+ },
1295
+ serializedName: "percentComplete",
1296
+ type: {
1297
+ name: "Number"
1298
+ }
1299
+ },
1220
1300
  startTime: {
1221
1301
  serializedName: "startTime",
1222
- readOnly: true,
1223
1302
  type: {
1224
1303
  name: "DateTime"
1225
1304
  }
1226
1305
  },
1227
1306
  endTime: {
1228
1307
  serializedName: "endTime",
1229
- readOnly: true,
1230
1308
  type: {
1231
1309
  name: "DateTime"
1232
1310
  }
1233
1311
  },
1234
- percentComplete: {
1235
- constraints: {
1236
- InclusiveMaximum: 100,
1237
- InclusiveMinimum: 0
1238
- },
1239
- serializedName: "percentComplete",
1240
- readOnly: true,
1241
- type: {
1242
- name: "Number"
1243
- }
1244
- },
1245
- properties: {
1246
- serializedName: "properties",
1247
- readOnly: true,
1312
+ operations: {
1313
+ serializedName: "operations",
1248
1314
  type: {
1249
- name: "Dictionary",
1250
- value: { type: { name: "any" } }
1315
+ name: "Sequence",
1316
+ element: {
1317
+ type: {
1318
+ name: "Composite",
1319
+ className: "OperationStatusResult"
1320
+ }
1321
+ }
1251
1322
  }
1252
1323
  },
1253
1324
  error: {
1254
1325
  serializedName: "error",
1255
1326
  type: {
1256
1327
  name: "Composite",
1257
- className: "OperationStatusError"
1328
+ className: "ErrorDetail"
1258
1329
  }
1259
1330
  }
1260
1331
  }
1261
1332
  }
1262
1333
  };
1263
- const OperationStatusError = {
1334
+ const ErrorDetail = {
1264
1335
  type: {
1265
1336
  name: "Composite",
1266
- className: "OperationStatusError",
1337
+ className: "ErrorDetail",
1267
1338
  modelProperties: {
1268
1339
  code: {
1269
1340
  serializedName: "code",
@@ -1278,6 +1349,62 @@ const OperationStatusError = {
1278
1349
  type: {
1279
1350
  name: "String"
1280
1351
  }
1352
+ },
1353
+ target: {
1354
+ serializedName: "target",
1355
+ readOnly: true,
1356
+ type: {
1357
+ name: "String"
1358
+ }
1359
+ },
1360
+ details: {
1361
+ serializedName: "details",
1362
+ readOnly: true,
1363
+ type: {
1364
+ name: "Sequence",
1365
+ element: {
1366
+ type: {
1367
+ name: "Composite",
1368
+ className: "ErrorDetail"
1369
+ }
1370
+ }
1371
+ }
1372
+ },
1373
+ additionalInfo: {
1374
+ serializedName: "additionalInfo",
1375
+ readOnly: true,
1376
+ type: {
1377
+ name: "Sequence",
1378
+ element: {
1379
+ type: {
1380
+ name: "Composite",
1381
+ className: "ErrorAdditionalInfo"
1382
+ }
1383
+ }
1384
+ }
1385
+ }
1386
+ }
1387
+ }
1388
+ };
1389
+ const ErrorAdditionalInfo = {
1390
+ type: {
1391
+ name: "Composite",
1392
+ className: "ErrorAdditionalInfo",
1393
+ modelProperties: {
1394
+ type: {
1395
+ serializedName: "type",
1396
+ readOnly: true,
1397
+ type: {
1398
+ name: "String"
1399
+ }
1400
+ },
1401
+ info: {
1402
+ serializedName: "info",
1403
+ readOnly: true,
1404
+ type: {
1405
+ name: "Dictionary",
1406
+ value: { type: { name: "any" } }
1407
+ }
1281
1408
  }
1282
1409
  }
1283
1410
  }
@@ -1792,6 +1919,12 @@ const Catalog = {
1792
1919
  type: {
1793
1920
  name: "String"
1794
1921
  }
1922
+ }, syncState: {
1923
+ serializedName: "properties.syncState",
1924
+ readOnly: true,
1925
+ type: {
1926
+ name: "String"
1927
+ }
1795
1928
  }, lastSyncTime: {
1796
1929
  serializedName: "properties.lastSyncTime",
1797
1930
  readOnly: true,
@@ -1820,6 +1953,19 @@ const EnvironmentType = {
1820
1953
  } })
1821
1954
  }
1822
1955
  };
1956
+ const AllowedEnvironmentType = {
1957
+ type: {
1958
+ name: "Composite",
1959
+ className: "AllowedEnvironmentType",
1960
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { provisioningState: {
1961
+ serializedName: "properties.provisioningState",
1962
+ readOnly: true,
1963
+ type: {
1964
+ name: "String"
1965
+ }
1966
+ } })
1967
+ }
1968
+ };
1823
1969
  const ProjectEnvironmentType = {
1824
1970
  type: {
1825
1971
  name: "Composite",
@@ -2111,6 +2257,12 @@ const CatalogProperties = {
2111
2257
  type: {
2112
2258
  name: "String"
2113
2259
  }
2260
+ }, syncState: {
2261
+ serializedName: "syncState",
2262
+ readOnly: true,
2263
+ type: {
2264
+ name: "String"
2265
+ }
2114
2266
  }, lastSyncTime: {
2115
2267
  serializedName: "lastSyncTime",
2116
2268
  readOnly: true,
@@ -2200,6 +2352,26 @@ const DevCenterSku = {
2200
2352
  } })
2201
2353
  }
2202
2354
  };
2355
+ const OperationStatus = {
2356
+ type: {
2357
+ name: "Composite",
2358
+ className: "OperationStatus",
2359
+ modelProperties: Object.assign(Object.assign({}, OperationStatusResult.type.modelProperties), { resourceId: {
2360
+ serializedName: "resourceId",
2361
+ readOnly: true,
2362
+ type: {
2363
+ name: "String"
2364
+ }
2365
+ }, properties: {
2366
+ serializedName: "properties",
2367
+ readOnly: true,
2368
+ type: {
2369
+ name: "Dictionary",
2370
+ value: { type: { name: "any" } }
2371
+ }
2372
+ } })
2373
+ }
2374
+ };
2203
2375
  const PoolProperties = {
2204
2376
  type: {
2205
2377
  name: "Composite",
@@ -2538,6 +2710,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
2538
2710
  CatalogUpdate: CatalogUpdate,
2539
2711
  EnvironmentTypeListResult: EnvironmentTypeListResult,
2540
2712
  EnvironmentTypeUpdate: EnvironmentTypeUpdate,
2713
+ AllowedEnvironmentTypeListResult: AllowedEnvironmentTypeListResult,
2541
2714
  ProjectEnvironmentTypeListResult: ProjectEnvironmentTypeListResult,
2542
2715
  ProjectEnvironmentTypeUpdateProperties: ProjectEnvironmentTypeUpdateProperties,
2543
2716
  ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment: ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment,
@@ -2552,8 +2725,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
2552
2725
  OperationListResult: OperationListResult,
2553
2726
  Operation: Operation,
2554
2727
  OperationDisplay: OperationDisplay,
2555
- OperationStatus: OperationStatus,
2556
- OperationStatusError: OperationStatusError,
2728
+ OperationStatusResult: OperationStatusResult,
2729
+ ErrorDetail: ErrorDetail,
2730
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
2557
2731
  ListUsagesResult: ListUsagesResult,
2558
2732
  Usage: Usage,
2559
2733
  UsageName: UsageName,
@@ -2573,6 +2747,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
2573
2747
  ProxyResource: ProxyResource,
2574
2748
  Catalog: Catalog,
2575
2749
  EnvironmentType: EnvironmentType,
2750
+ AllowedEnvironmentType: AllowedEnvironmentType,
2576
2751
  ProjectEnvironmentType: ProjectEnvironmentType,
2577
2752
  Schedule: Schedule,
2578
2753
  HealthCheckStatusDetails: HealthCheckStatusDetails,
@@ -2587,6 +2762,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
2587
2762
  ProjectEnvironmentTypeProperties: ProjectEnvironmentTypeProperties,
2588
2763
  DevBoxDefinitionProperties: DevBoxDefinitionProperties,
2589
2764
  DevCenterSku: DevCenterSku,
2765
+ OperationStatus: OperationStatus,
2590
2766
  PoolProperties: PoolProperties,
2591
2767
  ScheduleProperties: ScheduleProperties,
2592
2768
  NetworkProperties: NetworkProperties,
@@ -2631,7 +2807,7 @@ const $host = {
2631
2807
  const apiVersion = {
2632
2808
  parameterPath: "apiVersion",
2633
2809
  mapper: {
2634
- defaultValue: "2022-08-01-preview",
2810
+ defaultValue: "2022-10-12-preview",
2635
2811
  isConstant: true,
2636
2812
  serializedName: "api-version",
2637
2813
  type: {
@@ -2642,6 +2818,9 @@ const apiVersion = {
2642
2818
  const subscriptionId = {
2643
2819
  parameterPath: "subscriptionId",
2644
2820
  mapper: {
2821
+ constraints: {
2822
+ MinLength: 1
2823
+ },
2645
2824
  serializedName: "subscriptionId",
2646
2825
  required: true,
2647
2826
  type: {
@@ -2661,6 +2840,10 @@ const top = {
2661
2840
  const resourceGroupName = {
2662
2841
  parameterPath: "resourceGroupName",
2663
2842
  mapper: {
2843
+ constraints: {
2844
+ MaxLength: 90,
2845
+ MinLength: 1
2846
+ },
2664
2847
  serializedName: "resourceGroupName",
2665
2848
  required: true,
2666
2849
  type: {
@@ -2974,20 +3157,31 @@ class DevCentersImpl {
2974
3157
  [Symbol.asyncIterator]() {
2975
3158
  return this;
2976
3159
  },
2977
- byPage: () => {
2978
- return this.listBySubscriptionPagingPage(options);
3160
+ byPage: (settings) => {
3161
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3162
+ throw new Error("maxPageSize is not supported by this operation.");
3163
+ }
3164
+ return this.listBySubscriptionPagingPage(options, settings);
2979
3165
  }
2980
3166
  };
2981
3167
  }
2982
- listBySubscriptionPagingPage(options) {
3168
+ listBySubscriptionPagingPage(options, settings) {
2983
3169
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2984
- let result = yield tslib.__await(this._listBySubscription(options));
2985
- yield yield tslib.__await(result.value || []);
2986
- let continuationToken = result.nextLink;
3170
+ let result;
3171
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3172
+ if (!continuationToken) {
3173
+ result = yield tslib.__await(this._listBySubscription(options));
3174
+ let page = result.value || [];
3175
+ continuationToken = result.nextLink;
3176
+ setContinuationToken(page, continuationToken);
3177
+ yield yield tslib.__await(page);
3178
+ }
2987
3179
  while (continuationToken) {
2988
3180
  result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2989
3181
  continuationToken = result.nextLink;
2990
- yield yield tslib.__await(result.value || []);
3182
+ let page = result.value || [];
3183
+ setContinuationToken(page, continuationToken);
3184
+ yield yield tslib.__await(page);
2991
3185
  }
2992
3186
  });
2993
3187
  }
@@ -3011,7 +3205,7 @@ class DevCentersImpl {
3011
3205
  }
3012
3206
  /**
3013
3207
  * Lists all devcenters in a resource group.
3014
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3208
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3015
3209
  * @param options The options parameters.
3016
3210
  */
3017
3211
  listByResourceGroup(resourceGroupName, options) {
@@ -3023,20 +3217,31 @@ class DevCentersImpl {
3023
3217
  [Symbol.asyncIterator]() {
3024
3218
  return this;
3025
3219
  },
3026
- byPage: () => {
3027
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
3220
+ byPage: (settings) => {
3221
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3222
+ throw new Error("maxPageSize is not supported by this operation.");
3223
+ }
3224
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
3028
3225
  }
3029
3226
  };
3030
3227
  }
3031
- listByResourceGroupPagingPage(resourceGroupName, options) {
3228
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3032
3229
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3033
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3034
- yield yield tslib.__await(result.value || []);
3035
- let continuationToken = result.nextLink;
3230
+ let result;
3231
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3232
+ if (!continuationToken) {
3233
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3234
+ let page = result.value || [];
3235
+ continuationToken = result.nextLink;
3236
+ setContinuationToken(page, continuationToken);
3237
+ yield yield tslib.__await(page);
3238
+ }
3036
3239
  while (continuationToken) {
3037
3240
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
3038
3241
  continuationToken = result.nextLink;
3039
- yield yield tslib.__await(result.value || []);
3242
+ let page = result.value || [];
3243
+ setContinuationToken(page, continuationToken);
3244
+ yield yield tslib.__await(page);
3040
3245
  }
3041
3246
  });
3042
3247
  }
@@ -3067,7 +3272,7 @@ class DevCentersImpl {
3067
3272
  }
3068
3273
  /**
3069
3274
  * Lists all devcenters in a resource group.
3070
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3275
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3071
3276
  * @param options The options parameters.
3072
3277
  */
3073
3278
  _listByResourceGroup(resourceGroupName, options) {
@@ -3075,16 +3280,16 @@ class DevCentersImpl {
3075
3280
  }
3076
3281
  /**
3077
3282
  * Gets a devcenter.
3078
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3283
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3079
3284
  * @param devCenterName The name of the devcenter.
3080
3285
  * @param options The options parameters.
3081
3286
  */
3082
3287
  get(resourceGroupName, devCenterName, options) {
3083
- return this.client.sendOperationRequest({ resourceGroupName, devCenterName, options }, getOperationSpec$c);
3288
+ return this.client.sendOperationRequest({ resourceGroupName, devCenterName, options }, getOperationSpec$d);
3084
3289
  }
3085
3290
  /**
3086
3291
  * Creates or updates a devcenter resource
3087
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3292
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3088
3293
  * @param devCenterName The name of the devcenter.
3089
3294
  * @param body Represents a devcenter.
3090
3295
  * @param options The options parameters.
@@ -3125,7 +3330,7 @@ class DevCentersImpl {
3125
3330
  }
3126
3331
  /**
3127
3332
  * Creates or updates a devcenter resource
3128
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3333
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3129
3334
  * @param devCenterName The name of the devcenter.
3130
3335
  * @param body Represents a devcenter.
3131
3336
  * @param options The options parameters.
@@ -3138,7 +3343,7 @@ class DevCentersImpl {
3138
3343
  }
3139
3344
  /**
3140
3345
  * Partially updates a devcenter.
3141
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3346
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3142
3347
  * @param devCenterName The name of the devcenter.
3143
3348
  * @param body Updatable devcenter properties.
3144
3349
  * @param options The options parameters.
@@ -3179,7 +3384,7 @@ class DevCentersImpl {
3179
3384
  }
3180
3385
  /**
3181
3386
  * Partially updates a devcenter.
3182
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3387
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3183
3388
  * @param devCenterName The name of the devcenter.
3184
3389
  * @param body Updatable devcenter properties.
3185
3390
  * @param options The options parameters.
@@ -3192,7 +3397,7 @@ class DevCentersImpl {
3192
3397
  }
3193
3398
  /**
3194
3399
  * Deletes a devcenter
3195
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3400
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3196
3401
  * @param devCenterName The name of the devcenter.
3197
3402
  * @param options The options parameters.
3198
3403
  */
@@ -3232,7 +3437,7 @@ class DevCentersImpl {
3232
3437
  }
3233
3438
  /**
3234
3439
  * Deletes a devcenter
3235
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3440
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3236
3441
  * @param devCenterName The name of the devcenter.
3237
3442
  * @param options The options parameters.
3238
3443
  */
@@ -3252,7 +3457,7 @@ class DevCentersImpl {
3252
3457
  }
3253
3458
  /**
3254
3459
  * ListByResourceGroupNext
3255
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3460
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3256
3461
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3257
3462
  * @param options The options parameters.
3258
3463
  */
@@ -3261,7 +3466,7 @@ class DevCentersImpl {
3261
3466
  }
3262
3467
  }
3263
3468
  // Operation Specifications
3264
- const serializer$g = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3469
+ const serializer$h = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3265
3470
  const listBySubscriptionOperationSpec$3 = {
3266
3471
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters",
3267
3472
  httpMethod: "GET",
@@ -3276,7 +3481,7 @@ const listBySubscriptionOperationSpec$3 = {
3276
3481
  queryParameters: [apiVersion, top],
3277
3482
  urlParameters: [$host, subscriptionId],
3278
3483
  headerParameters: [accept],
3279
- serializer: serializer$g
3484
+ serializer: serializer$h
3280
3485
  };
3281
3486
  const listByResourceGroupOperationSpec$2 = {
3282
3487
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters",
@@ -3296,9 +3501,9 @@ const listByResourceGroupOperationSpec$2 = {
3296
3501
  resourceGroupName
3297
3502
  ],
3298
3503
  headerParameters: [accept],
3299
- serializer: serializer$g
3504
+ serializer: serializer$h
3300
3505
  };
3301
- const getOperationSpec$c = {
3506
+ const getOperationSpec$d = {
3302
3507
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}",
3303
3508
  httpMethod: "GET",
3304
3509
  responses: {
@@ -3317,7 +3522,7 @@ const getOperationSpec$c = {
3317
3522
  devCenterName
3318
3523
  ],
3319
3524
  headerParameters: [accept],
3320
- serializer: serializer$g
3525
+ serializer: serializer$h
3321
3526
  };
3322
3527
  const createOrUpdateOperationSpec$a = {
3323
3528
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}",
@@ -3349,7 +3554,7 @@ const createOrUpdateOperationSpec$a = {
3349
3554
  ],
3350
3555
  headerParameters: [accept, contentType],
3351
3556
  mediaType: "json",
3352
- serializer: serializer$g
3557
+ serializer: serializer$h
3353
3558
  };
3354
3559
  const updateOperationSpec$8 = {
3355
3560
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}",
@@ -3381,7 +3586,7 @@ const updateOperationSpec$8 = {
3381
3586
  ],
3382
3587
  headerParameters: [accept, contentType],
3383
3588
  mediaType: "json",
3384
- serializer: serializer$g
3589
+ serializer: serializer$h
3385
3590
  };
3386
3591
  const deleteOperationSpec$a = {
3387
3592
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}",
@@ -3403,7 +3608,7 @@ const deleteOperationSpec$a = {
3403
3608
  devCenterName
3404
3609
  ],
3405
3610
  headerParameters: [accept],
3406
- serializer: serializer$g
3611
+ serializer: serializer$h
3407
3612
  };
3408
3613
  const listBySubscriptionNextOperationSpec$3 = {
3409
3614
  path: "{nextLink}",
@@ -3423,7 +3628,7 @@ const listBySubscriptionNextOperationSpec$3 = {
3423
3628
  nextLink
3424
3629
  ],
3425
3630
  headerParameters: [accept],
3426
- serializer: serializer$g
3631
+ serializer: serializer$h
3427
3632
  };
3428
3633
  const listByResourceGroupNextOperationSpec$2 = {
3429
3634
  path: "{nextLink}",
@@ -3444,7 +3649,7 @@ const listByResourceGroupNextOperationSpec$2 = {
3444
3649
  nextLink
3445
3650
  ],
3446
3651
  headerParameters: [accept],
3447
- serializer: serializer$g
3652
+ serializer: serializer$h
3448
3653
  };
3449
3654
 
3450
3655
  /*
@@ -3477,20 +3682,31 @@ class ProjectsImpl {
3477
3682
  [Symbol.asyncIterator]() {
3478
3683
  return this;
3479
3684
  },
3480
- byPage: () => {
3481
- return this.listBySubscriptionPagingPage(options);
3685
+ byPage: (settings) => {
3686
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3687
+ throw new Error("maxPageSize is not supported by this operation.");
3688
+ }
3689
+ return this.listBySubscriptionPagingPage(options, settings);
3482
3690
  }
3483
3691
  };
3484
3692
  }
3485
- listBySubscriptionPagingPage(options) {
3693
+ listBySubscriptionPagingPage(options, settings) {
3486
3694
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
3487
- let result = yield tslib.__await(this._listBySubscription(options));
3488
- yield yield tslib.__await(result.value || []);
3489
- let continuationToken = result.nextLink;
3695
+ let result;
3696
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3697
+ if (!continuationToken) {
3698
+ result = yield tslib.__await(this._listBySubscription(options));
3699
+ let page = result.value || [];
3700
+ continuationToken = result.nextLink;
3701
+ setContinuationToken(page, continuationToken);
3702
+ yield yield tslib.__await(page);
3703
+ }
3490
3704
  while (continuationToken) {
3491
3705
  result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
3492
3706
  continuationToken = result.nextLink;
3493
- yield yield tslib.__await(result.value || []);
3707
+ let page = result.value || [];
3708
+ setContinuationToken(page, continuationToken);
3709
+ yield yield tslib.__await(page);
3494
3710
  }
3495
3711
  });
3496
3712
  }
@@ -3514,7 +3730,7 @@ class ProjectsImpl {
3514
3730
  }
3515
3731
  /**
3516
3732
  * Lists all projects in the resource group.
3517
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3733
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3518
3734
  * @param options The options parameters.
3519
3735
  */
3520
3736
  listByResourceGroup(resourceGroupName, options) {
@@ -3526,20 +3742,31 @@ class ProjectsImpl {
3526
3742
  [Symbol.asyncIterator]() {
3527
3743
  return this;
3528
3744
  },
3529
- byPage: () => {
3530
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
3745
+ byPage: (settings) => {
3746
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3747
+ throw new Error("maxPageSize is not supported by this operation.");
3748
+ }
3749
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
3531
3750
  }
3532
3751
  };
3533
3752
  }
3534
- listByResourceGroupPagingPage(resourceGroupName, options) {
3753
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3535
3754
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3536
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3537
- yield yield tslib.__await(result.value || []);
3538
- let continuationToken = result.nextLink;
3755
+ let result;
3756
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3757
+ if (!continuationToken) {
3758
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3759
+ let page = result.value || [];
3760
+ continuationToken = result.nextLink;
3761
+ setContinuationToken(page, continuationToken);
3762
+ yield yield tslib.__await(page);
3763
+ }
3539
3764
  while (continuationToken) {
3540
3765
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
3541
3766
  continuationToken = result.nextLink;
3542
- yield yield tslib.__await(result.value || []);
3767
+ let page = result.value || [];
3768
+ setContinuationToken(page, continuationToken);
3769
+ yield yield tslib.__await(page);
3543
3770
  }
3544
3771
  });
3545
3772
  }
@@ -3570,7 +3797,7 @@ class ProjectsImpl {
3570
3797
  }
3571
3798
  /**
3572
3799
  * Lists all projects in the resource group.
3573
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3800
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3574
3801
  * @param options The options parameters.
3575
3802
  */
3576
3803
  _listByResourceGroup(resourceGroupName, options) {
@@ -3578,16 +3805,16 @@ class ProjectsImpl {
3578
3805
  }
3579
3806
  /**
3580
3807
  * Gets a specific project.
3581
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3808
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3582
3809
  * @param projectName The name of the project.
3583
3810
  * @param options The options parameters.
3584
3811
  */
3585
3812
  get(resourceGroupName, projectName, options) {
3586
- return this.client.sendOperationRequest({ resourceGroupName, projectName, options }, getOperationSpec$b);
3813
+ return this.client.sendOperationRequest({ resourceGroupName, projectName, options }, getOperationSpec$c);
3587
3814
  }
3588
3815
  /**
3589
3816
  * Creates or updates a project.
3590
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3817
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3591
3818
  * @param projectName The name of the project.
3592
3819
  * @param body Represents a project.
3593
3820
  * @param options The options parameters.
@@ -3628,7 +3855,7 @@ class ProjectsImpl {
3628
3855
  }
3629
3856
  /**
3630
3857
  * Creates or updates a project.
3631
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3858
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3632
3859
  * @param projectName The name of the project.
3633
3860
  * @param body Represents a project.
3634
3861
  * @param options The options parameters.
@@ -3641,7 +3868,7 @@ class ProjectsImpl {
3641
3868
  }
3642
3869
  /**
3643
3870
  * Partially updates a project.
3644
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3871
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3645
3872
  * @param projectName The name of the project.
3646
3873
  * @param body Updatable project properties.
3647
3874
  * @param options The options parameters.
@@ -3682,7 +3909,7 @@ class ProjectsImpl {
3682
3909
  }
3683
3910
  /**
3684
3911
  * Partially updates a project.
3685
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3912
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3686
3913
  * @param projectName The name of the project.
3687
3914
  * @param body Updatable project properties.
3688
3915
  * @param options The options parameters.
@@ -3695,7 +3922,7 @@ class ProjectsImpl {
3695
3922
  }
3696
3923
  /**
3697
3924
  * Deletes a project resource.
3698
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3925
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3699
3926
  * @param projectName The name of the project.
3700
3927
  * @param options The options parameters.
3701
3928
  */
@@ -3735,7 +3962,7 @@ class ProjectsImpl {
3735
3962
  }
3736
3963
  /**
3737
3964
  * Deletes a project resource.
3738
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3965
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3739
3966
  * @param projectName The name of the project.
3740
3967
  * @param options The options parameters.
3741
3968
  */
@@ -3755,7 +3982,7 @@ class ProjectsImpl {
3755
3982
  }
3756
3983
  /**
3757
3984
  * ListByResourceGroupNext
3758
- * @param resourceGroupName Name of the resource group within the Azure subscription.
3985
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3759
3986
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3760
3987
  * @param options The options parameters.
3761
3988
  */
@@ -3764,7 +3991,7 @@ class ProjectsImpl {
3764
3991
  }
3765
3992
  }
3766
3993
  // Operation Specifications
3767
- const serializer$f = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3994
+ const serializer$g = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3768
3995
  const listBySubscriptionOperationSpec$2 = {
3769
3996
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/projects",
3770
3997
  httpMethod: "GET",
@@ -3779,7 +4006,7 @@ const listBySubscriptionOperationSpec$2 = {
3779
4006
  queryParameters: [apiVersion, top],
3780
4007
  urlParameters: [$host, subscriptionId],
3781
4008
  headerParameters: [accept],
3782
- serializer: serializer$f
4009
+ serializer: serializer$g
3783
4010
  };
3784
4011
  const listByResourceGroupOperationSpec$1 = {
3785
4012
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects",
@@ -3799,9 +4026,9 @@ const listByResourceGroupOperationSpec$1 = {
3799
4026
  resourceGroupName
3800
4027
  ],
3801
4028
  headerParameters: [accept],
3802
- serializer: serializer$f
4029
+ serializer: serializer$g
3803
4030
  };
3804
- const getOperationSpec$b = {
4031
+ const getOperationSpec$c = {
3805
4032
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}",
3806
4033
  httpMethod: "GET",
3807
4034
  responses: {
@@ -3820,7 +4047,7 @@ const getOperationSpec$b = {
3820
4047
  projectName
3821
4048
  ],
3822
4049
  headerParameters: [accept],
3823
- serializer: serializer$f
4050
+ serializer: serializer$g
3824
4051
  };
3825
4052
  const createOrUpdateOperationSpec$9 = {
3826
4053
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}",
@@ -3852,7 +4079,7 @@ const createOrUpdateOperationSpec$9 = {
3852
4079
  ],
3853
4080
  headerParameters: [accept, contentType],
3854
4081
  mediaType: "json",
3855
- serializer: serializer$f
4082
+ serializer: serializer$g
3856
4083
  };
3857
4084
  const updateOperationSpec$7 = {
3858
4085
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}",
@@ -3884,7 +4111,7 @@ const updateOperationSpec$7 = {
3884
4111
  ],
3885
4112
  headerParameters: [accept, contentType],
3886
4113
  mediaType: "json",
3887
- serializer: serializer$f
4114
+ serializer: serializer$g
3888
4115
  };
3889
4116
  const deleteOperationSpec$9 = {
3890
4117
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}",
@@ -3906,7 +4133,7 @@ const deleteOperationSpec$9 = {
3906
4133
  projectName
3907
4134
  ],
3908
4135
  headerParameters: [accept],
3909
- serializer: serializer$f
4136
+ serializer: serializer$g
3910
4137
  };
3911
4138
  const listBySubscriptionNextOperationSpec$2 = {
3912
4139
  path: "{nextLink}",
@@ -3926,7 +4153,7 @@ const listBySubscriptionNextOperationSpec$2 = {
3926
4153
  nextLink
3927
4154
  ],
3928
4155
  headerParameters: [accept],
3929
- serializer: serializer$f
4156
+ serializer: serializer$g
3930
4157
  };
3931
4158
  const listByResourceGroupNextOperationSpec$1 = {
3932
4159
  path: "{nextLink}",
@@ -3947,7 +4174,7 @@ const listByResourceGroupNextOperationSpec$1 = {
3947
4174
  nextLink
3948
4175
  ],
3949
4176
  headerParameters: [accept],
3950
- serializer: serializer$f
4177
+ serializer: serializer$g
3951
4178
  };
3952
4179
 
3953
4180
  /*
@@ -3969,7 +4196,7 @@ class AttachedNetworksImpl {
3969
4196
  }
3970
4197
  /**
3971
4198
  * Lists the attached NetworkConnections for a Project.
3972
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4199
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3973
4200
  * @param projectName The name of the project.
3974
4201
  * @param options The options parameters.
3975
4202
  */
@@ -3982,20 +4209,31 @@ class AttachedNetworksImpl {
3982
4209
  [Symbol.asyncIterator]() {
3983
4210
  return this;
3984
4211
  },
3985
- byPage: () => {
3986
- return this.listByProjectPagingPage(resourceGroupName, projectName, options);
4212
+ byPage: (settings) => {
4213
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4214
+ throw new Error("maxPageSize is not supported by this operation.");
4215
+ }
4216
+ return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
3987
4217
  }
3988
4218
  };
3989
4219
  }
3990
- listByProjectPagingPage(resourceGroupName, projectName, options) {
4220
+ listByProjectPagingPage(resourceGroupName, projectName, options, settings) {
3991
4221
  return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
3992
- let result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
3993
- yield yield tslib.__await(result.value || []);
3994
- let continuationToken = result.nextLink;
4222
+ let result;
4223
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4224
+ if (!continuationToken) {
4225
+ result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
4226
+ let page = result.value || [];
4227
+ continuationToken = result.nextLink;
4228
+ setContinuationToken(page, continuationToken);
4229
+ yield yield tslib.__await(page);
4230
+ }
3995
4231
  while (continuationToken) {
3996
4232
  result = yield tslib.__await(this._listByProjectNext(resourceGroupName, projectName, continuationToken, options));
3997
4233
  continuationToken = result.nextLink;
3998
- yield yield tslib.__await(result.value || []);
4234
+ let page = result.value || [];
4235
+ setContinuationToken(page, continuationToken);
4236
+ yield yield tslib.__await(page);
3999
4237
  }
4000
4238
  });
4001
4239
  }
@@ -4019,7 +4257,7 @@ class AttachedNetworksImpl {
4019
4257
  }
4020
4258
  /**
4021
4259
  * Lists the attached NetworkConnections for a DevCenter.
4022
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4260
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4023
4261
  * @param devCenterName The name of the devcenter.
4024
4262
  * @param options The options parameters.
4025
4263
  */
@@ -4032,20 +4270,31 @@ class AttachedNetworksImpl {
4032
4270
  [Symbol.asyncIterator]() {
4033
4271
  return this;
4034
4272
  },
4035
- byPage: () => {
4036
- return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options);
4273
+ byPage: (settings) => {
4274
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4275
+ throw new Error("maxPageSize is not supported by this operation.");
4276
+ }
4277
+ return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
4037
4278
  }
4038
4279
  };
4039
4280
  }
4040
- listByDevCenterPagingPage(resourceGroupName, devCenterName, options) {
4281
+ listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
4041
4282
  return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
4042
- let result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
4043
- yield yield tslib.__await(result.value || []);
4044
- let continuationToken = result.nextLink;
4283
+ let result;
4284
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4285
+ if (!continuationToken) {
4286
+ result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
4287
+ let page = result.value || [];
4288
+ continuationToken = result.nextLink;
4289
+ setContinuationToken(page, continuationToken);
4290
+ yield yield tslib.__await(page);
4291
+ }
4045
4292
  while (continuationToken) {
4046
4293
  result = yield tslib.__await(this._listByDevCenterNext(resourceGroupName, devCenterName, continuationToken, options));
4047
4294
  continuationToken = result.nextLink;
4048
- yield yield tslib.__await(result.value || []);
4295
+ let page = result.value || [];
4296
+ setContinuationToken(page, continuationToken);
4297
+ yield yield tslib.__await(page);
4049
4298
  }
4050
4299
  });
4051
4300
  }
@@ -4069,7 +4318,7 @@ class AttachedNetworksImpl {
4069
4318
  }
4070
4319
  /**
4071
4320
  * Lists the attached NetworkConnections for a Project.
4072
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4321
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4073
4322
  * @param projectName The name of the project.
4074
4323
  * @param options The options parameters.
4075
4324
  */
@@ -4078,7 +4327,7 @@ class AttachedNetworksImpl {
4078
4327
  }
4079
4328
  /**
4080
4329
  * Gets an attached NetworkConnection.
4081
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4330
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4082
4331
  * @param projectName The name of the project.
4083
4332
  * @param attachedNetworkConnectionName The name of the attached NetworkConnection.
4084
4333
  * @param options The options parameters.
@@ -4093,7 +4342,7 @@ class AttachedNetworksImpl {
4093
4342
  }
4094
4343
  /**
4095
4344
  * Lists the attached NetworkConnections for a DevCenter.
4096
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4345
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4097
4346
  * @param devCenterName The name of the devcenter.
4098
4347
  * @param options The options parameters.
4099
4348
  */
@@ -4102,7 +4351,7 @@ class AttachedNetworksImpl {
4102
4351
  }
4103
4352
  /**
4104
4353
  * Gets an attached NetworkConnection.
4105
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4354
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4106
4355
  * @param devCenterName The name of the devcenter.
4107
4356
  * @param attachedNetworkConnectionName The name of the attached NetworkConnection.
4108
4357
  * @param options The options parameters.
@@ -4117,7 +4366,7 @@ class AttachedNetworksImpl {
4117
4366
  }
4118
4367
  /**
4119
4368
  * Creates or updates an attached NetworkConnection.
4120
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4369
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4121
4370
  * @param devCenterName The name of the devcenter.
4122
4371
  * @param attachedNetworkConnectionName The name of the attached NetworkConnection.
4123
4372
  * @param body Represents an attached NetworkConnection.
@@ -4165,7 +4414,7 @@ class AttachedNetworksImpl {
4165
4414
  }
4166
4415
  /**
4167
4416
  * Creates or updates an attached NetworkConnection.
4168
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4417
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4169
4418
  * @param devCenterName The name of the devcenter.
4170
4419
  * @param attachedNetworkConnectionName The name of the attached NetworkConnection.
4171
4420
  * @param body Represents an attached NetworkConnection.
@@ -4179,7 +4428,7 @@ class AttachedNetworksImpl {
4179
4428
  }
4180
4429
  /**
4181
4430
  * Un-attach a NetworkConnection.
4182
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4431
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4183
4432
  * @param devCenterName The name of the devcenter.
4184
4433
  * @param attachedNetworkConnectionName The name of the attached NetworkConnection.
4185
4434
  * @param options The options parameters.
@@ -4225,7 +4474,7 @@ class AttachedNetworksImpl {
4225
4474
  }
4226
4475
  /**
4227
4476
  * Un-attach a NetworkConnection.
4228
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4477
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4229
4478
  * @param devCenterName The name of the devcenter.
4230
4479
  * @param attachedNetworkConnectionName The name of the attached NetworkConnection.
4231
4480
  * @param options The options parameters.
@@ -4238,7 +4487,7 @@ class AttachedNetworksImpl {
4238
4487
  }
4239
4488
  /**
4240
4489
  * ListByProjectNext
4241
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4490
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4242
4491
  * @param projectName The name of the project.
4243
4492
  * @param nextLink The nextLink from the previous successful call to the ListByProject method.
4244
4493
  * @param options The options parameters.
@@ -4248,7 +4497,7 @@ class AttachedNetworksImpl {
4248
4497
  }
4249
4498
  /**
4250
4499
  * ListByDevCenterNext
4251
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4500
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4252
4501
  * @param devCenterName The name of the devcenter.
4253
4502
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
4254
4503
  * @param options The options parameters.
@@ -4258,7 +4507,7 @@ class AttachedNetworksImpl {
4258
4507
  }
4259
4508
  }
4260
4509
  // Operation Specifications
4261
- const serializer$e = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4510
+ const serializer$f = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4262
4511
  const listByProjectOperationSpec$2 = {
4263
4512
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks",
4264
4513
  httpMethod: "GET",
@@ -4278,7 +4527,7 @@ const listByProjectOperationSpec$2 = {
4278
4527
  projectName
4279
4528
  ],
4280
4529
  headerParameters: [accept],
4281
- serializer: serializer$e
4530
+ serializer: serializer$f
4282
4531
  };
4283
4532
  const getByProjectOperationSpec$1 = {
4284
4533
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}",
@@ -4300,7 +4549,7 @@ const getByProjectOperationSpec$1 = {
4300
4549
  attachedNetworkConnectionName
4301
4550
  ],
4302
4551
  headerParameters: [accept],
4303
- serializer: serializer$e
4552
+ serializer: serializer$f
4304
4553
  };
4305
4554
  const listByDevCenterOperationSpec$5 = {
4306
4555
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks",
@@ -4321,7 +4570,7 @@ const listByDevCenterOperationSpec$5 = {
4321
4570
  devCenterName
4322
4571
  ],
4323
4572
  headerParameters: [accept],
4324
- serializer: serializer$e
4573
+ serializer: serializer$f
4325
4574
  };
4326
4575
  const getByDevCenterOperationSpec = {
4327
4576
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}",
@@ -4343,7 +4592,7 @@ const getByDevCenterOperationSpec = {
4343
4592
  attachedNetworkConnectionName
4344
4593
  ],
4345
4594
  headerParameters: [accept],
4346
- serializer: serializer$e
4595
+ serializer: serializer$f
4347
4596
  };
4348
4597
  const createOrUpdateOperationSpec$8 = {
4349
4598
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}",
@@ -4376,7 +4625,7 @@ const createOrUpdateOperationSpec$8 = {
4376
4625
  ],
4377
4626
  headerParameters: [accept, contentType],
4378
4627
  mediaType: "json",
4379
- serializer: serializer$e
4628
+ serializer: serializer$f
4380
4629
  };
4381
4630
  const deleteOperationSpec$8 = {
4382
4631
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}",
@@ -4399,7 +4648,7 @@ const deleteOperationSpec$8 = {
4399
4648
  attachedNetworkConnectionName
4400
4649
  ],
4401
4650
  headerParameters: [accept],
4402
- serializer: serializer$e
4651
+ serializer: serializer$f
4403
4652
  };
4404
4653
  const listByProjectNextOperationSpec$2 = {
4405
4654
  path: "{nextLink}",
@@ -4421,7 +4670,7 @@ const listByProjectNextOperationSpec$2 = {
4421
4670
  projectName
4422
4671
  ],
4423
4672
  headerParameters: [accept],
4424
- serializer: serializer$e
4673
+ serializer: serializer$f
4425
4674
  };
4426
4675
  const listByDevCenterNextOperationSpec$5 = {
4427
4676
  path: "{nextLink}",
@@ -4443,7 +4692,7 @@ const listByDevCenterNextOperationSpec$5 = {
4443
4692
  nextLink
4444
4693
  ],
4445
4694
  headerParameters: [accept],
4446
- serializer: serializer$e
4695
+ serializer: serializer$f
4447
4696
  };
4448
4697
 
4449
4698
  /*
@@ -4465,7 +4714,7 @@ class GalleriesImpl {
4465
4714
  }
4466
4715
  /**
4467
4716
  * Lists galleries for a devcenter.
4468
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4717
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4469
4718
  * @param devCenterName The name of the devcenter.
4470
4719
  * @param options The options parameters.
4471
4720
  */
@@ -4478,20 +4727,31 @@ class GalleriesImpl {
4478
4727
  [Symbol.asyncIterator]() {
4479
4728
  return this;
4480
4729
  },
4481
- byPage: () => {
4482
- return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options);
4730
+ byPage: (settings) => {
4731
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4732
+ throw new Error("maxPageSize is not supported by this operation.");
4733
+ }
4734
+ return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
4483
4735
  }
4484
4736
  };
4485
4737
  }
4486
- listByDevCenterPagingPage(resourceGroupName, devCenterName, options) {
4738
+ listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
4487
4739
  return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
4488
- let result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
4489
- yield yield tslib.__await(result.value || []);
4490
- let continuationToken = result.nextLink;
4740
+ let result;
4741
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4742
+ if (!continuationToken) {
4743
+ result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
4744
+ let page = result.value || [];
4745
+ continuationToken = result.nextLink;
4746
+ setContinuationToken(page, continuationToken);
4747
+ yield yield tslib.__await(page);
4748
+ }
4491
4749
  while (continuationToken) {
4492
4750
  result = yield tslib.__await(this._listByDevCenterNext(resourceGroupName, devCenterName, continuationToken, options));
4493
4751
  continuationToken = result.nextLink;
4494
- yield yield tslib.__await(result.value || []);
4752
+ let page = result.value || [];
4753
+ setContinuationToken(page, continuationToken);
4754
+ yield yield tslib.__await(page);
4495
4755
  }
4496
4756
  });
4497
4757
  }
@@ -4515,7 +4775,7 @@ class GalleriesImpl {
4515
4775
  }
4516
4776
  /**
4517
4777
  * Lists galleries for a devcenter.
4518
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4778
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4519
4779
  * @param devCenterName The name of the devcenter.
4520
4780
  * @param options The options parameters.
4521
4781
  */
@@ -4524,17 +4784,17 @@ class GalleriesImpl {
4524
4784
  }
4525
4785
  /**
4526
4786
  * Gets a gallery
4527
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4787
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4528
4788
  * @param devCenterName The name of the devcenter.
4529
4789
  * @param galleryName The name of the gallery.
4530
4790
  * @param options The options parameters.
4531
4791
  */
4532
4792
  get(resourceGroupName, devCenterName, galleryName, options) {
4533
- return this.client.sendOperationRequest({ resourceGroupName, devCenterName, galleryName, options }, getOperationSpec$a);
4793
+ return this.client.sendOperationRequest({ resourceGroupName, devCenterName, galleryName, options }, getOperationSpec$b);
4534
4794
  }
4535
4795
  /**
4536
4796
  * Creates or updates a gallery.
4537
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4797
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4538
4798
  * @param devCenterName The name of the devcenter.
4539
4799
  * @param galleryName The name of the gallery.
4540
4800
  * @param body Represents a gallery.
@@ -4576,7 +4836,7 @@ class GalleriesImpl {
4576
4836
  }
4577
4837
  /**
4578
4838
  * Creates or updates a gallery.
4579
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4839
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4580
4840
  * @param devCenterName The name of the devcenter.
4581
4841
  * @param galleryName The name of the gallery.
4582
4842
  * @param body Represents a gallery.
@@ -4590,7 +4850,7 @@ class GalleriesImpl {
4590
4850
  }
4591
4851
  /**
4592
4852
  * Deletes a gallery resource.
4593
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4853
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4594
4854
  * @param devCenterName The name of the devcenter.
4595
4855
  * @param galleryName The name of the gallery.
4596
4856
  * @param options The options parameters.
@@ -4631,7 +4891,7 @@ class GalleriesImpl {
4631
4891
  }
4632
4892
  /**
4633
4893
  * Deletes a gallery resource.
4634
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4894
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4635
4895
  * @param devCenterName The name of the devcenter.
4636
4896
  * @param galleryName The name of the gallery.
4637
4897
  * @param options The options parameters.
@@ -4644,7 +4904,7 @@ class GalleriesImpl {
4644
4904
  }
4645
4905
  /**
4646
4906
  * ListByDevCenterNext
4647
- * @param resourceGroupName Name of the resource group within the Azure subscription.
4907
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4648
4908
  * @param devCenterName The name of the devcenter.
4649
4909
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
4650
4910
  * @param options The options parameters.
@@ -4654,7 +4914,7 @@ class GalleriesImpl {
4654
4914
  }
4655
4915
  }
4656
4916
  // Operation Specifications
4657
- const serializer$d = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4917
+ const serializer$e = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4658
4918
  const listByDevCenterOperationSpec$4 = {
4659
4919
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries",
4660
4920
  httpMethod: "GET",
@@ -4674,9 +4934,9 @@ const listByDevCenterOperationSpec$4 = {
4674
4934
  devCenterName
4675
4935
  ],
4676
4936
  headerParameters: [accept],
4677
- serializer: serializer$d
4937
+ serializer: serializer$e
4678
4938
  };
4679
- const getOperationSpec$a = {
4939
+ const getOperationSpec$b = {
4680
4940
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}",
4681
4941
  httpMethod: "GET",
4682
4942
  responses: {
@@ -4696,7 +4956,7 @@ const getOperationSpec$a = {
4696
4956
  galleryName
4697
4957
  ],
4698
4958
  headerParameters: [accept],
4699
- serializer: serializer$d
4959
+ serializer: serializer$e
4700
4960
  };
4701
4961
  const createOrUpdateOperationSpec$7 = {
4702
4962
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}",
@@ -4729,7 +4989,7 @@ const createOrUpdateOperationSpec$7 = {
4729
4989
  ],
4730
4990
  headerParameters: [accept, contentType],
4731
4991
  mediaType: "json",
4732
- serializer: serializer$d
4992
+ serializer: serializer$e
4733
4993
  };
4734
4994
  const deleteOperationSpec$7 = {
4735
4995
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}",
@@ -4752,7 +5012,7 @@ const deleteOperationSpec$7 = {
4752
5012
  galleryName
4753
5013
  ],
4754
5014
  headerParameters: [accept],
4755
- serializer: serializer$d
5015
+ serializer: serializer$e
4756
5016
  };
4757
5017
  const listByDevCenterNextOperationSpec$4 = {
4758
5018
  path: "{nextLink}",
@@ -4774,7 +5034,7 @@ const listByDevCenterNextOperationSpec$4 = {
4774
5034
  nextLink
4775
5035
  ],
4776
5036
  headerParameters: [accept],
4777
- serializer: serializer$d
5037
+ serializer: serializer$e
4778
5038
  };
4779
5039
 
4780
5040
  /*
@@ -4796,7 +5056,7 @@ class ImagesImpl {
4796
5056
  }
4797
5057
  /**
4798
5058
  * Lists images for a devcenter.
4799
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5059
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4800
5060
  * @param devCenterName The name of the devcenter.
4801
5061
  * @param options The options parameters.
4802
5062
  */
@@ -4809,20 +5069,31 @@ class ImagesImpl {
4809
5069
  [Symbol.asyncIterator]() {
4810
5070
  return this;
4811
5071
  },
4812
- byPage: () => {
4813
- return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options);
5072
+ byPage: (settings) => {
5073
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5074
+ throw new Error("maxPageSize is not supported by this operation.");
5075
+ }
5076
+ return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
4814
5077
  }
4815
5078
  };
4816
5079
  }
4817
- listByDevCenterPagingPage(resourceGroupName, devCenterName, options) {
5080
+ listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
4818
5081
  return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
4819
- let result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
4820
- yield yield tslib.__await(result.value || []);
4821
- let continuationToken = result.nextLink;
5082
+ let result;
5083
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5084
+ if (!continuationToken) {
5085
+ result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
5086
+ let page = result.value || [];
5087
+ continuationToken = result.nextLink;
5088
+ setContinuationToken(page, continuationToken);
5089
+ yield yield tslib.__await(page);
5090
+ }
4822
5091
  while (continuationToken) {
4823
5092
  result = yield tslib.__await(this._listByDevCenterNext(resourceGroupName, devCenterName, continuationToken, options));
4824
5093
  continuationToken = result.nextLink;
4825
- yield yield tslib.__await(result.value || []);
5094
+ let page = result.value || [];
5095
+ setContinuationToken(page, continuationToken);
5096
+ yield yield tslib.__await(page);
4826
5097
  }
4827
5098
  });
4828
5099
  }
@@ -4846,7 +5117,7 @@ class ImagesImpl {
4846
5117
  }
4847
5118
  /**
4848
5119
  * Lists images for a gallery.
4849
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5120
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4850
5121
  * @param devCenterName The name of the devcenter.
4851
5122
  * @param galleryName The name of the gallery.
4852
5123
  * @param options The options parameters.
@@ -4860,20 +5131,31 @@ class ImagesImpl {
4860
5131
  [Symbol.asyncIterator]() {
4861
5132
  return this;
4862
5133
  },
4863
- byPage: () => {
4864
- return this.listByGalleryPagingPage(resourceGroupName, devCenterName, galleryName, options);
5134
+ byPage: (settings) => {
5135
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5136
+ throw new Error("maxPageSize is not supported by this operation.");
5137
+ }
5138
+ return this.listByGalleryPagingPage(resourceGroupName, devCenterName, galleryName, options, settings);
4865
5139
  }
4866
5140
  };
4867
5141
  }
4868
- listByGalleryPagingPage(resourceGroupName, devCenterName, galleryName, options) {
5142
+ listByGalleryPagingPage(resourceGroupName, devCenterName, galleryName, options, settings) {
4869
5143
  return tslib.__asyncGenerator(this, arguments, function* listByGalleryPagingPage_1() {
4870
- let result = yield tslib.__await(this._listByGallery(resourceGroupName, devCenterName, galleryName, options));
4871
- yield yield tslib.__await(result.value || []);
4872
- let continuationToken = result.nextLink;
5144
+ let result;
5145
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5146
+ if (!continuationToken) {
5147
+ result = yield tslib.__await(this._listByGallery(resourceGroupName, devCenterName, galleryName, options));
5148
+ let page = result.value || [];
5149
+ continuationToken = result.nextLink;
5150
+ setContinuationToken(page, continuationToken);
5151
+ yield yield tslib.__await(page);
5152
+ }
4873
5153
  while (continuationToken) {
4874
5154
  result = yield tslib.__await(this._listByGalleryNext(resourceGroupName, devCenterName, galleryName, continuationToken, options));
4875
5155
  continuationToken = result.nextLink;
4876
- yield yield tslib.__await(result.value || []);
5156
+ let page = result.value || [];
5157
+ setContinuationToken(page, continuationToken);
5158
+ yield yield tslib.__await(page);
4877
5159
  }
4878
5160
  });
4879
5161
  }
@@ -4897,7 +5179,7 @@ class ImagesImpl {
4897
5179
  }
4898
5180
  /**
4899
5181
  * Lists images for a devcenter.
4900
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5182
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4901
5183
  * @param devCenterName The name of the devcenter.
4902
5184
  * @param options The options parameters.
4903
5185
  */
@@ -4906,7 +5188,7 @@ class ImagesImpl {
4906
5188
  }
4907
5189
  /**
4908
5190
  * Lists images for a gallery.
4909
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5191
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4910
5192
  * @param devCenterName The name of the devcenter.
4911
5193
  * @param galleryName The name of the gallery.
4912
5194
  * @param options The options parameters.
@@ -4916,18 +5198,18 @@ class ImagesImpl {
4916
5198
  }
4917
5199
  /**
4918
5200
  * Gets a gallery image.
4919
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5201
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4920
5202
  * @param devCenterName The name of the devcenter.
4921
5203
  * @param galleryName The name of the gallery.
4922
5204
  * @param imageName The name of the image.
4923
5205
  * @param options The options parameters.
4924
5206
  */
4925
5207
  get(resourceGroupName, devCenterName, galleryName, imageName, options) {
4926
- return this.client.sendOperationRequest({ resourceGroupName, devCenterName, galleryName, imageName, options }, getOperationSpec$9);
5208
+ return this.client.sendOperationRequest({ resourceGroupName, devCenterName, galleryName, imageName, options }, getOperationSpec$a);
4927
5209
  }
4928
5210
  /**
4929
5211
  * ListByDevCenterNext
4930
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5212
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4931
5213
  * @param devCenterName The name of the devcenter.
4932
5214
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
4933
5215
  * @param options The options parameters.
@@ -4937,7 +5219,7 @@ class ImagesImpl {
4937
5219
  }
4938
5220
  /**
4939
5221
  * ListByGalleryNext
4940
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5222
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4941
5223
  * @param devCenterName The name of the devcenter.
4942
5224
  * @param galleryName The name of the gallery.
4943
5225
  * @param nextLink The nextLink from the previous successful call to the ListByGallery method.
@@ -4948,7 +5230,7 @@ class ImagesImpl {
4948
5230
  }
4949
5231
  }
4950
5232
  // Operation Specifications
4951
- const serializer$c = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5233
+ const serializer$d = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4952
5234
  const listByDevCenterOperationSpec$3 = {
4953
5235
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/images",
4954
5236
  httpMethod: "GET",
@@ -4968,7 +5250,7 @@ const listByDevCenterOperationSpec$3 = {
4968
5250
  devCenterName
4969
5251
  ],
4970
5252
  headerParameters: [accept],
4971
- serializer: serializer$c
5253
+ serializer: serializer$d
4972
5254
  };
4973
5255
  const listByGalleryOperationSpec = {
4974
5256
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images",
@@ -4990,9 +5272,9 @@ const listByGalleryOperationSpec = {
4990
5272
  galleryName
4991
5273
  ],
4992
5274
  headerParameters: [accept],
4993
- serializer: serializer$c
5275
+ serializer: serializer$d
4994
5276
  };
4995
- const getOperationSpec$9 = {
5277
+ const getOperationSpec$a = {
4996
5278
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}",
4997
5279
  httpMethod: "GET",
4998
5280
  responses: {
@@ -5013,7 +5295,7 @@ const getOperationSpec$9 = {
5013
5295
  imageName
5014
5296
  ],
5015
5297
  headerParameters: [accept],
5016
- serializer: serializer$c
5298
+ serializer: serializer$d
5017
5299
  };
5018
5300
  const listByDevCenterNextOperationSpec$3 = {
5019
5301
  path: "{nextLink}",
@@ -5035,7 +5317,7 @@ const listByDevCenterNextOperationSpec$3 = {
5035
5317
  nextLink
5036
5318
  ],
5037
5319
  headerParameters: [accept],
5038
- serializer: serializer$c
5320
+ serializer: serializer$d
5039
5321
  };
5040
5322
  const listByGalleryNextOperationSpec = {
5041
5323
  path: "{nextLink}",
@@ -5058,7 +5340,7 @@ const listByGalleryNextOperationSpec = {
5058
5340
  galleryName
5059
5341
  ],
5060
5342
  headerParameters: [accept],
5061
- serializer: serializer$c
5343
+ serializer: serializer$d
5062
5344
  };
5063
5345
 
5064
5346
  /*
@@ -5080,7 +5362,7 @@ class ImageVersionsImpl {
5080
5362
  }
5081
5363
  /**
5082
5364
  * Lists versions for an image.
5083
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5365
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5084
5366
  * @param devCenterName The name of the devcenter.
5085
5367
  * @param galleryName The name of the gallery.
5086
5368
  * @param imageName The name of the image.
@@ -5095,20 +5377,31 @@ class ImageVersionsImpl {
5095
5377
  [Symbol.asyncIterator]() {
5096
5378
  return this;
5097
5379
  },
5098
- byPage: () => {
5099
- return this.listByImagePagingPage(resourceGroupName, devCenterName, galleryName, imageName, options);
5380
+ byPage: (settings) => {
5381
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5382
+ throw new Error("maxPageSize is not supported by this operation.");
5383
+ }
5384
+ return this.listByImagePagingPage(resourceGroupName, devCenterName, galleryName, imageName, options, settings);
5100
5385
  }
5101
5386
  };
5102
5387
  }
5103
- listByImagePagingPage(resourceGroupName, devCenterName, galleryName, imageName, options) {
5388
+ listByImagePagingPage(resourceGroupName, devCenterName, galleryName, imageName, options, settings) {
5104
5389
  return tslib.__asyncGenerator(this, arguments, function* listByImagePagingPage_1() {
5105
- let result = yield tslib.__await(this._listByImage(resourceGroupName, devCenterName, galleryName, imageName, options));
5106
- yield yield tslib.__await(result.value || []);
5107
- let continuationToken = result.nextLink;
5390
+ let result;
5391
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5392
+ if (!continuationToken) {
5393
+ result = yield tslib.__await(this._listByImage(resourceGroupName, devCenterName, galleryName, imageName, options));
5394
+ let page = result.value || [];
5395
+ continuationToken = result.nextLink;
5396
+ setContinuationToken(page, continuationToken);
5397
+ yield yield tslib.__await(page);
5398
+ }
5108
5399
  while (continuationToken) {
5109
5400
  result = yield tslib.__await(this._listByImageNext(resourceGroupName, devCenterName, galleryName, imageName, continuationToken, options));
5110
5401
  continuationToken = result.nextLink;
5111
- yield yield tslib.__await(result.value || []);
5402
+ let page = result.value || [];
5403
+ setContinuationToken(page, continuationToken);
5404
+ yield yield tslib.__await(page);
5112
5405
  }
5113
5406
  });
5114
5407
  }
@@ -5132,7 +5425,7 @@ class ImageVersionsImpl {
5132
5425
  }
5133
5426
  /**
5134
5427
  * Lists versions for an image.
5135
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5428
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5136
5429
  * @param devCenterName The name of the devcenter.
5137
5430
  * @param galleryName The name of the gallery.
5138
5431
  * @param imageName The name of the image.
@@ -5143,7 +5436,7 @@ class ImageVersionsImpl {
5143
5436
  }
5144
5437
  /**
5145
5438
  * Gets an image version.
5146
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5439
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5147
5440
  * @param devCenterName The name of the devcenter.
5148
5441
  * @param galleryName The name of the gallery.
5149
5442
  * @param imageName The name of the image.
@@ -5158,11 +5451,11 @@ class ImageVersionsImpl {
5158
5451
  imageName,
5159
5452
  versionName,
5160
5453
  options
5161
- }, getOperationSpec$8);
5454
+ }, getOperationSpec$9);
5162
5455
  }
5163
5456
  /**
5164
5457
  * ListByImageNext
5165
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5458
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5166
5459
  * @param devCenterName The name of the devcenter.
5167
5460
  * @param galleryName The name of the gallery.
5168
5461
  * @param imageName The name of the image.
@@ -5181,7 +5474,7 @@ class ImageVersionsImpl {
5181
5474
  }
5182
5475
  }
5183
5476
  // Operation Specifications
5184
- const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5477
+ const serializer$c = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5185
5478
  const listByImageOperationSpec = {
5186
5479
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions",
5187
5480
  httpMethod: "GET",
@@ -5203,9 +5496,9 @@ const listByImageOperationSpec = {
5203
5496
  imageName
5204
5497
  ],
5205
5498
  headerParameters: [accept],
5206
- serializer: serializer$b
5499
+ serializer: serializer$c
5207
5500
  };
5208
- const getOperationSpec$8 = {
5501
+ const getOperationSpec$9 = {
5209
5502
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}",
5210
5503
  httpMethod: "GET",
5211
5504
  responses: {
@@ -5227,7 +5520,7 @@ const getOperationSpec$8 = {
5227
5520
  versionName
5228
5521
  ],
5229
5522
  headerParameters: [accept],
5230
- serializer: serializer$b
5523
+ serializer: serializer$c
5231
5524
  };
5232
5525
  const listByImageNextOperationSpec = {
5233
5526
  path: "{nextLink}",
@@ -5251,7 +5544,7 @@ const listByImageNextOperationSpec = {
5251
5544
  imageName
5252
5545
  ],
5253
5546
  headerParameters: [accept],
5254
- serializer: serializer$b
5547
+ serializer: serializer$c
5255
5548
  };
5256
5549
 
5257
5550
  /*
@@ -5273,7 +5566,7 @@ class CatalogsImpl {
5273
5566
  }
5274
5567
  /**
5275
5568
  * Lists catalogs for a devcenter.
5276
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5569
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5277
5570
  * @param devCenterName The name of the devcenter.
5278
5571
  * @param options The options parameters.
5279
5572
  */
@@ -5286,20 +5579,31 @@ class CatalogsImpl {
5286
5579
  [Symbol.asyncIterator]() {
5287
5580
  return this;
5288
5581
  },
5289
- byPage: () => {
5290
- return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options);
5582
+ byPage: (settings) => {
5583
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5584
+ throw new Error("maxPageSize is not supported by this operation.");
5585
+ }
5586
+ return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
5291
5587
  }
5292
5588
  };
5293
5589
  }
5294
- listByDevCenterPagingPage(resourceGroupName, devCenterName, options) {
5590
+ listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
5295
5591
  return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
5296
- let result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
5297
- yield yield tslib.__await(result.value || []);
5298
- let continuationToken = result.nextLink;
5592
+ let result;
5593
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5594
+ if (!continuationToken) {
5595
+ result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
5596
+ let page = result.value || [];
5597
+ continuationToken = result.nextLink;
5598
+ setContinuationToken(page, continuationToken);
5599
+ yield yield tslib.__await(page);
5600
+ }
5299
5601
  while (continuationToken) {
5300
5602
  result = yield tslib.__await(this._listByDevCenterNext(resourceGroupName, devCenterName, continuationToken, options));
5301
5603
  continuationToken = result.nextLink;
5302
- yield yield tslib.__await(result.value || []);
5604
+ let page = result.value || [];
5605
+ setContinuationToken(page, continuationToken);
5606
+ yield yield tslib.__await(page);
5303
5607
  }
5304
5608
  });
5305
5609
  }
@@ -5323,7 +5627,7 @@ class CatalogsImpl {
5323
5627
  }
5324
5628
  /**
5325
5629
  * Lists catalogs for a devcenter.
5326
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5630
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5327
5631
  * @param devCenterName The name of the devcenter.
5328
5632
  * @param options The options parameters.
5329
5633
  */
@@ -5332,17 +5636,17 @@ class CatalogsImpl {
5332
5636
  }
5333
5637
  /**
5334
5638
  * Gets a catalog
5335
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5639
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5336
5640
  * @param devCenterName The name of the devcenter.
5337
5641
  * @param catalogName The name of the Catalog.
5338
5642
  * @param options The options parameters.
5339
5643
  */
5340
5644
  get(resourceGroupName, devCenterName, catalogName, options) {
5341
- return this.client.sendOperationRequest({ resourceGroupName, devCenterName, catalogName, options }, getOperationSpec$7);
5645
+ return this.client.sendOperationRequest({ resourceGroupName, devCenterName, catalogName, options }, getOperationSpec$8);
5342
5646
  }
5343
5647
  /**
5344
5648
  * Creates or updates a catalog.
5345
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5649
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5346
5650
  * @param devCenterName The name of the devcenter.
5347
5651
  * @param catalogName The name of the Catalog.
5348
5652
  * @param body Represents a catalog.
@@ -5384,7 +5688,7 @@ class CatalogsImpl {
5384
5688
  }
5385
5689
  /**
5386
5690
  * Creates or updates a catalog.
5387
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5691
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5388
5692
  * @param devCenterName The name of the devcenter.
5389
5693
  * @param catalogName The name of the Catalog.
5390
5694
  * @param body Represents a catalog.
@@ -5398,7 +5702,7 @@ class CatalogsImpl {
5398
5702
  }
5399
5703
  /**
5400
5704
  * Partially updates a catalog.
5401
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5705
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5402
5706
  * @param devCenterName The name of the devcenter.
5403
5707
  * @param catalogName The name of the Catalog.
5404
5708
  * @param body Updatable catalog properties.
@@ -5440,7 +5744,7 @@ class CatalogsImpl {
5440
5744
  }
5441
5745
  /**
5442
5746
  * Partially updates a catalog.
5443
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5747
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5444
5748
  * @param devCenterName The name of the devcenter.
5445
5749
  * @param catalogName The name of the Catalog.
5446
5750
  * @param body Updatable catalog properties.
@@ -5454,7 +5758,7 @@ class CatalogsImpl {
5454
5758
  }
5455
5759
  /**
5456
5760
  * Deletes a catalog resource.
5457
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5761
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5458
5762
  * @param devCenterName The name of the devcenter.
5459
5763
  * @param catalogName The name of the Catalog.
5460
5764
  * @param options The options parameters.
@@ -5495,7 +5799,7 @@ class CatalogsImpl {
5495
5799
  }
5496
5800
  /**
5497
5801
  * Deletes a catalog resource.
5498
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5802
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5499
5803
  * @param devCenterName The name of the devcenter.
5500
5804
  * @param catalogName The name of the Catalog.
5501
5805
  * @param options The options parameters.
@@ -5508,7 +5812,7 @@ class CatalogsImpl {
5508
5812
  }
5509
5813
  /**
5510
5814
  * Syncs templates for a template source.
5511
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5815
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5512
5816
  * @param devCenterName The name of the devcenter.
5513
5817
  * @param catalogName The name of the Catalog.
5514
5818
  * @param options The options parameters.
@@ -5541,7 +5845,7 @@ class CatalogsImpl {
5541
5845
  const poller = new coreLro.LroEngine(lro, {
5542
5846
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5543
5847
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5544
- lroResourceLocationConfig: "location"
5848
+ lroResourceLocationConfig: "azure-async-operation"
5545
5849
  });
5546
5850
  yield poller.poll();
5547
5851
  return poller;
@@ -5549,7 +5853,7 @@ class CatalogsImpl {
5549
5853
  }
5550
5854
  /**
5551
5855
  * Syncs templates for a template source.
5552
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5856
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5553
5857
  * @param devCenterName The name of the devcenter.
5554
5858
  * @param catalogName The name of the Catalog.
5555
5859
  * @param options The options parameters.
@@ -5562,7 +5866,7 @@ class CatalogsImpl {
5562
5866
  }
5563
5867
  /**
5564
5868
  * ListByDevCenterNext
5565
- * @param resourceGroupName Name of the resource group within the Azure subscription.
5869
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5566
5870
  * @param devCenterName The name of the devcenter.
5567
5871
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
5568
5872
  * @param options The options parameters.
@@ -5572,7 +5876,7 @@ class CatalogsImpl {
5572
5876
  }
5573
5877
  }
5574
5878
  // Operation Specifications
5575
- const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5879
+ const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5576
5880
  const listByDevCenterOperationSpec$2 = {
5577
5881
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs",
5578
5882
  httpMethod: "GET",
@@ -5592,9 +5896,9 @@ const listByDevCenterOperationSpec$2 = {
5592
5896
  devCenterName
5593
5897
  ],
5594
5898
  headerParameters: [accept],
5595
- serializer: serializer$a
5899
+ serializer: serializer$b
5596
5900
  };
5597
- const getOperationSpec$7 = {
5901
+ const getOperationSpec$8 = {
5598
5902
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}",
5599
5903
  httpMethod: "GET",
5600
5904
  responses: {
@@ -5614,7 +5918,7 @@ const getOperationSpec$7 = {
5614
5918
  catalogName
5615
5919
  ],
5616
5920
  headerParameters: [accept],
5617
- serializer: serializer$a
5921
+ serializer: serializer$b
5618
5922
  };
5619
5923
  const createOrUpdateOperationSpec$6 = {
5620
5924
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}",
@@ -5647,7 +5951,7 @@ const createOrUpdateOperationSpec$6 = {
5647
5951
  ],
5648
5952
  headerParameters: [accept, contentType],
5649
5953
  mediaType: "json",
5650
- serializer: serializer$a
5954
+ serializer: serializer$b
5651
5955
  };
5652
5956
  const updateOperationSpec$6 = {
5653
5957
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}",
@@ -5680,7 +5984,7 @@ const updateOperationSpec$6 = {
5680
5984
  ],
5681
5985
  headerParameters: [accept, contentType],
5682
5986
  mediaType: "json",
5683
- serializer: serializer$a
5987
+ serializer: serializer$b
5684
5988
  };
5685
5989
  const deleteOperationSpec$6 = {
5686
5990
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}",
@@ -5703,7 +6007,7 @@ const deleteOperationSpec$6 = {
5703
6007
  catalogName
5704
6008
  ],
5705
6009
  headerParameters: [accept],
5706
- serializer: serializer$a
6010
+ serializer: serializer$b
5707
6011
  };
5708
6012
  const syncOperationSpec = {
5709
6013
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync",
@@ -5726,7 +6030,7 @@ const syncOperationSpec = {
5726
6030
  catalogName
5727
6031
  ],
5728
6032
  headerParameters: [accept],
5729
- serializer: serializer$a
6033
+ serializer: serializer$b
5730
6034
  };
5731
6035
  const listByDevCenterNextOperationSpec$2 = {
5732
6036
  path: "{nextLink}",
@@ -5748,7 +6052,7 @@ const listByDevCenterNextOperationSpec$2 = {
5748
6052
  nextLink
5749
6053
  ],
5750
6054
  headerParameters: [accept],
5751
- serializer: serializer$a
6055
+ serializer: serializer$b
5752
6056
  };
5753
6057
 
5754
6058
  /*
@@ -5770,7 +6074,7 @@ class EnvironmentTypesImpl {
5770
6074
  }
5771
6075
  /**
5772
6076
  * Lists environment types for the devcenter.
5773
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6077
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5774
6078
  * @param devCenterName The name of the devcenter.
5775
6079
  * @param options The options parameters.
5776
6080
  */
@@ -5783,20 +6087,31 @@ class EnvironmentTypesImpl {
5783
6087
  [Symbol.asyncIterator]() {
5784
6088
  return this;
5785
6089
  },
5786
- byPage: () => {
5787
- return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options);
6090
+ byPage: (settings) => {
6091
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6092
+ throw new Error("maxPageSize is not supported by this operation.");
6093
+ }
6094
+ return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
5788
6095
  }
5789
6096
  };
5790
6097
  }
5791
- listByDevCenterPagingPage(resourceGroupName, devCenterName, options) {
6098
+ listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
5792
6099
  return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
5793
- let result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
5794
- yield yield tslib.__await(result.value || []);
5795
- let continuationToken = result.nextLink;
6100
+ let result;
6101
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6102
+ if (!continuationToken) {
6103
+ result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
6104
+ let page = result.value || [];
6105
+ continuationToken = result.nextLink;
6106
+ setContinuationToken(page, continuationToken);
6107
+ yield yield tslib.__await(page);
6108
+ }
5796
6109
  while (continuationToken) {
5797
6110
  result = yield tslib.__await(this._listByDevCenterNext(resourceGroupName, devCenterName, continuationToken, options));
5798
6111
  continuationToken = result.nextLink;
5799
- yield yield tslib.__await(result.value || []);
6112
+ let page = result.value || [];
6113
+ setContinuationToken(page, continuationToken);
6114
+ yield yield tslib.__await(page);
5800
6115
  }
5801
6116
  });
5802
6117
  }
@@ -5820,7 +6135,7 @@ class EnvironmentTypesImpl {
5820
6135
  }
5821
6136
  /**
5822
6137
  * Lists environment types for the devcenter.
5823
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6138
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5824
6139
  * @param devCenterName The name of the devcenter.
5825
6140
  * @param options The options parameters.
5826
6141
  */
@@ -5829,17 +6144,17 @@ class EnvironmentTypesImpl {
5829
6144
  }
5830
6145
  /**
5831
6146
  * Gets an environment type.
5832
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6147
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5833
6148
  * @param devCenterName The name of the devcenter.
5834
6149
  * @param environmentTypeName The name of the environment type.
5835
6150
  * @param options The options parameters.
5836
6151
  */
5837
6152
  get(resourceGroupName, devCenterName, environmentTypeName, options) {
5838
- return this.client.sendOperationRequest({ resourceGroupName, devCenterName, environmentTypeName, options }, getOperationSpec$6);
6153
+ return this.client.sendOperationRequest({ resourceGroupName, devCenterName, environmentTypeName, options }, getOperationSpec$7);
5839
6154
  }
5840
6155
  /**
5841
6156
  * Creates or updates an environment type.
5842
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6157
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5843
6158
  * @param devCenterName The name of the devcenter.
5844
6159
  * @param environmentTypeName The name of the environment type.
5845
6160
  * @param body Represents an Environment Type.
@@ -5850,7 +6165,7 @@ class EnvironmentTypesImpl {
5850
6165
  }
5851
6166
  /**
5852
6167
  * Partially updates an environment type.
5853
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6168
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5854
6169
  * @param devCenterName The name of the devcenter.
5855
6170
  * @param environmentTypeName The name of the environment type.
5856
6171
  * @param body Updatable environment type properties.
@@ -5861,7 +6176,7 @@ class EnvironmentTypesImpl {
5861
6176
  }
5862
6177
  /**
5863
6178
  * Deletes an environment type.
5864
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5865
6180
  * @param devCenterName The name of the devcenter.
5866
6181
  * @param environmentTypeName The name of the environment type.
5867
6182
  * @param options The options parameters.
@@ -5871,7 +6186,7 @@ class EnvironmentTypesImpl {
5871
6186
  }
5872
6187
  /**
5873
6188
  * ListByDevCenterNext
5874
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6189
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5875
6190
  * @param devCenterName The name of the devcenter.
5876
6191
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
5877
6192
  * @param options The options parameters.
@@ -5881,7 +6196,7 @@ class EnvironmentTypesImpl {
5881
6196
  }
5882
6197
  }
5883
6198
  // Operation Specifications
5884
- const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6199
+ const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5885
6200
  const listByDevCenterOperationSpec$1 = {
5886
6201
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes",
5887
6202
  httpMethod: "GET",
@@ -5901,9 +6216,9 @@ const listByDevCenterOperationSpec$1 = {
5901
6216
  devCenterName
5902
6217
  ],
5903
6218
  headerParameters: [accept],
5904
- serializer: serializer$9
6219
+ serializer: serializer$a
5905
6220
  };
5906
- const getOperationSpec$6 = {
6221
+ const getOperationSpec$7 = {
5907
6222
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}",
5908
6223
  httpMethod: "GET",
5909
6224
  responses: {
@@ -5923,7 +6238,7 @@ const getOperationSpec$6 = {
5923
6238
  environmentTypeName
5924
6239
  ],
5925
6240
  headerParameters: [accept],
5926
- serializer: serializer$9
6241
+ serializer: serializer$a
5927
6242
  };
5928
6243
  const createOrUpdateOperationSpec$5 = {
5929
6244
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}",
@@ -5947,7 +6262,7 @@ const createOrUpdateOperationSpec$5 = {
5947
6262
  ],
5948
6263
  headerParameters: [accept, contentType],
5949
6264
  mediaType: "json",
5950
- serializer: serializer$9
6265
+ serializer: serializer$a
5951
6266
  };
5952
6267
  const updateOperationSpec$5 = {
5953
6268
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}",
@@ -5971,7 +6286,7 @@ const updateOperationSpec$5 = {
5971
6286
  ],
5972
6287
  headerParameters: [accept, contentType],
5973
6288
  mediaType: "json",
5974
- serializer: serializer$9
6289
+ serializer: serializer$a
5975
6290
  };
5976
6291
  const deleteOperationSpec$5 = {
5977
6292
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}",
@@ -5992,7 +6307,7 @@ const deleteOperationSpec$5 = {
5992
6307
  environmentTypeName
5993
6308
  ],
5994
6309
  headerParameters: [accept],
5995
- serializer: serializer$9
6310
+ serializer: serializer$a
5996
6311
  };
5997
6312
  const listByDevCenterNextOperationSpec$1 = {
5998
6313
  path: "{nextLink}",
@@ -6014,6 +6329,182 @@ const listByDevCenterNextOperationSpec$1 = {
6014
6329
  nextLink
6015
6330
  ],
6016
6331
  headerParameters: [accept],
6332
+ serializer: serializer$a
6333
+ };
6334
+
6335
+ /*
6336
+ * Copyright (c) Microsoft Corporation.
6337
+ * Licensed under the MIT License.
6338
+ *
6339
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6340
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
6341
+ */
6342
+ /// <reference lib="esnext.asynciterable" />
6343
+ /** Class containing ProjectAllowedEnvironmentTypes operations. */
6344
+ class ProjectAllowedEnvironmentTypesImpl {
6345
+ /**
6346
+ * Initialize a new instance of the class ProjectAllowedEnvironmentTypes class.
6347
+ * @param client Reference to the service client
6348
+ */
6349
+ constructor(client) {
6350
+ this.client = client;
6351
+ }
6352
+ /**
6353
+ * Lists allowed environment types for a project.
6354
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6355
+ * @param projectName The name of the project.
6356
+ * @param options The options parameters.
6357
+ */
6358
+ list(resourceGroupName, projectName, options) {
6359
+ const iter = this.listPagingAll(resourceGroupName, projectName, options);
6360
+ return {
6361
+ next() {
6362
+ return iter.next();
6363
+ },
6364
+ [Symbol.asyncIterator]() {
6365
+ return this;
6366
+ },
6367
+ byPage: (settings) => {
6368
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6369
+ throw new Error("maxPageSize is not supported by this operation.");
6370
+ }
6371
+ return this.listPagingPage(resourceGroupName, projectName, options, settings);
6372
+ }
6373
+ };
6374
+ }
6375
+ listPagingPage(resourceGroupName, projectName, options, settings) {
6376
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6377
+ let result;
6378
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6379
+ if (!continuationToken) {
6380
+ result = yield tslib.__await(this._list(resourceGroupName, projectName, options));
6381
+ let page = result.value || [];
6382
+ continuationToken = result.nextLink;
6383
+ setContinuationToken(page, continuationToken);
6384
+ yield yield tslib.__await(page);
6385
+ }
6386
+ while (continuationToken) {
6387
+ result = yield tslib.__await(this._listNext(resourceGroupName, projectName, continuationToken, options));
6388
+ continuationToken = result.nextLink;
6389
+ let page = result.value || [];
6390
+ setContinuationToken(page, continuationToken);
6391
+ yield yield tslib.__await(page);
6392
+ }
6393
+ });
6394
+ }
6395
+ listPagingAll(resourceGroupName, projectName, options) {
6396
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
6397
+ var e_1, _a;
6398
+ try {
6399
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, projectName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
6400
+ const page = _c.value;
6401
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
6402
+ }
6403
+ }
6404
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
6405
+ finally {
6406
+ try {
6407
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
6408
+ }
6409
+ finally { if (e_1) throw e_1.error; }
6410
+ }
6411
+ });
6412
+ }
6413
+ /**
6414
+ * Lists allowed environment types for a project.
6415
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6416
+ * @param projectName The name of the project.
6417
+ * @param options The options parameters.
6418
+ */
6419
+ _list(resourceGroupName, projectName, options) {
6420
+ return this.client.sendOperationRequest({ resourceGroupName, projectName, options }, listOperationSpec$2);
6421
+ }
6422
+ /**
6423
+ * Gets an allowed environment type.
6424
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6425
+ * @param projectName The name of the project.
6426
+ * @param environmentTypeName The name of the environment type.
6427
+ * @param options The options parameters.
6428
+ */
6429
+ get(resourceGroupName, projectName, environmentTypeName, options) {
6430
+ return this.client.sendOperationRequest({ resourceGroupName, projectName, environmentTypeName, options }, getOperationSpec$6);
6431
+ }
6432
+ /**
6433
+ * ListNext
6434
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6435
+ * @param projectName The name of the project.
6436
+ * @param nextLink The nextLink from the previous successful call to the List method.
6437
+ * @param options The options parameters.
6438
+ */
6439
+ _listNext(resourceGroupName, projectName, nextLink, options) {
6440
+ return this.client.sendOperationRequest({ resourceGroupName, projectName, nextLink, options }, listNextOperationSpec$2);
6441
+ }
6442
+ }
6443
+ // Operation Specifications
6444
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6445
+ const listOperationSpec$2 = {
6446
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes",
6447
+ httpMethod: "GET",
6448
+ responses: {
6449
+ 200: {
6450
+ bodyMapper: AllowedEnvironmentTypeListResult
6451
+ },
6452
+ default: {
6453
+ bodyMapper: CloudError
6454
+ }
6455
+ },
6456
+ queryParameters: [apiVersion, top],
6457
+ urlParameters: [
6458
+ $host,
6459
+ subscriptionId,
6460
+ resourceGroupName,
6461
+ projectName
6462
+ ],
6463
+ headerParameters: [accept],
6464
+ serializer: serializer$9
6465
+ };
6466
+ const getOperationSpec$6 = {
6467
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}",
6468
+ httpMethod: "GET",
6469
+ responses: {
6470
+ 200: {
6471
+ bodyMapper: AllowedEnvironmentType
6472
+ },
6473
+ default: {
6474
+ bodyMapper: CloudError
6475
+ }
6476
+ },
6477
+ queryParameters: [apiVersion],
6478
+ urlParameters: [
6479
+ $host,
6480
+ subscriptionId,
6481
+ resourceGroupName,
6482
+ projectName,
6483
+ environmentTypeName
6484
+ ],
6485
+ headerParameters: [accept],
6486
+ serializer: serializer$9
6487
+ };
6488
+ const listNextOperationSpec$2 = {
6489
+ path: "{nextLink}",
6490
+ httpMethod: "GET",
6491
+ responses: {
6492
+ 200: {
6493
+ bodyMapper: AllowedEnvironmentTypeListResult
6494
+ },
6495
+ default: {
6496
+ bodyMapper: CloudError
6497
+ }
6498
+ },
6499
+ queryParameters: [apiVersion, top],
6500
+ urlParameters: [
6501
+ $host,
6502
+ subscriptionId,
6503
+ resourceGroupName,
6504
+ nextLink,
6505
+ projectName
6506
+ ],
6507
+ headerParameters: [accept],
6017
6508
  serializer: serializer$9
6018
6509
  };
6019
6510
 
@@ -6036,7 +6527,7 @@ class ProjectEnvironmentTypesImpl {
6036
6527
  }
6037
6528
  /**
6038
6529
  * Lists environment types for a project.
6039
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6530
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6040
6531
  * @param projectName The name of the project.
6041
6532
  * @param options The options parameters.
6042
6533
  */
@@ -6049,20 +6540,31 @@ class ProjectEnvironmentTypesImpl {
6049
6540
  [Symbol.asyncIterator]() {
6050
6541
  return this;
6051
6542
  },
6052
- byPage: () => {
6053
- return this.listPagingPage(resourceGroupName, projectName, options);
6543
+ byPage: (settings) => {
6544
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6545
+ throw new Error("maxPageSize is not supported by this operation.");
6546
+ }
6547
+ return this.listPagingPage(resourceGroupName, projectName, options, settings);
6054
6548
  }
6055
6549
  };
6056
6550
  }
6057
- listPagingPage(resourceGroupName, projectName, options) {
6551
+ listPagingPage(resourceGroupName, projectName, options, settings) {
6058
6552
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6059
- let result = yield tslib.__await(this._list(resourceGroupName, projectName, options));
6060
- yield yield tslib.__await(result.value || []);
6061
- let continuationToken = result.nextLink;
6553
+ let result;
6554
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6555
+ if (!continuationToken) {
6556
+ result = yield tslib.__await(this._list(resourceGroupName, projectName, options));
6557
+ let page = result.value || [];
6558
+ continuationToken = result.nextLink;
6559
+ setContinuationToken(page, continuationToken);
6560
+ yield yield tslib.__await(page);
6561
+ }
6062
6562
  while (continuationToken) {
6063
6563
  result = yield tslib.__await(this._listNext(resourceGroupName, projectName, continuationToken, options));
6064
6564
  continuationToken = result.nextLink;
6065
- yield yield tslib.__await(result.value || []);
6565
+ let page = result.value || [];
6566
+ setContinuationToken(page, continuationToken);
6567
+ yield yield tslib.__await(page);
6066
6568
  }
6067
6569
  });
6068
6570
  }
@@ -6086,7 +6588,7 @@ class ProjectEnvironmentTypesImpl {
6086
6588
  }
6087
6589
  /**
6088
6590
  * Lists environment types for a project.
6089
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6591
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6090
6592
  * @param projectName The name of the project.
6091
6593
  * @param options The options parameters.
6092
6594
  */
@@ -6095,7 +6597,7 @@ class ProjectEnvironmentTypesImpl {
6095
6597
  }
6096
6598
  /**
6097
6599
  * Gets a project environment type.
6098
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6600
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6099
6601
  * @param projectName The name of the project.
6100
6602
  * @param environmentTypeName The name of the environment type.
6101
6603
  * @param options The options parameters.
@@ -6105,7 +6607,7 @@ class ProjectEnvironmentTypesImpl {
6105
6607
  }
6106
6608
  /**
6107
6609
  * Creates or updates a project environment type.
6108
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6610
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6109
6611
  * @param projectName The name of the project.
6110
6612
  * @param environmentTypeName The name of the environment type.
6111
6613
  * @param body Represents a Project Environment Type.
@@ -6116,7 +6618,7 @@ class ProjectEnvironmentTypesImpl {
6116
6618
  }
6117
6619
  /**
6118
6620
  * Partially updates a project environment type.
6119
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6621
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6120
6622
  * @param projectName The name of the project.
6121
6623
  * @param environmentTypeName The name of the environment type.
6122
6624
  * @param body Updatable project environment type properties.
@@ -6127,7 +6629,7 @@ class ProjectEnvironmentTypesImpl {
6127
6629
  }
6128
6630
  /**
6129
6631
  * Deletes a project environment type.
6130
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6632
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6131
6633
  * @param projectName The name of the project.
6132
6634
  * @param environmentTypeName The name of the environment type.
6133
6635
  * @param options The options parameters.
@@ -6137,7 +6639,7 @@ class ProjectEnvironmentTypesImpl {
6137
6639
  }
6138
6640
  /**
6139
6641
  * ListNext
6140
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6642
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6141
6643
  * @param projectName The name of the project.
6142
6644
  * @param nextLink The nextLink from the previous successful call to the List method.
6143
6645
  * @param options The options parameters.
@@ -6302,7 +6804,7 @@ class DevBoxDefinitionsImpl {
6302
6804
  }
6303
6805
  /**
6304
6806
  * List Dev Box definitions for a devcenter.
6305
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6807
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6306
6808
  * @param devCenterName The name of the devcenter.
6307
6809
  * @param options The options parameters.
6308
6810
  */
@@ -6315,20 +6817,31 @@ class DevBoxDefinitionsImpl {
6315
6817
  [Symbol.asyncIterator]() {
6316
6818
  return this;
6317
6819
  },
6318
- byPage: () => {
6319
- return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options);
6820
+ byPage: (settings) => {
6821
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6822
+ throw new Error("maxPageSize is not supported by this operation.");
6823
+ }
6824
+ return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
6320
6825
  }
6321
6826
  };
6322
6827
  }
6323
- listByDevCenterPagingPage(resourceGroupName, devCenterName, options) {
6828
+ listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
6324
6829
  return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
6325
- let result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
6326
- yield yield tslib.__await(result.value || []);
6327
- let continuationToken = result.nextLink;
6830
+ let result;
6831
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6832
+ if (!continuationToken) {
6833
+ result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
6834
+ let page = result.value || [];
6835
+ continuationToken = result.nextLink;
6836
+ setContinuationToken(page, continuationToken);
6837
+ yield yield tslib.__await(page);
6838
+ }
6328
6839
  while (continuationToken) {
6329
6840
  result = yield tslib.__await(this._listByDevCenterNext(resourceGroupName, devCenterName, continuationToken, options));
6330
6841
  continuationToken = result.nextLink;
6331
- yield yield tslib.__await(result.value || []);
6842
+ let page = result.value || [];
6843
+ setContinuationToken(page, continuationToken);
6844
+ yield yield tslib.__await(page);
6332
6845
  }
6333
6846
  });
6334
6847
  }
@@ -6352,7 +6865,7 @@ class DevBoxDefinitionsImpl {
6352
6865
  }
6353
6866
  /**
6354
6867
  * List Dev Box definitions configured for a project.
6355
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6868
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6356
6869
  * @param projectName The name of the project.
6357
6870
  * @param options The options parameters.
6358
6871
  */
@@ -6365,20 +6878,31 @@ class DevBoxDefinitionsImpl {
6365
6878
  [Symbol.asyncIterator]() {
6366
6879
  return this;
6367
6880
  },
6368
- byPage: () => {
6369
- return this.listByProjectPagingPage(resourceGroupName, projectName, options);
6881
+ byPage: (settings) => {
6882
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6883
+ throw new Error("maxPageSize is not supported by this operation.");
6884
+ }
6885
+ return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
6370
6886
  }
6371
6887
  };
6372
6888
  }
6373
- listByProjectPagingPage(resourceGroupName, projectName, options) {
6889
+ listByProjectPagingPage(resourceGroupName, projectName, options, settings) {
6374
6890
  return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
6375
- let result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
6376
- yield yield tslib.__await(result.value || []);
6377
- let continuationToken = result.nextLink;
6891
+ let result;
6892
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6893
+ if (!continuationToken) {
6894
+ result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
6895
+ let page = result.value || [];
6896
+ continuationToken = result.nextLink;
6897
+ setContinuationToken(page, continuationToken);
6898
+ yield yield tslib.__await(page);
6899
+ }
6378
6900
  while (continuationToken) {
6379
6901
  result = yield tslib.__await(this._listByProjectNext(resourceGroupName, projectName, continuationToken, options));
6380
6902
  continuationToken = result.nextLink;
6381
- yield yield tslib.__await(result.value || []);
6903
+ let page = result.value || [];
6904
+ setContinuationToken(page, continuationToken);
6905
+ yield yield tslib.__await(page);
6382
6906
  }
6383
6907
  });
6384
6908
  }
@@ -6402,7 +6926,7 @@ class DevBoxDefinitionsImpl {
6402
6926
  }
6403
6927
  /**
6404
6928
  * List Dev Box definitions for a devcenter.
6405
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6929
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6406
6930
  * @param devCenterName The name of the devcenter.
6407
6931
  * @param options The options parameters.
6408
6932
  */
@@ -6411,7 +6935,7 @@ class DevBoxDefinitionsImpl {
6411
6935
  }
6412
6936
  /**
6413
6937
  * Gets a Dev Box definition
6414
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6938
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6415
6939
  * @param devCenterName The name of the devcenter.
6416
6940
  * @param devBoxDefinitionName The name of the Dev Box definition.
6417
6941
  * @param options The options parameters.
@@ -6421,7 +6945,7 @@ class DevBoxDefinitionsImpl {
6421
6945
  }
6422
6946
  /**
6423
6947
  * Creates or updates a Dev Box definition.
6424
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6948
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6425
6949
  * @param devCenterName The name of the devcenter.
6426
6950
  * @param devBoxDefinitionName The name of the Dev Box definition.
6427
6951
  * @param body Represents a Dev Box definition.
@@ -6463,7 +6987,7 @@ class DevBoxDefinitionsImpl {
6463
6987
  }
6464
6988
  /**
6465
6989
  * Creates or updates a Dev Box definition.
6466
- * @param resourceGroupName Name of the resource group within the Azure subscription.
6990
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6467
6991
  * @param devCenterName The name of the devcenter.
6468
6992
  * @param devBoxDefinitionName The name of the Dev Box definition.
6469
6993
  * @param body Represents a Dev Box definition.
@@ -6477,7 +7001,7 @@ class DevBoxDefinitionsImpl {
6477
7001
  }
6478
7002
  /**
6479
7003
  * Partially updates a Dev Box definition.
6480
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7004
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6481
7005
  * @param devCenterName The name of the devcenter.
6482
7006
  * @param devBoxDefinitionName The name of the Dev Box definition.
6483
7007
  * @param body Represents a Dev Box definition.
@@ -6519,7 +7043,7 @@ class DevBoxDefinitionsImpl {
6519
7043
  }
6520
7044
  /**
6521
7045
  * Partially updates a Dev Box definition.
6522
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7046
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6523
7047
  * @param devCenterName The name of the devcenter.
6524
7048
  * @param devBoxDefinitionName The name of the Dev Box definition.
6525
7049
  * @param body Represents a Dev Box definition.
@@ -6533,7 +7057,7 @@ class DevBoxDefinitionsImpl {
6533
7057
  }
6534
7058
  /**
6535
7059
  * Deletes a Dev Box definition
6536
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7060
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6537
7061
  * @param devCenterName The name of the devcenter.
6538
7062
  * @param devBoxDefinitionName The name of the Dev Box definition.
6539
7063
  * @param options The options parameters.
@@ -6574,7 +7098,7 @@ class DevBoxDefinitionsImpl {
6574
7098
  }
6575
7099
  /**
6576
7100
  * Deletes a Dev Box definition
6577
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7101
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6578
7102
  * @param devCenterName The name of the devcenter.
6579
7103
  * @param devBoxDefinitionName The name of the Dev Box definition.
6580
7104
  * @param options The options parameters.
@@ -6587,7 +7111,7 @@ class DevBoxDefinitionsImpl {
6587
7111
  }
6588
7112
  /**
6589
7113
  * List Dev Box definitions configured for a project.
6590
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7114
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6591
7115
  * @param projectName The name of the project.
6592
7116
  * @param options The options parameters.
6593
7117
  */
@@ -6596,7 +7120,7 @@ class DevBoxDefinitionsImpl {
6596
7120
  }
6597
7121
  /**
6598
7122
  * Gets a Dev Box definition configured for a project
6599
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7123
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6600
7124
  * @param projectName The name of the project.
6601
7125
  * @param devBoxDefinitionName The name of the Dev Box definition.
6602
7126
  * @param options The options parameters.
@@ -6606,7 +7130,7 @@ class DevBoxDefinitionsImpl {
6606
7130
  }
6607
7131
  /**
6608
7132
  * ListByDevCenterNext
6609
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7133
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6610
7134
  * @param devCenterName The name of the devcenter.
6611
7135
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
6612
7136
  * @param options The options parameters.
@@ -6616,7 +7140,7 @@ class DevBoxDefinitionsImpl {
6616
7140
  }
6617
7141
  /**
6618
7142
  * ListByProjectNext
6619
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7143
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6620
7144
  * @param projectName The name of the project.
6621
7145
  * @param nextLink The nextLink from the previous successful call to the ListByProject method.
6622
7146
  * @param options The options parameters.
@@ -6877,20 +7401,31 @@ class OperationsImpl {
6877
7401
  [Symbol.asyncIterator]() {
6878
7402
  return this;
6879
7403
  },
6880
- byPage: () => {
6881
- return this.listPagingPage(options);
7404
+ byPage: (settings) => {
7405
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7406
+ throw new Error("maxPageSize is not supported by this operation.");
7407
+ }
7408
+ return this.listPagingPage(options, settings);
6882
7409
  }
6883
7410
  };
6884
7411
  }
6885
- listPagingPage(options) {
7412
+ listPagingPage(options, settings) {
6886
7413
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6887
- let result = yield tslib.__await(this._list(options));
6888
- yield yield tslib.__await(result.value || []);
6889
- let continuationToken = result.nextLink;
7414
+ let result;
7415
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7416
+ if (!continuationToken) {
7417
+ result = yield tslib.__await(this._list(options));
7418
+ let page = result.value || [];
7419
+ continuationToken = result.nextLink;
7420
+ setContinuationToken(page, continuationToken);
7421
+ yield yield tslib.__await(page);
7422
+ }
6890
7423
  while (continuationToken) {
6891
7424
  result = yield tslib.__await(this._listNext(continuationToken, options));
6892
7425
  continuationToken = result.nextLink;
6893
- yield yield tslib.__await(result.value || []);
7426
+ let page = result.value || [];
7427
+ setContinuationToken(page, continuationToken);
7428
+ yield yield tslib.__await(page);
6894
7429
  }
6895
7430
  });
6896
7431
  }
@@ -7047,20 +7582,31 @@ class UsagesImpl {
7047
7582
  [Symbol.asyncIterator]() {
7048
7583
  return this;
7049
7584
  },
7050
- byPage: () => {
7051
- return this.listByLocationPagingPage(location, options);
7585
+ byPage: (settings) => {
7586
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7587
+ throw new Error("maxPageSize is not supported by this operation.");
7588
+ }
7589
+ return this.listByLocationPagingPage(location, options, settings);
7052
7590
  }
7053
7591
  };
7054
7592
  }
7055
- listByLocationPagingPage(location, options) {
7593
+ listByLocationPagingPage(location, options, settings) {
7056
7594
  return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
7057
- let result = yield tslib.__await(this._listByLocation(location, options));
7058
- yield yield tslib.__await(result.value || []);
7059
- let continuationToken = result.nextLink;
7595
+ let result;
7596
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7597
+ if (!continuationToken) {
7598
+ result = yield tslib.__await(this._listByLocation(location, options));
7599
+ let page = result.value || [];
7600
+ continuationToken = result.nextLink;
7601
+ setContinuationToken(page, continuationToken);
7602
+ yield yield tslib.__await(page);
7603
+ }
7060
7604
  while (continuationToken) {
7061
7605
  result = yield tslib.__await(this._listByLocationNext(location, continuationToken, options));
7062
7606
  continuationToken = result.nextLink;
7063
- yield yield tslib.__await(result.value || []);
7607
+ let page = result.value || [];
7608
+ setContinuationToken(page, continuationToken);
7609
+ yield yield tslib.__await(page);
7064
7610
  }
7065
7611
  });
7066
7612
  }
@@ -7174,20 +7720,31 @@ class SkusImpl {
7174
7720
  [Symbol.asyncIterator]() {
7175
7721
  return this;
7176
7722
  },
7177
- byPage: () => {
7178
- return this.listBySubscriptionPagingPage(options);
7723
+ byPage: (settings) => {
7724
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7725
+ throw new Error("maxPageSize is not supported by this operation.");
7726
+ }
7727
+ return this.listBySubscriptionPagingPage(options, settings);
7179
7728
  }
7180
7729
  };
7181
7730
  }
7182
- listBySubscriptionPagingPage(options) {
7731
+ listBySubscriptionPagingPage(options, settings) {
7183
7732
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
7184
- let result = yield tslib.__await(this._listBySubscription(options));
7185
- yield yield tslib.__await(result.value || []);
7186
- let continuationToken = result.nextLink;
7733
+ let result;
7734
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7735
+ if (!continuationToken) {
7736
+ result = yield tslib.__await(this._listBySubscription(options));
7737
+ let page = result.value || [];
7738
+ continuationToken = result.nextLink;
7739
+ setContinuationToken(page, continuationToken);
7740
+ yield yield tslib.__await(page);
7741
+ }
7187
7742
  while (continuationToken) {
7188
7743
  result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
7189
7744
  continuationToken = result.nextLink;
7190
- yield yield tslib.__await(result.value || []);
7745
+ let page = result.value || [];
7746
+ setContinuationToken(page, continuationToken);
7747
+ yield yield tslib.__await(page);
7191
7748
  }
7192
7749
  });
7193
7750
  }
@@ -7283,7 +7840,7 @@ class PoolsImpl {
7283
7840
  }
7284
7841
  /**
7285
7842
  * Lists pools for a project
7286
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7843
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7287
7844
  * @param projectName The name of the project.
7288
7845
  * @param options The options parameters.
7289
7846
  */
@@ -7296,20 +7853,31 @@ class PoolsImpl {
7296
7853
  [Symbol.asyncIterator]() {
7297
7854
  return this;
7298
7855
  },
7299
- byPage: () => {
7300
- return this.listByProjectPagingPage(resourceGroupName, projectName, options);
7856
+ byPage: (settings) => {
7857
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7858
+ throw new Error("maxPageSize is not supported by this operation.");
7859
+ }
7860
+ return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
7301
7861
  }
7302
7862
  };
7303
7863
  }
7304
- listByProjectPagingPage(resourceGroupName, projectName, options) {
7864
+ listByProjectPagingPage(resourceGroupName, projectName, options, settings) {
7305
7865
  return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
7306
- let result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
7307
- yield yield tslib.__await(result.value || []);
7308
- let continuationToken = result.nextLink;
7866
+ let result;
7867
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7868
+ if (!continuationToken) {
7869
+ result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
7870
+ let page = result.value || [];
7871
+ continuationToken = result.nextLink;
7872
+ setContinuationToken(page, continuationToken);
7873
+ yield yield tslib.__await(page);
7874
+ }
7309
7875
  while (continuationToken) {
7310
7876
  result = yield tslib.__await(this._listByProjectNext(resourceGroupName, projectName, continuationToken, options));
7311
7877
  continuationToken = result.nextLink;
7312
- yield yield tslib.__await(result.value || []);
7878
+ let page = result.value || [];
7879
+ setContinuationToken(page, continuationToken);
7880
+ yield yield tslib.__await(page);
7313
7881
  }
7314
7882
  });
7315
7883
  }
@@ -7333,7 +7901,7 @@ class PoolsImpl {
7333
7901
  }
7334
7902
  /**
7335
7903
  * Lists pools for a project
7336
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7904
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7337
7905
  * @param projectName The name of the project.
7338
7906
  * @param options The options parameters.
7339
7907
  */
@@ -7342,7 +7910,7 @@ class PoolsImpl {
7342
7910
  }
7343
7911
  /**
7344
7912
  * Gets a machine pool
7345
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7913
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7346
7914
  * @param projectName The name of the project.
7347
7915
  * @param poolName Name of the pool.
7348
7916
  * @param options The options parameters.
@@ -7352,7 +7920,7 @@ class PoolsImpl {
7352
7920
  }
7353
7921
  /**
7354
7922
  * Creates or updates a machine pool
7355
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7923
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7356
7924
  * @param projectName The name of the project.
7357
7925
  * @param poolName Name of the pool.
7358
7926
  * @param body Represents a machine pool
@@ -7394,7 +7962,7 @@ class PoolsImpl {
7394
7962
  }
7395
7963
  /**
7396
7964
  * Creates or updates a machine pool
7397
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7965
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7398
7966
  * @param projectName The name of the project.
7399
7967
  * @param poolName Name of the pool.
7400
7968
  * @param body Represents a machine pool
@@ -7408,7 +7976,7 @@ class PoolsImpl {
7408
7976
  }
7409
7977
  /**
7410
7978
  * Partially updates a machine pool
7411
- * @param resourceGroupName Name of the resource group within the Azure subscription.
7979
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7412
7980
  * @param projectName The name of the project.
7413
7981
  * @param poolName Name of the pool.
7414
7982
  * @param body Represents a machine pool
@@ -7450,7 +8018,7 @@ class PoolsImpl {
7450
8018
  }
7451
8019
  /**
7452
8020
  * Partially updates a machine pool
7453
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8021
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7454
8022
  * @param projectName The name of the project.
7455
8023
  * @param poolName Name of the pool.
7456
8024
  * @param body Represents a machine pool
@@ -7464,7 +8032,7 @@ class PoolsImpl {
7464
8032
  }
7465
8033
  /**
7466
8034
  * Deletes a machine pool
7467
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8035
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7468
8036
  * @param projectName The name of the project.
7469
8037
  * @param poolName Name of the pool.
7470
8038
  * @param options The options parameters.
@@ -7505,7 +8073,7 @@ class PoolsImpl {
7505
8073
  }
7506
8074
  /**
7507
8075
  * Deletes a machine pool
7508
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8076
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7509
8077
  * @param projectName The name of the project.
7510
8078
  * @param poolName Name of the pool.
7511
8079
  * @param options The options parameters.
@@ -7518,7 +8086,7 @@ class PoolsImpl {
7518
8086
  }
7519
8087
  /**
7520
8088
  * ListByProjectNext
7521
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8089
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7522
8090
  * @param projectName The name of the project.
7523
8091
  * @param nextLink The nextLink from the previous successful call to the ListByProject method.
7524
8092
  * @param options The options parameters.
@@ -7703,7 +8271,7 @@ class SchedulesImpl {
7703
8271
  }
7704
8272
  /**
7705
8273
  * Lists schedules for a pool
7706
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8274
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7707
8275
  * @param projectName The name of the project.
7708
8276
  * @param poolName Name of the pool.
7709
8277
  * @param options The options parameters.
@@ -7717,20 +8285,31 @@ class SchedulesImpl {
7717
8285
  [Symbol.asyncIterator]() {
7718
8286
  return this;
7719
8287
  },
7720
- byPage: () => {
7721
- return this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options);
8288
+ byPage: (settings) => {
8289
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8290
+ throw new Error("maxPageSize is not supported by this operation.");
8291
+ }
8292
+ return this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings);
7722
8293
  }
7723
8294
  };
7724
8295
  }
7725
- listByPoolPagingPage(resourceGroupName, projectName, poolName, options) {
8296
+ listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings) {
7726
8297
  return tslib.__asyncGenerator(this, arguments, function* listByPoolPagingPage_1() {
7727
- let result = yield tslib.__await(this._listByPool(resourceGroupName, projectName, poolName, options));
7728
- yield yield tslib.__await(result.value || []);
7729
- let continuationToken = result.nextLink;
8298
+ let result;
8299
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8300
+ if (!continuationToken) {
8301
+ result = yield tslib.__await(this._listByPool(resourceGroupName, projectName, poolName, options));
8302
+ let page = result.value || [];
8303
+ continuationToken = result.nextLink;
8304
+ setContinuationToken(page, continuationToken);
8305
+ yield yield tslib.__await(page);
8306
+ }
7730
8307
  while (continuationToken) {
7731
8308
  result = yield tslib.__await(this._listByPoolNext(resourceGroupName, projectName, poolName, continuationToken, options));
7732
8309
  continuationToken = result.nextLink;
7733
- yield yield tslib.__await(result.value || []);
8310
+ let page = result.value || [];
8311
+ setContinuationToken(page, continuationToken);
8312
+ yield yield tslib.__await(page);
7734
8313
  }
7735
8314
  });
7736
8315
  }
@@ -7754,7 +8333,7 @@ class SchedulesImpl {
7754
8333
  }
7755
8334
  /**
7756
8335
  * Lists schedules for a pool
7757
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8336
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7758
8337
  * @param projectName The name of the project.
7759
8338
  * @param poolName Name of the pool.
7760
8339
  * @param options The options parameters.
@@ -7764,7 +8343,7 @@ class SchedulesImpl {
7764
8343
  }
7765
8344
  /**
7766
8345
  * Gets a schedule resource.
7767
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8346
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7768
8347
  * @param projectName The name of the project.
7769
8348
  * @param poolName Name of the pool.
7770
8349
  * @param scheduleName The name of the schedule that uniquely identifies it.
@@ -7775,7 +8354,7 @@ class SchedulesImpl {
7775
8354
  }
7776
8355
  /**
7777
8356
  * Creates or updates a Schedule.
7778
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8357
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7779
8358
  * @param projectName The name of the project.
7780
8359
  * @param poolName Name of the pool.
7781
8360
  * @param scheduleName The name of the schedule that uniquely identifies it.
@@ -7818,7 +8397,7 @@ class SchedulesImpl {
7818
8397
  }
7819
8398
  /**
7820
8399
  * Creates or updates a Schedule.
7821
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8400
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7822
8401
  * @param projectName The name of the project.
7823
8402
  * @param poolName Name of the pool.
7824
8403
  * @param scheduleName The name of the schedule that uniquely identifies it.
@@ -7833,7 +8412,7 @@ class SchedulesImpl {
7833
8412
  }
7834
8413
  /**
7835
8414
  * Partially updates a Scheduled.
7836
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8415
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7837
8416
  * @param projectName The name of the project.
7838
8417
  * @param poolName Name of the pool.
7839
8418
  * @param scheduleName The name of the schedule that uniquely identifies it.
@@ -7876,7 +8455,7 @@ class SchedulesImpl {
7876
8455
  }
7877
8456
  /**
7878
8457
  * Partially updates a Scheduled.
7879
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8458
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7880
8459
  * @param projectName The name of the project.
7881
8460
  * @param poolName Name of the pool.
7882
8461
  * @param scheduleName The name of the schedule that uniquely identifies it.
@@ -7891,7 +8470,7 @@ class SchedulesImpl {
7891
8470
  }
7892
8471
  /**
7893
8472
  * Deletes a Scheduled.
7894
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8473
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7895
8474
  * @param projectName The name of the project.
7896
8475
  * @param poolName Name of the pool.
7897
8476
  * @param scheduleName The name of the schedule that uniquely identifies it.
@@ -7933,7 +8512,7 @@ class SchedulesImpl {
7933
8512
  }
7934
8513
  /**
7935
8514
  * Deletes a Scheduled.
7936
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8515
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7937
8516
  * @param projectName The name of the project.
7938
8517
  * @param poolName Name of the pool.
7939
8518
  * @param scheduleName The name of the schedule that uniquely identifies it.
@@ -7947,7 +8526,7 @@ class SchedulesImpl {
7947
8526
  }
7948
8527
  /**
7949
8528
  * ListByPoolNext
7950
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8529
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7951
8530
  * @param projectName The name of the project.
7952
8531
  * @param poolName Name of the pool.
7953
8532
  * @param nextLink The nextLink from the previous successful call to the ListByPool method.
@@ -8042,10 +8621,18 @@ const updateOperationSpec$1 = {
8042
8621
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}",
8043
8622
  httpMethod: "PATCH",
8044
8623
  responses: {
8045
- 200: {},
8046
- 201: {},
8047
- 202: {},
8048
- 204: {},
8624
+ 200: {
8625
+ bodyMapper: Schedule
8626
+ },
8627
+ 201: {
8628
+ bodyMapper: Schedule
8629
+ },
8630
+ 202: {
8631
+ bodyMapper: Schedule
8632
+ },
8633
+ 204: {
8634
+ bodyMapper: Schedule
8635
+ },
8049
8636
  default: {
8050
8637
  bodyMapper: CloudError
8051
8638
  }
@@ -8142,20 +8729,31 @@ class NetworkConnectionsImpl {
8142
8729
  [Symbol.asyncIterator]() {
8143
8730
  return this;
8144
8731
  },
8145
- byPage: () => {
8146
- return this.listBySubscriptionPagingPage(options);
8732
+ byPage: (settings) => {
8733
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8734
+ throw new Error("maxPageSize is not supported by this operation.");
8735
+ }
8736
+ return this.listBySubscriptionPagingPage(options, settings);
8147
8737
  }
8148
8738
  };
8149
8739
  }
8150
- listBySubscriptionPagingPage(options) {
8740
+ listBySubscriptionPagingPage(options, settings) {
8151
8741
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
8152
- let result = yield tslib.__await(this._listBySubscription(options));
8153
- yield yield tslib.__await(result.value || []);
8154
- let continuationToken = result.nextLink;
8742
+ let result;
8743
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8744
+ if (!continuationToken) {
8745
+ result = yield tslib.__await(this._listBySubscription(options));
8746
+ let page = result.value || [];
8747
+ continuationToken = result.nextLink;
8748
+ setContinuationToken(page, continuationToken);
8749
+ yield yield tslib.__await(page);
8750
+ }
8155
8751
  while (continuationToken) {
8156
8752
  result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
8157
8753
  continuationToken = result.nextLink;
8158
- yield yield tslib.__await(result.value || []);
8754
+ let page = result.value || [];
8755
+ setContinuationToken(page, continuationToken);
8756
+ yield yield tslib.__await(page);
8159
8757
  }
8160
8758
  });
8161
8759
  }
@@ -8179,7 +8777,7 @@ class NetworkConnectionsImpl {
8179
8777
  }
8180
8778
  /**
8181
8779
  * Lists network connections in a resource group
8182
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8780
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8183
8781
  * @param options The options parameters.
8184
8782
  */
8185
8783
  listByResourceGroup(resourceGroupName, options) {
@@ -8191,20 +8789,31 @@ class NetworkConnectionsImpl {
8191
8789
  [Symbol.asyncIterator]() {
8192
8790
  return this;
8193
8791
  },
8194
- byPage: () => {
8195
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
8792
+ byPage: (settings) => {
8793
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8794
+ throw new Error("maxPageSize is not supported by this operation.");
8795
+ }
8796
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
8196
8797
  }
8197
8798
  };
8198
8799
  }
8199
- listByResourceGroupPagingPage(resourceGroupName, options) {
8800
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
8200
8801
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
8201
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
8202
- yield yield tslib.__await(result.value || []);
8203
- let continuationToken = result.nextLink;
8802
+ let result;
8803
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8804
+ if (!continuationToken) {
8805
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
8806
+ let page = result.value || [];
8807
+ continuationToken = result.nextLink;
8808
+ setContinuationToken(page, continuationToken);
8809
+ yield yield tslib.__await(page);
8810
+ }
8204
8811
  while (continuationToken) {
8205
8812
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
8206
8813
  continuationToken = result.nextLink;
8207
- yield yield tslib.__await(result.value || []);
8814
+ let page = result.value || [];
8815
+ setContinuationToken(page, continuationToken);
8816
+ yield yield tslib.__await(page);
8208
8817
  }
8209
8818
  });
8210
8819
  }
@@ -8228,7 +8837,7 @@ class NetworkConnectionsImpl {
8228
8837
  }
8229
8838
  /**
8230
8839
  * Lists health check status details
8231
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8840
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8232
8841
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8233
8842
  * @param options The options parameters.
8234
8843
  */
@@ -8241,20 +8850,31 @@ class NetworkConnectionsImpl {
8241
8850
  [Symbol.asyncIterator]() {
8242
8851
  return this;
8243
8852
  },
8244
- byPage: () => {
8245
- return this.listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options);
8853
+ byPage: (settings) => {
8854
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8855
+ throw new Error("maxPageSize is not supported by this operation.");
8856
+ }
8857
+ return this.listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options, settings);
8246
8858
  }
8247
8859
  };
8248
8860
  }
8249
- listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options) {
8861
+ listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options, settings) {
8250
8862
  return tslib.__asyncGenerator(this, arguments, function* listHealthDetailsPagingPage_1() {
8251
- let result = yield tslib.__await(this._listHealthDetails(resourceGroupName, networkConnectionName, options));
8252
- yield yield tslib.__await(result.value || []);
8253
- let continuationToken = result.nextLink;
8863
+ let result;
8864
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8865
+ if (!continuationToken) {
8866
+ result = yield tslib.__await(this._listHealthDetails(resourceGroupName, networkConnectionName, options));
8867
+ let page = result.value || [];
8868
+ continuationToken = result.nextLink;
8869
+ setContinuationToken(page, continuationToken);
8870
+ yield yield tslib.__await(page);
8871
+ }
8254
8872
  while (continuationToken) {
8255
8873
  result = yield tslib.__await(this._listHealthDetailsNext(resourceGroupName, networkConnectionName, continuationToken, options));
8256
8874
  continuationToken = result.nextLink;
8257
- yield yield tslib.__await(result.value || []);
8875
+ let page = result.value || [];
8876
+ setContinuationToken(page, continuationToken);
8877
+ yield yield tslib.__await(page);
8258
8878
  }
8259
8879
  });
8260
8880
  }
@@ -8285,7 +8905,7 @@ class NetworkConnectionsImpl {
8285
8905
  }
8286
8906
  /**
8287
8907
  * Lists network connections in a resource group
8288
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8908
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8289
8909
  * @param options The options parameters.
8290
8910
  */
8291
8911
  _listByResourceGroup(resourceGroupName, options) {
@@ -8293,7 +8913,7 @@ class NetworkConnectionsImpl {
8293
8913
  }
8294
8914
  /**
8295
8915
  * Gets a network connection resource
8296
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8916
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8297
8917
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8298
8918
  * @param options The options parameters.
8299
8919
  */
@@ -8302,7 +8922,7 @@ class NetworkConnectionsImpl {
8302
8922
  }
8303
8923
  /**
8304
8924
  * Creates or updates a Network Connections resource
8305
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8925
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8306
8926
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8307
8927
  * @param body Represents network connection
8308
8928
  * @param options The options parameters.
@@ -8343,7 +8963,7 @@ class NetworkConnectionsImpl {
8343
8963
  }
8344
8964
  /**
8345
8965
  * Creates or updates a Network Connections resource
8346
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8966
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8347
8967
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8348
8968
  * @param body Represents network connection
8349
8969
  * @param options The options parameters.
@@ -8356,7 +8976,7 @@ class NetworkConnectionsImpl {
8356
8976
  }
8357
8977
  /**
8358
8978
  * Partially updates a Network Connection
8359
- * @param resourceGroupName Name of the resource group within the Azure subscription.
8979
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8360
8980
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8361
8981
  * @param body Represents network connection
8362
8982
  * @param options The options parameters.
@@ -8397,7 +9017,7 @@ class NetworkConnectionsImpl {
8397
9017
  }
8398
9018
  /**
8399
9019
  * Partially updates a Network Connection
8400
- * @param resourceGroupName Name of the resource group within the Azure subscription.
9020
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8401
9021
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8402
9022
  * @param body Represents network connection
8403
9023
  * @param options The options parameters.
@@ -8410,7 +9030,7 @@ class NetworkConnectionsImpl {
8410
9030
  }
8411
9031
  /**
8412
9032
  * Deletes a Network Connections resource
8413
- * @param resourceGroupName Name of the resource group within the Azure subscription.
9033
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8414
9034
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8415
9035
  * @param options The options parameters.
8416
9036
  */
@@ -8450,7 +9070,7 @@ class NetworkConnectionsImpl {
8450
9070
  }
8451
9071
  /**
8452
9072
  * Deletes a Network Connections resource
8453
- * @param resourceGroupName Name of the resource group within the Azure subscription.
9073
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8454
9074
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8455
9075
  * @param options The options parameters.
8456
9076
  */
@@ -8462,7 +9082,7 @@ class NetworkConnectionsImpl {
8462
9082
  }
8463
9083
  /**
8464
9084
  * Lists health check status details
8465
- * @param resourceGroupName Name of the resource group within the Azure subscription.
9085
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8466
9086
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8467
9087
  * @param options The options parameters.
8468
9088
  */
@@ -8471,7 +9091,7 @@ class NetworkConnectionsImpl {
8471
9091
  }
8472
9092
  /**
8473
9093
  * Gets health check status details.
8474
- * @param resourceGroupName Name of the resource group within the Azure subscription.
9094
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8475
9095
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8476
9096
  * @param options The options parameters.
8477
9097
  */
@@ -8481,7 +9101,7 @@ class NetworkConnectionsImpl {
8481
9101
  /**
8482
9102
  * Triggers a new health check run. The execution and health check result can be tracked via the
8483
9103
  * network Connection health check details
8484
- * @param resourceGroupName Name of the resource group within the Azure subscription.
9104
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8485
9105
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8486
9106
  * @param options The options parameters.
8487
9107
  */
@@ -8498,7 +9118,7 @@ class NetworkConnectionsImpl {
8498
9118
  }
8499
9119
  /**
8500
9120
  * ListByResourceGroupNext
8501
- * @param resourceGroupName Name of the resource group within the Azure subscription.
9121
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8502
9122
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
8503
9123
  * @param options The options parameters.
8504
9124
  */
@@ -8507,7 +9127,7 @@ class NetworkConnectionsImpl {
8507
9127
  }
8508
9128
  /**
8509
9129
  * ListHealthDetailsNext
8510
- * @param resourceGroupName Name of the resource group within the Azure subscription.
9130
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8511
9131
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
8512
9132
  * @param nextLink The nextLink from the previous successful call to the ListHealthDetails method.
8513
9133
  * @param options The options parameters.
@@ -8797,12 +9417,11 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
8797
9417
  /**
8798
9418
  * Initializes a new instance of the DevCenterClient class.
8799
9419
  * @param credentials Subscription credentials which uniquely identify client subscription.
8800
- * @param subscriptionId Unique identifier of the Azure subscription. This is a GUID-formatted string
8801
- * (e.g. 00000000-0000-0000-0000-000000000000).
9420
+ * @param subscriptionId The ID of the target subscription.
8802
9421
  * @param options The parameter options
8803
9422
  */
8804
9423
  constructor(credentials, subscriptionId, options) {
8805
- var _a, _b;
9424
+ var _a, _b, _c;
8806
9425
  if (credentials === undefined) {
8807
9426
  throw new Error("'credentials' cannot be null");
8808
9427
  }
@@ -8817,16 +9436,13 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
8817
9436
  requestContentType: "application/json; charset=utf-8",
8818
9437
  credential: credentials
8819
9438
  };
8820
- const packageDetails = `azsdk-js-arm-devcenter/1.0.0-beta.1`;
9439
+ const packageDetails = `azsdk-js-arm-devcenter/1.0.0-beta.3`;
8821
9440
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
8822
9441
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
8823
9442
  : `${packageDetails}`;
8824
- if (!options.credentialScopes) {
8825
- options.credentialScopes = ["https://management.azure.com/.default"];
8826
- }
8827
9443
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
8828
9444
  userAgentPrefix
8829
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
9445
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
8830
9446
  super(optionsWithDefaults);
8831
9447
  let bearerTokenAuthenticationPolicyFound = false;
8832
9448
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
@@ -8843,7 +9459,7 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
8843
9459
  });
8844
9460
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
8845
9461
  credential: credentials,
8846
- scopes: `${optionsWithDefaults.credentialScopes}`,
9462
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
8847
9463
  challengeCallbacks: {
8848
9464
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
8849
9465
  }
@@ -8853,7 +9469,7 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
8853
9469
  this.subscriptionId = subscriptionId;
8854
9470
  // Assigning values to Constant parameters
8855
9471
  this.$host = options.$host || "https://management.azure.com";
8856
- this.apiVersion = options.apiVersion || "2022-08-01-preview";
9472
+ this.apiVersion = options.apiVersion || "2022-10-12-preview";
8857
9473
  this.devCenters = new DevCentersImpl(this);
8858
9474
  this.projects = new ProjectsImpl(this);
8859
9475
  this.attachedNetworks = new AttachedNetworksImpl(this);
@@ -8862,6 +9478,7 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
8862
9478
  this.imageVersions = new ImageVersionsImpl(this);
8863
9479
  this.catalogs = new CatalogsImpl(this);
8864
9480
  this.environmentTypes = new EnvironmentTypesImpl(this);
9481
+ this.projectAllowedEnvironmentTypes = new ProjectAllowedEnvironmentTypesImpl(this);
8865
9482
  this.projectEnvironmentTypes = new ProjectEnvironmentTypesImpl(this);
8866
9483
  this.devBoxDefinitions = new DevBoxDefinitionsImpl(this);
8867
9484
  this.operations = new OperationsImpl(this);
@@ -8903,4 +9520,5 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
8903
9520
  }
8904
9521
 
8905
9522
  exports.DevCenterClient = DevCenterClient;
9523
+ exports.getContinuationToken = getContinuationToken;
8906
9524
  //# sourceMappingURL=index.js.map