@azure/arm-devcenter 1.0.0-beta.2 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +1 -1
  3. package/dist/index.js +1084 -434
  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 +4 -4
  8. package/dist-esm/samples-dev/attachedNetworksCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/attachedNetworksDeleteSample.js +3 -3
  10. package/dist-esm/samples-dev/attachedNetworksDeleteSample.js.map +1 -1
  11. package/dist-esm/samples-dev/attachedNetworksGetByDevCenterSample.js +2 -2
  12. package/dist-esm/samples-dev/attachedNetworksGetByDevCenterSample.js.map +1 -1
  13. package/dist-esm/samples-dev/attachedNetworksGetByProjectSample.js +3 -3
  14. package/dist-esm/samples-dev/attachedNetworksGetByProjectSample.js.map +1 -1
  15. package/dist-esm/samples-dev/attachedNetworksListByDevCenterSample.js +2 -2
  16. package/dist-esm/samples-dev/attachedNetworksListByDevCenterSample.js.map +1 -1
  17. package/dist-esm/samples-dev/attachedNetworksListByProjectSample.js +3 -3
  18. package/dist-esm/samples-dev/attachedNetworksListByProjectSample.js.map +1 -1
  19. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +6 -6
  20. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js.map +1 -1
  21. package/dist-esm/samples-dev/catalogsDeleteSample.js +3 -3
  22. package/dist-esm/samples-dev/catalogsDeleteSample.js.map +1 -1
  23. package/dist-esm/samples-dev/catalogsGetSample.js +3 -3
  24. package/dist-esm/samples-dev/catalogsGetSample.js.map +1 -1
  25. package/dist-esm/samples-dev/catalogsListByDevCenterSample.js +2 -2
  26. package/dist-esm/samples-dev/catalogsListByDevCenterSample.js.map +1 -1
  27. package/dist-esm/samples-dev/catalogsSyncSample.js +3 -3
  28. package/dist-esm/samples-dev/catalogsSyncSample.js.map +1 -1
  29. package/dist-esm/samples-dev/catalogsUpdateSample.js +3 -3
  30. package/dist-esm/samples-dev/catalogsUpdateSample.js.map +1 -1
  31. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +33 -0
  34. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js.map +1 -0
  35. package/dist-esm/samples-dev/devBoxDefinitionsCreateOrUpdateSample.js +3 -2
  36. package/dist-esm/samples-dev/devBoxDefinitionsCreateOrUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/devBoxDefinitionsDeleteSample.js +2 -2
  38. package/dist-esm/samples-dev/devBoxDefinitionsDeleteSample.js.map +1 -1
  39. package/dist-esm/samples-dev/devBoxDefinitionsGetByProjectSample.js +2 -2
  40. package/dist-esm/samples-dev/devBoxDefinitionsGetByProjectSample.js.map +1 -1
  41. package/dist-esm/samples-dev/devBoxDefinitionsGetSample.js +2 -2
  42. package/dist-esm/samples-dev/devBoxDefinitionsGetSample.js.map +1 -1
  43. package/dist-esm/samples-dev/devBoxDefinitionsListByDevCenterSample.js +2 -2
  44. package/dist-esm/samples-dev/devBoxDefinitionsListByDevCenterSample.js.map +1 -1
  45. package/dist-esm/samples-dev/devBoxDefinitionsListByProjectSample.js +2 -2
  46. package/dist-esm/samples-dev/devBoxDefinitionsListByProjectSample.js.map +1 -1
  47. package/dist-esm/samples-dev/devBoxDefinitionsUpdateSample.js +2 -2
  48. package/dist-esm/samples-dev/devBoxDefinitionsUpdateSample.js.map +1 -1
  49. package/dist-esm/samples-dev/devCentersCreateOrUpdateSample.js +4 -4
  50. package/dist-esm/samples-dev/devCentersCreateOrUpdateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/devCentersDeleteSample.js +2 -2
  52. package/dist-esm/samples-dev/devCentersDeleteSample.js.map +1 -1
  53. package/dist-esm/samples-dev/devCentersGetSample.js +2 -2
  54. package/dist-esm/samples-dev/devCentersGetSample.js.map +1 -1
  55. package/dist-esm/samples-dev/devCentersListByResourceGroupSample.js +2 -2
  56. package/dist-esm/samples-dev/devCentersListByResourceGroupSample.js.map +1 -1
  57. package/dist-esm/samples-dev/devCentersListBySubscriptionSample.js +2 -2
  58. package/dist-esm/samples-dev/devCentersListBySubscriptionSample.js.map +1 -1
  59. package/dist-esm/samples-dev/devCentersUpdateSample.js +2 -2
  60. package/dist-esm/samples-dev/devCentersUpdateSample.js.map +1 -1
  61. package/dist-esm/samples-dev/environmentTypesCreateOrUpdateSample.js +3 -3
  62. package/dist-esm/samples-dev/environmentTypesCreateOrUpdateSample.js.map +1 -1
  63. package/dist-esm/samples-dev/environmentTypesDeleteSample.js +3 -3
  64. package/dist-esm/samples-dev/environmentTypesDeleteSample.js.map +1 -1
  65. package/dist-esm/samples-dev/environmentTypesGetSample.js +3 -3
  66. package/dist-esm/samples-dev/environmentTypesGetSample.js.map +1 -1
  67. package/dist-esm/samples-dev/environmentTypesListByDevCenterSample.js +2 -2
  68. package/dist-esm/samples-dev/environmentTypesListByDevCenterSample.js.map +1 -1
  69. package/dist-esm/samples-dev/environmentTypesUpdateSample.js +3 -3
  70. package/dist-esm/samples-dev/environmentTypesUpdateSample.js.map +1 -1
  71. package/dist-esm/samples-dev/galleriesCreateOrUpdateSample.js +4 -4
  72. package/dist-esm/samples-dev/galleriesCreateOrUpdateSample.js.map +1 -1
  73. package/dist-esm/samples-dev/galleriesDeleteSample.js +3 -3
  74. package/dist-esm/samples-dev/galleriesDeleteSample.js.map +1 -1
  75. package/dist-esm/samples-dev/galleriesGetSample.js +3 -3
  76. package/dist-esm/samples-dev/galleriesGetSample.js.map +1 -1
  77. package/dist-esm/samples-dev/galleriesListByDevCenterSample.js +2 -2
  78. package/dist-esm/samples-dev/galleriesListByDevCenterSample.js.map +1 -1
  79. package/dist-esm/samples-dev/imageVersionsGetSample.js +3 -3
  80. package/dist-esm/samples-dev/imageVersionsGetSample.js.map +1 -1
  81. package/dist-esm/samples-dev/imageVersionsListByImageSample.js +2 -2
  82. package/dist-esm/samples-dev/imageVersionsListByImageSample.js.map +1 -1
  83. package/dist-esm/samples-dev/imagesGetSample.js +3 -3
  84. package/dist-esm/samples-dev/imagesGetSample.js.map +1 -1
  85. package/dist-esm/samples-dev/imagesListByDevCenterSample.js +2 -2
  86. package/dist-esm/samples-dev/imagesListByDevCenterSample.js.map +1 -1
  87. package/dist-esm/samples-dev/imagesListByGallerySample.js +2 -2
  88. package/dist-esm/samples-dev/imagesListByGallerySample.js.map +1 -1
  89. package/dist-esm/samples-dev/networkConnectionsCreateOrUpdateSample.js +2 -2
  90. package/dist-esm/samples-dev/networkConnectionsCreateOrUpdateSample.js.map +1 -1
  91. package/dist-esm/samples-dev/networkConnectionsDeleteSample.js +3 -3
  92. package/dist-esm/samples-dev/networkConnectionsDeleteSample.js.map +1 -1
  93. package/dist-esm/samples-dev/networkConnectionsGetHealthDetailsSample.js +3 -3
  94. package/dist-esm/samples-dev/networkConnectionsGetHealthDetailsSample.js.map +1 -1
  95. package/dist-esm/samples-dev/networkConnectionsGetSample.js +2 -2
  96. package/dist-esm/samples-dev/networkConnectionsGetSample.js.map +1 -1
  97. package/dist-esm/samples-dev/networkConnectionsListByResourceGroupSample.js +2 -2
  98. package/dist-esm/samples-dev/networkConnectionsListByResourceGroupSample.js.map +1 -1
  99. package/dist-esm/samples-dev/networkConnectionsListBySubscriptionSample.js +2 -2
  100. package/dist-esm/samples-dev/networkConnectionsListBySubscriptionSample.js.map +1 -1
  101. package/dist-esm/samples-dev/networkConnectionsListHealthDetailsSample.js +2 -2
  102. package/dist-esm/samples-dev/networkConnectionsListHealthDetailsSample.js.map +1 -1
  103. package/dist-esm/samples-dev/networkConnectionsRunHealthChecksSample.js +3 -3
  104. package/dist-esm/samples-dev/networkConnectionsRunHealthChecksSample.js.map +1 -1
  105. package/dist-esm/samples-dev/networkConnectionsUpdateSample.js +2 -2
  106. package/dist-esm/samples-dev/networkConnectionsUpdateSample.js.map +1 -1
  107. package/dist-esm/samples-dev/operationStatusesGetSample.js +4 -4
  108. package/dist-esm/samples-dev/operationStatusesGetSample.js.map +1 -1
  109. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  110. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js +4 -4
  111. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js.map +1 -1
  112. package/dist-esm/samples-dev/poolsDeleteSample.js +3 -3
  113. package/dist-esm/samples-dev/poolsDeleteSample.js.map +1 -1
  114. package/dist-esm/samples-dev/poolsGetSample.js +4 -4
  115. package/dist-esm/samples-dev/poolsGetSample.js.map +1 -1
  116. package/dist-esm/samples-dev/poolsListByProjectSample.js +3 -3
  117. package/dist-esm/samples-dev/poolsListByProjectSample.js.map +1 -1
  118. package/dist-esm/samples-dev/poolsUpdateSample.js +4 -4
  119. package/dist-esm/samples-dev/poolsUpdateSample.js.map +1 -1
  120. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js +3 -3
  121. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js.map +1 -1
  122. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js +2 -2
  123. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js.map +1 -1
  124. package/dist-esm/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.js +3 -3
  125. package/dist-esm/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.js.map +1 -1
  126. package/dist-esm/samples-dev/projectEnvironmentTypesDeleteSample.js +3 -3
  127. package/dist-esm/samples-dev/projectEnvironmentTypesDeleteSample.js.map +1 -1
  128. package/dist-esm/samples-dev/projectEnvironmentTypesGetSample.js +3 -3
  129. package/dist-esm/samples-dev/projectEnvironmentTypesGetSample.js.map +1 -1
  130. package/dist-esm/samples-dev/projectEnvironmentTypesListSample.js +2 -2
  131. package/dist-esm/samples-dev/projectEnvironmentTypesListSample.js.map +1 -1
  132. package/dist-esm/samples-dev/projectEnvironmentTypesUpdateSample.js +3 -3
  133. package/dist-esm/samples-dev/projectEnvironmentTypesUpdateSample.js.map +1 -1
  134. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +4 -4
  135. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js.map +1 -1
  136. package/dist-esm/samples-dev/projectsDeleteSample.js +3 -3
  137. package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -1
  138. package/dist-esm/samples-dev/projectsGetSample.js +3 -3
  139. package/dist-esm/samples-dev/projectsGetSample.js.map +1 -1
  140. package/dist-esm/samples-dev/projectsListByResourceGroupSample.js +2 -2
  141. package/dist-esm/samples-dev/projectsListByResourceGroupSample.js.map +1 -1
  142. package/dist-esm/samples-dev/projectsListBySubscriptionSample.js +2 -2
  143. package/dist-esm/samples-dev/projectsListBySubscriptionSample.js.map +1 -1
  144. package/dist-esm/samples-dev/projectsUpdateSample.js +3 -3
  145. package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -1
  146. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js +2 -2
  147. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js.map +1 -1
  148. package/dist-esm/samples-dev/schedulesDeleteSample.js +2 -2
  149. package/dist-esm/samples-dev/schedulesDeleteSample.js.map +1 -1
  150. package/dist-esm/samples-dev/schedulesGetSample.js +2 -2
  151. package/dist-esm/samples-dev/schedulesGetSample.js.map +1 -1
  152. package/dist-esm/samples-dev/schedulesListByPoolSample.js +2 -2
  153. package/dist-esm/samples-dev/schedulesListByPoolSample.js.map +1 -1
  154. package/dist-esm/samples-dev/schedulesUpdateSample.js +2 -2
  155. package/dist-esm/samples-dev/schedulesUpdateSample.js.map +1 -1
  156. package/dist-esm/samples-dev/skusListBySubscriptionSample.js +2 -2
  157. package/dist-esm/samples-dev/skusListBySubscriptionSample.js.map +1 -1
  158. package/dist-esm/samples-dev/usagesListByLocationSample.js +2 -2
  159. package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -1
  160. package/dist-esm/src/devCenterClient.d.ts +3 -3
  161. package/dist-esm/src/devCenterClient.d.ts.map +1 -1
  162. package/dist-esm/src/devCenterClient.js +8 -11
  163. package/dist-esm/src/devCenterClient.js.map +1 -1
  164. package/dist-esm/src/index.d.ts +1 -0
  165. package/dist-esm/src/index.d.ts.map +1 -1
  166. package/dist-esm/src/index.js +1 -0
  167. package/dist-esm/src/index.js.map +1 -1
  168. package/dist-esm/src/models/index.d.ts +246 -56
  169. package/dist-esm/src/models/index.d.ts.map +1 -1
  170. package/dist-esm/src/models/index.js +64 -0
  171. package/dist-esm/src/models/index.js.map +1 -1
  172. package/dist-esm/src/models/mappers.d.ts +7 -2
  173. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  174. package/dist-esm/src/models/mappers.js +205 -30
  175. package/dist-esm/src/models/mappers.js.map +1 -1
  176. package/dist-esm/src/models/parameters.d.ts +1 -0
  177. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  178. package/dist-esm/src/models/parameters.js +13 -2
  179. package/dist-esm/src/models/parameters.js.map +1 -1
  180. package/dist-esm/src/operations/attachedNetworks.d.ts +12 -12
  181. package/dist-esm/src/operations/attachedNetworks.d.ts.map +1 -1
  182. package/dist-esm/src/operations/attachedNetworks.js +49 -26
  183. package/dist-esm/src/operations/attachedNetworks.js.map +1 -1
  184. package/dist-esm/src/operations/catalogs.d.ts +12 -12
  185. package/dist-esm/src/operations/catalogs.d.ts.map +1 -1
  186. package/dist-esm/src/operations/catalogs.js +32 -20
  187. package/dist-esm/src/operations/catalogs.js.map +1 -1
  188. package/dist-esm/src/operations/checkNameAvailability.d.ts +19 -0
  189. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -0
  190. package/dist-esm/src/operations/checkNameAvailability.js +49 -0
  191. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -0
  192. package/dist-esm/src/operations/devBoxDefinitions.d.ts +14 -14
  193. package/dist-esm/src/operations/devBoxDefinitions.d.ts.map +1 -1
  194. package/dist-esm/src/operations/devBoxDefinitions.js +51 -28
  195. package/dist-esm/src/operations/devBoxDefinitions.js.map +1 -1
  196. package/dist-esm/src/operations/devCenters.d.ts +10 -10
  197. package/dist-esm/src/operations/devCenters.d.ts.map +1 -1
  198. package/dist-esm/src/operations/devCenters.js +47 -24
  199. package/dist-esm/src/operations/devCenters.js.map +1 -1
  200. package/dist-esm/src/operations/environmentTypes.d.ts +7 -7
  201. package/dist-esm/src/operations/environmentTypes.d.ts.map +1 -1
  202. package/dist-esm/src/operations/environmentTypes.js +26 -14
  203. package/dist-esm/src/operations/environmentTypes.js.map +1 -1
  204. package/dist-esm/src/operations/galleries.d.ts +8 -8
  205. package/dist-esm/src/operations/galleries.d.ts.map +1 -1
  206. package/dist-esm/src/operations/galleries.js +27 -15
  207. package/dist-esm/src/operations/galleries.js.map +1 -1
  208. package/dist-esm/src/operations/imageVersions.d.ts +4 -4
  209. package/dist-esm/src/operations/imageVersions.d.ts.map +1 -1
  210. package/dist-esm/src/operations/imageVersions.js +23 -11
  211. package/dist-esm/src/operations/imageVersions.js.map +1 -1
  212. package/dist-esm/src/operations/images.d.ts +7 -7
  213. package/dist-esm/src/operations/images.d.ts.map +1 -1
  214. package/dist-esm/src/operations/images.js +44 -21
  215. package/dist-esm/src/operations/images.js.map +1 -1
  216. package/dist-esm/src/operations/index.d.ts +1 -0
  217. package/dist-esm/src/operations/index.d.ts.map +1 -1
  218. package/dist-esm/src/operations/index.js +1 -0
  219. package/dist-esm/src/operations/index.js.map +1 -1
  220. package/dist-esm/src/operations/networkConnections.d.ts +24 -16
  221. package/dist-esm/src/operations/networkConnections.d.ts.map +1 -1
  222. package/dist-esm/src/operations/networkConnections.js +119 -38
  223. package/dist-esm/src/operations/networkConnections.js.map +1 -1
  224. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  225. package/dist-esm/src/operations/operations.js +19 -7
  226. package/dist-esm/src/operations/operations.js.map +1 -1
  227. package/dist-esm/src/operations/pools.d.ts +10 -10
  228. package/dist-esm/src/operations/pools.d.ts.map +1 -1
  229. package/dist-esm/src/operations/pools.js +29 -17
  230. package/dist-esm/src/operations/pools.js.map +1 -1
  231. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts +4 -4
  232. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts.map +1 -1
  233. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js +23 -11
  234. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js.map +1 -1
  235. package/dist-esm/src/operations/projectEnvironmentTypes.d.ts +7 -7
  236. package/dist-esm/src/operations/projectEnvironmentTypes.d.ts.map +1 -1
  237. package/dist-esm/src/operations/projectEnvironmentTypes.js +26 -14
  238. package/dist-esm/src/operations/projectEnvironmentTypes.js.map +1 -1
  239. package/dist-esm/src/operations/projects.d.ts +10 -10
  240. package/dist-esm/src/operations/projects.d.ts.map +1 -1
  241. package/dist-esm/src/operations/projects.js +47 -24
  242. package/dist-esm/src/operations/projects.js.map +1 -1
  243. package/dist-esm/src/operations/schedules.d.ts +13 -13
  244. package/dist-esm/src/operations/schedules.d.ts.map +1 -1
  245. package/dist-esm/src/operations/schedules.js +41 -21
  246. package/dist-esm/src/operations/schedules.js.map +1 -1
  247. package/dist-esm/src/operations/skus.d.ts.map +1 -1
  248. package/dist-esm/src/operations/skus.js +19 -7
  249. package/dist-esm/src/operations/skus.js.map +1 -1
  250. package/dist-esm/src/operations/usages.d.ts.map +1 -1
  251. package/dist-esm/src/operations/usages.js +19 -7
  252. package/dist-esm/src/operations/usages.js.map +1 -1
  253. package/dist-esm/src/operationsInterfaces/attachedNetworks.d.ts +8 -8
  254. package/dist-esm/src/operationsInterfaces/catalogs.d.ts +10 -10
  255. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +11 -0
  256. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -0
  257. package/dist-esm/src/operationsInterfaces/checkNameAvailability.js +9 -0
  258. package/dist-esm/src/operationsInterfaces/checkNameAvailability.js.map +1 -0
  259. package/dist-esm/src/operationsInterfaces/devBoxDefinitions.d.ts +10 -10
  260. package/dist-esm/src/operationsInterfaces/devCenters.d.ts +8 -8
  261. package/dist-esm/src/operationsInterfaces/environmentTypes.d.ts +5 -5
  262. package/dist-esm/src/operationsInterfaces/galleries.d.ts +6 -6
  263. package/dist-esm/src/operationsInterfaces/imageVersions.d.ts +2 -2
  264. package/dist-esm/src/operationsInterfaces/images.d.ts +3 -3
  265. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  266. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  267. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  268. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  269. package/dist-esm/src/operationsInterfaces/networkConnections.d.ts +20 -12
  270. package/dist-esm/src/operationsInterfaces/networkConnections.d.ts.map +1 -1
  271. package/dist-esm/src/operationsInterfaces/pools.d.ts +8 -8
  272. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.d.ts +2 -2
  273. package/dist-esm/src/operationsInterfaces/projectEnvironmentTypes.d.ts +5 -5
  274. package/dist-esm/src/operationsInterfaces/projects.d.ts +8 -8
  275. package/dist-esm/src/operationsInterfaces/schedules.d.ts +11 -11
  276. package/dist-esm/src/operationsInterfaces/schedules.d.ts.map +1 -1
  277. package/dist-esm/src/pagingHelper.d.ts +13 -0
  278. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  279. package/dist-esm/src/pagingHelper.js +32 -0
  280. package/dist-esm/src/pagingHelper.js.map +1 -0
  281. package/dist-esm/test/devcenter_examples.spec.js +3 -3
  282. package/dist-esm/test/devcenter_examples.spec.js.map +1 -1
  283. package/package.json +6 -5
  284. package/review/arm-devcenter.api.md +153 -38
  285. package/src/devCenterClient.ts +11 -9
  286. package/src/index.ts +1 -0
  287. package/src/models/index.ts +264 -57
  288. package/src/models/mappers.ts +221 -30
  289. package/src/models/parameters.ts +14 -1
  290. package/src/operations/attachedNetworks.ts +64 -37
  291. package/src/operations/catalogs.ts +39 -25
  292. package/src/operations/checkNameAvailability.ts +68 -0
  293. package/src/operations/devBoxDefinitions.ts +66 -39
  294. package/src/operations/devCenters.ts +55 -26
  295. package/src/operations/environmentTypes.ts +33 -19
  296. package/src/operations/galleries.ts +34 -20
  297. package/src/operations/imageVersions.ts +32 -18
  298. package/src/operations/images.ts +59 -32
  299. package/src/operations/index.ts +1 -0
  300. package/src/operations/networkConnections.ts +159 -47
  301. package/src/operations/operations.ts +21 -8
  302. package/src/operations/pools.ts +36 -22
  303. package/src/operations/projectAllowedEnvironmentTypes.ts +30 -12
  304. package/src/operations/projectEnvironmentTypes.ts +33 -15
  305. package/src/operations/projects.ts +55 -26
  306. package/src/operations/schedules.ts +58 -30
  307. package/src/operations/skus.ts +21 -8
  308. package/src/operations/usages.ts +21 -8
  309. package/src/operationsInterfaces/attachedNetworks.ts +8 -8
  310. package/src/operationsInterfaces/catalogs.ts +10 -10
  311. package/src/operationsInterfaces/checkNameAvailability.ts +26 -0
  312. package/src/operationsInterfaces/devBoxDefinitions.ts +10 -10
  313. package/src/operationsInterfaces/devCenters.ts +8 -8
  314. package/src/operationsInterfaces/environmentTypes.ts +5 -5
  315. package/src/operationsInterfaces/galleries.ts +6 -6
  316. package/src/operationsInterfaces/imageVersions.ts +2 -2
  317. package/src/operationsInterfaces/images.ts +3 -3
  318. package/src/operationsInterfaces/index.ts +1 -0
  319. package/src/operationsInterfaces/networkConnections.ts +24 -12
  320. package/src/operationsInterfaces/pools.ts +8 -8
  321. package/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts +2 -2
  322. package/src/operationsInterfaces/projectEnvironmentTypes.ts +5 -5
  323. package/src/operationsInterfaces/projects.ts +8 -8
  324. package/src/operationsInterfaces/schedules.ts +16 -10
  325. package/src/pagingHelper.ts +39 -0
  326. package/types/arm-devcenter.d.ts +400 -167
  327. package/types/tsdoc-metadata.json +1 -1
  328. package/dist-esm/test/sampleTest.d.ts +0 -2
  329. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  330. package/dist-esm/test/sampleTest.js +0 -38
  331. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { DevCenters } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -18,9 +19,9 @@ import {
18
19
  DevCenter,
19
20
  DevCentersListBySubscriptionNextOptionalParams,
20
21
  DevCentersListBySubscriptionOptionalParams,
22
+ DevCentersListBySubscriptionResponse,
21
23
  DevCentersListByResourceGroupNextOptionalParams,
22
24
  DevCentersListByResourceGroupOptionalParams,
23
- DevCentersListBySubscriptionResponse,
24
25
  DevCentersListByResourceGroupResponse,
25
26
  DevCentersGetOptionalParams,
26
27
  DevCentersGetResponse,
@@ -62,22 +63,34 @@ export class DevCentersImpl implements DevCenters {
62
63
  [Symbol.asyncIterator]() {
63
64
  return this;
64
65
  },
65
- byPage: () => {
66
- return this.listBySubscriptionPagingPage(options);
66
+ byPage: (settings?: PageSettings) => {
67
+ if (settings?.maxPageSize) {
68
+ throw new Error("maxPageSize is not supported by this operation.");
69
+ }
70
+ return this.listBySubscriptionPagingPage(options, settings);
67
71
  }
68
72
  };
69
73
  }
70
74
 
71
75
  private async *listBySubscriptionPagingPage(
72
- options?: DevCentersListBySubscriptionOptionalParams
76
+ options?: DevCentersListBySubscriptionOptionalParams,
77
+ settings?: PageSettings
73
78
  ): AsyncIterableIterator<DevCenter[]> {
74
- let result = await this._listBySubscription(options);
75
- yield result.value || [];
76
- let continuationToken = result.nextLink;
79
+ let result: DevCentersListBySubscriptionResponse;
80
+ let continuationToken = settings?.continuationToken;
81
+ if (!continuationToken) {
82
+ result = await this._listBySubscription(options);
83
+ let page = result.value || [];
84
+ continuationToken = result.nextLink;
85
+ setContinuationToken(page, continuationToken);
86
+ yield page;
87
+ }
77
88
  while (continuationToken) {
78
89
  result = await this._listBySubscriptionNext(continuationToken, options);
79
90
  continuationToken = result.nextLink;
80
- yield result.value || [];
91
+ let page = result.value || [];
92
+ setContinuationToken(page, continuationToken);
93
+ yield page;
81
94
  }
82
95
  }
83
96
 
@@ -91,7 +104,7 @@ export class DevCentersImpl implements DevCenters {
91
104
 
92
105
  /**
93
106
  * Lists all devcenters in a resource group.
94
- * @param resourceGroupName Name of the resource group within the Azure subscription.
107
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
95
108
  * @param options The options parameters.
96
109
  */
97
110
  public listByResourceGroup(
@@ -106,19 +119,33 @@ export class DevCentersImpl implements DevCenters {
106
119
  [Symbol.asyncIterator]() {
107
120
  return this;
108
121
  },
109
- byPage: () => {
110
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
122
+ byPage: (settings?: PageSettings) => {
123
+ if (settings?.maxPageSize) {
124
+ throw new Error("maxPageSize is not supported by this operation.");
125
+ }
126
+ return this.listByResourceGroupPagingPage(
127
+ resourceGroupName,
128
+ options,
129
+ settings
130
+ );
111
131
  }
112
132
  };
113
133
  }
114
134
 
115
135
  private async *listByResourceGroupPagingPage(
116
136
  resourceGroupName: string,
117
- options?: DevCentersListByResourceGroupOptionalParams
137
+ options?: DevCentersListByResourceGroupOptionalParams,
138
+ settings?: PageSettings
118
139
  ): AsyncIterableIterator<DevCenter[]> {
119
- let result = await this._listByResourceGroup(resourceGroupName, options);
120
- yield result.value || [];
121
- let continuationToken = result.nextLink;
140
+ let result: DevCentersListByResourceGroupResponse;
141
+ let continuationToken = settings?.continuationToken;
142
+ if (!continuationToken) {
143
+ result = await this._listByResourceGroup(resourceGroupName, options);
144
+ let page = result.value || [];
145
+ continuationToken = result.nextLink;
146
+ setContinuationToken(page, continuationToken);
147
+ yield page;
148
+ }
122
149
  while (continuationToken) {
123
150
  result = await this._listByResourceGroupNext(
124
151
  resourceGroupName,
@@ -126,7 +153,9 @@ export class DevCentersImpl implements DevCenters {
126
153
  options
127
154
  );
128
155
  continuationToken = result.nextLink;
129
- yield result.value || [];
156
+ let page = result.value || [];
157
+ setContinuationToken(page, continuationToken);
158
+ yield page;
130
159
  }
131
160
  }
132
161
 
@@ -157,7 +186,7 @@ export class DevCentersImpl implements DevCenters {
157
186
 
158
187
  /**
159
188
  * Lists all devcenters in a resource group.
160
- * @param resourceGroupName Name of the resource group within the Azure subscription.
189
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
161
190
  * @param options The options parameters.
162
191
  */
163
192
  private _listByResourceGroup(
@@ -172,7 +201,7 @@ export class DevCentersImpl implements DevCenters {
172
201
 
173
202
  /**
174
203
  * Gets a devcenter.
175
- * @param resourceGroupName Name of the resource group within the Azure subscription.
204
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
176
205
  * @param devCenterName The name of the devcenter.
177
206
  * @param options The options parameters.
178
207
  */
@@ -189,7 +218,7 @@ export class DevCentersImpl implements DevCenters {
189
218
 
190
219
  /**
191
220
  * Creates or updates a devcenter resource
192
- * @param resourceGroupName Name of the resource group within the Azure subscription.
221
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
193
222
  * @param devCenterName The name of the devcenter.
194
223
  * @param body Represents a devcenter.
195
224
  * @param options The options parameters.
@@ -260,7 +289,7 @@ export class DevCentersImpl implements DevCenters {
260
289
 
261
290
  /**
262
291
  * Creates or updates a devcenter resource
263
- * @param resourceGroupName Name of the resource group within the Azure subscription.
292
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
264
293
  * @param devCenterName The name of the devcenter.
265
294
  * @param body Represents a devcenter.
266
295
  * @param options The options parameters.
@@ -282,7 +311,7 @@ export class DevCentersImpl implements DevCenters {
282
311
 
283
312
  /**
284
313
  * Partially updates a devcenter.
285
- * @param resourceGroupName Name of the resource group within the Azure subscription.
314
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
286
315
  * @param devCenterName The name of the devcenter.
287
316
  * @param body Updatable devcenter properties.
288
317
  * @param options The options parameters.
@@ -353,7 +382,7 @@ export class DevCentersImpl implements DevCenters {
353
382
 
354
383
  /**
355
384
  * Partially updates a devcenter.
356
- * @param resourceGroupName Name of the resource group within the Azure subscription.
385
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
357
386
  * @param devCenterName The name of the devcenter.
358
387
  * @param body Updatable devcenter properties.
359
388
  * @param options The options parameters.
@@ -375,7 +404,7 @@ export class DevCentersImpl implements DevCenters {
375
404
 
376
405
  /**
377
406
  * Deletes a devcenter
378
- * @param resourceGroupName Name of the resource group within the Azure subscription.
407
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
379
408
  * @param devCenterName The name of the devcenter.
380
409
  * @param options The options parameters.
381
410
  */
@@ -439,7 +468,7 @@ export class DevCentersImpl implements DevCenters {
439
468
 
440
469
  /**
441
470
  * Deletes a devcenter
442
- * @param resourceGroupName Name of the resource group within the Azure subscription.
471
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
443
472
  * @param devCenterName The name of the devcenter.
444
473
  * @param options The options parameters.
445
474
  */
@@ -473,7 +502,7 @@ export class DevCentersImpl implements DevCenters {
473
502
 
474
503
  /**
475
504
  * ListByResourceGroupNext
476
- * @param resourceGroupName Name of the resource group within the Azure subscription.
505
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
477
506
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
478
507
  * @param options The options parameters.
479
508
  */
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { EnvironmentTypes } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -43,7 +44,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
43
44
 
44
45
  /**
45
46
  * Lists environment types for the devcenter.
46
- * @param resourceGroupName Name of the resource group within the Azure subscription.
47
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
47
48
  * @param devCenterName The name of the devcenter.
48
49
  * @param options The options parameters.
49
50
  */
@@ -64,11 +65,15 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
64
65
  [Symbol.asyncIterator]() {
65
66
  return this;
66
67
  },
67
- byPage: () => {
68
+ byPage: (settings?: PageSettings) => {
69
+ if (settings?.maxPageSize) {
70
+ throw new Error("maxPageSize is not supported by this operation.");
71
+ }
68
72
  return this.listByDevCenterPagingPage(
69
73
  resourceGroupName,
70
74
  devCenterName,
71
- options
75
+ options,
76
+ settings
72
77
  );
73
78
  }
74
79
  };
@@ -77,15 +82,22 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
77
82
  private async *listByDevCenterPagingPage(
78
83
  resourceGroupName: string,
79
84
  devCenterName: string,
80
- options?: EnvironmentTypesListByDevCenterOptionalParams
85
+ options?: EnvironmentTypesListByDevCenterOptionalParams,
86
+ settings?: PageSettings
81
87
  ): AsyncIterableIterator<EnvironmentType[]> {
82
- let result = await this._listByDevCenter(
83
- resourceGroupName,
84
- devCenterName,
85
- options
86
- );
87
- yield result.value || [];
88
- let continuationToken = result.nextLink;
88
+ let result: EnvironmentTypesListByDevCenterResponse;
89
+ let continuationToken = settings?.continuationToken;
90
+ if (!continuationToken) {
91
+ result = await this._listByDevCenter(
92
+ resourceGroupName,
93
+ devCenterName,
94
+ options
95
+ );
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
89
101
  while (continuationToken) {
90
102
  result = await this._listByDevCenterNext(
91
103
  resourceGroupName,
@@ -94,7 +106,9 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
94
106
  options
95
107
  );
96
108
  continuationToken = result.nextLink;
97
- yield result.value || [];
109
+ let page = result.value || [];
110
+ setContinuationToken(page, continuationToken);
111
+ yield page;
98
112
  }
99
113
  }
100
114
 
@@ -114,7 +128,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
114
128
 
115
129
  /**
116
130
  * Lists environment types for the devcenter.
117
- * @param resourceGroupName Name of the resource group within the Azure subscription.
131
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
118
132
  * @param devCenterName The name of the devcenter.
119
133
  * @param options The options parameters.
120
134
  */
@@ -131,7 +145,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
131
145
 
132
146
  /**
133
147
  * Gets an environment type.
134
- * @param resourceGroupName Name of the resource group within the Azure subscription.
148
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
135
149
  * @param devCenterName The name of the devcenter.
136
150
  * @param environmentTypeName The name of the environment type.
137
151
  * @param options The options parameters.
@@ -150,7 +164,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
150
164
 
151
165
  /**
152
166
  * Creates or updates an environment type.
153
- * @param resourceGroupName Name of the resource group within the Azure subscription.
167
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
154
168
  * @param devCenterName The name of the devcenter.
155
169
  * @param environmentTypeName The name of the environment type.
156
170
  * @param body Represents an Environment Type.
@@ -171,7 +185,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
171
185
 
172
186
  /**
173
187
  * Partially updates an environment type.
174
- * @param resourceGroupName Name of the resource group within the Azure subscription.
188
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
175
189
  * @param devCenterName The name of the devcenter.
176
190
  * @param environmentTypeName The name of the environment type.
177
191
  * @param body Updatable environment type properties.
@@ -192,7 +206,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
192
206
 
193
207
  /**
194
208
  * Deletes an environment type.
195
- * @param resourceGroupName Name of the resource group within the Azure subscription.
209
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
196
210
  * @param devCenterName The name of the devcenter.
197
211
  * @param environmentTypeName The name of the environment type.
198
212
  * @param options The options parameters.
@@ -211,7 +225,7 @@ export class EnvironmentTypesImpl implements EnvironmentTypes {
211
225
 
212
226
  /**
213
227
  * ListByDevCenterNext
214
- * @param resourceGroupName Name of the resource group within the Azure subscription.
228
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
215
229
  * @param devCenterName The name of the devcenter.
216
230
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
217
231
  * @param options The options parameters.
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Galleries } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -42,7 +43,7 @@ export class GalleriesImpl implements Galleries {
42
43
 
43
44
  /**
44
45
  * Lists galleries for a devcenter.
45
- * @param resourceGroupName Name of the resource group within the Azure subscription.
46
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
46
47
  * @param devCenterName The name of the devcenter.
47
48
  * @param options The options parameters.
48
49
  */
@@ -63,11 +64,15 @@ export class GalleriesImpl implements Galleries {
63
64
  [Symbol.asyncIterator]() {
64
65
  return this;
65
66
  },
66
- byPage: () => {
67
+ byPage: (settings?: PageSettings) => {
68
+ if (settings?.maxPageSize) {
69
+ throw new Error("maxPageSize is not supported by this operation.");
70
+ }
67
71
  return this.listByDevCenterPagingPage(
68
72
  resourceGroupName,
69
73
  devCenterName,
70
- options
74
+ options,
75
+ settings
71
76
  );
72
77
  }
73
78
  };
@@ -76,15 +81,22 @@ export class GalleriesImpl implements Galleries {
76
81
  private async *listByDevCenterPagingPage(
77
82
  resourceGroupName: string,
78
83
  devCenterName: string,
79
- options?: GalleriesListByDevCenterOptionalParams
84
+ options?: GalleriesListByDevCenterOptionalParams,
85
+ settings?: PageSettings
80
86
  ): AsyncIterableIterator<Gallery[]> {
81
- let result = await this._listByDevCenter(
82
- resourceGroupName,
83
- devCenterName,
84
- options
85
- );
86
- yield result.value || [];
87
- let continuationToken = result.nextLink;
87
+ let result: GalleriesListByDevCenterResponse;
88
+ let continuationToken = settings?.continuationToken;
89
+ if (!continuationToken) {
90
+ result = await this._listByDevCenter(
91
+ resourceGroupName,
92
+ devCenterName,
93
+ options
94
+ );
95
+ let page = result.value || [];
96
+ continuationToken = result.nextLink;
97
+ setContinuationToken(page, continuationToken);
98
+ yield page;
99
+ }
88
100
  while (continuationToken) {
89
101
  result = await this._listByDevCenterNext(
90
102
  resourceGroupName,
@@ -93,7 +105,9 @@ export class GalleriesImpl implements Galleries {
93
105
  options
94
106
  );
95
107
  continuationToken = result.nextLink;
96
- yield result.value || [];
108
+ let page = result.value || [];
109
+ setContinuationToken(page, continuationToken);
110
+ yield page;
97
111
  }
98
112
  }
99
113
 
@@ -113,7 +127,7 @@ export class GalleriesImpl implements Galleries {
113
127
 
114
128
  /**
115
129
  * Lists galleries for a devcenter.
116
- * @param resourceGroupName Name of the resource group within the Azure subscription.
130
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
117
131
  * @param devCenterName The name of the devcenter.
118
132
  * @param options The options parameters.
119
133
  */
@@ -130,7 +144,7 @@ export class GalleriesImpl implements Galleries {
130
144
 
131
145
  /**
132
146
  * Gets a gallery
133
- * @param resourceGroupName Name of the resource group within the Azure subscription.
147
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
134
148
  * @param devCenterName The name of the devcenter.
135
149
  * @param galleryName The name of the gallery.
136
150
  * @param options The options parameters.
@@ -149,7 +163,7 @@ export class GalleriesImpl implements Galleries {
149
163
 
150
164
  /**
151
165
  * Creates or updates a gallery.
152
- * @param resourceGroupName Name of the resource group within the Azure subscription.
166
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
153
167
  * @param devCenterName The name of the devcenter.
154
168
  * @param galleryName The name of the gallery.
155
169
  * @param body Represents a gallery.
@@ -222,7 +236,7 @@ export class GalleriesImpl implements Galleries {
222
236
 
223
237
  /**
224
238
  * Creates or updates a gallery.
225
- * @param resourceGroupName Name of the resource group within the Azure subscription.
239
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
226
240
  * @param devCenterName The name of the devcenter.
227
241
  * @param galleryName The name of the gallery.
228
242
  * @param body Represents a gallery.
@@ -247,7 +261,7 @@ export class GalleriesImpl implements Galleries {
247
261
 
248
262
  /**
249
263
  * Deletes a gallery resource.
250
- * @param resourceGroupName Name of the resource group within the Azure subscription.
264
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
251
265
  * @param devCenterName The name of the devcenter.
252
266
  * @param galleryName The name of the gallery.
253
267
  * @param options The options parameters.
@@ -313,7 +327,7 @@ export class GalleriesImpl implements Galleries {
313
327
 
314
328
  /**
315
329
  * Deletes a gallery resource.
316
- * @param resourceGroupName Name of the resource group within the Azure subscription.
330
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
317
331
  * @param devCenterName The name of the devcenter.
318
332
  * @param galleryName The name of the gallery.
319
333
  * @param options The options parameters.
@@ -335,7 +349,7 @@ export class GalleriesImpl implements Galleries {
335
349
 
336
350
  /**
337
351
  * ListByDevCenterNext
338
- * @param resourceGroupName Name of the resource group within the Azure subscription.
352
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
339
353
  * @param devCenterName The name of the devcenter.
340
354
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
341
355
  * @param options The options parameters.
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { ImageVersions } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -37,7 +38,7 @@ export class ImageVersionsImpl implements ImageVersions {
37
38
 
38
39
  /**
39
40
  * Lists versions for an image.
40
- * @param resourceGroupName Name of the resource group within the Azure subscription.
41
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
42
  * @param devCenterName The name of the devcenter.
42
43
  * @param galleryName The name of the gallery.
43
44
  * @param imageName The name of the image.
@@ -64,13 +65,17 @@ export class ImageVersionsImpl implements ImageVersions {
64
65
  [Symbol.asyncIterator]() {
65
66
  return this;
66
67
  },
67
- byPage: () => {
68
+ byPage: (settings?: PageSettings) => {
69
+ if (settings?.maxPageSize) {
70
+ throw new Error("maxPageSize is not supported by this operation.");
71
+ }
68
72
  return this.listByImagePagingPage(
69
73
  resourceGroupName,
70
74
  devCenterName,
71
75
  galleryName,
72
76
  imageName,
73
- options
77
+ options,
78
+ settings
74
79
  );
75
80
  }
76
81
  };
@@ -81,17 +86,24 @@ export class ImageVersionsImpl implements ImageVersions {
81
86
  devCenterName: string,
82
87
  galleryName: string,
83
88
  imageName: string,
84
- options?: ImageVersionsListByImageOptionalParams
89
+ options?: ImageVersionsListByImageOptionalParams,
90
+ settings?: PageSettings
85
91
  ): AsyncIterableIterator<ImageVersion[]> {
86
- let result = await this._listByImage(
87
- resourceGroupName,
88
- devCenterName,
89
- galleryName,
90
- imageName,
91
- options
92
- );
93
- yield result.value || [];
94
- let continuationToken = result.nextLink;
92
+ let result: ImageVersionsListByImageResponse;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByImage(
96
+ resourceGroupName,
97
+ devCenterName,
98
+ galleryName,
99
+ imageName,
100
+ options
101
+ );
102
+ let page = result.value || [];
103
+ continuationToken = result.nextLink;
104
+ setContinuationToken(page, continuationToken);
105
+ yield page;
106
+ }
95
107
  while (continuationToken) {
96
108
  result = await this._listByImageNext(
97
109
  resourceGroupName,
@@ -102,7 +114,9 @@ export class ImageVersionsImpl implements ImageVersions {
102
114
  options
103
115
  );
104
116
  continuationToken = result.nextLink;
105
- yield result.value || [];
117
+ let page = result.value || [];
118
+ setContinuationToken(page, continuationToken);
119
+ yield page;
106
120
  }
107
121
  }
108
122
 
@@ -126,7 +140,7 @@ export class ImageVersionsImpl implements ImageVersions {
126
140
 
127
141
  /**
128
142
  * Lists versions for an image.
129
- * @param resourceGroupName Name of the resource group within the Azure subscription.
143
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
130
144
  * @param devCenterName The name of the devcenter.
131
145
  * @param galleryName The name of the gallery.
132
146
  * @param imageName The name of the image.
@@ -147,7 +161,7 @@ export class ImageVersionsImpl implements ImageVersions {
147
161
 
148
162
  /**
149
163
  * Gets an image version.
150
- * @param resourceGroupName Name of the resource group within the Azure subscription.
164
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
151
165
  * @param devCenterName The name of the devcenter.
152
166
  * @param galleryName The name of the gallery.
153
167
  * @param imageName The name of the image.
@@ -177,7 +191,7 @@ export class ImageVersionsImpl implements ImageVersions {
177
191
 
178
192
  /**
179
193
  * ListByImageNext
180
- * @param resourceGroupName Name of the resource group within the Azure subscription.
194
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
181
195
  * @param devCenterName The name of the devcenter.
182
196
  * @param galleryName The name of the gallery.
183
197
  * @param imageName The name of the image.