@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 { Images } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,9 +17,9 @@ import {
16
17
  Image,
17
18
  ImagesListByDevCenterNextOptionalParams,
18
19
  ImagesListByDevCenterOptionalParams,
20
+ ImagesListByDevCenterResponse,
19
21
  ImagesListByGalleryNextOptionalParams,
20
22
  ImagesListByGalleryOptionalParams,
21
- ImagesListByDevCenterResponse,
22
23
  ImagesListByGalleryResponse,
23
24
  ImagesGetOptionalParams,
24
25
  ImagesGetResponse,
@@ -41,7 +42,7 @@ export class ImagesImpl implements Images {
41
42
 
42
43
  /**
43
44
  * Lists images for a devcenter.
44
- * @param resourceGroupName Name of the resource group within the Azure subscription.
45
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
45
46
  * @param devCenterName The name of the devcenter.
46
47
  * @param options The options parameters.
47
48
  */
@@ -62,11 +63,15 @@ export class ImagesImpl implements Images {
62
63
  [Symbol.asyncIterator]() {
63
64
  return this;
64
65
  },
65
- byPage: () => {
66
+ byPage: (settings?: PageSettings) => {
67
+ if (settings?.maxPageSize) {
68
+ throw new Error("maxPageSize is not supported by this operation.");
69
+ }
66
70
  return this.listByDevCenterPagingPage(
67
71
  resourceGroupName,
68
72
  devCenterName,
69
- options
73
+ options,
74
+ settings
70
75
  );
71
76
  }
72
77
  };
@@ -75,15 +80,22 @@ export class ImagesImpl implements Images {
75
80
  private async *listByDevCenterPagingPage(
76
81
  resourceGroupName: string,
77
82
  devCenterName: string,
78
- options?: ImagesListByDevCenterOptionalParams
83
+ options?: ImagesListByDevCenterOptionalParams,
84
+ settings?: PageSettings
79
85
  ): AsyncIterableIterator<Image[]> {
80
- let result = await this._listByDevCenter(
81
- resourceGroupName,
82
- devCenterName,
83
- options
84
- );
85
- yield result.value || [];
86
- let continuationToken = result.nextLink;
86
+ let result: ImagesListByDevCenterResponse;
87
+ let continuationToken = settings?.continuationToken;
88
+ if (!continuationToken) {
89
+ result = await this._listByDevCenter(
90
+ resourceGroupName,
91
+ devCenterName,
92
+ options
93
+ );
94
+ let page = result.value || [];
95
+ continuationToken = result.nextLink;
96
+ setContinuationToken(page, continuationToken);
97
+ yield page;
98
+ }
87
99
  while (continuationToken) {
88
100
  result = await this._listByDevCenterNext(
89
101
  resourceGroupName,
@@ -92,7 +104,9 @@ export class ImagesImpl implements Images {
92
104
  options
93
105
  );
94
106
  continuationToken = result.nextLink;
95
- yield result.value || [];
107
+ let page = result.value || [];
108
+ setContinuationToken(page, continuationToken);
109
+ yield page;
96
110
  }
97
111
  }
98
112
 
@@ -112,7 +126,7 @@ export class ImagesImpl implements Images {
112
126
 
113
127
  /**
114
128
  * Lists images for a gallery.
115
- * @param resourceGroupName Name of the resource group within the Azure subscription.
129
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
116
130
  * @param devCenterName The name of the devcenter.
117
131
  * @param galleryName The name of the gallery.
118
132
  * @param options The options parameters.
@@ -136,12 +150,16 @@ export class ImagesImpl implements Images {
136
150
  [Symbol.asyncIterator]() {
137
151
  return this;
138
152
  },
139
- byPage: () => {
153
+ byPage: (settings?: PageSettings) => {
154
+ if (settings?.maxPageSize) {
155
+ throw new Error("maxPageSize is not supported by this operation.");
156
+ }
140
157
  return this.listByGalleryPagingPage(
141
158
  resourceGroupName,
142
159
  devCenterName,
143
160
  galleryName,
144
- options
161
+ options,
162
+ settings
145
163
  );
146
164
  }
147
165
  };
@@ -151,16 +169,23 @@ export class ImagesImpl implements Images {
151
169
  resourceGroupName: string,
152
170
  devCenterName: string,
153
171
  galleryName: string,
154
- options?: ImagesListByGalleryOptionalParams
172
+ options?: ImagesListByGalleryOptionalParams,
173
+ settings?: PageSettings
155
174
  ): AsyncIterableIterator<Image[]> {
156
- let result = await this._listByGallery(
157
- resourceGroupName,
158
- devCenterName,
159
- galleryName,
160
- options
161
- );
162
- yield result.value || [];
163
- let continuationToken = result.nextLink;
175
+ let result: ImagesListByGalleryResponse;
176
+ let continuationToken = settings?.continuationToken;
177
+ if (!continuationToken) {
178
+ result = await this._listByGallery(
179
+ resourceGroupName,
180
+ devCenterName,
181
+ galleryName,
182
+ options
183
+ );
184
+ let page = result.value || [];
185
+ continuationToken = result.nextLink;
186
+ setContinuationToken(page, continuationToken);
187
+ yield page;
188
+ }
164
189
  while (continuationToken) {
165
190
  result = await this._listByGalleryNext(
166
191
  resourceGroupName,
@@ -170,7 +195,9 @@ export class ImagesImpl implements Images {
170
195
  options
171
196
  );
172
197
  continuationToken = result.nextLink;
173
- yield result.value || [];
198
+ let page = result.value || [];
199
+ setContinuationToken(page, continuationToken);
200
+ yield page;
174
201
  }
175
202
  }
176
203
 
@@ -192,7 +219,7 @@ export class ImagesImpl implements Images {
192
219
 
193
220
  /**
194
221
  * Lists images for a devcenter.
195
- * @param resourceGroupName Name of the resource group within the Azure subscription.
222
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
196
223
  * @param devCenterName The name of the devcenter.
197
224
  * @param options The options parameters.
198
225
  */
@@ -209,7 +236,7 @@ export class ImagesImpl implements Images {
209
236
 
210
237
  /**
211
238
  * Lists images for a gallery.
212
- * @param resourceGroupName Name of the resource group within the Azure subscription.
239
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
213
240
  * @param devCenterName The name of the devcenter.
214
241
  * @param galleryName The name of the gallery.
215
242
  * @param options The options parameters.
@@ -228,7 +255,7 @@ export class ImagesImpl implements Images {
228
255
 
229
256
  /**
230
257
  * Gets a gallery image.
231
- * @param resourceGroupName Name of the resource group within the Azure subscription.
258
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
232
259
  * @param devCenterName The name of the devcenter.
233
260
  * @param galleryName The name of the gallery.
234
261
  * @param imageName The name of the image.
@@ -249,7 +276,7 @@ export class ImagesImpl implements Images {
249
276
 
250
277
  /**
251
278
  * ListByDevCenterNext
252
- * @param resourceGroupName Name of the resource group within the Azure subscription.
279
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
253
280
  * @param devCenterName The name of the devcenter.
254
281
  * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
255
282
  * @param options The options parameters.
@@ -268,7 +295,7 @@ export class ImagesImpl implements Images {
268
295
 
269
296
  /**
270
297
  * ListByGalleryNext
271
- * @param resourceGroupName Name of the resource group within the Azure subscription.
298
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
272
299
  * @param devCenterName The name of the devcenter.
273
300
  * @param galleryName The name of the gallery.
274
301
  * @param nextLink The nextLink from the previous successful call to the ListByGallery method.
@@ -20,6 +20,7 @@ export * from "./devBoxDefinitions";
20
20
  export * from "./operations";
21
21
  export * from "./operationStatuses";
22
22
  export * from "./usages";
23
+ export * from "./checkNameAvailability";
23
24
  export * from "./skus";
24
25
  export * from "./pools";
25
26
  export * from "./schedules";
@@ -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 { NetworkConnections } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -18,13 +19,14 @@ import {
18
19
  NetworkConnection,
19
20
  NetworkConnectionsListBySubscriptionNextOptionalParams,
20
21
  NetworkConnectionsListBySubscriptionOptionalParams,
22
+ NetworkConnectionsListBySubscriptionResponse,
21
23
  NetworkConnectionsListByResourceGroupNextOptionalParams,
22
24
  NetworkConnectionsListByResourceGroupOptionalParams,
25
+ NetworkConnectionsListByResourceGroupResponse,
23
26
  HealthCheckStatusDetails,
24
27
  NetworkConnectionsListHealthDetailsNextOptionalParams,
25
28
  NetworkConnectionsListHealthDetailsOptionalParams,
26
- NetworkConnectionsListBySubscriptionResponse,
27
- NetworkConnectionsListByResourceGroupResponse,
29
+ NetworkConnectionsListHealthDetailsResponse,
28
30
  NetworkConnectionsGetOptionalParams,
29
31
  NetworkConnectionsGetResponse,
30
32
  NetworkConnectionsCreateOrUpdateOptionalParams,
@@ -33,7 +35,6 @@ import {
33
35
  NetworkConnectionsUpdateOptionalParams,
34
36
  NetworkConnectionsUpdateResponse,
35
37
  NetworkConnectionsDeleteOptionalParams,
36
- NetworkConnectionsListHealthDetailsResponse,
37
38
  NetworkConnectionsGetHealthDetailsOptionalParams,
38
39
  NetworkConnectionsGetHealthDetailsResponse,
39
40
  NetworkConnectionsRunHealthChecksOptionalParams,
@@ -70,22 +71,34 @@ export class NetworkConnectionsImpl implements NetworkConnections {
70
71
  [Symbol.asyncIterator]() {
71
72
  return this;
72
73
  },
73
- byPage: () => {
74
- return this.listBySubscriptionPagingPage(options);
74
+ byPage: (settings?: PageSettings) => {
75
+ if (settings?.maxPageSize) {
76
+ throw new Error("maxPageSize is not supported by this operation.");
77
+ }
78
+ return this.listBySubscriptionPagingPage(options, settings);
75
79
  }
76
80
  };
77
81
  }
78
82
 
79
83
  private async *listBySubscriptionPagingPage(
80
- options?: NetworkConnectionsListBySubscriptionOptionalParams
84
+ options?: NetworkConnectionsListBySubscriptionOptionalParams,
85
+ settings?: PageSettings
81
86
  ): AsyncIterableIterator<NetworkConnection[]> {
82
- let result = await this._listBySubscription(options);
83
- yield result.value || [];
84
- let continuationToken = result.nextLink;
87
+ let result: NetworkConnectionsListBySubscriptionResponse;
88
+ let continuationToken = settings?.continuationToken;
89
+ if (!continuationToken) {
90
+ result = await this._listBySubscription(options);
91
+ let page = result.value || [];
92
+ continuationToken = result.nextLink;
93
+ setContinuationToken(page, continuationToken);
94
+ yield page;
95
+ }
85
96
  while (continuationToken) {
86
97
  result = await this._listBySubscriptionNext(continuationToken, options);
87
98
  continuationToken = result.nextLink;
88
- yield result.value || [];
99
+ let page = result.value || [];
100
+ setContinuationToken(page, continuationToken);
101
+ yield page;
89
102
  }
90
103
  }
91
104
 
@@ -99,7 +112,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
99
112
 
100
113
  /**
101
114
  * Lists network connections in a resource group
102
- * @param resourceGroupName Name of the resource group within the Azure subscription.
115
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
103
116
  * @param options The options parameters.
104
117
  */
105
118
  public listByResourceGroup(
@@ -114,19 +127,33 @@ export class NetworkConnectionsImpl implements NetworkConnections {
114
127
  [Symbol.asyncIterator]() {
115
128
  return this;
116
129
  },
117
- byPage: () => {
118
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
130
+ byPage: (settings?: PageSettings) => {
131
+ if (settings?.maxPageSize) {
132
+ throw new Error("maxPageSize is not supported by this operation.");
133
+ }
134
+ return this.listByResourceGroupPagingPage(
135
+ resourceGroupName,
136
+ options,
137
+ settings
138
+ );
119
139
  }
120
140
  };
121
141
  }
122
142
 
123
143
  private async *listByResourceGroupPagingPage(
124
144
  resourceGroupName: string,
125
- options?: NetworkConnectionsListByResourceGroupOptionalParams
145
+ options?: NetworkConnectionsListByResourceGroupOptionalParams,
146
+ settings?: PageSettings
126
147
  ): AsyncIterableIterator<NetworkConnection[]> {
127
- let result = await this._listByResourceGroup(resourceGroupName, options);
128
- yield result.value || [];
129
- let continuationToken = result.nextLink;
148
+ let result: NetworkConnectionsListByResourceGroupResponse;
149
+ let continuationToken = settings?.continuationToken;
150
+ if (!continuationToken) {
151
+ result = await this._listByResourceGroup(resourceGroupName, options);
152
+ let page = result.value || [];
153
+ continuationToken = result.nextLink;
154
+ setContinuationToken(page, continuationToken);
155
+ yield page;
156
+ }
130
157
  while (continuationToken) {
131
158
  result = await this._listByResourceGroupNext(
132
159
  resourceGroupName,
@@ -134,7 +161,9 @@ export class NetworkConnectionsImpl implements NetworkConnections {
134
161
  options
135
162
  );
136
163
  continuationToken = result.nextLink;
137
- yield result.value || [];
164
+ let page = result.value || [];
165
+ setContinuationToken(page, continuationToken);
166
+ yield page;
138
167
  }
139
168
  }
140
169
 
@@ -152,7 +181,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
152
181
 
153
182
  /**
154
183
  * Lists health check status details
155
- * @param resourceGroupName Name of the resource group within the Azure subscription.
184
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
156
185
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
157
186
  * @param options The options parameters.
158
187
  */
@@ -173,11 +202,15 @@ export class NetworkConnectionsImpl implements NetworkConnections {
173
202
  [Symbol.asyncIterator]() {
174
203
  return this;
175
204
  },
176
- byPage: () => {
205
+ byPage: (settings?: PageSettings) => {
206
+ if (settings?.maxPageSize) {
207
+ throw new Error("maxPageSize is not supported by this operation.");
208
+ }
177
209
  return this.listHealthDetailsPagingPage(
178
210
  resourceGroupName,
179
211
  networkConnectionName,
180
- options
212
+ options,
213
+ settings
181
214
  );
182
215
  }
183
216
  };
@@ -186,15 +219,22 @@ export class NetworkConnectionsImpl implements NetworkConnections {
186
219
  private async *listHealthDetailsPagingPage(
187
220
  resourceGroupName: string,
188
221
  networkConnectionName: string,
189
- options?: NetworkConnectionsListHealthDetailsOptionalParams
222
+ options?: NetworkConnectionsListHealthDetailsOptionalParams,
223
+ settings?: PageSettings
190
224
  ): AsyncIterableIterator<HealthCheckStatusDetails[]> {
191
- let result = await this._listHealthDetails(
192
- resourceGroupName,
193
- networkConnectionName,
194
- options
195
- );
196
- yield result.value || [];
197
- let continuationToken = result.nextLink;
225
+ let result: NetworkConnectionsListHealthDetailsResponse;
226
+ let continuationToken = settings?.continuationToken;
227
+ if (!continuationToken) {
228
+ result = await this._listHealthDetails(
229
+ resourceGroupName,
230
+ networkConnectionName,
231
+ options
232
+ );
233
+ let page = result.value || [];
234
+ continuationToken = result.nextLink;
235
+ setContinuationToken(page, continuationToken);
236
+ yield page;
237
+ }
198
238
  while (continuationToken) {
199
239
  result = await this._listHealthDetailsNext(
200
240
  resourceGroupName,
@@ -203,7 +243,9 @@ export class NetworkConnectionsImpl implements NetworkConnections {
203
243
  options
204
244
  );
205
245
  continuationToken = result.nextLink;
206
- yield result.value || [];
246
+ let page = result.value || [];
247
+ setContinuationToken(page, continuationToken);
248
+ yield page;
207
249
  }
208
250
  }
209
251
 
@@ -236,7 +278,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
236
278
 
237
279
  /**
238
280
  * Lists network connections in a resource group
239
- * @param resourceGroupName Name of the resource group within the Azure subscription.
281
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
240
282
  * @param options The options parameters.
241
283
  */
242
284
  private _listByResourceGroup(
@@ -251,7 +293,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
251
293
 
252
294
  /**
253
295
  * Gets a network connection resource
254
- * @param resourceGroupName Name of the resource group within the Azure subscription.
296
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
255
297
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
256
298
  * @param options The options parameters.
257
299
  */
@@ -268,7 +310,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
268
310
 
269
311
  /**
270
312
  * Creates or updates a Network Connections resource
271
- * @param resourceGroupName Name of the resource group within the Azure subscription.
313
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
272
314
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
273
315
  * @param body Represents network connection
274
316
  * @param options The options parameters.
@@ -339,7 +381,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
339
381
 
340
382
  /**
341
383
  * Creates or updates a Network Connections resource
342
- * @param resourceGroupName Name of the resource group within the Azure subscription.
384
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
343
385
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
344
386
  * @param body Represents network connection
345
387
  * @param options The options parameters.
@@ -361,7 +403,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
361
403
 
362
404
  /**
363
405
  * Partially updates a Network Connection
364
- * @param resourceGroupName Name of the resource group within the Azure subscription.
406
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
365
407
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
366
408
  * @param body Represents network connection
367
409
  * @param options The options parameters.
@@ -432,7 +474,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
432
474
 
433
475
  /**
434
476
  * Partially updates a Network Connection
435
- * @param resourceGroupName Name of the resource group within the Azure subscription.
477
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
436
478
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
437
479
  * @param body Represents network connection
438
480
  * @param options The options parameters.
@@ -454,7 +496,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
454
496
 
455
497
  /**
456
498
  * Deletes a Network Connections resource
457
- * @param resourceGroupName Name of the resource group within the Azure subscription.
499
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
458
500
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
459
501
  * @param options The options parameters.
460
502
  */
@@ -518,7 +560,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
518
560
 
519
561
  /**
520
562
  * Deletes a Network Connections resource
521
- * @param resourceGroupName Name of the resource group within the Azure subscription.
563
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
522
564
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
523
565
  * @param options The options parameters.
524
566
  */
@@ -537,7 +579,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
537
579
 
538
580
  /**
539
581
  * Lists health check status details
540
- * @param resourceGroupName Name of the resource group within the Azure subscription.
582
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
541
583
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
542
584
  * @param options The options parameters.
543
585
  */
@@ -554,7 +596,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
554
596
 
555
597
  /**
556
598
  * Gets health check status details.
557
- * @param resourceGroupName Name of the resource group within the Azure subscription.
599
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
558
600
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
559
601
  * @param options The options parameters.
560
602
  */
@@ -572,19 +614,86 @@ export class NetworkConnectionsImpl implements NetworkConnections {
572
614
  /**
573
615
  * Triggers a new health check run. The execution and health check result can be tracked via the
574
616
  * network Connection health check details
575
- * @param resourceGroupName Name of the resource group within the Azure subscription.
617
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
576
618
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
577
619
  * @param options The options parameters.
578
620
  */
579
- runHealthChecks(
621
+ async beginRunHealthChecks(
580
622
  resourceGroupName: string,
581
623
  networkConnectionName: string,
582
624
  options?: NetworkConnectionsRunHealthChecksOptionalParams
583
- ): Promise<void> {
584
- return this.client.sendOperationRequest(
625
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
626
+ const directSendOperation = async (
627
+ args: coreClient.OperationArguments,
628
+ spec: coreClient.OperationSpec
629
+ ): Promise<void> => {
630
+ return this.client.sendOperationRequest(args, spec);
631
+ };
632
+ const sendOperation = async (
633
+ args: coreClient.OperationArguments,
634
+ spec: coreClient.OperationSpec
635
+ ) => {
636
+ let currentRawResponse:
637
+ | coreClient.FullOperationResponse
638
+ | undefined = undefined;
639
+ const providedCallback = args.options?.onResponse;
640
+ const callback: coreClient.RawResponseCallback = (
641
+ rawResponse: coreClient.FullOperationResponse,
642
+ flatResponse: unknown
643
+ ) => {
644
+ currentRawResponse = rawResponse;
645
+ providedCallback?.(rawResponse, flatResponse);
646
+ };
647
+ const updatedArgs = {
648
+ ...args,
649
+ options: {
650
+ ...args.options,
651
+ onResponse: callback
652
+ }
653
+ };
654
+ const flatResponse = await directSendOperation(updatedArgs, spec);
655
+ return {
656
+ flatResponse,
657
+ rawResponse: {
658
+ statusCode: currentRawResponse!.status,
659
+ body: currentRawResponse!.parsedBody,
660
+ headers: currentRawResponse!.headers.toJSON()
661
+ }
662
+ };
663
+ };
664
+
665
+ const lro = new LroImpl(
666
+ sendOperation,
585
667
  { resourceGroupName, networkConnectionName, options },
586
668
  runHealthChecksOperationSpec
587
669
  );
670
+ const poller = new LroEngine(lro, {
671
+ resumeFrom: options?.resumeFrom,
672
+ intervalInMs: options?.updateIntervalInMs,
673
+ lroResourceLocationConfig: "azure-async-operation"
674
+ });
675
+ await poller.poll();
676
+ return poller;
677
+ }
678
+
679
+ /**
680
+ * Triggers a new health check run. The execution and health check result can be tracked via the
681
+ * network Connection health check details
682
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
683
+ * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
684
+ * @param options The options parameters.
685
+ */
686
+ async beginRunHealthChecksAndWait(
687
+ resourceGroupName: string,
688
+ networkConnectionName: string,
689
+ options?: NetworkConnectionsRunHealthChecksOptionalParams
690
+ ): Promise<void> {
691
+ const poller = await this.beginRunHealthChecks(
692
+ resourceGroupName,
693
+ networkConnectionName,
694
+ options
695
+ );
696
+ return poller.pollUntilDone();
588
697
  }
589
698
 
590
699
  /**
@@ -604,7 +713,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
604
713
 
605
714
  /**
606
715
  * ListByResourceGroupNext
607
- * @param resourceGroupName Name of the resource group within the Azure subscription.
716
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
608
717
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
609
718
  * @param options The options parameters.
610
719
  */
@@ -621,7 +730,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
621
730
 
622
731
  /**
623
732
  * ListHealthDetailsNext
624
- * @param resourceGroupName Name of the resource group within the Azure subscription.
733
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
625
734
  * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
626
735
  * @param nextLink The nextLink from the previous successful call to the ListHealthDetails method.
627
736
  * @param options The options parameters.
@@ -840,6 +949,9 @@ const runHealthChecksOperationSpec: coreClient.OperationSpec = {
840
949
  httpMethod: "POST",
841
950
  responses: {
842
951
  200: {},
952
+ 201: {},
953
+ 202: {},
954
+ 204: {},
843
955
  default: {
844
956
  bodyMapper: Mappers.CloudError
845
957
  }
@@ -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 { Operations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
48
49
  [Symbol.asyncIterator]() {
49
50
  return this;
50
51
  },
51
- byPage: () => {
52
- return this.listPagingPage(options);
52
+ byPage: (settings?: PageSettings) => {
53
+ if (settings?.maxPageSize) {
54
+ throw new Error("maxPageSize is not supported by this operation.");
55
+ }
56
+ return this.listPagingPage(options, settings);
53
57
  }
54
58
  };
55
59
  }
56
60
 
57
61
  private async *listPagingPage(
58
- options?: OperationsListOptionalParams
62
+ options?: OperationsListOptionalParams,
63
+ settings?: PageSettings
59
64
  ): AsyncIterableIterator<Operation[]> {
60
- let result = await this._list(options);
61
- yield result.value || [];
62
- let continuationToken = result.nextLink;
65
+ let result: OperationsListResponse;
66
+ let continuationToken = settings?.continuationToken;
67
+ if (!continuationToken) {
68
+ result = await this._list(options);
69
+ let page = result.value || [];
70
+ continuationToken = result.nextLink;
71
+ setContinuationToken(page, continuationToken);
72
+ yield page;
73
+ }
63
74
  while (continuationToken) {
64
75
  result = await this._listNext(continuationToken, options);
65
76
  continuationToken = result.nextLink;
66
- yield result.value || [];
77
+ let page = result.value || [];
78
+ setContinuationToken(page, continuationToken);
79
+ yield page;
67
80
  }
68
81
  }
69
82