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