@azure/arm-deviceprovisioningservices 6.0.0-beta.2 → 6.0.0-beta.3

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 (510) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +9 -12
  3. package/dist/browser/api/dpsCertificate/index.d.ts +3 -0
  4. package/dist/browser/api/dpsCertificate/index.js +4 -0
  5. package/dist/browser/api/dpsCertificate/index.js.map +1 -0
  6. package/dist/browser/api/dpsCertificate/operations.d.ts +35 -0
  7. package/dist/browser/api/dpsCertificate/operations.js +258 -0
  8. package/dist/browser/api/dpsCertificate/operations.js.map +1 -0
  9. package/dist/browser/api/dpsCertificate/options.d.ts +73 -0
  10. package/dist/browser/api/dpsCertificate/options.js +4 -0
  11. package/dist/browser/api/dpsCertificate/options.js.map +1 -0
  12. package/dist/browser/api/index.d.ts +2 -0
  13. package/dist/browser/api/index.js +4 -0
  14. package/dist/browser/api/index.js.map +1 -0
  15. package/dist/browser/api/iotDpsContext.d.ts +22 -0
  16. package/dist/browser/api/iotDpsContext.js +39 -0
  17. package/dist/browser/api/iotDpsContext.js.map +1 -0
  18. package/dist/browser/api/iotDpsResource/index.d.ts +3 -0
  19. package/dist/browser/api/iotDpsResource/index.js +4 -0
  20. package/dist/browser/api/iotDpsResource/index.js.map +1 -0
  21. package/dist/browser/api/iotDpsResource/operations.d.ts +80 -0
  22. package/dist/browser/api/iotDpsResource/operations.js +603 -0
  23. package/dist/browser/api/iotDpsResource/operations.js.map +1 -0
  24. package/dist/browser/api/iotDpsResource/options.d.ts +63 -0
  25. package/dist/browser/api/iotDpsResource/options.js +4 -0
  26. package/dist/browser/api/iotDpsResource/options.js.map +1 -0
  27. package/dist/browser/api/operations/index.d.ts +3 -0
  28. package/dist/browser/api/operations/index.js +4 -0
  29. package/dist/browser/api/operations/index.js.map +1 -0
  30. package/dist/browser/api/operations/operations.d.ts +10 -0
  31. package/dist/browser/api/operations/operations.js +34 -0
  32. package/dist/browser/api/operations/operations.js.map +1 -0
  33. package/dist/browser/api/operations/options.d.ts +5 -0
  34. package/dist/browser/api/operations/options.js +4 -0
  35. package/dist/browser/api/operations/options.js.map +1 -0
  36. package/dist/browser/classic/dpsCertificate/index.d.ts +26 -0
  37. package/dist/browser/classic/dpsCertificate/index.js +19 -0
  38. package/dist/browser/classic/dpsCertificate/index.js.map +1 -0
  39. package/dist/browser/classic/index.d.ts +4 -0
  40. package/dist/browser/classic/index.js +4 -0
  41. package/dist/browser/classic/index.js.map +1 -0
  42. package/dist/browser/classic/iotDpsResource/index.d.ts +49 -0
  43. package/dist/browser/classic/iotDpsResource/index.js +30 -0
  44. package/dist/browser/classic/iotDpsResource/index.js.map +1 -0
  45. package/dist/browser/classic/operations/index.d.ts +11 -0
  46. package/dist/browser/classic/operations/index.js +14 -0
  47. package/dist/browser/classic/operations/index.js.map +1 -0
  48. package/dist/browser/index.d.ts +11 -3
  49. package/dist/browser/index.js +6 -11
  50. package/dist/browser/index.js.map +1 -1
  51. package/dist/browser/iotDpsClient.d.ts +19 -20
  52. package/dist/browser/iotDpsClient.js +28 -105
  53. package/dist/browser/iotDpsClient.js.map +1 -1
  54. package/dist/browser/logger.d.ts +2 -0
  55. package/dist/browser/logger.js +5 -0
  56. package/dist/browser/logger.js.map +1 -0
  57. package/dist/browser/models/index.d.ts +1 -978
  58. package/dist/browser/models/index.js +3 -127
  59. package/dist/browser/models/index.js.map +1 -1
  60. package/dist/browser/models/models.d.ts +710 -0
  61. package/dist/browser/models/models.js +749 -0
  62. package/dist/browser/models/models.js.map +1 -0
  63. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  64. package/dist/browser/restorePollerHelpers.js +104 -0
  65. package/dist/browser/restorePollerHelpers.js.map +1 -0
  66. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  67. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  68. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  69. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  70. package/dist/browser/static-helpers/pagingHelpers.js +118 -0
  71. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  72. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  73. package/dist/browser/static-helpers/pollingHelpers.js +79 -0
  74. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  75. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  76. package/dist/browser/static-helpers/urlTemplate.js +185 -0
  77. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  78. package/dist/commonjs/api/dpsCertificate/index.d.ts +3 -0
  79. package/dist/commonjs/api/dpsCertificate/index.js +13 -0
  80. package/dist/commonjs/api/dpsCertificate/index.js.map +1 -0
  81. package/dist/commonjs/api/dpsCertificate/operations.d.ts +35 -0
  82. package/dist/commonjs/api/dpsCertificate/operations.js +278 -0
  83. package/dist/commonjs/api/dpsCertificate/operations.js.map +1 -0
  84. package/dist/commonjs/api/dpsCertificate/options.d.ts +73 -0
  85. package/dist/commonjs/api/dpsCertificate/options.js +5 -0
  86. package/dist/commonjs/api/dpsCertificate/options.js.map +1 -0
  87. package/dist/commonjs/api/index.d.ts +2 -0
  88. package/dist/commonjs/api/index.js +8 -0
  89. package/dist/commonjs/api/index.js.map +1 -0
  90. package/dist/commonjs/api/iotDpsContext.d.ts +22 -0
  91. package/dist/commonjs/api/iotDpsContext.js +42 -0
  92. package/dist/commonjs/api/iotDpsContext.js.map +1 -0
  93. package/dist/commonjs/api/iotDpsResource/index.d.ts +3 -0
  94. package/dist/commonjs/api/iotDpsResource/index.js +24 -0
  95. package/dist/commonjs/api/iotDpsResource/index.js.map +1 -0
  96. package/dist/commonjs/api/iotDpsResource/operations.d.ts +80 -0
  97. package/dist/commonjs/api/iotDpsResource/operations.js +656 -0
  98. package/dist/commonjs/api/iotDpsResource/operations.js.map +1 -0
  99. package/dist/commonjs/api/iotDpsResource/options.d.ts +63 -0
  100. package/dist/commonjs/api/iotDpsResource/options.js +5 -0
  101. package/dist/commonjs/api/iotDpsResource/options.js.map +1 -0
  102. package/dist/commonjs/api/operations/index.d.ts +3 -0
  103. package/dist/commonjs/api/operations/index.js +8 -0
  104. package/dist/commonjs/api/operations/index.js.map +1 -0
  105. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  106. package/dist/commonjs/api/operations/operations.js +39 -0
  107. package/dist/commonjs/api/operations/operations.js.map +1 -0
  108. package/dist/commonjs/api/operations/options.d.ts +5 -0
  109. package/dist/commonjs/api/operations/options.js +5 -0
  110. package/dist/commonjs/api/operations/options.js.map +1 -0
  111. package/dist/commonjs/classic/dpsCertificate/index.d.ts +26 -0
  112. package/dist/commonjs/classic/dpsCertificate/index.js +22 -0
  113. package/dist/commonjs/classic/dpsCertificate/index.js.map +1 -0
  114. package/dist/commonjs/classic/index.d.ts +4 -0
  115. package/dist/commonjs/classic/index.js +5 -0
  116. package/dist/commonjs/classic/index.js.map +1 -0
  117. package/dist/commonjs/classic/iotDpsResource/index.d.ts +49 -0
  118. package/dist/commonjs/classic/iotDpsResource/index.js +33 -0
  119. package/dist/commonjs/classic/iotDpsResource/index.js.map +1 -0
  120. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  121. package/dist/commonjs/classic/operations/index.js +17 -0
  122. package/dist/commonjs/classic/operations/index.js.map +1 -0
  123. package/dist/commonjs/index.d.ts +11 -3
  124. package/dist/commonjs/index.js +20 -14
  125. package/dist/commonjs/index.js.map +1 -1
  126. package/dist/commonjs/iotDpsClient.d.ts +19 -20
  127. package/dist/commonjs/iotDpsClient.js +28 -106
  128. package/dist/commonjs/iotDpsClient.js.map +1 -1
  129. package/dist/commonjs/logger.d.ts +2 -0
  130. package/dist/commonjs/logger.js +8 -0
  131. package/dist/commonjs/logger.js.map +1 -0
  132. package/dist/commonjs/models/index.d.ts +1 -978
  133. package/dist/commonjs/models/index.js +16 -128
  134. package/dist/commonjs/models/index.js.map +1 -1
  135. package/dist/commonjs/models/models.d.ts +710 -0
  136. package/dist/commonjs/models/models.js +833 -0
  137. package/dist/commonjs/models/models.js.map +1 -0
  138. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  139. package/dist/commonjs/restorePollerHelpers.js +107 -0
  140. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  141. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  142. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
  143. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  144. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  145. package/dist/commonjs/static-helpers/pagingHelpers.js +121 -0
  146. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  147. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  148. package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
  149. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  150. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  151. package/dist/commonjs/static-helpers/urlTemplate.js +188 -0
  152. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  153. package/dist/commonjs/tsdoc-metadata.json +1 -1
  154. package/dist/esm/api/dpsCertificate/index.d.ts +3 -0
  155. package/dist/esm/api/dpsCertificate/index.js +4 -0
  156. package/dist/esm/api/dpsCertificate/index.js.map +1 -0
  157. package/dist/esm/api/dpsCertificate/operations.d.ts +35 -0
  158. package/dist/esm/api/dpsCertificate/operations.js +258 -0
  159. package/dist/esm/api/dpsCertificate/operations.js.map +1 -0
  160. package/dist/esm/api/dpsCertificate/options.d.ts +73 -0
  161. package/dist/esm/api/dpsCertificate/options.js +4 -0
  162. package/dist/esm/api/dpsCertificate/options.js.map +1 -0
  163. package/dist/esm/api/index.d.ts +2 -0
  164. package/dist/esm/api/index.js +4 -0
  165. package/dist/esm/api/index.js.map +1 -0
  166. package/dist/esm/api/iotDpsContext.d.ts +22 -0
  167. package/dist/esm/api/iotDpsContext.js +39 -0
  168. package/dist/esm/api/iotDpsContext.js.map +1 -0
  169. package/dist/esm/api/iotDpsResource/index.d.ts +3 -0
  170. package/dist/esm/api/iotDpsResource/index.js +4 -0
  171. package/dist/esm/api/iotDpsResource/index.js.map +1 -0
  172. package/dist/esm/api/iotDpsResource/operations.d.ts +80 -0
  173. package/dist/esm/api/iotDpsResource/operations.js +603 -0
  174. package/dist/esm/api/iotDpsResource/operations.js.map +1 -0
  175. package/dist/esm/api/iotDpsResource/options.d.ts +63 -0
  176. package/dist/esm/api/iotDpsResource/options.js +4 -0
  177. package/dist/esm/api/iotDpsResource/options.js.map +1 -0
  178. package/dist/esm/api/operations/index.d.ts +3 -0
  179. package/dist/esm/api/operations/index.js +4 -0
  180. package/dist/esm/api/operations/index.js.map +1 -0
  181. package/dist/esm/api/operations/operations.d.ts +10 -0
  182. package/dist/esm/api/operations/operations.js +34 -0
  183. package/dist/esm/api/operations/operations.js.map +1 -0
  184. package/dist/esm/api/operations/options.d.ts +5 -0
  185. package/dist/esm/api/operations/options.js +4 -0
  186. package/dist/esm/api/operations/options.js.map +1 -0
  187. package/dist/esm/classic/dpsCertificate/index.d.ts +26 -0
  188. package/dist/esm/classic/dpsCertificate/index.js +19 -0
  189. package/dist/esm/classic/dpsCertificate/index.js.map +1 -0
  190. package/dist/esm/classic/index.d.ts +4 -0
  191. package/dist/esm/classic/index.js +4 -0
  192. package/dist/esm/classic/index.js.map +1 -0
  193. package/dist/esm/classic/iotDpsResource/index.d.ts +49 -0
  194. package/dist/esm/classic/iotDpsResource/index.js +30 -0
  195. package/dist/esm/classic/iotDpsResource/index.js.map +1 -0
  196. package/dist/esm/classic/operations/index.d.ts +11 -0
  197. package/dist/esm/classic/operations/index.js +14 -0
  198. package/dist/esm/classic/operations/index.js.map +1 -0
  199. package/dist/esm/index.d.ts +11 -3
  200. package/dist/esm/index.js +6 -11
  201. package/dist/esm/index.js.map +1 -1
  202. package/dist/esm/iotDpsClient.d.ts +19 -20
  203. package/dist/esm/iotDpsClient.js +28 -105
  204. package/dist/esm/iotDpsClient.js.map +1 -1
  205. package/dist/esm/logger.d.ts +2 -0
  206. package/dist/esm/logger.js +5 -0
  207. package/dist/esm/logger.js.map +1 -0
  208. package/dist/esm/models/index.d.ts +1 -978
  209. package/dist/esm/models/index.js +3 -127
  210. package/dist/esm/models/index.js.map +1 -1
  211. package/dist/esm/models/models.d.ts +710 -0
  212. package/dist/esm/models/models.js +749 -0
  213. package/dist/esm/models/models.js.map +1 -0
  214. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  215. package/dist/esm/restorePollerHelpers.js +104 -0
  216. package/dist/esm/restorePollerHelpers.js.map +1 -0
  217. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  218. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  219. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  220. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  221. package/dist/esm/static-helpers/pagingHelpers.js +118 -0
  222. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  223. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  224. package/dist/esm/static-helpers/pollingHelpers.js +79 -0
  225. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  226. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  227. package/dist/esm/static-helpers/urlTemplate.js +185 -0
  228. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  229. package/dist/react-native/api/dpsCertificate/index.d.ts +3 -0
  230. package/dist/react-native/api/dpsCertificate/index.js +4 -0
  231. package/dist/react-native/api/dpsCertificate/index.js.map +1 -0
  232. package/dist/react-native/api/dpsCertificate/operations.d.ts +35 -0
  233. package/dist/react-native/api/dpsCertificate/operations.js +258 -0
  234. package/dist/react-native/api/dpsCertificate/operations.js.map +1 -0
  235. package/dist/react-native/api/dpsCertificate/options.d.ts +73 -0
  236. package/dist/react-native/api/dpsCertificate/options.js +4 -0
  237. package/dist/react-native/api/dpsCertificate/options.js.map +1 -0
  238. package/dist/react-native/api/index.d.ts +2 -0
  239. package/dist/react-native/api/index.js +4 -0
  240. package/dist/react-native/api/index.js.map +1 -0
  241. package/dist/react-native/api/iotDpsContext.d.ts +22 -0
  242. package/dist/react-native/api/iotDpsContext.js +39 -0
  243. package/dist/react-native/api/iotDpsContext.js.map +1 -0
  244. package/dist/react-native/api/iotDpsResource/index.d.ts +3 -0
  245. package/dist/react-native/api/iotDpsResource/index.js +4 -0
  246. package/dist/react-native/api/iotDpsResource/index.js.map +1 -0
  247. package/dist/react-native/api/iotDpsResource/operations.d.ts +80 -0
  248. package/dist/react-native/api/iotDpsResource/operations.js +603 -0
  249. package/dist/react-native/api/iotDpsResource/operations.js.map +1 -0
  250. package/dist/react-native/api/iotDpsResource/options.d.ts +63 -0
  251. package/dist/react-native/api/iotDpsResource/options.js +4 -0
  252. package/dist/react-native/api/iotDpsResource/options.js.map +1 -0
  253. package/dist/react-native/api/operations/index.d.ts +3 -0
  254. package/dist/react-native/api/operations/index.js +4 -0
  255. package/dist/react-native/api/operations/index.js.map +1 -0
  256. package/dist/react-native/api/operations/operations.d.ts +10 -0
  257. package/dist/react-native/api/operations/operations.js +34 -0
  258. package/dist/react-native/api/operations/operations.js.map +1 -0
  259. package/dist/react-native/api/operations/options.d.ts +5 -0
  260. package/dist/react-native/api/operations/options.js +4 -0
  261. package/dist/react-native/api/operations/options.js.map +1 -0
  262. package/dist/react-native/classic/dpsCertificate/index.d.ts +26 -0
  263. package/dist/react-native/classic/dpsCertificate/index.js +19 -0
  264. package/dist/react-native/classic/dpsCertificate/index.js.map +1 -0
  265. package/dist/react-native/classic/index.d.ts +4 -0
  266. package/dist/react-native/classic/index.js +4 -0
  267. package/dist/react-native/classic/index.js.map +1 -0
  268. package/dist/react-native/classic/iotDpsResource/index.d.ts +49 -0
  269. package/dist/react-native/classic/iotDpsResource/index.js +30 -0
  270. package/dist/react-native/classic/iotDpsResource/index.js.map +1 -0
  271. package/dist/react-native/classic/operations/index.d.ts +11 -0
  272. package/dist/react-native/classic/operations/index.js +14 -0
  273. package/dist/react-native/classic/operations/index.js.map +1 -0
  274. package/dist/react-native/index.d.ts +11 -3
  275. package/dist/react-native/index.js +6 -11
  276. package/dist/react-native/index.js.map +1 -1
  277. package/dist/react-native/iotDpsClient.d.ts +19 -20
  278. package/dist/react-native/iotDpsClient.js +28 -105
  279. package/dist/react-native/iotDpsClient.js.map +1 -1
  280. package/dist/react-native/logger.d.ts +2 -0
  281. package/dist/react-native/logger.js +5 -0
  282. package/dist/react-native/logger.js.map +1 -0
  283. package/dist/react-native/models/index.d.ts +1 -978
  284. package/dist/react-native/models/index.js +3 -127
  285. package/dist/react-native/models/index.js.map +1 -1
  286. package/dist/react-native/models/models.d.ts +710 -0
  287. package/dist/react-native/models/models.js +749 -0
  288. package/dist/react-native/models/models.js.map +1 -0
  289. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  290. package/dist/react-native/restorePollerHelpers.js +104 -0
  291. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  292. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
  293. package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
  294. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  295. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  296. package/dist/react-native/static-helpers/pagingHelpers.js +118 -0
  297. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  298. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  299. package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
  300. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  301. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  302. package/dist/react-native/static-helpers/urlTemplate.js +185 -0
  303. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  304. package/package.json +141 -38
  305. package/CHANGELOG.md +0 -83
  306. package/dist/browser/index.d.ts.map +0 -1
  307. package/dist/browser/iotDpsClient.d.ts.map +0 -1
  308. package/dist/browser/lroImpl.d.ts +0 -11
  309. package/dist/browser/lroImpl.d.ts.map +0 -1
  310. package/dist/browser/lroImpl.js +0 -18
  311. package/dist/browser/lroImpl.js.map +0 -1
  312. package/dist/browser/models/index.d.ts.map +0 -1
  313. package/dist/browser/models/mappers.d.ts +0 -40
  314. package/dist/browser/models/mappers.d.ts.map +0 -1
  315. package/dist/browser/models/mappers.js +0 -1268
  316. package/dist/browser/models/mappers.js.map +0 -1
  317. package/dist/browser/models/parameters.d.ts +0 -34
  318. package/dist/browser/models/parameters.d.ts.map +0 -1
  319. package/dist/browser/models/parameters.js +0 -293
  320. package/dist/browser/models/parameters.js.map +0 -1
  321. package/dist/browser/operations/dpsCertificate.d.ts +0 -70
  322. package/dist/browser/operations/dpsCertificate.d.ts.map +0 -1
  323. package/dist/browser/operations/dpsCertificate.js +0 -290
  324. package/dist/browser/operations/dpsCertificate.js.map +0 -1
  325. package/dist/browser/operations/index.d.ts +0 -4
  326. package/dist/browser/operations/index.d.ts.map +0 -1
  327. package/dist/browser/operations/index.js +0 -11
  328. package/dist/browser/operations/index.js.map +0 -1
  329. package/dist/browser/operations/iotDpsResource.d.ts +0 -253
  330. package/dist/browser/operations/iotDpsResource.d.ts.map +0 -1
  331. package/dist/browser/operations/iotDpsResource.js +0 -1170
  332. package/dist/browser/operations/iotDpsResource.js.map +0 -1
  333. package/dist/browser/operations/operations.d.ts +0 -32
  334. package/dist/browser/operations/operations.d.ts.map +0 -1
  335. package/dist/browser/operations/operations.js +0 -116
  336. package/dist/browser/operations/operations.js.map +0 -1
  337. package/dist/browser/operationsInterfaces/dpsCertificate.d.ts +0 -62
  338. package/dist/browser/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  339. package/dist/browser/operationsInterfaces/dpsCertificate.js +0 -9
  340. package/dist/browser/operationsInterfaces/dpsCertificate.js.map +0 -1
  341. package/dist/browser/operationsInterfaces/index.d.ts +0 -4
  342. package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
  343. package/dist/browser/operationsInterfaces/index.js +0 -11
  344. package/dist/browser/operationsInterfaces/index.js.map +0 -1
  345. package/dist/browser/operationsInterfaces/iotDpsResource.d.ts +0 -183
  346. package/dist/browser/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  347. package/dist/browser/operationsInterfaces/iotDpsResource.js +0 -9
  348. package/dist/browser/operationsInterfaces/iotDpsResource.js.map +0 -1
  349. package/dist/browser/operationsInterfaces/operations.d.ts +0 -11
  350. package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
  351. package/dist/browser/operationsInterfaces/operations.js +0 -9
  352. package/dist/browser/operationsInterfaces/operations.js.map +0 -1
  353. package/dist/browser/pagingHelper.d.ts +0 -13
  354. package/dist/browser/pagingHelper.d.ts.map +0 -1
  355. package/dist/browser/pagingHelper.js +0 -30
  356. package/dist/browser/pagingHelper.js.map +0 -1
  357. package/dist/commonjs/index.d.ts.map +0 -1
  358. package/dist/commonjs/iotDpsClient.d.ts.map +0 -1
  359. package/dist/commonjs/lroImpl.d.ts +0 -11
  360. package/dist/commonjs/lroImpl.d.ts.map +0 -1
  361. package/dist/commonjs/lroImpl.js +0 -21
  362. package/dist/commonjs/lroImpl.js.map +0 -1
  363. package/dist/commonjs/models/index.d.ts.map +0 -1
  364. package/dist/commonjs/models/mappers.d.ts +0 -40
  365. package/dist/commonjs/models/mappers.d.ts.map +0 -1
  366. package/dist/commonjs/models/mappers.js +0 -1271
  367. package/dist/commonjs/models/mappers.js.map +0 -1
  368. package/dist/commonjs/models/parameters.d.ts +0 -34
  369. package/dist/commonjs/models/parameters.d.ts.map +0 -1
  370. package/dist/commonjs/models/parameters.js +0 -296
  371. package/dist/commonjs/models/parameters.js.map +0 -1
  372. package/dist/commonjs/operations/dpsCertificate.d.ts +0 -70
  373. package/dist/commonjs/operations/dpsCertificate.d.ts.map +0 -1
  374. package/dist/commonjs/operations/dpsCertificate.js +0 -295
  375. package/dist/commonjs/operations/dpsCertificate.js.map +0 -1
  376. package/dist/commonjs/operations/index.d.ts +0 -4
  377. package/dist/commonjs/operations/index.d.ts.map +0 -1
  378. package/dist/commonjs/operations/index.js +0 -14
  379. package/dist/commonjs/operations/index.js.map +0 -1
  380. package/dist/commonjs/operations/iotDpsResource.d.ts +0 -253
  381. package/dist/commonjs/operations/iotDpsResource.d.ts.map +0 -1
  382. package/dist/commonjs/operations/iotDpsResource.js +0 -1175
  383. package/dist/commonjs/operations/iotDpsResource.js.map +0 -1
  384. package/dist/commonjs/operations/operations.d.ts +0 -32
  385. package/dist/commonjs/operations/operations.d.ts.map +0 -1
  386. package/dist/commonjs/operations/operations.js +0 -121
  387. package/dist/commonjs/operations/operations.js.map +0 -1
  388. package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts +0 -62
  389. package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  390. package/dist/commonjs/operationsInterfaces/dpsCertificate.js +0 -10
  391. package/dist/commonjs/operationsInterfaces/dpsCertificate.js.map +0 -1
  392. package/dist/commonjs/operationsInterfaces/index.d.ts +0 -4
  393. package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
  394. package/dist/commonjs/operationsInterfaces/index.js +0 -14
  395. package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
  396. package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts +0 -183
  397. package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  398. package/dist/commonjs/operationsInterfaces/iotDpsResource.js +0 -10
  399. package/dist/commonjs/operationsInterfaces/iotDpsResource.js.map +0 -1
  400. package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -11
  401. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
  402. package/dist/commonjs/operationsInterfaces/operations.js +0 -10
  403. package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
  404. package/dist/commonjs/pagingHelper.d.ts +0 -13
  405. package/dist/commonjs/pagingHelper.d.ts.map +0 -1
  406. package/dist/commonjs/pagingHelper.js +0 -34
  407. package/dist/commonjs/pagingHelper.js.map +0 -1
  408. package/dist/esm/index.d.ts.map +0 -1
  409. package/dist/esm/iotDpsClient.d.ts.map +0 -1
  410. package/dist/esm/lroImpl.d.ts +0 -11
  411. package/dist/esm/lroImpl.d.ts.map +0 -1
  412. package/dist/esm/lroImpl.js +0 -18
  413. package/dist/esm/lroImpl.js.map +0 -1
  414. package/dist/esm/models/index.d.ts.map +0 -1
  415. package/dist/esm/models/mappers.d.ts +0 -40
  416. package/dist/esm/models/mappers.d.ts.map +0 -1
  417. package/dist/esm/models/mappers.js +0 -1268
  418. package/dist/esm/models/mappers.js.map +0 -1
  419. package/dist/esm/models/parameters.d.ts +0 -34
  420. package/dist/esm/models/parameters.d.ts.map +0 -1
  421. package/dist/esm/models/parameters.js +0 -293
  422. package/dist/esm/models/parameters.js.map +0 -1
  423. package/dist/esm/operations/dpsCertificate.d.ts +0 -70
  424. package/dist/esm/operations/dpsCertificate.d.ts.map +0 -1
  425. package/dist/esm/operations/dpsCertificate.js +0 -290
  426. package/dist/esm/operations/dpsCertificate.js.map +0 -1
  427. package/dist/esm/operations/index.d.ts +0 -4
  428. package/dist/esm/operations/index.d.ts.map +0 -1
  429. package/dist/esm/operations/index.js +0 -11
  430. package/dist/esm/operations/index.js.map +0 -1
  431. package/dist/esm/operations/iotDpsResource.d.ts +0 -253
  432. package/dist/esm/operations/iotDpsResource.d.ts.map +0 -1
  433. package/dist/esm/operations/iotDpsResource.js +0 -1170
  434. package/dist/esm/operations/iotDpsResource.js.map +0 -1
  435. package/dist/esm/operations/operations.d.ts +0 -32
  436. package/dist/esm/operations/operations.d.ts.map +0 -1
  437. package/dist/esm/operations/operations.js +0 -116
  438. package/dist/esm/operations/operations.js.map +0 -1
  439. package/dist/esm/operationsInterfaces/dpsCertificate.d.ts +0 -62
  440. package/dist/esm/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  441. package/dist/esm/operationsInterfaces/dpsCertificate.js +0 -9
  442. package/dist/esm/operationsInterfaces/dpsCertificate.js.map +0 -1
  443. package/dist/esm/operationsInterfaces/index.d.ts +0 -4
  444. package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
  445. package/dist/esm/operationsInterfaces/index.js +0 -11
  446. package/dist/esm/operationsInterfaces/index.js.map +0 -1
  447. package/dist/esm/operationsInterfaces/iotDpsResource.d.ts +0 -183
  448. package/dist/esm/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  449. package/dist/esm/operationsInterfaces/iotDpsResource.js +0 -9
  450. package/dist/esm/operationsInterfaces/iotDpsResource.js.map +0 -1
  451. package/dist/esm/operationsInterfaces/operations.d.ts +0 -11
  452. package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
  453. package/dist/esm/operationsInterfaces/operations.js +0 -9
  454. package/dist/esm/operationsInterfaces/operations.js.map +0 -1
  455. package/dist/esm/pagingHelper.d.ts +0 -13
  456. package/dist/esm/pagingHelper.d.ts.map +0 -1
  457. package/dist/esm/pagingHelper.js +0 -30
  458. package/dist/esm/pagingHelper.js.map +0 -1
  459. package/dist/react-native/index.d.ts.map +0 -1
  460. package/dist/react-native/iotDpsClient.d.ts.map +0 -1
  461. package/dist/react-native/lroImpl.d.ts +0 -11
  462. package/dist/react-native/lroImpl.d.ts.map +0 -1
  463. package/dist/react-native/lroImpl.js +0 -18
  464. package/dist/react-native/lroImpl.js.map +0 -1
  465. package/dist/react-native/models/index.d.ts.map +0 -1
  466. package/dist/react-native/models/mappers.d.ts +0 -40
  467. package/dist/react-native/models/mappers.d.ts.map +0 -1
  468. package/dist/react-native/models/mappers.js +0 -1268
  469. package/dist/react-native/models/mappers.js.map +0 -1
  470. package/dist/react-native/models/parameters.d.ts +0 -34
  471. package/dist/react-native/models/parameters.d.ts.map +0 -1
  472. package/dist/react-native/models/parameters.js +0 -293
  473. package/dist/react-native/models/parameters.js.map +0 -1
  474. package/dist/react-native/operations/dpsCertificate.d.ts +0 -70
  475. package/dist/react-native/operations/dpsCertificate.d.ts.map +0 -1
  476. package/dist/react-native/operations/dpsCertificate.js +0 -290
  477. package/dist/react-native/operations/dpsCertificate.js.map +0 -1
  478. package/dist/react-native/operations/index.d.ts +0 -4
  479. package/dist/react-native/operations/index.d.ts.map +0 -1
  480. package/dist/react-native/operations/index.js +0 -11
  481. package/dist/react-native/operations/index.js.map +0 -1
  482. package/dist/react-native/operations/iotDpsResource.d.ts +0 -253
  483. package/dist/react-native/operations/iotDpsResource.d.ts.map +0 -1
  484. package/dist/react-native/operations/iotDpsResource.js +0 -1170
  485. package/dist/react-native/operations/iotDpsResource.js.map +0 -1
  486. package/dist/react-native/operations/operations.d.ts +0 -32
  487. package/dist/react-native/operations/operations.d.ts.map +0 -1
  488. package/dist/react-native/operations/operations.js +0 -116
  489. package/dist/react-native/operations/operations.js.map +0 -1
  490. package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts +0 -62
  491. package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  492. package/dist/react-native/operationsInterfaces/dpsCertificate.js +0 -9
  493. package/dist/react-native/operationsInterfaces/dpsCertificate.js.map +0 -1
  494. package/dist/react-native/operationsInterfaces/index.d.ts +0 -4
  495. package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
  496. package/dist/react-native/operationsInterfaces/index.js +0 -11
  497. package/dist/react-native/operationsInterfaces/index.js.map +0 -1
  498. package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts +0 -183
  499. package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  500. package/dist/react-native/operationsInterfaces/iotDpsResource.js +0 -9
  501. package/dist/react-native/operationsInterfaces/iotDpsResource.js.map +0 -1
  502. package/dist/react-native/operationsInterfaces/operations.d.ts +0 -11
  503. package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
  504. package/dist/react-native/operationsInterfaces/operations.js +0 -9
  505. package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
  506. package/dist/react-native/pagingHelper.d.ts +0 -13
  507. package/dist/react-native/pagingHelper.d.ts.map +0 -1
  508. package/dist/react-native/pagingHelper.js +0 -30
  509. package/dist/react-native/pagingHelper.js.map +0 -1
  510. package/review/arm-deviceprovisioningservices-node.api.md +0 -724
