@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 @@
1
+ {"version":3,"file":"certificatesGetSample.js","sourceRoot":"","sources":["../../samples-dev/certificatesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,WAAW,EACX,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certificatesListByCatalogSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificatesListByCatalogSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificatesListByCatalogSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
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
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to List Certificate resources by Catalog
17
+ *
18
+ * @summary List Certificate resources by Catalog
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/GetCertificates.json
20
+ */
21
+ function certificatesListByCatalog() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
26
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
27
+ const catalogName = "MyCatalog1";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
30
+ const resArray = new Array();
31
+ try {
32
+ for (var _d = true, _e = __asyncValues(client.certificates.listByCatalog(resourceGroupName, catalogName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
33
+ _c = _f.value;
34
+ _d = false;
35
+ try {
36
+ let item = _c;
37
+ resArray.push(item);
38
+ }
39
+ finally {
40
+ _d = true;
41
+ }
42
+ }
43
+ }
44
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
45
+ finally {
46
+ try {
47
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
48
+ }
49
+ finally { if (e_1) throw e_1.error; }
50
+ }
51
+ console.log(resArray);
52
+ });
53
+ }
54
+ function main() {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ certificatesListByCatalog();
57
+ });
58
+ }
59
+ main().catch(console.error);
60
+ //# sourceMappingURL=certificatesListByCatalogSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificatesListByCatalogSample.js","sourceRoot":"","sources":["../../samples-dev/certificatesListByCatalogSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yBAAyB;;;QACtC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,YAAY,CAAC,aAAa,CACtD,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,yBAAyB,EAAE,CAAC;IAC9B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certificatesRetrieveCertChainSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificatesRetrieveCertChainSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificatesRetrieveCertChainSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Retrieves cert chain.
17
+ *
18
+ * @summary Retrieves cert chain.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PostRetrieveCatalogCertChain.json
20
+ */
21
+ function certificatesRetrieveCertChain() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
26
+ const catalogName = "MyCatalog1";
27
+ const serialNumber = "active";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
30
+ const result = yield client.certificates.retrieveCertChain(resourceGroupName, catalogName, serialNumber);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ certificatesRetrieveCertChain();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=certificatesRetrieveCertChainSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificatesRetrieveCertChainSample.js","sourceRoot":"","sources":["../../samples-dev/certificatesRetrieveCertChainSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,YAAY,GAAG,QAAQ,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,CACxD,iBAAiB,EACjB,WAAW,EACX,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6BAA6B,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certificatesRetrieveProofOfPossessionNonceSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificatesRetrieveProofOfPossessionNonceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificatesRetrieveProofOfPossessionNonceSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the proof of possession nonce.
17
+ *
18
+ * @summary Gets the proof of possession nonce.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PostRetrieveProofOfPossessionNonce.json
20
+ */
21
+ function certificatesRetrieveProofOfPossessionNonce() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
26
+ const catalogName = "MyCatalog1";
27
+ const serialNumber = "active";
28
+ const proofOfPossessionNonceRequest = {
29
+ proofOfPossessionNonce: "proofOfPossessionNonce"
30
+ };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
33
+ const result = yield client.certificates.retrieveProofOfPossessionNonce(resourceGroupName, catalogName, serialNumber, proofOfPossessionNonceRequest);
34
+ console.log(result);
35
+ });
36
+ }
37
+ function main() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ certificatesRetrieveProofOfPossessionNonce();
40
+ });
41
+ }
42
+ main().catch(console.error);
43
+ //# sourceMappingURL=certificatesRetrieveProofOfPossessionNonceSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificatesRetrieveProofOfPossessionNonceSample.js","sourceRoot":"","sources":["../../samples-dev/certificatesRetrieveProofOfPossessionNonceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,2BAA2B,EAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,YAAY,GAAG,QAAQ,CAAC;QAC9B,MAAM,6BAA6B,GAAkC;YACnE,sBAAsB,EAAE,wBAAwB;SACjD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,8BAA8B,CACrE,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deploymentsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PutDeployment.json
20
+ */
21
+ function deploymentsCreateOrUpdate() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
26
+ const catalogName = "MyCatalog1";
27
+ const productName = "MyProduct1";
28
+ const deviceGroupName = "myDeviceGroup1";
29
+ const deploymentName = "MyDeployment1";
30
+ const resource = {};
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
33
+ const result = yield client.deployments.beginCreateOrUpdateAndWait(resourceGroupName, catalogName, productName, deviceGroupName, deploymentName, resource);
34
+ console.log(result);
35
+ });
36
+ }
37
+ function main() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ deploymentsCreateOrUpdate();
40
+ });
41
+ }
42
+ main().catch(console.error);
43
+ //# sourceMappingURL=deploymentsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAc,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,gBAAgB,CAAC;QACzC,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,QAAQ,GAAe,EAAE,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,yBAAyB,EAAE,CAAC;IAC9B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deploymentsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/DeleteDeployment.json
20
+ */
21
+ function deploymentsDelete() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
26
+ const catalogName = "MyCatalog1";
27
+ const productName = "MyProductName1";
28
+ const deviceGroupName = "DeviceGroupName1";
29
+ const deploymentName = "MyDeploymentName1";
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
32
+ const result = yield client.deployments.beginDeleteAndWait(resourceGroupName, catalogName, productName, deviceGroupName, deploymentName);
33
+ console.log(result);
34
+ });
35
+ }
36
+ function main() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ deploymentsDelete();
39
+ });
40
+ }
41
+ main().catch(console.error);
42
+ //# sourceMappingURL=deploymentsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,WAAW,GAAG,gBAAgB,CAAC;QACrC,MAAM,eAAe,GAAG,kBAAkB,CAAC;QAC3C,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,kBAAkB,CACxD,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deploymentsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Get a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary Get a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/GetDeployment.json
20
+ */
21
+ function deploymentsGet() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
26
+ const catalogName = "MyCatalog1";
27
+ const productName = "MyProduct1";
28
+ const deviceGroupName = "myDeviceGroup1";
29
+ const deploymentName = "MyDeployment1";
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
32
+ const result = yield client.deployments.get(resourceGroupName, catalogName, productName, deviceGroupName, deploymentName);
33
+ console.log(result);
34
+ });
35
+ }
36
+ function main() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ deploymentsGet();
39
+ });
40
+ }
41
+ main().catch(console.error);
42
+ //# sourceMappingURL=deploymentsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsGetSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,gBAAgB,CAAC;QACzC,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CACzC,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deploymentsListByDeviceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsListByDeviceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsListByDeviceGroupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,62 @@
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
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/GetDeployments.json
20
+ */
21
+ function deploymentsListByDeviceGroup() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
26
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
27
+ const catalogName = "MyCatalog1";
28
+ const productName = "MyProduct1";
29
+ const deviceGroupName = "myDeviceGroup1";
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
32
+ const resArray = new Array();
33
+ try {
34
+ for (var _d = true, _e = __asyncValues(client.deployments.listByDeviceGroup(resourceGroupName, catalogName, productName, deviceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
35
+ _c = _f.value;
36
+ _d = false;
37
+ try {
38
+ let item = _c;
39
+ resArray.push(item);
40
+ }
41
+ finally {
42
+ _d = true;
43
+ }
44
+ }
45
+ }
46
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
47
+ finally {
48
+ try {
49
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
50
+ }
51
+ finally { if (e_1) throw e_1.error; }
52
+ }
53
+ console.log(resArray);
54
+ });
55
+ }
56
+ function main() {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ deploymentsListByDeviceGroup();
59
+ });
60
+ }
61
+ main().catch(console.error);
62
+ //# sourceMappingURL=deploymentsListByDeviceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsListByDeviceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsListByDeviceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;;QACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,gBAAgB,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,WAAW,CAAC,iBAAiB,CACzD,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,CAChB,CAAA,IAAA;gBALsB,cAKtB;gBALsB,WAKtB;;oBALU,IAAI,IAAI,KAAA,CAAA;oBAMjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deviceGroupsClaimDevicesSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsClaimDevicesSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deviceGroupsClaimDevicesSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when bulk claiming devices to a catalog only.
17
+ *
18
+ * @summary Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when bulk claiming devices to a catalog only.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PostClaimDevices.json
20
+ */
21
+ function deviceGroupsClaimDevices() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
26
+ const catalogName = "MyCatalog1";
27
+ const productName = "MyProduct1";
28
+ const deviceGroupName = "MyDeviceGroup1";
29
+ const claimDevicesRequest = {
30
+ deviceIdentifiers: [
31
+ "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
32
+ ]
33
+ };
34
+ const credential = new DefaultAzureCredential();
35
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
36
+ const result = yield client.deviceGroups.beginClaimDevicesAndWait(resourceGroupName, catalogName, productName, deviceGroupName, claimDevicesRequest);
37
+ console.log(result);
38
+ });
39
+ }
40
+ function main() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ deviceGroupsClaimDevices();
43
+ });
44
+ }
45
+ main().catch(console.error);
46
+ //# sourceMappingURL=deviceGroupsClaimDevicesSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsClaimDevicesSample.js","sourceRoot":"","sources":["../../samples-dev/deviceGroupsClaimDevicesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,2BAA2B,EAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,gBAAgB,CAAC;QACzC,MAAM,mBAAmB,GAAwB;YAC/C,iBAAiB,EAAE;gBACjB,kIAAkI;aACnI;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,wBAAwB,CAC/D,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,wBAAwB,EAAE,CAAC;IAC7B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deviceGroupsCountDevicesSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsCountDevicesSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deviceGroupsCountDevicesSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Counts devices in device group. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary Counts devices in device group. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PostCountDevicesDeviceGroup.json
20
+ */
21
+ function deviceGroupsCountDevices() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
26
+ const catalogName = "MyCatalog1";
27
+ const productName = "MyProduct1";
28
+ const deviceGroupName = "MyDeviceGroup1";
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
31
+ const result = yield client.deviceGroups.countDevices(resourceGroupName, catalogName, productName, deviceGroupName);
32
+ console.log(result);
33
+ });
34
+ }
35
+ function main() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ deviceGroupsCountDevices();
38
+ });
39
+ }
40
+ main().catch(console.error);
41
+ //# sourceMappingURL=deviceGroupsCountDevicesSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsCountDevicesSample.js","sourceRoot":"","sources":["../../samples-dev/deviceGroupsCountDevicesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,gBAAgB,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,YAAY,CACnD,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,wBAAwB,EAAE,CAAC;IAC7B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deviceGroupsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deviceGroupsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureSphereManagementClient } from "@azure/arm-sphere";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PutDeviceGroup.json
20
+ */
21
+ function deviceGroupsCreateOrUpdate() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["SPHERE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["SPHERE_RESOURCE_GROUP"] || "MyResourceGroup1";
26
+ const catalogName = "MyCatalog1";
27
+ const productName = "MyProduct1";
28
+ const deviceGroupName = "MyDeviceGroup1";
29
+ const resource = {
30
+ description: "Description for MyDeviceGroup1",
31
+ osFeedType: "Retail",
32
+ updatePolicy: "UpdateAll"
33
+ };
34
+ const credential = new DefaultAzureCredential();
35
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
36
+ const result = yield client.deviceGroups.beginCreateOrUpdateAndWait(resourceGroupName, catalogName, productName, deviceGroupName, resource);
37
+ console.log(result);
38
+ });
39
+ }
40
+ function main() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ deviceGroupsCreateOrUpdate();
43
+ });
44
+ }
45
+ main().catch(console.error);
46
+ //# sourceMappingURL=deviceGroupsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deviceGroupsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAe,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,kBAAkB,CAAC;QAC7D,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,gBAAgB,CAAC;QACzC,MAAM,QAAQ,GAAgB;YAC5B,WAAW,EAAE,gCAAgC;YAC7C,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,WAAW;SAC1B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,0BAA0B,CACjE,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0BAA0B,EAAE,CAAC;IAC/B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deviceGroupsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deviceGroupsDeleteSample.ts"],"names":[],"mappings":""}