@azure/arm-sphere 1.0.0-beta.1

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 (318) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +6284 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/catalogsCountDevicesSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/catalogsCountDevicesSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/catalogsCountDevicesSample.js +39 -0
  11. package/dist-esm/samples-dev/catalogsCountDevicesSample.js.map +1 -0
  12. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +40 -0
  15. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/catalogsDeleteSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/catalogsDeleteSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/catalogsDeleteSample.js +39 -0
  19. package/dist-esm/samples-dev/catalogsDeleteSample.js.map +1 -0
  20. package/dist-esm/samples-dev/catalogsGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/catalogsGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/catalogsGetSample.js +39 -0
  23. package/dist-esm/samples-dev/catalogsGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/catalogsListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/catalogsListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/catalogsListByResourceGroupSample.js +59 -0
  27. package/dist-esm/samples-dev/catalogsListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/catalogsListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/catalogsListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/catalogsListBySubscriptionSample.js +58 -0
  31. package/dist-esm/samples-dev/catalogsListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/catalogsListDeploymentsSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/catalogsListDeploymentsSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/catalogsListDeploymentsSample.js +60 -0
  35. package/dist-esm/samples-dev/catalogsListDeploymentsSample.js.map +1 -0
  36. package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.js +63 -0
  39. package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.js.map +1 -0
  40. package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.js +62 -0
  43. package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.js.map +1 -0
  44. package/dist-esm/samples-dev/catalogsListDevicesSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/catalogsListDevicesSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/catalogsListDevicesSample.js +60 -0
  47. package/dist-esm/samples-dev/catalogsListDevicesSample.js.map +1 -0
  48. package/dist-esm/samples-dev/catalogsUpdateSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/catalogsUpdateSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/catalogsUpdateSample.js +40 -0
  51. package/dist-esm/samples-dev/catalogsUpdateSample.js.map +1 -0
  52. package/dist-esm/samples-dev/certificatesGetSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/certificatesGetSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/certificatesGetSample.js +40 -0
  55. package/dist-esm/samples-dev/certificatesGetSample.js.map +1 -0
  56. package/dist-esm/samples-dev/certificatesListByCatalogSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/certificatesListByCatalogSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/certificatesListByCatalogSample.js +60 -0
  59. package/dist-esm/samples-dev/certificatesListByCatalogSample.js.map +1 -0
  60. package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.js +40 -0
  63. package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.js.map +1 -0
  64. package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.js +43 -0
  67. package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.js.map +1 -0
  68. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +43 -0
  71. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -0
  72. package/dist-esm/samples-dev/deploymentsDeleteSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/deploymentsDeleteSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/deploymentsDeleteSample.js +42 -0
  75. package/dist-esm/samples-dev/deploymentsDeleteSample.js.map +1 -0
  76. package/dist-esm/samples-dev/deploymentsGetSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/deploymentsGetSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/deploymentsGetSample.js +42 -0
  79. package/dist-esm/samples-dev/deploymentsGetSample.js.map +1 -0
  80. package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.js +62 -0
  83. package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.js.map +1 -0
  84. package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.js +46 -0
  87. package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.js.map +1 -0
  88. package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.js +41 -0
  91. package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.js.map +1 -0
  92. package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.js +46 -0
  95. package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.js.map +1 -0
  96. package/dist-esm/samples-dev/deviceGroupsDeleteSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/deviceGroupsDeleteSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/deviceGroupsDeleteSample.js +41 -0
  99. package/dist-esm/samples-dev/deviceGroupsDeleteSample.js.map +1 -0
  100. package/dist-esm/samples-dev/deviceGroupsGetSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/deviceGroupsGetSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/deviceGroupsGetSample.js +41 -0
  103. package/dist-esm/samples-dev/deviceGroupsGetSample.js.map +1 -0
  104. package/dist-esm/samples-dev/deviceGroupsListByProductSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/deviceGroupsListByProductSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/deviceGroupsListByProductSample.js +61 -0
  107. package/dist-esm/samples-dev/deviceGroupsListByProductSample.js.map +1 -0
  108. package/dist-esm/samples-dev/deviceGroupsUpdateSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/deviceGroupsUpdateSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/deviceGroupsUpdateSample.js +42 -0
  111. package/dist-esm/samples-dev/deviceGroupsUpdateSample.js.map +1 -0
  112. package/dist-esm/samples-dev/devicesCreateOrUpdateSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/devicesCreateOrUpdateSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/devicesCreateOrUpdateSample.js +43 -0
  115. package/dist-esm/samples-dev/devicesCreateOrUpdateSample.js.map +1 -0
  116. package/dist-esm/samples-dev/devicesDeleteSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/devicesDeleteSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/devicesDeleteSample.js +42 -0
  119. package/dist-esm/samples-dev/devicesDeleteSample.js.map +1 -0
  120. package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.js +45 -0
  123. package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.js.map +1 -0
  124. package/dist-esm/samples-dev/devicesGetSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/devicesGetSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/devicesGetSample.js +42 -0
  127. package/dist-esm/samples-dev/devicesGetSample.js.map +1 -0
  128. package/dist-esm/samples-dev/devicesListByDeviceGroupSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/devicesListByDeviceGroupSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/devicesListByDeviceGroupSample.js +62 -0
  131. package/dist-esm/samples-dev/devicesListByDeviceGroupSample.js.map +1 -0
  132. package/dist-esm/samples-dev/devicesUpdateSample.d.ts +2 -0
  133. package/dist-esm/samples-dev/devicesUpdateSample.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/devicesUpdateSample.js +43 -0
  135. package/dist-esm/samples-dev/devicesUpdateSample.js.map +1 -0
  136. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.d.ts +2 -0
  137. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js +41 -0
  139. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js.map +1 -0
  140. package/dist-esm/samples-dev/imagesDeleteSample.d.ts +2 -0
  141. package/dist-esm/samples-dev/imagesDeleteSample.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/imagesDeleteSample.js +40 -0
  143. package/dist-esm/samples-dev/imagesDeleteSample.js.map +1 -0
  144. package/dist-esm/samples-dev/imagesGetSample.d.ts +2 -0
  145. package/dist-esm/samples-dev/imagesGetSample.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/imagesGetSample.js +40 -0
  147. package/dist-esm/samples-dev/imagesGetSample.js.map +1 -0
  148. package/dist-esm/samples-dev/imagesListByCatalogSample.d.ts +2 -0
  149. package/dist-esm/samples-dev/imagesListByCatalogSample.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/imagesListByCatalogSample.js +60 -0
  151. package/dist-esm/samples-dev/imagesListByCatalogSample.js.map +1 -0
  152. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  153. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  154. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  155. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  156. package/dist-esm/samples-dev/productsCountDevicesSample.d.ts +2 -0
  157. package/dist-esm/samples-dev/productsCountDevicesSample.d.ts.map +1 -0
  158. package/dist-esm/samples-dev/productsCountDevicesSample.js +40 -0
  159. package/dist-esm/samples-dev/productsCountDevicesSample.js.map +1 -0
  160. package/dist-esm/samples-dev/productsCreateOrUpdateSample.d.ts +2 -0
  161. package/dist-esm/samples-dev/productsCreateOrUpdateSample.d.ts.map +1 -0
  162. package/dist-esm/samples-dev/productsCreateOrUpdateSample.js +41 -0
  163. package/dist-esm/samples-dev/productsCreateOrUpdateSample.js.map +1 -0
  164. package/dist-esm/samples-dev/productsDeleteSample.d.ts +2 -0
  165. package/dist-esm/samples-dev/productsDeleteSample.d.ts.map +1 -0
  166. package/dist-esm/samples-dev/productsDeleteSample.js +40 -0
  167. package/dist-esm/samples-dev/productsDeleteSample.js.map +1 -0
  168. package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.d.ts +2 -0
  169. package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.d.ts.map +1 -0
  170. package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.js +61 -0
  171. package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.js.map +1 -0
  172. package/dist-esm/samples-dev/productsGetSample.d.ts +2 -0
  173. package/dist-esm/samples-dev/productsGetSample.d.ts.map +1 -0
  174. package/dist-esm/samples-dev/productsGetSample.js +40 -0
  175. package/dist-esm/samples-dev/productsGetSample.js.map +1 -0
  176. package/dist-esm/samples-dev/productsListByCatalogSample.d.ts +2 -0
  177. package/dist-esm/samples-dev/productsListByCatalogSample.d.ts.map +1 -0
  178. package/dist-esm/samples-dev/productsListByCatalogSample.js +60 -0
  179. package/dist-esm/samples-dev/productsListByCatalogSample.js.map +1 -0
  180. package/dist-esm/samples-dev/productsUpdateSample.d.ts +2 -0
  181. package/dist-esm/samples-dev/productsUpdateSample.d.ts.map +1 -0
  182. package/dist-esm/samples-dev/productsUpdateSample.js +41 -0
  183. package/dist-esm/samples-dev/productsUpdateSample.js.map +1 -0
  184. package/dist-esm/src/azureSphereManagementClient.d.ts +27 -0
  185. package/dist-esm/src/azureSphereManagementClient.d.ts.map +1 -0
  186. package/dist-esm/src/azureSphereManagementClient.js +107 -0
  187. package/dist-esm/src/azureSphereManagementClient.js.map +1 -0
  188. package/dist-esm/src/index.d.ts +6 -0
  189. package/dist-esm/src/index.d.ts.map +1 -0
  190. package/dist-esm/src/index.js +13 -0
  191. package/dist-esm/src/index.js.map +1 -0
  192. package/dist-esm/src/lroImpl.d.ts +11 -0
  193. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  194. package/dist-esm/src/lroImpl.js +21 -0
  195. package/dist-esm/src/lroImpl.js.map +1 -0
  196. package/dist-esm/src/models/index.d.ts +1318 -0
  197. package/dist-esm/src/models/index.d.ts.map +1 -0
  198. package/dist-esm/src/models/index.js +158 -0
  199. package/dist-esm/src/models/index.js.map +1 -0
  200. package/dist-esm/src/models/mappers.d.ts +61 -0
  201. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  202. package/dist-esm/src/models/mappers.js +1441 -0
  203. package/dist-esm/src/models/mappers.js.map +1 -0
  204. package/dist-esm/src/models/parameters.d.ts +34 -0
  205. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  206. package/dist-esm/src/models/parameters.js +265 -0
  207. package/dist-esm/src/models/parameters.js.map +1 -0
  208. package/dist-esm/src/operations/catalogs.d.ts +205 -0
  209. package/dist-esm/src/operations/catalogs.d.ts.map +1 -0
  210. package/dist-esm/src/operations/catalogs.js +1081 -0
  211. package/dist-esm/src/operations/catalogs.js.map +1 -0
  212. package/dist-esm/src/operations/certificates.d.ts +66 -0
  213. package/dist-esm/src/operations/certificates.d.ts.map +1 -0
  214. package/dist-esm/src/operations/certificates.js +269 -0
  215. package/dist-esm/src/operations/certificates.js.map +1 -0
  216. package/dist-esm/src/operations/deployments.d.ts +109 -0
  217. package/dist-esm/src/operations/deployments.d.ts.map +1 -0
  218. package/dist-esm/src/operations/deployments.js +436 -0
  219. package/dist-esm/src/operations/deployments.js.map +1 -0
  220. package/dist-esm/src/operations/deviceGroups.d.ts +150 -0
  221. package/dist-esm/src/operations/deviceGroups.d.ts.map +1 -0
  222. package/dist-esm/src/operations/deviceGroups.js +647 -0
  223. package/dist-esm/src/operations/deviceGroups.js.map +1 -0
  224. package/dist-esm/src/operations/devices.d.ts +152 -0
  225. package/dist-esm/src/operations/devices.d.ts.map +1 -0
  226. package/dist-esm/src/operations/devices.js +643 -0
  227. package/dist-esm/src/operations/devices.js.map +1 -0
  228. package/dist-esm/src/operations/images.d.ts +81 -0
  229. package/dist-esm/src/operations/images.d.ts.map +1 -0
  230. package/dist-esm/src/operations/images.js +369 -0
  231. package/dist-esm/src/operations/images.js.map +1 -0
  232. package/dist-esm/src/operations/index.d.ts +9 -0
  233. package/dist-esm/src/operations/index.d.ts.map +1 -0
  234. package/dist-esm/src/operations/index.js +16 -0
  235. package/dist-esm/src/operations/index.js.map +1 -0
  236. package/dist-esm/src/operations/operations.d.ts +32 -0
  237. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  238. package/dist-esm/src/operations/operations.js +138 -0
  239. package/dist-esm/src/operations/operations.js.map +1 -0
  240. package/dist-esm/src/operations/products.d.ts +145 -0
  241. package/dist-esm/src/operations/products.d.ts.map +1 -0
  242. package/dist-esm/src/operations/products.js +639 -0
  243. package/dist-esm/src/operations/products.js.map +1 -0
  244. package/dist-esm/src/operationsInterfaces/catalogs.d.ts +99 -0
  245. package/dist-esm/src/operationsInterfaces/catalogs.d.ts.map +1 -0
  246. package/dist-esm/src/operationsInterfaces/catalogs.js +9 -0
  247. package/dist-esm/src/operationsInterfaces/catalogs.js.map +1 -0
  248. package/dist-esm/src/operationsInterfaces/certificates.d.ts +41 -0
  249. package/dist-esm/src/operationsInterfaces/certificates.d.ts.map +1 -0
  250. package/dist-esm/src/operationsInterfaces/certificates.js +9 -0
  251. package/dist-esm/src/operationsInterfaces/certificates.js.map +1 -0
  252. package/dist-esm/src/operationsInterfaces/deployments.d.ts +79 -0
  253. package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -0
  254. package/dist-esm/src/operationsInterfaces/deployments.js +9 -0
  255. package/dist-esm/src/operationsInterfaces/deployments.js.map +1 -0
  256. package/dist-esm/src/operationsInterfaces/deviceGroups.d.ts +122 -0
  257. package/dist-esm/src/operationsInterfaces/deviceGroups.d.ts.map +1 -0
  258. package/dist-esm/src/operationsInterfaces/deviceGroups.js +9 -0
  259. package/dist-esm/src/operationsInterfaces/deviceGroups.js.map +1 -0
  260. package/dist-esm/src/operationsInterfaces/devices.d.ts +122 -0
  261. package/dist-esm/src/operationsInterfaces/devices.d.ts.map +1 -0
  262. package/dist-esm/src/operationsInterfaces/devices.js +9 -0
  263. package/dist-esm/src/operationsInterfaces/devices.js.map +1 -0
  264. package/dist-esm/src/operationsInterfaces/images.d.ts +56 -0
  265. package/dist-esm/src/operationsInterfaces/images.d.ts.map +1 -0
  266. package/dist-esm/src/operationsInterfaces/images.js +9 -0
  267. package/dist-esm/src/operationsInterfaces/images.js.map +1 -0
  268. package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
  269. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  270. package/dist-esm/src/operationsInterfaces/index.js +16 -0
  271. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  272. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  273. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  274. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  275. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  276. package/dist-esm/src/operationsInterfaces/products.d.ts +99 -0
  277. package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
  278. package/dist-esm/src/operationsInterfaces/products.js +9 -0
  279. package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
  280. package/dist-esm/src/pagingHelper.d.ts +13 -0
  281. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  282. package/dist-esm/src/pagingHelper.js +32 -0
  283. package/dist-esm/src/pagingHelper.js.map +1 -0
  284. package/dist-esm/test/sphere_operations_test.spec.d.ts +4 -0
  285. package/dist-esm/test/sphere_operations_test.spec.d.ts.map +1 -0
  286. package/dist-esm/test/sphere_operations_test.spec.js +145 -0
  287. package/dist-esm/test/sphere_operations_test.spec.js.map +1 -0
  288. package/package.json +123 -0
  289. package/review/arm-sphere.api.md +1112 -0
  290. package/rollup.config.js +122 -0
  291. package/src/azureSphereManagementClient.ts +172 -0
  292. package/src/index.ts +13 -0
  293. package/src/lroImpl.ts +42 -0
  294. package/src/models/index.ts +1534 -0
  295. package/src/models/mappers.ts +1562 -0
  296. package/src/models/parameters.ts +321 -0
  297. package/src/operations/catalogs.ts +1390 -0
  298. package/src/operations/certificates.ts +354 -0
  299. package/src/operations/deployments.ts +609 -0
  300. package/src/operations/deviceGroups.ts +912 -0
  301. package/src/operations/devices.ts +918 -0
  302. package/src/operations/images.ts +508 -0
  303. package/src/operations/index.ts +16 -0
  304. package/src/operations/operations.ts +149 -0
  305. package/src/operations/products.ts +884 -0
  306. package/src/operationsInterfaces/catalogs.ts +189 -0
  307. package/src/operationsInterfaces/certificates.ts +80 -0
  308. package/src/operationsInterfaces/deployments.ts +144 -0
  309. package/src/operationsInterfaces/deviceGroups.ts +233 -0
  310. package/src/operationsInterfaces/devices.ts +235 -0
  311. package/src/operationsInterfaces/images.ts +109 -0
  312. package/src/operationsInterfaces/index.ts +16 -0
  313. package/src/operationsInterfaces/operations.ts +22 -0
  314. package/src/operationsInterfaces/products.ts +186 -0
  315. package/src/pagingHelper.ts +39 -0
  316. package/tsconfig.json +33 -0
  317. package/types/arm-sphere.d.ts +2155 -0
  318. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,1390 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
