@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,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 Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary Delete 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/DeleteDeviceGroup.json
20
+ */
21
+ function deviceGroupsDelete() {
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.beginDeleteAndWait(resourceGroupName, catalogName, productName, deviceGroupName);
32
+ console.log(result);
33
+ });
34
+ }
35
+ function main() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ deviceGroupsDelete();
38
+ });
39
+ }
40
+ main().catch(console.error);
41
+ //# sourceMappingURL=deviceGroupsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/deviceGroupsDeleteSample.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,kBAAkB;;QAC/B,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,kBAAkB,CACzD,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deviceGroupsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deviceGroupsGetSample.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 Get a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary Get 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/GetDeviceGroup.json
20
+ */
21
+ function deviceGroupsGet() {
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.get(resourceGroupName, catalogName, productName, deviceGroupName);
32
+ console.log(result);
33
+ });
34
+ }
35
+ function main() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ deviceGroupsGet();
38
+ });
39
+ }
40
+ main().catch(console.error);
41
+ //# sourceMappingURL=deviceGroupsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsGetSample.js","sourceRoot":"","sources":["../../samples-dev/deviceGroupsGetSample.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,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,GAAG,CAC1C,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,CAChB,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=deviceGroupsListByProductSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsListByProductSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deviceGroupsListByProductSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,61 @@
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 DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
17
+ *
18
+ * @summary List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/GetDeviceGroups.json
20
+ */
21
+ function deviceGroupsListByProduct() {
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 credential = new DefaultAzureCredential();
30
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
31
+ const resArray = new Array();
32
+ try {
33
+ for (var _d = true, _e = __asyncValues(client.deviceGroups.listByProduct(resourceGroupName, catalogName, productName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
34
+ _c = _f.value;
35
+ _d = false;
36
+ try {
37
+ let item = _c;
38
+ resArray.push(item);
39
+ }
40
+ finally {
41
+ _d = true;
42
+ }
43
+ }
44
+ }
45
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
46
+ finally {
47
+ try {
48
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
49
+ }
50
+ finally { if (e_1) throw e_1.error; }
51
+ }
52
+ console.log(resArray);
53
+ });
54
+ }
55
+ function main() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ deviceGroupsListByProduct();
58
+ });
59
+ }
60
+ main().catch(console.error);
61
+ //# sourceMappingURL=deviceGroupsListByProductSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsListByProductSample.js","sourceRoot":"","sources":["../../samples-dev/deviceGroupsListByProductSample.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,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,EACX,WAAW,CACZ,CAAA,IAAA;gBAJsB,cAItB;gBAJsB,WAItB;;oBAJU,IAAI,IAAI,KAAA,CAAA;oBAKjB,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=deviceGroupsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deviceGroupsUpdateSample.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 Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary Update 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/PatchDeviceGroup.json
20
+ */
21
+ function deviceGroupsUpdate() {
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 properties = {};
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
32
+ const result = yield client.deviceGroups.beginUpdateAndWait(resourceGroupName, catalogName, productName, deviceGroupName, properties);
33
+ console.log(result);
34
+ });
35
+ }
36
+ function main() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ deviceGroupsUpdate();
39
+ });
40
+ }
41
+ main().catch(console.error);
42
+ //# sourceMappingURL=deviceGroupsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceGroupsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deviceGroupsUpdateSample.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,kBAAkB;;QAC/B,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,GAAsB,EAAE,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,kBAAkB,CACzD,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=devicesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/devicesCreateOrUpdateSample.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 Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.
17
+ *
18
+ * @summary Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PutDevice.json
20
+ */
21
+ function devicesCreateOrUpdate() {
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 deviceName = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
30
+ const resource = {};
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
33
+ const result = yield client.devices.beginCreateOrUpdateAndWait(resourceGroupName, catalogName, productName, deviceGroupName, deviceName, resource);
34
+ console.log(result);
35
+ });
36
+ }
37
+ function main() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ devicesCreateOrUpdate();
40
+ });
41
+ }
42
+ main().catch(console.error);
43
+ //# sourceMappingURL=devicesCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/devicesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAU,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,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,GACd,kIAAkI,CAAC;QACrI,MAAM,QAAQ,GAAW,EAAE,CAAC;QAC5B,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,OAAO,CAAC,0BAA0B,CAC5D,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=devicesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/devicesDeleteSample.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 Device
17
+ *
18
+ * @summary Delete a Device
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/DeleteDevice.json
20
+ */
21
+ function devicesDelete() {
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 deviceName = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
32
+ const result = yield client.devices.beginDeleteAndWait(resourceGroupName, catalogName, productName, deviceGroupName, deviceName);
33
+ console.log(result);
34
+ });
35
+ }
36
+ function main() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ devicesDelete();
39
+ });
40
+ }
41
+ main().catch(console.error);
42
+ //# sourceMappingURL=devicesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/devicesDeleteSample.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,aAAa;;QAC1B,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,UAAU,GACd,kIAAkI,CAAC;QACrI,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,OAAO,CAAC,kBAAkB,CACpD,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=devicesGenerateCapabilityImageSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesGenerateCapabilityImageSample.d.ts","sourceRoot":"","sources":["../../samples-dev/devicesGenerateCapabilityImageSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 Generates the capability image for the device. Use '.unassigned' or '.default' for the device group and product names to generate the image for a device that does not belong to a specific device group and product.
17
+ *
18
+ * @summary Generates the capability image for the device. Use '.unassigned' or '.default' for the device group and product names to generate the image for a device that does not belong to a specific device group and product.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PostGenerateDeviceCapabilityImage.json
20
+ */
21
+ function devicesGenerateCapabilityImage() {
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 deviceName = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
30
+ const generateDeviceCapabilityRequest = {
31
+ capabilities: ["ApplicationDevelopment"]
32
+ };
33
+ const credential = new DefaultAzureCredential();
34
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
35
+ const result = yield client.devices.beginGenerateCapabilityImageAndWait(resourceGroupName, catalogName, productName, deviceGroupName, deviceName, generateDeviceCapabilityRequest);
36
+ console.log(result);
37
+ });
38
+ }
39
+ function main() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ devicesGenerateCapabilityImage();
42
+ });
43
+ }
44
+ main().catch(console.error);
45
+ //# sourceMappingURL=devicesGenerateCapabilityImageSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesGenerateCapabilityImageSample.js","sourceRoot":"","sources":["../../samples-dev/devicesGenerateCapabilityImageSample.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,8BAA8B;;QAC3C,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,GACd,kIAAkI,CAAC;QACrI,MAAM,+BAA+B,GAAmC;YACtE,YAAY,EAAE,CAAC,wBAAwB,CAAC;SACzC,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,OAAO,CAAC,mCAAmC,CACrE,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,+BAA+B,CAChC,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,8BAA8B,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=devicesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/devicesGetSample.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 Device. Use '.unassigned' or '.default' for the device group and product names when a device does not belong to a device group and product.
17
+ *
18
+ * @summary Get a Device. Use '.unassigned' or '.default' for the device group and product names when a device does not belong to a device group and product.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/GetDevice.json
20
+ */
21
+ function devicesGet() {
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 deviceName = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
32
+ const result = yield client.devices.get(resourceGroupName, catalogName, productName, deviceGroupName, deviceName);
33
+ console.log(result);
34
+ });
35
+ }
36
+ function main() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ devicesGet();
39
+ });
40
+ }
41
+ main().catch(console.error);
42
+ //# sourceMappingURL=devicesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesGetSample.js","sourceRoot":"","sources":["../../samples-dev/devicesGetSample.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,UAAU;;QACvB,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,GACd,kIAAkI,CAAC;QACrI,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,OAAO,CAAC,GAAG,CACrC,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,UAAU,EAAE,CAAC;IACf,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=devicesListByDeviceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesListByDeviceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/devicesListByDeviceGroupSample.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 Device resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
17
+ *
18
+ * @summary List Device 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/GetDevices.json
20
+ */
21
+ function devicesListByDeviceGroup() {
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.devices.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
+ devicesListByDeviceGroup();
59
+ });
60
+ }
61
+ main().catch(console.error);
62
+ //# sourceMappingURL=devicesListByDeviceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesListByDeviceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/devicesListByDeviceGroupSample.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,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,OAAO,CAAC,iBAAiB,CACrD,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,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=devicesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/devicesUpdateSample.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 Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.
17
+ *
18
+ * @summary Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.
19
+ * x-ms-original-file: specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/examples/PatchDevice.json
20
+ */
21
+ function devicesUpdate() {
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 deviceName = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
30
+ const properties = {};
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new AzureSphereManagementClient(credential, subscriptionId);
33
+ const result = yield client.devices.beginUpdateAndWait(resourceGroupName, catalogName, productName, deviceGroupName, deviceName, properties);
34
+ console.log(result);
35
+ });
36
+ }
37
+ function main() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ devicesUpdate();
40
+ });
41
+ }
42
+ main().catch(console.error);
43
+ //# sourceMappingURL=devicesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devicesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/devicesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAgB,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,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,GACd,kIAAkI,CAAC;QACrI,MAAM,UAAU,GAAiB,EAAE,CAAC;QACpC,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,OAAO,CAAC,kBAAkB,CACpD,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=imagesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imagesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/imagesCreateOrUpdateSample.ts"],"names":[],"mappings":""}