@@ -1,1175 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.IotDpsResourceImpl = void 0;
11
- const tslib_1 = require("tslib");
12
- const pagingHelper_js_1 = require("../pagingHelper.js");
13
- const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
- const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
- const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
- const core_lro_1 = require("@azure/core-lro");
17
- const lroImpl_js_1 = require("../lroImpl.js");
18
- /// <reference lib="esnext.asynciterable" />
19
- /** Class containing IotDpsResource operations. */
20
- class IotDpsResourceImpl {
21
- client;
22
- /**
23
- * Initialize a new instance of the class IotDpsResource class.
24
- * @param client Reference to the service client
25
- */
26
- constructor(client) {
27
- this.client = client;
28
- }
29
- /**
30
- * List all the provisioning services for a given subscription id.
31
- * @param options The options parameters.
32
- */
33
- listBySubscription(options) {
34
- const iter = this.listBySubscriptionPagingAll(options);
35
- return {
36
- next() {
37
- return iter.next();
38
- },
39
- [Symbol.asyncIterator]() {
40
- return this;
41
- },
42
- byPage: (settings) => {
43
- if (settings?.maxPageSize) {
44
- throw new Error("maxPageSize is not supported by this operation.");
45
- }
46
- return this.listBySubscriptionPagingPage(options, settings);
47
- }
48
- };
49
- }
50
- async *listBySubscriptionPagingPage(options, settings) {
51
- let result;
52
- let continuationToken = settings?.continuationToken;
53
- if (!continuationToken) {
54
- result = await this._listBySubscription(options);
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield page;
59
- }
60
- while (continuationToken) {
61
- result = await this._listBySubscriptionNext(continuationToken, options);
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield page;
66
- }
67
- }
68
- async *listBySubscriptionPagingAll(options) {
69
- for await (const page of this.listBySubscriptionPagingPage(options)) {
70
- yield* page;
71
- }
72
- }
73
- /**
74
- * Get a list of all provisioning services in the given resource group.
75
- * @param resourceGroupName Resource group identifier.
76
- * @param options The options parameters.
77
- */
78
- listByResourceGroup(resourceGroupName, options) {
79
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
80
- return {
81
- next() {
82
- return iter.next();
83
- },
84
- [Symbol.asyncIterator]() {
85
- return this;
86
- },
87
- byPage: (settings) => {
88
- if (settings?.maxPageSize) {
89
- throw new Error("maxPageSize is not supported by this operation.");
90
- }
91
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
92
- }
93
- };
94
- }
95
- async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
96
- let result;
97
- let continuationToken = settings?.continuationToken;
98
- if (!continuationToken) {
99
- result = await this._listByResourceGroup(resourceGroupName, options);
100
- let page = result.value || [];
101
- continuationToken = result.nextLink;
102
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
103
- yield page;
104
- }
105
- while (continuationToken) {
106
- result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
107
- continuationToken = result.nextLink;
108
- let page = result.value || [];
109
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
- yield page;
111
- }
112
- }
113
- async *listByResourceGroupPagingAll(resourceGroupName, options) {
114
- for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
115
- yield* page;
116
- }
117
- }
118
- /**
119
- * Gets the list of valid SKUs and tiers for a provisioning service.
120
- * @param provisioningServiceName Name of provisioning service.
121
- * @param resourceGroupName Name of resource group.
122
- * @param options The options parameters.
123
- */
124
- listValidSkus(provisioningServiceName, resourceGroupName, options) {
125
- const iter = this.listValidSkusPagingAll(provisioningServiceName, resourceGroupName, options);
126
- return {
127
- next() {
128
- return iter.next();
129
- },
130
- [Symbol.asyncIterator]() {
131
- return this;
132
- },
133
- byPage: (settings) => {
134
- if (settings?.maxPageSize) {
135
- throw new Error("maxPageSize is not supported by this operation.");
136
- }
137
- return this.listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options, settings);
138
- }
139
- };
140
- }
141
- async *listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options, settings) {
142
- let result;
143
- let continuationToken = settings?.continuationToken;
144
- if (!continuationToken) {
145
- result = await this._listValidSkus(provisioningServiceName, resourceGroupName, options);
146
- let page = result.value || [];
147
- continuationToken = result.nextLink;
148
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
149
- yield page;
150
- }
151
- while (continuationToken) {
152
- result = await this._listValidSkusNext(provisioningServiceName, resourceGroupName, continuationToken, options);
153
- continuationToken = result.nextLink;
154
- let page = result.value || [];
155
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
156
- yield page;
157
- }
158
- }
159
- async *listValidSkusPagingAll(provisioningServiceName, resourceGroupName, options) {
160
- for await (const page of this.listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options)) {
161
- yield* page;
162
- }
163
- }
164
- /**
165
- * List the primary and secondary keys for a provisioning service.
166
- * @param provisioningServiceName The provisioning service name to get the shared access keys for.
167
- * @param resourceGroupName resource group name
168
- * @param options The options parameters.
169
- */
170
- listKeys(provisioningServiceName, resourceGroupName, options) {
171
- const iter = this.listKeysPagingAll(provisioningServiceName, resourceGroupName, options);
172
- return {
173
- next() {
174
- return iter.next();
175
- },
176
- [Symbol.asyncIterator]() {
177
- return this;
178
- },
179
- byPage: (settings) => {
180
- if (settings?.maxPageSize) {
181
- throw new Error("maxPageSize is not supported by this operation.");
182
- }
183
- return this.listKeysPagingPage(provisioningServiceName, resourceGroupName, options, settings);
184
- }
185
- };
186
- }
187
- async *listKeysPagingPage(provisioningServiceName, resourceGroupName, options, settings) {
188
- let result;
189
- let continuationToken = settings?.continuationToken;
190
- if (!continuationToken) {
191
- result = await this._listKeys(provisioningServiceName, resourceGroupName, options);
192
- let page = result.value || [];
193
- continuationToken = result.nextLink;
194
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
195
- yield page;
196
- }
197
- while (continuationToken) {
198
- result = await this._listKeysNext(provisioningServiceName, resourceGroupName, continuationToken, options);
199
- continuationToken = result.nextLink;
200
- let page = result.value || [];
201
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
202
- yield page;
203
- }
204
- }
205
- async *listKeysPagingAll(provisioningServiceName, resourceGroupName, options) {
206
- for await (const page of this.listKeysPagingPage(provisioningServiceName, resourceGroupName, options)) {
207
- yield* page;
208
- }
209
- }
210
- /**
211
- * Get the metadata of the provisioning service without SAS keys.
212
- * @param resourceGroupName Resource group name.
213
- * @param provisioningServiceName Name of the provisioning service to retrieve.
214
- * @param options The options parameters.
215
- */
216
- get(resourceGroupName, provisioningServiceName, options) {
217
- return this.client.sendOperationRequest({ resourceGroupName, provisioningServiceName, options }, getOperationSpec);
218
- }
219
- /**
220
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
221
- * to retrieve the provisioning service metadata and security metadata, and then combine them with the
222
- * modified values in a new body to update the provisioning service.
223
- * @param resourceGroupName Resource group identifier.
224
- * @param provisioningServiceName Name of provisioning service to create or update.
225
- * @param iotDpsDescription Description of the provisioning service to create or update.
226
- * @param options The options parameters.
227
- */
228
- async beginCreateOrUpdate(resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
229
- const directSendOperation = async (args, spec) => {
230
- return this.client.sendOperationRequest(args, spec);
231
- };
232
- const sendOperationFn = async (args, spec) => {
233
- let currentRawResponse = undefined;
234
- const providedCallback = args.options?.onResponse;
235
- const callback = (rawResponse, flatResponse) => {
236
- currentRawResponse = rawResponse;
237
- providedCallback?.(rawResponse, flatResponse);
238
- };
239
- const updatedArgs = {
240
- ...args,
241
- options: {
242
- ...args.options,
243
- onResponse: callback
244
- }
245
- };
246
- const flatResponse = await directSendOperation(updatedArgs, spec);
247
- return {
248
- flatResponse,
249
- rawResponse: {
250
- statusCode: currentRawResponse.status,
251
- body: currentRawResponse.parsedBody,
252
- headers: currentRawResponse.headers.toJSON()
253
- }
254
- };
255
- };
256
- const lro = (0, lroImpl_js_1.createLroSpec)({
257
- sendOperationFn,
258
- args: {
259
- resourceGroupName,
260
- provisioningServiceName,
261
- iotDpsDescription,
262
- options
263
- },
264
- spec: createOrUpdateOperationSpec
265
- });
266
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
267
- restoreFrom: options?.resumeFrom,
268
- intervalInMs: options?.updateIntervalInMs
269
- });
270
- await poller.poll();
271
- return poller;
272
- }
273
- /**
274
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
275
- * to retrieve the provisioning service metadata and security metadata, and then combine them with the
276
- * modified values in a new body to update the provisioning service.
277
- * @param resourceGroupName Resource group identifier.
278
- * @param provisioningServiceName Name of provisioning service to create or update.
279
- * @param iotDpsDescription Description of the provisioning service to create or update.
280
- * @param options The options parameters.
281
- */
282
- async beginCreateOrUpdateAndWait(resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
283
- const poller = await this.beginCreateOrUpdate(resourceGroupName, provisioningServiceName, iotDpsDescription, options);
284
- return poller.pollUntilDone();
285
- }
286
- /**
287
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
288
- * @param resourceGroupName Resource group identifier.
289
- * @param provisioningServiceName Name of provisioning service to create or update.
290
- * @param provisioningServiceTags Updated tag information to set into the provisioning service
291
- * instance.
292
- * @param options The options parameters.
293
- */
294
- async beginUpdate(resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
295
- const directSendOperation = async (args, spec) => {
296
- return this.client.sendOperationRequest(args, spec);
297
- };
298
- const sendOperationFn = async (args, spec) => {
299
- let currentRawResponse = undefined;
300
- const providedCallback = args.options?.onResponse;
301
- const callback = (rawResponse, flatResponse) => {
302
- currentRawResponse = rawResponse;
303
- providedCallback?.(rawResponse, flatResponse);
304
- };
305
- const updatedArgs = {
306
- ...args,
307
- options: {
308
- ...args.options,
309
- onResponse: callback
310
- }
311
- };
312
- const flatResponse = await directSendOperation(updatedArgs, spec);
313
- return {
314
- flatResponse,
315
- rawResponse: {
316
- statusCode: currentRawResponse.status,
317
- body: currentRawResponse.parsedBody,
318
- headers: currentRawResponse.headers.toJSON()
319
- }
320
- };
321
- };
322
- const lro = (0, lroImpl_js_1.createLroSpec)({
323
- sendOperationFn,
324
- args: {
325
- resourceGroupName,
326
- provisioningServiceName,
327
- provisioningServiceTags,
328
- options
329
- },
330
- spec: updateOperationSpec
331
- });
332
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
333
- restoreFrom: options?.resumeFrom,
334
- intervalInMs: options?.updateIntervalInMs
335
- });
336
- await poller.poll();
337
- return poller;
338
- }
339
- /**
340
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
341
- * @param resourceGroupName Resource group identifier.
342
- * @param provisioningServiceName Name of provisioning service to create or update.
343
- * @param provisioningServiceTags Updated tag information to set into the provisioning service
344
- * instance.
345
- * @param options The options parameters.
346
- */
347
- async beginUpdateAndWait(resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
348
- const poller = await this.beginUpdate(resourceGroupName, provisioningServiceName, provisioningServiceTags, options);
349
- return poller.pollUntilDone();
350
- }
351
- /**
352
- * Deletes the Provisioning Service.
353
- * @param resourceGroupName Resource group identifier.
354
- * @param provisioningServiceName Name of provisioning service to delete.
355
- * @param options The options parameters.
356
- */
357
- async beginDelete(resourceGroupName, provisioningServiceName, options) {
358
- const directSendOperation = async (args, spec) => {
359
- return this.client.sendOperationRequest(args, spec);
360
- };
361
- const sendOperationFn = async (args, spec) => {
362
- let currentRawResponse = undefined;
363
- const providedCallback = args.options?.onResponse;
364
- const callback = (rawResponse, flatResponse) => {
365
- currentRawResponse = rawResponse;
366
- providedCallback?.(rawResponse, flatResponse);
367
- };
368
- const updatedArgs = {
369
- ...args,
370
- options: {
371
- ...args.options,
372
- onResponse: callback
373
- }
374
- };
375
- const flatResponse = await directSendOperation(updatedArgs, spec);
376
- return {
377
- flatResponse,
378
- rawResponse: {
379
- statusCode: currentRawResponse.status,
380
- body: currentRawResponse.parsedBody,
381
- headers: currentRawResponse.headers.toJSON()
382
- }
383
- };
384
- };
385
- const lro = (0, lroImpl_js_1.createLroSpec)({
386
- sendOperationFn,
387
- args: { resourceGroupName, provisioningServiceName, options },
388
- spec: deleteOperationSpec
389
- });
390
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
391
- restoreFrom: options?.resumeFrom,
392
- intervalInMs: options?.updateIntervalInMs
393
- });
394
- await poller.poll();
395
- return poller;
396
- }
397
- /**
398
- * Deletes the Provisioning Service.
399
- * @param resourceGroupName Resource group identifier.
400
- * @param provisioningServiceName Name of provisioning service to delete.
401
- * @param options The options parameters.
402
- */
403
- async beginDeleteAndWait(resourceGroupName, provisioningServiceName, options) {
404
- const poller = await this.beginDelete(resourceGroupName, provisioningServiceName, options);
405
- return poller.pollUntilDone();
406
- }
407
- /**
408
- * List all the provisioning services for a given subscription id.
409
- * @param options The options parameters.
410
- */
411
- _listBySubscription(options) {
412
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
413
- }
414
- /**
415
- * Get a list of all provisioning services in the given resource group.
416
- * @param resourceGroupName Resource group identifier.
417
- * @param options The options parameters.
418
- */
419
- _listByResourceGroup(resourceGroupName, options) {
420
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
421
- }
422
- /**
423
- * Gets the status of a long running operation, such as create, update or delete a provisioning
424
- * service.
425
- * @param operationId Operation id corresponding to long running operation. Use this to poll for the
426
- * status.
427
- * @param resourceGroupName Resource group identifier.
428
- * @param provisioningServiceName Name of provisioning service that the operation is running on.
429
- * @param asyncinfo Async header used to poll on the status of the operation, obtained while creating
430
- * the long running operation.
431
- * @param options The options parameters.
432
- */
433
- getOperationResult(operationId, resourceGroupName, provisioningServiceName, asyncinfo, options) {
434
- return this.client.sendOperationRequest({
435
- operationId,
436
- resourceGroupName,
437
- provisioningServiceName,
438
- asyncinfo,
439
- options
440
- }, getOperationResultOperationSpec);
441
- }
442
- /**
443
- * Gets the list of valid SKUs and tiers for a provisioning service.
444
- * @param provisioningServiceName Name of provisioning service.
445
- * @param resourceGroupName Name of resource group.
446
- * @param options The options parameters.
447
- */
448
- _listValidSkus(provisioningServiceName, resourceGroupName, options) {
449
- return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, options }, listValidSkusOperationSpec);
450
- }
451
- /**
452
- * Check if a provisioning service name is available. This will validate if the name is syntactically
453
- * valid and if the name is usable
454
- * @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the
455
- * provisioning service to check.
456
- * @param options The options parameters.
457
- */
458
- checkProvisioningServiceNameAvailability(argumentsParam, options) {
459
- return this.client.sendOperationRequest({ argumentsParam, options }, checkProvisioningServiceNameAvailabilityOperationSpec);
460
- }
461
- /**
462
- * List the primary and secondary keys for a provisioning service.
463
- * @param provisioningServiceName The provisioning service name to get the shared access keys for.
464
- * @param resourceGroupName resource group name
465
- * @param options The options parameters.
466
- */
467
- _listKeys(provisioningServiceName, resourceGroupName, options) {
468
- return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, options }, listKeysOperationSpec);
469
- }
470
- /**
471
- * List primary and secondary keys for a specific key name
472
- * @param provisioningServiceName Name of the provisioning service.
473
- * @param keyName Logical key name to get key-values for.
474
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
475
- * @param options The options parameters.
476
- */
477
- listKeysForKeyName(provisioningServiceName, keyName, resourceGroupName, options) {
478
- return this.client.sendOperationRequest({ provisioningServiceName, keyName, resourceGroupName, options }, listKeysForKeyNameOperationSpec);
479
- }
480
- /**
481
- * List private link resources for the given provisioning service
482
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
483
- * @param resourceName The name of the provisioning service.
484
- * @param options The options parameters.
485
- */
486
- listPrivateLinkResources(resourceGroupName, resourceName, options) {
487
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listPrivateLinkResourcesOperationSpec);
488
- }
489
- /**
490
- * Get the specified private link resource for the given provisioning service
491
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
492
- * @param resourceName The name of the provisioning service.
493
- * @param groupId The name of the private link resource
494
- * @param options The options parameters.
495
- */
496
- getPrivateLinkResources(resourceGroupName, resourceName, groupId, options) {
497
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, groupId, options }, getPrivateLinkResourcesOperationSpec);
498
- }
499
- /**
500
- * List private endpoint connection properties
501
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
502
- * @param resourceName The name of the provisioning service.
503
- * @param options The options parameters.
504
- */
505
- listPrivateEndpointConnections(resourceGroupName, resourceName, options) {
506
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listPrivateEndpointConnectionsOperationSpec);
507
- }
508
- /**
509
- * Get private endpoint connection properties
510
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
511
- * @param resourceName The name of the provisioning service.
512
- * @param privateEndpointConnectionName The name of the private endpoint connection
513
- * @param options The options parameters.
514
- */
515
- getPrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
516
- return this.client.sendOperationRequest({
517
- resourceGroupName,
518
- resourceName,
519
- privateEndpointConnectionName,
520
- options
521
- }, getPrivateEndpointConnectionOperationSpec);
522
- }
523
- /**
524
- * Create or update the status of a private endpoint connection with the specified name
525
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
526
- * @param resourceName The name of the provisioning service.
527
- * @param privateEndpointConnectionName The name of the private endpoint connection
528
- * @param privateEndpointConnection The private endpoint connection with updated properties
529
- * @param options The options parameters.
530
- */
531
- async beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
532
- const directSendOperation = async (args, spec) => {
533
- return this.client.sendOperationRequest(args, spec);
534
- };
535
- const sendOperationFn = async (args, spec) => {
536
- let currentRawResponse = undefined;
537
- const providedCallback = args.options?.onResponse;
538
- const callback = (rawResponse, flatResponse) => {
539
- currentRawResponse = rawResponse;
540
- providedCallback?.(rawResponse, flatResponse);
541
- };
542
- const updatedArgs = {
543
- ...args,
544
- options: {
545
- ...args.options,
546
- onResponse: callback
547
- }
548
- };
549
- const flatResponse = await directSendOperation(updatedArgs, spec);
550
- return {
551
- flatResponse,
552
- rawResponse: {
553
- statusCode: currentRawResponse.status,
554
- body: currentRawResponse.parsedBody,
555
- headers: currentRawResponse.headers.toJSON()
556
- }
557
- };
558
- };
559
- const lro = (0, lroImpl_js_1.createLroSpec)({
560
- sendOperationFn,
561
- args: {
562
- resourceGroupName,
563
- resourceName,
564
- privateEndpointConnectionName,
565
- privateEndpointConnection,
566
- options
567
- },
568
- spec: createOrUpdatePrivateEndpointConnectionOperationSpec
569
- });
570
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
571
- restoreFrom: options?.resumeFrom,
572
- intervalInMs: options?.updateIntervalInMs
573
- });
574
- await poller.poll();
575
- return poller;
576
- }
577
- /**
578
- * Create or update the status of a private endpoint connection with the specified name
579
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
580
- * @param resourceName The name of the provisioning service.
581
- * @param privateEndpointConnectionName The name of the private endpoint connection
582
- * @param privateEndpointConnection The private endpoint connection with updated properties
583
- * @param options The options parameters.
584
- */
585
- async beginCreateOrUpdatePrivateEndpointConnectionAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
586
- const poller = await this.beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options);
587
- return poller.pollUntilDone();
588
- }
589
- /**
590
- * Delete private endpoint connection with the specified name
591
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
592
- * @param resourceName The name of the provisioning service.
593
- * @param privateEndpointConnectionName The name of the private endpoint connection
594
- * @param options The options parameters.
595
- */
596
- async beginDeletePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
597
- const directSendOperation = async (args, spec) => {
598
- return this.client.sendOperationRequest(args, spec);
599
- };
600
- const sendOperationFn = async (args, spec) => {
601
- let currentRawResponse = undefined;
602
- const providedCallback = args.options?.onResponse;
603
- const callback = (rawResponse, flatResponse) => {
604
- currentRawResponse = rawResponse;
605
- providedCallback?.(rawResponse, flatResponse);
606
- };
607
- const updatedArgs = {
608
- ...args,
609
- options: {
610
- ...args.options,
611
- onResponse: callback
612
- }
613
- };
614
- const flatResponse = await directSendOperation(updatedArgs, spec);
615
- return {
616
- flatResponse,
617
- rawResponse: {
618
- statusCode: currentRawResponse.status,
619
- body: currentRawResponse.parsedBody,
620
- headers: currentRawResponse.headers.toJSON()
621
- }
622
- };
623
- };
624
- const lro = (0, lroImpl_js_1.createLroSpec)({
625
- sendOperationFn,
626
- args: {
627
- resourceGroupName,
628
- resourceName,
629
- privateEndpointConnectionName,
630
- options
631
- },
632
- spec: deletePrivateEndpointConnectionOperationSpec
633
- });
634
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
635
- restoreFrom: options?.resumeFrom,
636
- intervalInMs: options?.updateIntervalInMs
637
- });
638
- await poller.poll();
639
- return poller;
640
- }
641
- /**
642
- * Delete private endpoint connection with the specified name
643
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
644
- * @param resourceName The name of the provisioning service.
645
- * @param privateEndpointConnectionName The name of the private endpoint connection
646
- * @param options The options parameters.
647
- */
648
- async beginDeletePrivateEndpointConnectionAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
649
- const poller = await this.beginDeletePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options);
650
- return poller.pollUntilDone();
651
- }
652
- /**
653
- * ListBySubscriptionNext
654
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
655
- * @param options The options parameters.
656
- */
657
- _listBySubscriptionNext(nextLink, options) {
658
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
659
- }
660
- /**
661
- * ListByResourceGroupNext
662
- * @param resourceGroupName Resource group identifier.
663
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
664
- * @param options The options parameters.
665
- */
666
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
667
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
668
- }
669
- /**
670
- * ListValidSkusNext
671
- * @param provisioningServiceName Name of provisioning service.
672
- * @param resourceGroupName Name of resource group.
673
- * @param nextLink The nextLink from the previous successful call to the ListValidSkus method.
674
- * @param options The options parameters.
675
- */
676
- _listValidSkusNext(provisioningServiceName, resourceGroupName, nextLink, options) {
677
- return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, nextLink, options }, listValidSkusNextOperationSpec);
678
- }
679
- /**
680
- * ListKeysNext
681
- * @param provisioningServiceName The provisioning service name to get the shared access keys for.
682
- * @param resourceGroupName resource group name
683
- * @param nextLink The nextLink from the previous successful call to the ListKeys method.
684
- * @param options The options parameters.
685
- */
686
- _listKeysNext(provisioningServiceName, resourceGroupName, nextLink, options) {
687
- return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, nextLink, options }, listKeysNextOperationSpec);
688
- }
689
- }
690
- exports.IotDpsResourceImpl = IotDpsResourceImpl;
691
- // Operation Specifications
692
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
693
- const getOperationSpec = {
694
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
695
- httpMethod: "GET",
696
- responses: {
697
- 200: {
698
- bodyMapper: Mappers.ProvisioningServiceDescription
699
- },
700
- default: {
701
- bodyMapper: Mappers.ErrorDetails
702
- }
703
- },
704
- queryParameters: [Parameters.apiVersion],
705
- urlParameters: [
706
- Parameters.$host,
707
- Parameters.subscriptionId,
708
- Parameters.resourceGroupName,
709
- Parameters.provisioningServiceName
710
- ],
711
- headerParameters: [Parameters.accept],
712
- serializer
713
- };
714
- const createOrUpdateOperationSpec = {
715
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
716
- httpMethod: "PUT",
717
- responses: {
718
- 200: {
719
- bodyMapper: Mappers.ProvisioningServiceDescription
720
- },
721
- 201: {
722
- bodyMapper: Mappers.ProvisioningServiceDescription
723
- },
724
- 202: {
725
- bodyMapper: Mappers.ProvisioningServiceDescription
726
- },
727
- 204: {
728
- bodyMapper: Mappers.ProvisioningServiceDescription
729
- },
730
- default: {
731
- bodyMapper: Mappers.ErrorDetails
732
- }
733
- },
734
- requestBody: Parameters.iotDpsDescription,
735
- queryParameters: [Parameters.apiVersion],
736
- urlParameters: [
737
- Parameters.$host,
738
- Parameters.subscriptionId,
739
- Parameters.resourceGroupName,
740
- Parameters.provisioningServiceName
741
- ],
742
- headerParameters: [Parameters.accept, Parameters.contentType],
743
- mediaType: "json",
744
- serializer
745
- };
746
- const updateOperationSpec = {
747
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
748
- httpMethod: "PATCH",
749
- responses: {
750
- 200: {
751
- bodyMapper: Mappers.ProvisioningServiceDescription
752
- },
753
- 201: {
754
- bodyMapper: Mappers.ProvisioningServiceDescription
755
- },
756
- 202: {
757
- bodyMapper: Mappers.ProvisioningServiceDescription
758
- },
759
- 204: {
760
- bodyMapper: Mappers.ProvisioningServiceDescription
761
- }
762
- },
763
- requestBody: Parameters.provisioningServiceTags,
764
- queryParameters: [Parameters.apiVersion],
765
- urlParameters: [
766
- Parameters.$host,
767
- Parameters.subscriptionId,
768
- Parameters.resourceGroupName,
769
- Parameters.provisioningServiceName
770
- ],
771
- headerParameters: [Parameters.accept, Parameters.contentType],
772
- mediaType: "json",
773
- serializer
774
- };
775
- const deleteOperationSpec = {
776
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
777
- httpMethod: "DELETE",
778
- responses: {
779
- 200: {},
780
- 201: {},
781
- 202: {},
782
- 204: {},
783
- default: {
784
- bodyMapper: Mappers.ErrorDetails
785
- }
786
- },
787
- queryParameters: [Parameters.apiVersion],
788
- urlParameters: [
789
- Parameters.$host,
790
- Parameters.subscriptionId,
791
- Parameters.resourceGroupName,
792
- Parameters.provisioningServiceName
793
- ],
794
- headerParameters: [Parameters.accept],
795
- serializer
796
- };
797
- const listBySubscriptionOperationSpec = {
798
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices",
799
- httpMethod: "GET",
800
- responses: {
801
- 200: {
802
- bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
803
- },
804
- default: {
805
- bodyMapper: Mappers.ErrorDetails
806
- }
807
- },
808
- queryParameters: [Parameters.apiVersion],
809
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
810
- headerParameters: [Parameters.accept],
811
- serializer
812
- };
813
- const listByResourceGroupOperationSpec = {
814
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices",
815
- httpMethod: "GET",
816
- responses: {
817
- 200: {
818
- bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
819
- },
820
- default: {
821
- bodyMapper: Mappers.ErrorDetails
822
- }
823
- },
824
- queryParameters: [Parameters.apiVersion],
825
- urlParameters: [
826
- Parameters.$host,
827
- Parameters.subscriptionId,
828
- Parameters.resourceGroupName
829
- ],
830
- headerParameters: [Parameters.accept],
831
- serializer
832
- };
833
- const getOperationResultOperationSpec = {
834
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}",
835
- httpMethod: "GET",
836
- responses: {
837
- 200: {
838
- bodyMapper: Mappers.AsyncOperationResult
839
- },
840
- default: {
841
- bodyMapper: Mappers.ErrorDetails
842
- }
843
- },
844
- queryParameters: [Parameters.apiVersion, Parameters.asyncinfo],
845
- urlParameters: [
846
- Parameters.$host,
847
- Parameters.subscriptionId,
848
- Parameters.resourceGroupName,
849
- Parameters.provisioningServiceName,
850
- Parameters.operationId
851
- ],
852
- headerParameters: [Parameters.accept],
853
- serializer
854
- };
855
- const listValidSkusOperationSpec = {
856
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus",
857
- httpMethod: "GET",
858
- responses: {
859
- 200: {
860
- bodyMapper: Mappers.IotDpsSkuDefinitionListResult
861
- },
862
- default: {
863
- bodyMapper: Mappers.ErrorDetails
864
- }
865
- },
866
- queryParameters: [Parameters.apiVersion],
867
- urlParameters: [
868
- Parameters.$host,
869
- Parameters.subscriptionId,
870
- Parameters.resourceGroupName,
871
- Parameters.provisioningServiceName
872
- ],
873
- headerParameters: [Parameters.accept],
874
- serializer
875
- };
876
- const checkProvisioningServiceNameAvailabilityOperationSpec = {
877
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability",
878
- httpMethod: "POST",
879
- responses: {
880
- 200: {
881
- bodyMapper: Mappers.NameAvailabilityInfo
882
- },
883
- default: {
884
- bodyMapper: Mappers.ErrorDetails
885
- }
886
- },
887
- requestBody: Parameters.argumentsParam,
888
- queryParameters: [Parameters.apiVersion],
889
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
890
- headerParameters: [Parameters.accept, Parameters.contentType],
891
- mediaType: "json",
892
- serializer
893
- };
894
- const listKeysOperationSpec = {
895
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys",
896
- httpMethod: "POST",
897
- responses: {
898
- 200: {
899
- bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
900
- },
901
- default: {
902
- bodyMapper: Mappers.ErrorDetails
903
- }
904
- },
905
- queryParameters: [Parameters.apiVersion],
906
- urlParameters: [
907
- Parameters.$host,
908
- Parameters.subscriptionId,
909
- Parameters.resourceGroupName,
910
- Parameters.provisioningServiceName
911
- ],
912
- headerParameters: [Parameters.accept],
913
- serializer
914
- };
915
- const listKeysForKeyNameOperationSpec = {
916
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys",
917
- httpMethod: "POST",
918
- responses: {
919
- 200: {
920
- bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleAccessRightsDescription
921
- },
922
- default: {
923
- bodyMapper: Mappers.ErrorDetails
924
- }
925
- },
926
- queryParameters: [Parameters.apiVersion],
927
- urlParameters: [
928
- Parameters.$host,
929
- Parameters.subscriptionId,
930
- Parameters.resourceGroupName,
931
- Parameters.provisioningServiceName,
932
- Parameters.keyName
933
- ],
934
- headerParameters: [Parameters.accept],
935
- serializer
936
- };
937
- const listPrivateLinkResourcesOperationSpec = {
938
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources",
939
- httpMethod: "GET",
940
- responses: {
941
- 200: {
942
- bodyMapper: Mappers.PrivateLinkResources
943
- },
944
- default: {
945
- bodyMapper: Mappers.ErrorDetails
946
- }
947
- },
948
- queryParameters: [Parameters.apiVersion],
949
- urlParameters: [
950
- Parameters.$host,
951
- Parameters.subscriptionId,
952
- Parameters.resourceGroupName,
953
- Parameters.resourceName
954
- ],
955
- headerParameters: [Parameters.accept],
956
- serializer
957
- };
958
- const getPrivateLinkResourcesOperationSpec = {
959
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources/{groupId}",
960
- httpMethod: "GET",
961
- responses: {
962
- 200: {
963
- bodyMapper: Mappers.GroupIdInformation
964
- },
965
- default: {
966
- bodyMapper: Mappers.ErrorDetails
967
- }
968
- },
969
- queryParameters: [Parameters.apiVersion],
970
- urlParameters: [
971
- Parameters.$host,
972
- Parameters.subscriptionId,
973
- Parameters.resourceGroupName,
974
- Parameters.resourceName,
975
- Parameters.groupId
976
- ],
977
- headerParameters: [Parameters.accept],
978
- serializer
979
- };
980
- const listPrivateEndpointConnectionsOperationSpec = {
981
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections",
982
- httpMethod: "GET",
983
- responses: {
984
- 200: {
985
- bodyMapper: {
986
- type: {
987
- name: "Sequence",
988
- element: {
989
- type: { name: "Composite", className: "PrivateEndpointConnection" }
990
- }
991
- }
992
- }
993
- },
994
- default: {
995
- bodyMapper: Mappers.ErrorDetails
996
- }
997
- },
998
- queryParameters: [Parameters.apiVersion],
999
- urlParameters: [
1000
- Parameters.$host,
1001
- Parameters.subscriptionId,
1002
- Parameters.resourceGroupName,
1003
- Parameters.resourceName
1004
- ],
1005
- headerParameters: [Parameters.accept],
1006
- serializer
1007
- };
1008
- const getPrivateEndpointConnectionOperationSpec = {
1009
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1010
- httpMethod: "GET",
1011
- responses: {
1012
- 200: {
1013
- bodyMapper: Mappers.PrivateEndpointConnection
1014
- },
1015
- default: {
1016
- bodyMapper: Mappers.ErrorDetails
1017
- }
1018
- },
1019
- queryParameters: [Parameters.apiVersion],
1020
- urlParameters: [
1021
- Parameters.$host,
1022
- Parameters.subscriptionId,
1023
- Parameters.resourceGroupName,
1024
- Parameters.resourceName,
1025
- Parameters.privateEndpointConnectionName
1026
- ],
1027
- headerParameters: [Parameters.accept],
1028
- serializer
1029
- };
1030
- const createOrUpdatePrivateEndpointConnectionOperationSpec = {
1031
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1032
- httpMethod: "PUT",
1033
- responses: {
1034
- 200: {
1035
- bodyMapper: Mappers.PrivateEndpointConnection
1036
- },
1037
- 201: {
1038
- bodyMapper: Mappers.PrivateEndpointConnection
1039
- },
1040
- 202: {
1041
- bodyMapper: Mappers.PrivateEndpointConnection
1042
- },
1043
- 204: {
1044
- bodyMapper: Mappers.PrivateEndpointConnection
1045
- },
1046
- default: {
1047
- bodyMapper: Mappers.ErrorDetails
1048
- }
1049
- },
1050
- requestBody: Parameters.privateEndpointConnection,
1051
- queryParameters: [Parameters.apiVersion],
1052
- urlParameters: [
1053
- Parameters.$host,
1054
- Parameters.subscriptionId,
1055
- Parameters.resourceGroupName,
1056
- Parameters.resourceName,
1057
- Parameters.privateEndpointConnectionName
1058
- ],
1059
- headerParameters: [Parameters.accept, Parameters.contentType],
1060
- mediaType: "json",
1061
- serializer
1062
- };
1063
- const deletePrivateEndpointConnectionOperationSpec = {
1064
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1065
- httpMethod: "DELETE",
1066
- responses: {
1067
- 200: {
1068
- bodyMapper: Mappers.PrivateEndpointConnection
1069
- },
1070
- 201: {
1071
- bodyMapper: Mappers.PrivateEndpointConnection
1072
- },
1073
- 202: {
1074
- bodyMapper: Mappers.PrivateEndpointConnection
1075
- },
1076
- 204: {
1077
- bodyMapper: Mappers.PrivateEndpointConnection
1078
- },
1079
- default: {
1080
- bodyMapper: Mappers.ErrorDetails
1081
- }
1082
- },
1083
- queryParameters: [Parameters.apiVersion],
1084
- urlParameters: [
1085
- Parameters.$host,
1086
- Parameters.subscriptionId,
1087
- Parameters.resourceGroupName,
1088
- Parameters.resourceName,
1089
- Parameters.privateEndpointConnectionName
1090
- ],
1091
- headerParameters: [Parameters.accept],
1092
- serializer
1093
- };
1094
- const listBySubscriptionNextOperationSpec = {
1095
- path: "{nextLink}",
1096
- httpMethod: "GET",
1097
- responses: {
1098
- 200: {
1099
- bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1100
- },
1101
- default: {
1102
- bodyMapper: Mappers.ErrorDetails
1103
- }
1104
- },
1105
- urlParameters: [
1106
- Parameters.$host,
1107
- Parameters.nextLink,
1108
- Parameters.subscriptionId
1109
- ],
1110
- headerParameters: [Parameters.accept],
1111
- serializer
1112
- };
1113
- const listByResourceGroupNextOperationSpec = {
1114
- path: "{nextLink}",
1115
- httpMethod: "GET",
1116
- responses: {
1117
- 200: {
1118
- bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1119
- },
1120
- default: {
1121
- bodyMapper: Mappers.ErrorDetails
1122
- }
1123
- },
1124
- urlParameters: [
1125
- Parameters.$host,
1126
- Parameters.nextLink,
1127
- Parameters.subscriptionId,
1128
- Parameters.resourceGroupName
1129
- ],
1130
- headerParameters: [Parameters.accept],
1131
- serializer
1132
- };
1133
- const listValidSkusNextOperationSpec = {
1134
- path: "{nextLink}",
1135
- httpMethod: "GET",
1136
- responses: {
1137
- 200: {
1138
- bodyMapper: Mappers.IotDpsSkuDefinitionListResult
1139
- },
1140
- default: {
1141
- bodyMapper: Mappers.ErrorDetails
1142
- }
1143
- },
1144
- urlParameters: [
1145
- Parameters.$host,
1146
- Parameters.nextLink,
1147
- Parameters.subscriptionId,
1148
- Parameters.resourceGroupName,
1149
- Parameters.provisioningServiceName
1150
- ],
1151
- headerParameters: [Parameters.accept],
1152
- serializer
1153
- };
1154
- const listKeysNextOperationSpec = {
1155
- path: "{nextLink}",
1156
- httpMethod: "GET",
1157
- responses: {
1158
- 200: {
1159
- bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
1160
- },
1161
- default: {
1162
- bodyMapper: Mappers.ErrorDetails
1163
- }
1164
- },
1165
- urlParameters: [
1166
- Parameters.$host,
1167
- Parameters.nextLink,
1168
- Parameters.subscriptionId,
1169
- Parameters.resourceGroupName,
1170
- Parameters.provisioningServiceName
1171
- ],
1172
- headerParameters: [Parameters.accept],
1173
- serializer
1174
- };
1175
- //# sourceMappingURL=iotDpsResource.js.map