11
+ import { Catalogs } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { AzureSphereManagementClient } from "../azureSphereManagementClient";
16
+ import {
17
+ SimplePollerLike,
18
+ OperationState,
19
+ createHttpPoller
20
+ } from "@azure/core-lro";
21
+ import { createLroSpec } from "../lroImpl";
22
+ import {
23
+ Catalog,
24
+ CatalogsListBySubscriptionNextOptionalParams,
25
+ CatalogsListBySubscriptionOptionalParams,
26
+ CatalogsListBySubscriptionResponse,
27
+ CatalogsListByResourceGroupNextOptionalParams,
28
+ CatalogsListByResourceGroupOptionalParams,
29
+ CatalogsListByResourceGroupResponse,
30
+ Deployment,
31
+ CatalogsListDeploymentsNextOptionalParams,
32
+ CatalogsListDeploymentsOptionalParams,
33
+ CatalogsListDeploymentsResponse,
34
+ DeviceGroup,
35
+ ListDeviceGroupsRequest,
36
+ CatalogsListDeviceGroupsNextOptionalParams,
37
+ CatalogsListDeviceGroupsOptionalParams,
38
+ CatalogsListDeviceGroupsResponse,
39
+ DeviceInsight,
40
+ CatalogsListDeviceInsightsNextOptionalParams,
41
+ CatalogsListDeviceInsightsOptionalParams,
42
+ CatalogsListDeviceInsightsResponse,
43
+ Device,
44
+ CatalogsListDevicesNextOptionalParams,
45
+ CatalogsListDevicesOptionalParams,
46
+ CatalogsListDevicesResponse,
47
+ CatalogsGetOptionalParams,
48
+ CatalogsGetResponse,
49
+ CatalogsCreateOrUpdateOptionalParams,
50
+ CatalogsCreateOrUpdateResponse,
51
+ CatalogUpdate,
52
+ CatalogsUpdateOptionalParams,
53
+ CatalogsUpdateResponse,
54
+ CatalogsDeleteOptionalParams,
55
+ CatalogsCountDevicesOptionalParams,
56
+ CatalogsCountDevicesResponse,
57
+ CatalogsListBySubscriptionNextResponse,
58
+ CatalogsListByResourceGroupNextResponse,
59
+ CatalogsListDeploymentsNextResponse,
60
+ CatalogsListDeviceGroupsNextResponse,
61
+ CatalogsListDeviceInsightsNextResponse,
62
+ CatalogsListDevicesNextResponse
63
+ } from "../models";
64
+
65
+ /// <reference lib="esnext.asynciterable" />
66
+ /** Class containing Catalogs operations. */
67
+ export class CatalogsImpl implements Catalogs {
68
+ private readonly client: AzureSphereManagementClient;
69
+
70
+ /**
71
+ * Initialize a new instance of the class Catalogs class.
72
+ * @param client Reference to the service client
73
+ */
74
+ constructor(client: AzureSphereManagementClient) {
75
+ this.client = client;
76
+ }
77
+
78
+ /**
79
+ * List Catalog resources by subscription ID
80
+ * @param options The options parameters.
81
+ */
82
+ public listBySubscription(
83
+ options?: CatalogsListBySubscriptionOptionalParams
84
+ ): PagedAsyncIterableIterator<Catalog> {
85
+ const iter = this.listBySubscriptionPagingAll(options);
86
+ return {
87
+ next() {
88
+ return iter.next();
89
+ },
90
+ [Symbol.asyncIterator]() {
91
+ return this;
92
+ },
93
+ byPage: (settings?: PageSettings) => {
94
+ if (settings?.maxPageSize) {
95
+ throw new Error("maxPageSize is not supported by this operation.");
96
+ }
97
+ return this.listBySubscriptionPagingPage(options, settings);
98
+ }
99
+ };
100
+ }
101
+
102
+ private async *listBySubscriptionPagingPage(
103
+ options?: CatalogsListBySubscriptionOptionalParams,
104
+ settings?: PageSettings
105
+ ): AsyncIterableIterator<Catalog[]> {
106
+ let result: CatalogsListBySubscriptionResponse;
107
+ let continuationToken = settings?.continuationToken;
108
+ if (!continuationToken) {
109
+ result = await this._listBySubscription(options);
110
+ let page = result.value || [];
111
+ continuationToken = result.nextLink;
112
+ setContinuationToken(page, continuationToken);
113
+ yield page;
114
+ }
115
+ while (continuationToken) {
116
+ result = await this._listBySubscriptionNext(continuationToken, options);
117
+ continuationToken = result.nextLink;
118
+ let page = result.value || [];
119
+ setContinuationToken(page, continuationToken);
120
+ yield page;
121
+ }
122
+ }
123
+
124
+ private async *listBySubscriptionPagingAll(
125
+ options?: CatalogsListBySubscriptionOptionalParams
126
+ ): AsyncIterableIterator<Catalog> {
127
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
128
+ yield* page;
129
+ }
130
+ }
131
+
132
+ /**
133
+ * List Catalog resources by resource group
134
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
135
+ * @param options The options parameters.
136
+ */
137
+ public listByResourceGroup(
138
+ resourceGroupName: string,
139
+ options?: CatalogsListByResourceGroupOptionalParams
140
+ ): PagedAsyncIterableIterator<Catalog> {
141
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
142
+ return {
143
+ next() {
144
+ return iter.next();
145
+ },
146
+ [Symbol.asyncIterator]() {
147
+ return this;
148
+ },
149
+ byPage: (settings?: PageSettings) => {
150
+ if (settings?.maxPageSize) {
151
+ throw new Error("maxPageSize is not supported by this operation.");
152
+ }
153
+ return this.listByResourceGroupPagingPage(
154
+ resourceGroupName,
155
+ options,
156
+ settings
157
+ );
158
+ }
159
+ };
160
+ }
161
+
162
+ private async *listByResourceGroupPagingPage(
163
+ resourceGroupName: string,
164
+ options?: CatalogsListByResourceGroupOptionalParams,
165
+ settings?: PageSettings
166
+ ): AsyncIterableIterator<Catalog[]> {
167
+ let result: CatalogsListByResourceGroupResponse;
168
+ let continuationToken = settings?.continuationToken;
169
+ if (!continuationToken) {
170
+ result = await this._listByResourceGroup(resourceGroupName, options);
171
+ let page = result.value || [];
172
+ continuationToken = result.nextLink;
173
+ setContinuationToken(page, continuationToken);
174
+ yield page;
175
+ }
176
+ while (continuationToken) {
177
+ result = await this._listByResourceGroupNext(
178
+ resourceGroupName,
179
+ continuationToken,
180
+ options
181
+ );
182
+ continuationToken = result.nextLink;
183
+ let page = result.value || [];
184
+ setContinuationToken(page, continuationToken);
185
+ yield page;
186
+ }
187
+ }
188
+
189
+ private async *listByResourceGroupPagingAll(
190
+ resourceGroupName: string,
191
+ options?: CatalogsListByResourceGroupOptionalParams
192
+ ): AsyncIterableIterator<Catalog> {
193
+ for await (const page of this.listByResourceGroupPagingPage(
194
+ resourceGroupName,
195
+ options
196
+ )) {
197
+ yield* page;
198
+ }
199
+ }
200
+
201
+ /**
202
+ * Lists deployments for catalog.
203
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
204
+ * @param catalogName Name of catalog
205
+ * @param options The options parameters.
206
+ */
207
+ public listDeployments(
208
+ resourceGroupName: string,
209
+ catalogName: string,
210
+ options?: CatalogsListDeploymentsOptionalParams
211
+ ): PagedAsyncIterableIterator<Deployment> {
212
+ const iter = this.listDeploymentsPagingAll(
213
+ resourceGroupName,
214
+ catalogName,
215
+ options
216
+ );
217
+ return {
218
+ next() {
219
+ return iter.next();
220
+ },
221
+ [Symbol.asyncIterator]() {
222
+ return this;
223
+ },
224
+ byPage: (settings?: PageSettings) => {
225
+ if (settings?.maxPageSize) {
226
+ throw new Error("maxPageSize is not supported by this operation.");
227
+ }
228
+ return this.listDeploymentsPagingPage(
229
+ resourceGroupName,
230
+ catalogName,
231
+ options,
232
+ settings
233
+ );
234
+ }
235
+ };
236
+ }
237
+
238
+ private async *listDeploymentsPagingPage(
239
+ resourceGroupName: string,
240
+ catalogName: string,
241
+ options?: CatalogsListDeploymentsOptionalParams,
242
+ settings?: PageSettings
243
+ ): AsyncIterableIterator<Deployment[]> {
244
+ let result: CatalogsListDeploymentsResponse;
245
+ let continuationToken = settings?.continuationToken;
246
+ if (!continuationToken) {
247
+ result = await this._listDeployments(
248
+ resourceGroupName,
249
+ catalogName,
250
+ options
251
+ );
252
+ let page = result.value || [];
253
+ continuationToken = result.nextLink;
254
+ setContinuationToken(page, continuationToken);
255
+ yield page;
256
+ }
257
+ while (continuationToken) {
258
+ result = await this._listDeploymentsNext(
259
+ resourceGroupName,
260
+ catalogName,
261
+ continuationToken,
262
+ options
263
+ );
264
+ continuationToken = result.nextLink;
265
+ let page = result.value || [];
266
+ setContinuationToken(page, continuationToken);
267
+ yield page;
268
+ }
269
+ }
270
+
271
+ private async *listDeploymentsPagingAll(
272
+ resourceGroupName: string,
273
+ catalogName: string,
274
+ options?: CatalogsListDeploymentsOptionalParams
275
+ ): AsyncIterableIterator<Deployment> {
276
+ for await (const page of this.listDeploymentsPagingPage(
277
+ resourceGroupName,
278
+ catalogName,
279
+ options
280
+ )) {
281
+ yield* page;
282
+ }
283
+ }
284
+
285
+ /**
286
+ * List the device groups for the catalog.
287
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
288
+ * @param catalogName Name of catalog
289
+ * @param listDeviceGroupsRequest List device groups for catalog.
290
+ * @param options The options parameters.
291
+ */
292
+ public listDeviceGroups(
293
+ resourceGroupName: string,
294
+ catalogName: string,
295
+ listDeviceGroupsRequest: ListDeviceGroupsRequest,
296
+ options?: CatalogsListDeviceGroupsOptionalParams
297
+ ): PagedAsyncIterableIterator<DeviceGroup> {
298
+ const iter = this.listDeviceGroupsPagingAll(
299
+ resourceGroupName,
300
+ catalogName,
301
+ listDeviceGroupsRequest,
302
+ options
303
+ );
304
+ return {
305
+ next() {
306
+ return iter.next();
307
+ },
308
+ [Symbol.asyncIterator]() {
309
+ return this;
310
+ },
311
+ byPage: (settings?: PageSettings) => {
312
+ if (settings?.maxPageSize) {
313
+ throw new Error("maxPageSize is not supported by this operation.");
314
+ }
315
+ return this.listDeviceGroupsPagingPage(
316
+ resourceGroupName,
317
+ catalogName,
318
+ listDeviceGroupsRequest,
319
+ options,
320
+ settings
321
+ );
322
+ }
323
+ };
324
+ }
325
+
326
+ private async *listDeviceGroupsPagingPage(
327
+ resourceGroupName: string,
328
+ catalogName: string,
329
+ listDeviceGroupsRequest: ListDeviceGroupsRequest,
330
+ options?: CatalogsListDeviceGroupsOptionalParams,
331
+ settings?: PageSettings
332
+ ): AsyncIterableIterator<DeviceGroup[]> {
333
+ let result: CatalogsListDeviceGroupsResponse;
334
+ let continuationToken = settings?.continuationToken;
335
+ if (!continuationToken) {
336
+ result = await this._listDeviceGroups(
337
+ resourceGroupName,
338
+ catalogName,
339
+ listDeviceGroupsRequest,
340
+ options
341
+ );
342
+ let page = result.value || [];
343
+ continuationToken = result.nextLink;
344
+ setContinuationToken(page, continuationToken);
345
+ yield page;
346
+ }
347
+ while (continuationToken) {
348
+ result = await this._listDeviceGroupsNext(
349
+ resourceGroupName,
350
+ catalogName,
351
+ listDeviceGroupsRequest,
352
+ continuationToken,
353
+ options
354
+ );
355
+ continuationToken = result.nextLink;
356
+ let page = result.value || [];
357
+ setContinuationToken(page, continuationToken);
358
+ yield page;
359
+ }
360
+ }
361
+
362
+ private async *listDeviceGroupsPagingAll(
363
+ resourceGroupName: string,
364
+ catalogName: string,
365
+ listDeviceGroupsRequest: ListDeviceGroupsRequest,
366
+ options?: CatalogsListDeviceGroupsOptionalParams
367
+ ): AsyncIterableIterator<DeviceGroup> {
368
+ for await (const page of this.listDeviceGroupsPagingPage(
369
+ resourceGroupName,
370
+ catalogName,
371
+ listDeviceGroupsRequest,
372
+ options
373
+ )) {
374
+ yield* page;
375
+ }
376
+ }
377
+
378
+ /**
379
+ * Lists device insights for catalog.
380
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
381
+ * @param catalogName Name of catalog
382
+ * @param options The options parameters.
383
+ */
384
+ public listDeviceInsights(
385
+ resourceGroupName: string,
386
+ catalogName: string,
387
+ options?: CatalogsListDeviceInsightsOptionalParams
388
+ ): PagedAsyncIterableIterator<DeviceInsight> {
389
+ const iter = this.listDeviceInsightsPagingAll(
390
+ resourceGroupName,
391
+ catalogName,
392
+ options
393
+ );
394
+ return {
395
+ next() {
396
+ return iter.next();
397
+ },
398
+ [Symbol.asyncIterator]() {
399
+ return this;
400
+ },
401
+ byPage: (settings?: PageSettings) => {
402
+ if (settings?.maxPageSize) {
403
+ throw new Error("maxPageSize is not supported by this operation.");
404
+ }
405
+ return this.listDeviceInsightsPagingPage(
406
+ resourceGroupName,
407
+ catalogName,
408
+ options,
409
+ settings
410
+ );
411
+ }
412
+ };
413
+ }
414
+
415
+ private async *listDeviceInsightsPagingPage(
416
+ resourceGroupName: string,
417
+ catalogName: string,
418
+ options?: CatalogsListDeviceInsightsOptionalParams,
419
+ settings?: PageSettings
420
+ ): AsyncIterableIterator<DeviceInsight[]> {
421
+ let result: CatalogsListDeviceInsightsResponse;
422
+ let continuationToken = settings?.continuationToken;
423
+ if (!continuationToken) {
424
+ result = await this._listDeviceInsights(
425
+ resourceGroupName,
426
+ catalogName,
427
+ options
428
+ );
429
+ let page = result.value || [];
430
+ continuationToken = result.nextLink;
431
+ setContinuationToken(page, continuationToken);
432
+ yield page;
433
+ }
434
+ while (continuationToken) {
435
+ result = await this._listDeviceInsightsNext(
436
+ resourceGroupName,
437
+ catalogName,
438
+ continuationToken,
439
+ options
440
+ );
441
+ continuationToken = result.nextLink;
442
+ let page = result.value || [];
443
+ setContinuationToken(page, continuationToken);
444
+ yield page;
445
+ }
446
+ }
447
+
448
+ private async *listDeviceInsightsPagingAll(
449
+ resourceGroupName: string,
450
+ catalogName: string,
451
+ options?: CatalogsListDeviceInsightsOptionalParams
452
+ ): AsyncIterableIterator<DeviceInsight> {
453
+ for await (const page of this.listDeviceInsightsPagingPage(
454
+ resourceGroupName,
455
+ catalogName,
456
+ options
457
+ )) {
458
+ yield* page;
459
+ }
460
+ }
461
+
462
+ /**
463
+ * Lists devices for catalog.
464
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
465
+ * @param catalogName Name of catalog
466
+ * @param options The options parameters.
467
+ */
468
+ public listDevices(
469
+ resourceGroupName: string,
470
+ catalogName: string,
471
+ options?: CatalogsListDevicesOptionalParams
472
+ ): PagedAsyncIterableIterator<Device> {
473
+ const iter = this.listDevicesPagingAll(
474
+ resourceGroupName,
475
+ catalogName,
476
+ options
477
+ );
478
+ return {
479
+ next() {
480
+ return iter.next();
481
+ },
482
+ [Symbol.asyncIterator]() {
483
+ return this;
484
+ },
485
+ byPage: (settings?: PageSettings) => {
486
+ if (settings?.maxPageSize) {
487
+ throw new Error("maxPageSize is not supported by this operation.");
488
+ }
489
+ return this.listDevicesPagingPage(
490
+ resourceGroupName,
491
+ catalogName,
492
+ options,
493
+ settings
494
+ );
495
+ }
496
+ };
497
+ }
498
+
499
+ private async *listDevicesPagingPage(
500
+ resourceGroupName: string,
501
+ catalogName: string,
502
+ options?: CatalogsListDevicesOptionalParams,
503
+ settings?: PageSettings
504
+ ): AsyncIterableIterator<Device[]> {
505
+ let result: CatalogsListDevicesResponse;
506
+ let continuationToken = settings?.continuationToken;
507
+ if (!continuationToken) {
508
+ result = await this._listDevices(resourceGroupName, catalogName, options);
509
+ let page = result.value || [];
510
+ continuationToken = result.nextLink;
511
+ setContinuationToken(page, continuationToken);
512
+ yield page;
513
+ }
514
+ while (continuationToken) {
515
+ result = await this._listDevicesNext(
516
+ resourceGroupName,
517
+ catalogName,
518
+ continuationToken,
519
+ options
520
+ );
521
+ continuationToken = result.nextLink;
522
+ let page = result.value || [];
523
+ setContinuationToken(page, continuationToken);
524
+ yield page;
525
+ }
526
+ }
527
+
528
+ private async *listDevicesPagingAll(
529
+ resourceGroupName: string,
530
+ catalogName: string,
531
+ options?: CatalogsListDevicesOptionalParams
532
+ ): AsyncIterableIterator<Device> {
533
+ for await (const page of this.listDevicesPagingPage(
534
+ resourceGroupName,
535
+ catalogName,
536
+ options
537
+ )) {
538
+ yield* page;
539
+ }
540
+ }
541
+
542
+ /**
543
+ * List Catalog resources by subscription ID
544
+ * @param options The options parameters.
545
+ */
546
+ private _listBySubscription(
547
+ options?: CatalogsListBySubscriptionOptionalParams
548
+ ): Promise<CatalogsListBySubscriptionResponse> {
549
+ return this.client.sendOperationRequest(
550
+ { options },
551
+ listBySubscriptionOperationSpec
552
+ );
553
+ }
554
+
555
+ /**
556
+ * List Catalog resources by resource group
557
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
558
+ * @param options The options parameters.
559
+ */
560
+ private _listByResourceGroup(
561
+ resourceGroupName: string,
562
+ options?: CatalogsListByResourceGroupOptionalParams
563
+ ): Promise<CatalogsListByResourceGroupResponse> {
564
+ return this.client.sendOperationRequest(
565
+ { resourceGroupName, options },
566
+ listByResourceGroupOperationSpec
567
+ );
568
+ }
569
+
570
+ /**
571
+ * Get a Catalog
572
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
573
+ * @param catalogName Name of catalog
574
+ * @param options The options parameters.
575
+ */
576
+ get(
577
+ resourceGroupName: string,
578
+ catalogName: string,
579
+ options?: CatalogsGetOptionalParams
580
+ ): Promise<CatalogsGetResponse> {
581
+ return this.client.sendOperationRequest(
582
+ { resourceGroupName, catalogName, options },
583
+ getOperationSpec
584
+ );
585
+ }
586
+
587
+ /**
588
+ * Create a Catalog
589
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
590
+ * @param catalogName Name of catalog
591
+ * @param resource Resource create parameters.
592
+ * @param options The options parameters.
593
+ */
594
+ async beginCreateOrUpdate(
595
+ resourceGroupName: string,
596
+ catalogName: string,
597
+ resource: Catalog,
598
+ options?: CatalogsCreateOrUpdateOptionalParams
599
+ ): Promise<
600
+ SimplePollerLike<
601
+ OperationState<CatalogsCreateOrUpdateResponse>,
602
+ CatalogsCreateOrUpdateResponse
603
+ >
604
+ > {
605
+ const directSendOperation = async (
606
+ args: coreClient.OperationArguments,
607
+ spec: coreClient.OperationSpec
608
+ ): Promise<CatalogsCreateOrUpdateResponse> => {
609
+ return this.client.sendOperationRequest(args, spec);
610
+ };
611
+ const sendOperationFn = async (
612
+ args: coreClient.OperationArguments,
613
+ spec: coreClient.OperationSpec
614
+ ) => {
615
+ let currentRawResponse:
616
+ | coreClient.FullOperationResponse
617
+ | undefined = undefined;
618
+ const providedCallback = args.options?.onResponse;
619
+ const callback: coreClient.RawResponseCallback = (
620
+ rawResponse: coreClient.FullOperationResponse,
621
+ flatResponse: unknown
622
+ ) => {
623
+ currentRawResponse = rawResponse;
624
+ providedCallback?.(rawResponse, flatResponse);
625
+ };
626
+ const updatedArgs = {
627
+ ...args,
628
+ options: {
629
+ ...args.options,
630
+ onResponse: callback
631
+ }
632
+ };
633
+ const flatResponse = await directSendOperation(updatedArgs, spec);
634
+ return {
635
+ flatResponse,
636
+ rawResponse: {
637
+ statusCode: currentRawResponse!.status,
638
+ body: currentRawResponse!.parsedBody,
639
+ headers: currentRawResponse!.headers.toJSON()
640
+ }
641
+ };
642
+ };
643
+
644
+ const lro = createLroSpec({
645
+ sendOperationFn,
646
+ args: { resourceGroupName, catalogName, resource, options },
647
+ spec: createOrUpdateOperationSpec
648
+ });
649
+ const poller = await createHttpPoller<
650
+ CatalogsCreateOrUpdateResponse,
651
+ OperationState<CatalogsCreateOrUpdateResponse>
652
+ >(lro, {
653
+ restoreFrom: options?.resumeFrom,
654
+ intervalInMs: options?.updateIntervalInMs,
655
+ resourceLocationConfig: "azure-async-operation"
656
+ });
657
+ await poller.poll();
658
+ return poller;
659
+ }
660
+
661
+ /**
662
+ * Create a Catalog
663
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
664
+ * @param catalogName Name of catalog
665
+ * @param resource Resource create parameters.
666
+ * @param options The options parameters.
667
+ */
668
+ async beginCreateOrUpdateAndWait(
669
+ resourceGroupName: string,
670
+ catalogName: string,
671
+ resource: Catalog,
672
+ options?: CatalogsCreateOrUpdateOptionalParams
673
+ ): Promise<CatalogsCreateOrUpdateResponse> {
674
+ const poller = await this.beginCreateOrUpdate(
675
+ resourceGroupName,
676
+ catalogName,
677
+ resource,
678
+ options
679
+ );
680
+ return poller.pollUntilDone();
681
+ }
682
+
683
+ /**
684
+ * Update a Catalog
685
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
686
+ * @param catalogName Name of catalog
687
+ * @param properties The resource properties to be updated.
688
+ * @param options The options parameters.
689
+ */
690
+ update(
691
+ resourceGroupName: string,
692
+ catalogName: string,
693
+ properties: CatalogUpdate,
694
+ options?: CatalogsUpdateOptionalParams
695
+ ): Promise<CatalogsUpdateResponse> {
696
+ return this.client.sendOperationRequest(
697
+ { resourceGroupName, catalogName, properties, options },
698
+ updateOperationSpec
699
+ );
700
+ }
701
+
702
+ /**
703
+ * Delete a Catalog
704
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
705
+ * @param catalogName Name of catalog
706
+ * @param options The options parameters.
707
+ */
708
+ async beginDelete(
709
+ resourceGroupName: string,
710
+ catalogName: string,
711
+ options?: CatalogsDeleteOptionalParams
712
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
713
+ const directSendOperation = async (
714
+ args: coreClient.OperationArguments,
715
+ spec: coreClient.OperationSpec
716
+ ): Promise<void> => {
717
+ return this.client.sendOperationRequest(args, spec);
718
+ };
719
+ const sendOperationFn = async (
720
+ args: coreClient.OperationArguments,
721
+ spec: coreClient.OperationSpec
722
+ ) => {
723
+ let currentRawResponse:
724
+ | coreClient.FullOperationResponse
725
+ | undefined = undefined;
726
+ const providedCallback = args.options?.onResponse;
727
+ const callback: coreClient.RawResponseCallback = (
728
+ rawResponse: coreClient.FullOperationResponse,
729
+ flatResponse: unknown
730
+ ) => {
731
+ currentRawResponse = rawResponse;
732
+ providedCallback?.(rawResponse, flatResponse);
733
+ };
734
+ const updatedArgs = {
735
+ ...args,
736
+ options: {
737
+ ...args.options,
738
+ onResponse: callback
739
+ }
740
+ };
741
+ const flatResponse = await directSendOperation(updatedArgs, spec);
742
+ return {
743
+ flatResponse,
744
+ rawResponse: {
745
+ statusCode: currentRawResponse!.status,
746
+ body: currentRawResponse!.parsedBody,
747
+ headers: currentRawResponse!.headers.toJSON()
748
+ }
749
+ };
750
+ };
751
+
752
+ const lro = createLroSpec({
753
+ sendOperationFn,
754
+ args: { resourceGroupName, catalogName, options },
755
+ spec: deleteOperationSpec
756
+ });
757
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
758
+ restoreFrom: options?.resumeFrom,
759
+ intervalInMs: options?.updateIntervalInMs,
760
+ resourceLocationConfig: "location"
761
+ });
762
+ await poller.poll();
763
+ return poller;
764
+ }
765
+
766
+ /**
767
+ * Delete a Catalog
768
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
769
+ * @param catalogName Name of catalog
770
+ * @param options The options parameters.
771
+ */
772
+ async beginDeleteAndWait(
773
+ resourceGroupName: string,
774
+ catalogName: string,
775
+ options?: CatalogsDeleteOptionalParams
776
+ ): Promise<void> {
777
+ const poller = await this.beginDelete(
778
+ resourceGroupName,
779
+ catalogName,
780
+ options
781
+ );
782
+ return poller.pollUntilDone();
783
+ }
784
+
785
+ /**
786
+ * Counts devices in catalog.
787
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
788
+ * @param catalogName Name of catalog
789
+ * @param options The options parameters.
790
+ */
791
+ countDevices(
792
+ resourceGroupName: string,
793
+ catalogName: string,
794
+ options?: CatalogsCountDevicesOptionalParams
795
+ ): Promise<CatalogsCountDevicesResponse> {
796
+ return this.client.sendOperationRequest(
797
+ { resourceGroupName, catalogName, options },
798
+ countDevicesOperationSpec
799
+ );
800
+ }
801
+
802
+ /**
803
+ * Lists deployments for catalog.
804
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
805
+ * @param catalogName Name of catalog
806
+ * @param options The options parameters.
807
+ */
808
+ private _listDeployments(
809
+ resourceGroupName: string,
810
+ catalogName: string,
811
+ options?: CatalogsListDeploymentsOptionalParams
812
+ ): Promise<CatalogsListDeploymentsResponse> {
813
+ return this.client.sendOperationRequest(
814
+ { resourceGroupName, catalogName, options },
815
+ listDeploymentsOperationSpec
816
+ );
817
+ }
818
+
819
+ /**
820
+ * List the device groups for the catalog.
821
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
822
+ * @param catalogName Name of catalog
823
+ * @param listDeviceGroupsRequest List device groups for catalog.
824
+ * @param options The options parameters.
825
+ */
826
+ private _listDeviceGroups(
827
+ resourceGroupName: string,
828
+ catalogName: string,
829
+ listDeviceGroupsRequest: ListDeviceGroupsRequest,
830
+ options?: CatalogsListDeviceGroupsOptionalParams
831
+ ): Promise<CatalogsListDeviceGroupsResponse> {
832
+ return this.client.sendOperationRequest(
833
+ { resourceGroupName, catalogName, listDeviceGroupsRequest, options },
834
+ listDeviceGroupsOperationSpec
835
+ );
836
+ }
837
+
838
+ /**
839
+ * Lists device insights for catalog.
840
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
841
+ * @param catalogName Name of catalog
842
+ * @param options The options parameters.
843
+ */
844
+ private _listDeviceInsights(
845
+ resourceGroupName: string,
846
+ catalogName: string,
847
+ options?: CatalogsListDeviceInsightsOptionalParams
848
+ ): Promise<CatalogsListDeviceInsightsResponse> {
849
+ return this.client.sendOperationRequest(
850
+ { resourceGroupName, catalogName, options },
851
+ listDeviceInsightsOperationSpec
852
+ );
853
+ }
854
+
855
+ /**
856
+ * Lists devices for catalog.
857
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
858
+ * @param catalogName Name of catalog
859
+ * @param options The options parameters.
860
+ */
861
+ private _listDevices(
862
+ resourceGroupName: string,
863
+ catalogName: string,
864
+ options?: CatalogsListDevicesOptionalParams
865
+ ): Promise<CatalogsListDevicesResponse> {
866
+ return this.client.sendOperationRequest(
867
+ { resourceGroupName, catalogName, options },
868
+ listDevicesOperationSpec
869
+ );
870
+ }
871
+
872
+ /**
873
+ * ListBySubscriptionNext
874
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
875
+ * @param options The options parameters.
876
+ */
877
+ private _listBySubscriptionNext(
878
+ nextLink: string,
879
+ options?: CatalogsListBySubscriptionNextOptionalParams
880
+ ): Promise<CatalogsListBySubscriptionNextResponse> {
881
+ return this.client.sendOperationRequest(
882
+ { nextLink, options },
883
+ listBySubscriptionNextOperationSpec
884
+ );
885
+ }
886
+
887
+ /**
888
+ * ListByResourceGroupNext
889
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
890
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
891
+ * @param options The options parameters.
892
+ */
893
+ private _listByResourceGroupNext(
894
+ resourceGroupName: string,
895
+ nextLink: string,
896
+ options?: CatalogsListByResourceGroupNextOptionalParams
897
+ ): Promise<CatalogsListByResourceGroupNextResponse> {
898
+ return this.client.sendOperationRequest(
899
+ { resourceGroupName, nextLink, options },
900
+ listByResourceGroupNextOperationSpec
901
+ );
902
+ }
903
+
904
+ /**
905
+ * ListDeploymentsNext
906
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
907
+ * @param catalogName Name of catalog
908
+ * @param nextLink The nextLink from the previous successful call to the ListDeployments method.
909
+ * @param options The options parameters.
910
+ */
911
+ private _listDeploymentsNext(
912
+ resourceGroupName: string,
913
+ catalogName: string,
914
+ nextLink: string,
915
+ options?: CatalogsListDeploymentsNextOptionalParams
916
+ ): Promise<CatalogsListDeploymentsNextResponse> {
917
+ return this.client.sendOperationRequest(
918
+ { resourceGroupName, catalogName, nextLink, options },
919
+ listDeploymentsNextOperationSpec
920
+ );
921
+ }
922
+
923
+ /**
924
+ * ListDeviceGroupsNext
925
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
926
+ * @param catalogName Name of catalog
927
+ * @param listDeviceGroupsRequest List device groups for catalog.
928
+ * @param nextLink The nextLink from the previous successful call to the ListDeviceGroups method.
929
+ * @param options The options parameters.
930
+ */
931
+ private _listDeviceGroupsNext(
932
+ resourceGroupName: string,
933
+ catalogName: string,
934
+ listDeviceGroupsRequest: ListDeviceGroupsRequest,
935
+ nextLink: string,
936
+ options?: CatalogsListDeviceGroupsNextOptionalParams
937
+ ): Promise<CatalogsListDeviceGroupsNextResponse> {
938
+ return this.client.sendOperationRequest(
939
+ {
940
+ resourceGroupName,
941
+ catalogName,
942
+ listDeviceGroupsRequest,
943
+ nextLink,
944
+ options
945
+ },
946
+ listDeviceGroupsNextOperationSpec
947
+ );
948
+ }
949
+
950
+ /**
951
+ * ListDeviceInsightsNext
952
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
953
+ * @param catalogName Name of catalog
954
+ * @param nextLink The nextLink from the previous successful call to the ListDeviceInsights method.
955
+ * @param options The options parameters.
956
+ */
957
+ private _listDeviceInsightsNext(
958
+ resourceGroupName: string,
959
+ catalogName: string,
960
+ nextLink: string,
961
+ options?: CatalogsListDeviceInsightsNextOptionalParams
962
+ ): Promise<CatalogsListDeviceInsightsNextResponse> {
963
+ return this.client.sendOperationRequest(
964
+ { resourceGroupName, catalogName, nextLink, options },
965
+ listDeviceInsightsNextOperationSpec
966
+ );
967
+ }
968
+
969
+ /**
970
+ * ListDevicesNext
971
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
972
+ * @param catalogName Name of catalog
973
+ * @param nextLink The nextLink from the previous successful call to the ListDevices method.
974
+ * @param options The options parameters.
975
+ */
976
+ private _listDevicesNext(
977
+ resourceGroupName: string,
978
+ catalogName: string,
979
+ nextLink: string,
980
+ options?: CatalogsListDevicesNextOptionalParams
981
+ ): Promise<CatalogsListDevicesNextResponse> {
982
+ return this.client.sendOperationRequest(
983
+ { resourceGroupName, catalogName, nextLink, options },
984
+ listDevicesNextOperationSpec
985
+ );
986
+ }
987
+ }
988
+ // Operation Specifications
989
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
990
+
991
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
992
+ path:
993
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureSphere/catalogs",
994
+ httpMethod: "GET",
995
+ responses: {
996
+ 200: {
997
+ bodyMapper: Mappers.CatalogListResult
998
+ },
999
+ default: {
1000
+ bodyMapper: Mappers.ErrorResponse
1001
+ }
1002
+ },
1003
+ queryParameters: [Parameters.apiVersion],
1004
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
1005
+ headerParameters: [Parameters.accept],
1006
+ serializer
1007
+ };
1008
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
1009
+ path:
1010
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs",
1011
+ httpMethod: "GET",
1012
+ responses: {
1013
+ 200: {
1014
+ bodyMapper: Mappers.CatalogListResult
1015
+ },
1016
+ default: {
1017
+ bodyMapper: Mappers.ErrorResponse
1018
+ }
1019
+ },
1020
+ queryParameters: [Parameters.apiVersion],
1021
+ urlParameters: [
1022
+ Parameters.$host,
1023
+ Parameters.subscriptionId,
1024
+ Parameters.resourceGroupName
1025
+ ],
1026
+ headerParameters: [Parameters.accept],
1027
+ serializer
1028
+ };
1029
+ const getOperationSpec: coreClient.OperationSpec = {
1030
+ path:
1031
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
1032
+ httpMethod: "GET",
1033
+ responses: {
1034
+ 200: {
1035
+ bodyMapper: Mappers.Catalog
1036
+ },
1037
+ default: {
1038
+ bodyMapper: Mappers.ErrorResponse
1039
+ }
1040
+ },
1041
+ queryParameters: [Parameters.apiVersion],
1042
+ urlParameters: [
1043
+ Parameters.$host,
1044
+ Parameters.subscriptionId,
1045
+ Parameters.resourceGroupName,
1046
+ Parameters.catalogName
1047
+ ],
1048
+ headerParameters: [Parameters.accept],
1049
+ serializer
1050
+ };
1051
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
1052
+ path:
1053
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
1054
+ httpMethod: "PUT",
1055
+ responses: {
1056
+ 200: {
1057
+ bodyMapper: Mappers.Catalog
1058
+ },
1059
+ 201: {
1060
+ bodyMapper: Mappers.Catalog
1061
+ },
1062
+ 202: {
1063
+ bodyMapper: Mappers.Catalog
1064
+ },
1065
+ 204: {
1066
+ bodyMapper: Mappers.Catalog
1067
+ },
1068
+ default: {
1069
+ bodyMapper: Mappers.ErrorResponse
1070
+ }
1071
+ },
1072
+ requestBody: Parameters.resource,
1073
+ queryParameters: [Parameters.apiVersion],
1074
+ urlParameters: [
1075
+ Parameters.$host,
1076
+ Parameters.subscriptionId,
1077
+ Parameters.resourceGroupName,
1078
+ Parameters.catalogName
1079
+ ],
1080
+ headerParameters: [Parameters.accept, Parameters.contentType],
1081
+ mediaType: "json",
1082
+ serializer
1083
+ };
1084
+ const updateOperationSpec: coreClient.OperationSpec = {
1085
+ path:
1086
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
1087
+ httpMethod: "PATCH",
1088
+ responses: {
1089
+ 200: {
1090
+ bodyMapper: Mappers.Catalog
1091
+ },
1092
+ default: {
1093
+ bodyMapper: Mappers.ErrorResponse
1094
+ }
1095
+ },
1096
+ requestBody: Parameters.properties,
1097
+ queryParameters: [Parameters.apiVersion],
1098
+ urlParameters: [
1099
+ Parameters.$host,
1100
+ Parameters.subscriptionId,
1101
+ Parameters.resourceGroupName,
1102
+ Parameters.catalogName
1103
+ ],
1104
+ headerParameters: [Parameters.accept, Parameters.contentType],
1105
+ mediaType: "json",
1106
+ serializer
1107
+ };
1108
+ const deleteOperationSpec: coreClient.OperationSpec = {
1109
+ path:
1110
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
1111
+ httpMethod: "DELETE",
1112
+ responses: {
1113
+ 200: {},
1114
+ 201: {},
1115
+ 202: {},
1116
+ 204: {},
1117
+ default: {
1118
+ bodyMapper: Mappers.ErrorResponse
1119
+ }
1120
+ },
1121
+ queryParameters: [Parameters.apiVersion],
1122
+ urlParameters: [
1123
+ Parameters.$host,
1124
+ Parameters.subscriptionId,
1125
+ Parameters.resourceGroupName,
1126
+ Parameters.catalogName
1127
+ ],
1128
+ headerParameters: [Parameters.accept],
1129
+ serializer
1130
+ };
1131
+ const countDevicesOperationSpec: coreClient.OperationSpec = {
1132
+ path:
1133
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices",
1134
+ httpMethod: "POST",
1135
+ responses: {
1136
+ 200: {
1137
+ bodyMapper: Mappers.CountDeviceResponse
1138
+ },
1139
+ default: {
1140
+ bodyMapper: Mappers.ErrorResponse
1141
+ }
1142
+ },
1143
+ queryParameters: [Parameters.apiVersion],
1144
+ urlParameters: [
1145
+ Parameters.$host,
1146
+ Parameters.subscriptionId,
1147
+ Parameters.resourceGroupName,
1148
+ Parameters.catalogName
1149
+ ],
1150
+ headerParameters: [Parameters.accept],
1151
+ serializer
1152
+ };
1153
+ const listDeploymentsOperationSpec: coreClient.OperationSpec = {
1154
+ path:
1155
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments",
1156
+ httpMethod: "POST",
1157
+ responses: {
1158
+ 200: {
1159
+ bodyMapper: Mappers.DeploymentListResult
1160
+ },
1161
+ default: {
1162
+ bodyMapper: Mappers.ErrorResponse
1163
+ }
1164
+ },
1165
+ queryParameters: [
1166
+ Parameters.apiVersion,
1167
+ Parameters.filter,
1168
+ Parameters.top,
1169
+ Parameters.skip,
1170
+ Parameters.maxpagesize
1171
+ ],
1172
+ urlParameters: [
1173
+ Parameters.$host,
1174
+ Parameters.subscriptionId,
1175
+ Parameters.resourceGroupName,
1176
+ Parameters.catalogName
1177
+ ],
1178
+ headerParameters: [Parameters.accept],
1179
+ serializer
1180
+ };
1181
+ const listDeviceGroupsOperationSpec: coreClient.OperationSpec = {
1182
+ path:
1183
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups",
1184
+ httpMethod: "POST",
1185
+ responses: {
1186
+ 200: {
1187
+ bodyMapper: Mappers.DeviceGroupListResult
1188
+ },
1189
+ default: {
1190
+ bodyMapper: Mappers.ErrorResponse
1191
+ }
1192
+ },
1193
+ requestBody: Parameters.listDeviceGroupsRequest,
1194
+ queryParameters: [
1195
+ Parameters.apiVersion,
1196
+ Parameters.filter,
1197
+ Parameters.top,
1198
+ Parameters.skip,
1199
+ Parameters.maxpagesize
1200
+ ],
1201
+ urlParameters: [
1202
+ Parameters.$host,
1203
+ Parameters.subscriptionId,
1204
+ Parameters.resourceGroupName,
1205
+ Parameters.catalogName
1206
+ ],
1207
+ headerParameters: [Parameters.accept, Parameters.contentType],
1208
+ mediaType: "json",
1209
+ serializer
1210
+ };
1211
+ const listDeviceInsightsOperationSpec: coreClient.OperationSpec = {
1212
+ path:
1213
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights",
1214
+ httpMethod: "POST",
1215
+ responses: {
1216
+ 200: {
1217
+ bodyMapper: Mappers.PagedDeviceInsight
1218
+ },
1219
+ default: {
1220
+ bodyMapper: Mappers.ErrorResponse
1221
+ }
1222
+ },
1223
+ queryParameters: [
1224
+ Parameters.apiVersion,
1225
+ Parameters.filter,
1226
+ Parameters.top,
1227
+ Parameters.skip,
1228
+ Parameters.maxpagesize
1229
+ ],
1230
+ urlParameters: [
1231
+ Parameters.$host,
1232
+ Parameters.subscriptionId,
1233
+ Parameters.resourceGroupName,
1234
+ Parameters.catalogName
1235
+ ],
1236
+ headerParameters: [Parameters.accept],
1237
+ serializer
1238
+ };
1239
+ const listDevicesOperationSpec: coreClient.OperationSpec = {
1240
+ path:
1241
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices",
1242
+ httpMethod: "POST",
1243
+ responses: {
1244
+ 200: {
1245
+ bodyMapper: Mappers.DeviceListResult
1246
+ },
1247
+ default: {
1248
+ bodyMapper: Mappers.ErrorResponse
1249
+ }
1250
+ },
1251
+ queryParameters: [
1252
+ Parameters.apiVersion,
1253
+ Parameters.filter,
1254
+ Parameters.top,
1255
+ Parameters.skip,
1256
+ Parameters.maxpagesize
1257
+ ],
1258
+ urlParameters: [
1259
+ Parameters.$host,
1260
+ Parameters.subscriptionId,
1261
+ Parameters.resourceGroupName,
1262
+ Parameters.catalogName
1263
+ ],
1264
+ headerParameters: [Parameters.accept],
1265
+ serializer
1266
+ };
1267
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
1268
+ path: "{nextLink}",
1269
+ httpMethod: "GET",
1270
+ responses: {
1271
+ 200: {
1272
+ bodyMapper: Mappers.CatalogListResult
1273
+ },
1274
+ default: {
1275
+ bodyMapper: Mappers.ErrorResponse
1276
+ }
1277
+ },
1278
+ urlParameters: [
1279
+ Parameters.$host,
1280
+ Parameters.nextLink,
1281
+ Parameters.subscriptionId
1282
+ ],
1283
+ headerParameters: [Parameters.accept],
1284
+ serializer
1285
+ };
1286
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
1287
+ path: "{nextLink}",
1288
+ httpMethod: "GET",
1289
+ responses: {
1290
+ 200: {
1291
+ bodyMapper: Mappers.CatalogListResult
1292
+ },
1293
+ default: {
1294
+ bodyMapper: Mappers.ErrorResponse
1295
+ }
1296
+ },
1297
+ urlParameters: [
1298
+ Parameters.$host,
1299
+ Parameters.nextLink,
1300
+ Parameters.subscriptionId,
1301
+ Parameters.resourceGroupName
1302
+ ],
1303
+ headerParameters: [Parameters.accept],
1304
+ serializer
1305
+ };
1306
+ const listDeploymentsNextOperationSpec: coreClient.OperationSpec = {
1307
+ path: "{nextLink}",
1308
+ httpMethod: "GET",
1309
+ responses: {
1310
+ 200: {
1311
+ bodyMapper: Mappers.DeploymentListResult
1312
+ },
1313
+ default: {
1314
+ bodyMapper: Mappers.ErrorResponse
1315
+ }
1316
+ },
1317
+ urlParameters: [
1318
+ Parameters.$host,
1319
+ Parameters.nextLink,
1320
+ Parameters.subscriptionId,
1321
+ Parameters.resourceGroupName,
1322
+ Parameters.catalogName
1323
+ ],
1324
+ headerParameters: [Parameters.accept],
1325
+ serializer
1326
+ };
1327
+ const listDeviceGroupsNextOperationSpec: coreClient.OperationSpec = {
1328
+ path: "{nextLink}",
1329
+ httpMethod: "GET",
1330
+ responses: {
1331
+ 200: {
1332
+ bodyMapper: Mappers.DeviceGroupListResult
1333
+ },
1334
+ default: {
1335
+ bodyMapper: Mappers.ErrorResponse
1336
+ }
1337
+ },
1338
+ urlParameters: [
1339
+ Parameters.$host,
1340
+ Parameters.nextLink,
1341
+ Parameters.subscriptionId,
1342
+ Parameters.resourceGroupName,
1343
+ Parameters.catalogName
1344
+ ],
1345
+ headerParameters: [Parameters.accept, Parameters.contentType],
1346
+ mediaType: "json",
1347
+ serializer
1348
+ };
1349
+ const listDeviceInsightsNextOperationSpec: coreClient.OperationSpec = {
1350
+ path: "{nextLink}",
1351
+ httpMethod: "GET",
1352
+ responses: {
1353
+ 200: {
1354
+ bodyMapper: Mappers.PagedDeviceInsight
1355
+ },
1356
+ default: {
1357
+ bodyMapper: Mappers.ErrorResponse
1358
+ }
1359
+ },
1360
+ urlParameters: [
1361
+ Parameters.$host,
1362
+ Parameters.nextLink,
1363
+ Parameters.subscriptionId,
1364
+ Parameters.resourceGroupName,
1365
+ Parameters.catalogName
1366
+ ],
1367
+ headerParameters: [Parameters.accept],
1368
+ serializer
1369
+ };
1370
+ const listDevicesNextOperationSpec: coreClient.OperationSpec = {
1371
+ path: "{nextLink}",
1372
+ httpMethod: "GET",
1373
+ responses: {
1374
+ 200: {
1375
+ bodyMapper: Mappers.DeviceListResult
1376
+ },
1377
+ default: {
1378
+ bodyMapper: Mappers.ErrorResponse
1379
+ }
1380
+ },
1381
+ urlParameters: [
1382
+ Parameters.$host,
1383
+ Parameters.nextLink,
1384
+ Parameters.subscriptionId,
1385
+ Parameters.resourceGroupName,
1386
+ Parameters.catalogName
1387
+ ],
1388
+ headerParameters: [Parameters.accept],
1389
+ serializer
1390
+ };