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

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 (395) hide show
  1. package/CHANGELOG.md +20 -10
  2. package/LICENSE +4 -4
  3. package/README.md +26 -17
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +4 -4
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/iotDpsClient.d.ts +2 -2
  9. package/dist/browser/iotDpsClient.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/iotDpsClient.js +32 -24
  11. package/dist/browser/iotDpsClient.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
  13. package/dist/browser/lroImpl.js +18 -0
  14. package/dist/browser/lroImpl.js.map +1 -0
  15. package/dist/browser/models/index.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/models/mappers.js +13 -6
  17. package/dist/browser/models/mappers.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  19. package/dist/browser/models/parameters.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/dpsCertificate.d.ts +3 -3
  21. package/dist/browser/operations/dpsCertificate.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/dpsCertificate.js +3 -2
  23. package/dist/browser/operations/dpsCertificate.js.map +1 -0
  24. package/dist/browser/operations/index.d.ts +4 -0
  25. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  26. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
  27. package/dist/browser/operations/index.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/iotDpsResource.d.ts +3 -3
  29. package/dist/browser/operations/iotDpsResource.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/iotDpsResource.js +319 -402
  31. package/dist/browser/operations/iotDpsResource.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  33. package/dist/browser/operations/operations.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/operations.js +26 -48
  35. package/dist/browser/operations/operations.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/dpsCertificate.d.ts +1 -1
  37. package/dist/browser/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
  38. package/dist/browser/operationsInterfaces/dpsCertificate.js.map +1 -0
  39. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  41. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
  42. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operationsInterfaces/iotDpsResource.d.ts +1 -1
  44. package/dist/browser/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
  45. package/dist/browser/operationsInterfaces/iotDpsResource.js.map +1 -0
  46. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  48. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  49. package/dist/browser/package.json +3 -0
  50. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  51. package/dist/browser/pagingHelper.js.map +1 -0
  52. package/dist/commonjs/index.d.ts +5 -0
  53. package/dist/commonjs/index.d.ts.map +1 -0
  54. package/dist/commonjs/index.js +19 -0
  55. package/dist/commonjs/index.js.map +1 -0
  56. package/dist/commonjs/iotDpsClient.d.ts +22 -0
  57. package/dist/commonjs/iotDpsClient.d.ts.map +1 -0
  58. package/dist/commonjs/iotDpsClient.js +115 -0
  59. package/dist/commonjs/iotDpsClient.js.map +1 -0
  60. package/dist/commonjs/lroImpl.d.ts +11 -0
  61. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  62. package/dist/commonjs/lroImpl.js +21 -0
  63. package/dist/commonjs/lroImpl.js.map +1 -0
  64. package/{types/arm-deviceprovisioningservices.d.ts → dist/commonjs/models/index.d.ts} +979 -1378
  65. package/dist/commonjs/models/index.d.ts.map +1 -0
  66. package/dist/commonjs/models/index.js +131 -0
  67. package/dist/commonjs/models/index.js.map +1 -0
  68. package/dist/commonjs/models/mappers.d.ts +40 -0
  69. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  70. package/dist/commonjs/models/mappers.js +1271 -0
  71. package/dist/commonjs/models/mappers.js.map +1 -0
  72. package/dist/commonjs/models/parameters.d.ts +34 -0
  73. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  74. package/dist/commonjs/models/parameters.js +296 -0
  75. package/dist/commonjs/models/parameters.js.map +1 -0
  76. package/dist/commonjs/operations/dpsCertificate.d.ts +70 -0
  77. package/dist/commonjs/operations/dpsCertificate.d.ts.map +1 -0
  78. package/dist/commonjs/operations/dpsCertificate.js +295 -0
  79. package/dist/commonjs/operations/dpsCertificate.js.map +1 -0
  80. package/dist/commonjs/operations/index.d.ts +4 -0
  81. package/dist/commonjs/operations/index.d.ts.map +1 -0
  82. package/dist/commonjs/operations/index.js +14 -0
  83. package/dist/commonjs/operations/index.js.map +1 -0
  84. package/dist/commonjs/operations/iotDpsResource.d.ts +253 -0
  85. package/dist/commonjs/operations/iotDpsResource.d.ts.map +1 -0
  86. package/dist/commonjs/operations/iotDpsResource.js +1175 -0
  87. package/dist/commonjs/operations/iotDpsResource.js.map +1 -0
  88. package/dist/commonjs/operations/operations.d.ts +32 -0
  89. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  90. package/dist/commonjs/operations/operations.js +121 -0
  91. package/dist/commonjs/operations/operations.js.map +1 -0
  92. package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts +62 -0
  93. package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
  94. package/dist/commonjs/operationsInterfaces/dpsCertificate.js +10 -0
  95. package/dist/commonjs/operationsInterfaces/dpsCertificate.js.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  97. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  99. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts +183 -0
  101. package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
  102. package/dist/commonjs/operationsInterfaces/iotDpsResource.js +10 -0
  103. package/dist/commonjs/operationsInterfaces/iotDpsResource.js.map +1 -0
  104. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  105. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  106. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  107. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  108. package/dist/commonjs/package.json +3 -0
  109. package/dist/commonjs/pagingHelper.d.ts +13 -0
  110. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  111. package/dist/commonjs/pagingHelper.js +34 -0
  112. package/dist/commonjs/pagingHelper.js.map +1 -0
  113. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  114. package/dist/esm/index.d.ts +5 -0
  115. package/dist/esm/index.d.ts.map +1 -0
  116. package/{src/index.ts → dist/esm/index.js} +5 -5
  117. package/dist/esm/index.js.map +1 -0
  118. package/dist/esm/iotDpsClient.d.ts +22 -0
  119. package/dist/esm/iotDpsClient.d.ts.map +1 -0
  120. package/dist/esm/iotDpsClient.js +110 -0
  121. package/dist/esm/iotDpsClient.js.map +1 -0
  122. package/dist/esm/lroImpl.d.ts +11 -0
  123. package/dist/esm/lroImpl.d.ts.map +1 -0
  124. package/dist/esm/lroImpl.js +18 -0
  125. package/dist/esm/lroImpl.js.map +1 -0
  126. package/dist/esm/models/index.d.ts +979 -0
  127. package/dist/esm/models/index.d.ts.map +1 -0
  128. package/dist/esm/models/index.js +128 -0
  129. package/dist/esm/models/index.js.map +1 -0
  130. package/dist/esm/models/mappers.d.ts +40 -0
  131. package/dist/esm/models/mappers.d.ts.map +1 -0
  132. package/dist/esm/models/mappers.js +1268 -0
  133. package/dist/esm/models/mappers.js.map +1 -0
  134. package/dist/esm/models/parameters.d.ts +34 -0
  135. package/dist/esm/models/parameters.d.ts.map +1 -0
  136. package/dist/esm/models/parameters.js +293 -0
  137. package/dist/esm/models/parameters.js.map +1 -0
  138. package/dist/esm/operations/dpsCertificate.d.ts +70 -0
  139. package/dist/esm/operations/dpsCertificate.d.ts.map +1 -0
  140. package/dist/esm/operations/dpsCertificate.js +290 -0
  141. package/dist/esm/operations/dpsCertificate.js.map +1 -0
  142. package/dist/esm/operations/index.d.ts +4 -0
  143. package/dist/esm/operations/index.d.ts.map +1 -0
  144. package/dist/esm/operations/index.js +11 -0
  145. package/dist/esm/operations/index.js.map +1 -0
  146. package/dist/esm/operations/iotDpsResource.d.ts +253 -0
  147. package/dist/esm/operations/iotDpsResource.d.ts.map +1 -0
  148. package/dist/esm/operations/iotDpsResource.js +1170 -0
  149. package/dist/esm/operations/iotDpsResource.js.map +1 -0
  150. package/dist/esm/operations/operations.d.ts +32 -0
  151. package/dist/esm/operations/operations.d.ts.map +1 -0
  152. package/dist/esm/operations/operations.js +116 -0
  153. package/dist/esm/operations/operations.js.map +1 -0
  154. package/dist/esm/operationsInterfaces/dpsCertificate.d.ts +62 -0
  155. package/dist/esm/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
  156. package/{src/operations/index.ts → dist/esm/operationsInterfaces/dpsCertificate.js} +2 -4
  157. package/dist/esm/operationsInterfaces/dpsCertificate.js.map +1 -0
  158. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  159. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  160. package/dist/esm/operationsInterfaces/index.js +11 -0
  161. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  162. package/dist/esm/operationsInterfaces/iotDpsResource.d.ts +183 -0
  163. package/dist/esm/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
  164. package/dist/esm/operationsInterfaces/iotDpsResource.js +9 -0
  165. package/dist/esm/operationsInterfaces/iotDpsResource.js.map +1 -0
  166. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  167. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  168. package/dist/esm/operationsInterfaces/operations.js +9 -0
  169. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  170. package/dist/esm/package.json +3 -0
  171. package/dist/esm/pagingHelper.d.ts +13 -0
  172. package/dist/esm/pagingHelper.d.ts.map +1 -0
  173. package/dist/esm/pagingHelper.js +30 -0
  174. package/dist/esm/pagingHelper.js.map +1 -0
  175. package/dist/react-native/index.d.ts +5 -0
  176. package/dist/react-native/index.d.ts.map +1 -0
  177. package/dist/react-native/index.js +13 -0
  178. package/dist/react-native/index.js.map +1 -0
  179. package/dist/react-native/iotDpsClient.d.ts +22 -0
  180. package/dist/react-native/iotDpsClient.d.ts.map +1 -0
  181. package/dist/react-native/iotDpsClient.js +110 -0
  182. package/dist/react-native/iotDpsClient.js.map +1 -0
  183. package/dist/react-native/lroImpl.d.ts +11 -0
  184. package/dist/react-native/lroImpl.d.ts.map +1 -0
  185. package/dist/react-native/lroImpl.js +18 -0
  186. package/dist/react-native/lroImpl.js.map +1 -0
  187. package/dist/react-native/models/index.d.ts +979 -0
  188. package/dist/react-native/models/index.d.ts.map +1 -0
  189. package/dist/react-native/models/index.js +128 -0
  190. package/dist/react-native/models/index.js.map +1 -0
  191. package/dist/react-native/models/mappers.d.ts +40 -0
  192. package/dist/react-native/models/mappers.d.ts.map +1 -0
  193. package/dist/react-native/models/mappers.js +1268 -0
  194. package/dist/react-native/models/mappers.js.map +1 -0
  195. package/dist/react-native/models/parameters.d.ts +34 -0
  196. package/dist/react-native/models/parameters.d.ts.map +1 -0
  197. package/dist/react-native/models/parameters.js +293 -0
  198. package/dist/react-native/models/parameters.js.map +1 -0
  199. package/dist/react-native/operations/dpsCertificate.d.ts +70 -0
  200. package/dist/react-native/operations/dpsCertificate.d.ts.map +1 -0
  201. package/dist/react-native/operations/dpsCertificate.js +290 -0
  202. package/dist/react-native/operations/dpsCertificate.js.map +1 -0
  203. package/dist/react-native/operations/index.d.ts +4 -0
  204. package/dist/react-native/operations/index.d.ts.map +1 -0
  205. package/dist/react-native/operations/index.js +11 -0
  206. package/dist/react-native/operations/index.js.map +1 -0
  207. package/dist/react-native/operations/iotDpsResource.d.ts +253 -0
  208. package/dist/react-native/operations/iotDpsResource.d.ts.map +1 -0
  209. package/dist/react-native/operations/iotDpsResource.js +1170 -0
  210. package/dist/react-native/operations/iotDpsResource.js.map +1 -0
  211. package/dist/react-native/operations/operations.d.ts +32 -0
  212. package/dist/react-native/operations/operations.d.ts.map +1 -0
  213. package/dist/react-native/operations/operations.js +116 -0
  214. package/dist/react-native/operations/operations.js.map +1 -0
  215. package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts +62 -0
  216. package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
  217. package/dist/react-native/operationsInterfaces/dpsCertificate.js +9 -0
  218. package/dist/react-native/operationsInterfaces/dpsCertificate.js.map +1 -0
  219. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  220. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  221. package/dist/react-native/operationsInterfaces/index.js +11 -0
  222. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  223. package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts +183 -0
  224. package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
  225. package/dist/react-native/operationsInterfaces/iotDpsResource.js +9 -0
  226. package/dist/react-native/operationsInterfaces/iotDpsResource.js.map +1 -0
  227. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  228. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  229. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  230. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  231. package/dist/react-native/package.json +3 -0
  232. package/dist/react-native/pagingHelper.d.ts +13 -0
  233. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  234. package/dist/react-native/pagingHelper.js +30 -0
  235. package/dist/react-native/pagingHelper.js.map +1 -0
  236. package/package.json +85 -76
  237. package/dist/index.js +0 -3571
  238. package/dist/index.js.map +0 -1
  239. package/dist/index.min.js +0 -1
  240. package/dist/index.min.js.map +0 -1
  241. package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.d.ts +0 -2
  242. package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.d.ts.map +0 -1
  243. package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.js +0 -44
  244. package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.js.map +0 -1
  245. package/dist-esm/samples-dev/dpsCertificateDeleteSample.d.ts +0 -2
  246. package/dist-esm/samples-dev/dpsCertificateDeleteSample.d.ts.map +0 -1
  247. package/dist-esm/samples-dev/dpsCertificateDeleteSample.js +0 -42
  248. package/dist-esm/samples-dev/dpsCertificateDeleteSample.js.map +0 -1
  249. package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.d.ts +0 -2
  250. package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.d.ts.map +0 -1
  251. package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.js +0 -42
  252. package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.js.map +0 -1
  253. package/dist-esm/samples-dev/dpsCertificateGetSample.d.ts +0 -2
  254. package/dist-esm/samples-dev/dpsCertificateGetSample.d.ts.map +0 -1
  255. package/dist-esm/samples-dev/dpsCertificateGetSample.js +0 -41
  256. package/dist-esm/samples-dev/dpsCertificateGetSample.js.map +0 -1
  257. package/dist-esm/samples-dev/dpsCertificateListSample.d.ts +0 -2
  258. package/dist-esm/samples-dev/dpsCertificateListSample.d.ts.map +0 -1
  259. package/dist-esm/samples-dev/dpsCertificateListSample.js +0 -40
  260. package/dist-esm/samples-dev/dpsCertificateListSample.js.map +0 -1
  261. package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.d.ts +0 -2
  262. package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.d.ts.map +0 -1
  263. package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.js +0 -45
  264. package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.js.map +0 -1
  265. package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.d.ts +0 -2
  266. package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.d.ts.map +0 -1
  267. package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.js +0 -38
  268. package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.js.map +0 -1
  269. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.d.ts +0 -2
  270. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.d.ts.map +0 -1
  271. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.js +0 -49
  272. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.js.map +0 -1
  273. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.d.ts +0 -2
  274. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.d.ts.map +0 -1
  275. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.js +0 -78
  276. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.js.map +0 -1
  277. package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.d.ts +0 -2
  278. package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.d.ts.map +0 -1
  279. package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.js +0 -41
  280. package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.js.map +0 -1
  281. package/dist-esm/samples-dev/iotDpsResourceDeleteSample.d.ts +0 -2
  282. package/dist-esm/samples-dev/iotDpsResourceDeleteSample.d.ts.map +0 -1
  283. package/dist-esm/samples-dev/iotDpsResourceDeleteSample.js +0 -40
  284. package/dist-esm/samples-dev/iotDpsResourceDeleteSample.js.map +0 -1
  285. package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.d.ts +0 -2
  286. package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.d.ts.map +0 -1
  287. package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.js +0 -42
  288. package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.js.map +0 -1
  289. package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.d.ts +0 -2
  290. package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.d.ts.map +0 -1
  291. package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.js +0 -41
  292. package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.js.map +0 -1
  293. package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.d.ts +0 -2
  294. package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.d.ts.map +0 -1
  295. package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.js +0 -41
  296. package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.js.map +0 -1
  297. package/dist-esm/samples-dev/iotDpsResourceGetSample.d.ts +0 -2
  298. package/dist-esm/samples-dev/iotDpsResourceGetSample.d.ts.map +0 -1
  299. package/dist-esm/samples-dev/iotDpsResourceGetSample.js +0 -40
  300. package/dist-esm/samples-dev/iotDpsResourceGetSample.js.map +0 -1
  301. package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.d.ts +0 -2
  302. package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.d.ts.map +0 -1
  303. package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.js +0 -60
  304. package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.js.map +0 -1
  305. package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.d.ts +0 -2
  306. package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.d.ts.map +0 -1
  307. package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.js +0 -58
  308. package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.js.map +0 -1
  309. package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.d.ts +0 -2
  310. package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.d.ts.map +0 -1
  311. package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.js +0 -41
  312. package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.js.map +0 -1
  313. package/dist-esm/samples-dev/iotDpsResourceListKeysSample.d.ts +0 -2
  314. package/dist-esm/samples-dev/iotDpsResourceListKeysSample.d.ts.map +0 -1
  315. package/dist-esm/samples-dev/iotDpsResourceListKeysSample.js +0 -61
  316. package/dist-esm/samples-dev/iotDpsResourceListKeysSample.js.map +0 -1
  317. package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.d.ts +0 -2
  318. package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.d.ts.map +0 -1
  319. package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.js +0 -40
  320. package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.js.map +0 -1
  321. package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.d.ts +0 -2
  322. package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.d.ts.map +0 -1
  323. package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.js +0 -40
  324. package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.js.map +0 -1
  325. package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.d.ts +0 -2
  326. package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.d.ts.map +0 -1
  327. package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.js +0 -61
  328. package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.js.map +0 -1
  329. package/dist-esm/samples-dev/iotDpsResourceUpdateSample.d.ts +0 -2
  330. package/dist-esm/samples-dev/iotDpsResourceUpdateSample.d.ts.map +0 -1
  331. package/dist-esm/samples-dev/iotDpsResourceUpdateSample.js +0 -41
  332. package/dist-esm/samples-dev/iotDpsResourceUpdateSample.js.map +0 -1
  333. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  334. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  335. package/dist-esm/samples-dev/operationsListSample.js +0 -58
  336. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  337. package/dist-esm/src/index.d.ts +0 -6
  338. package/dist-esm/src/index.d.ts.map +0 -1
  339. package/dist-esm/src/index.js.map +0 -1
  340. package/dist-esm/src/iotDpsClient.d.ts.map +0 -1
  341. package/dist-esm/src/iotDpsClient.js.map +0 -1
  342. package/dist-esm/src/lroImpl.js +0 -21
  343. package/dist-esm/src/lroImpl.js.map +0 -1
  344. package/dist-esm/src/models/index.js.map +0 -1
  345. package/dist-esm/src/models/mappers.js.map +0 -1
  346. package/dist-esm/src/models/parameters.js.map +0 -1
  347. package/dist-esm/src/operations/dpsCertificate.d.ts.map +0 -1
  348. package/dist-esm/src/operations/dpsCertificate.js.map +0 -1
  349. package/dist-esm/src/operations/index.d.ts +0 -4
  350. package/dist-esm/src/operations/index.js.map +0 -1
  351. package/dist-esm/src/operations/iotDpsResource.d.ts.map +0 -1
  352. package/dist-esm/src/operations/iotDpsResource.js.map +0 -1
  353. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  354. package/dist-esm/src/operations/operations.js.map +0 -1
  355. package/dist-esm/src/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  356. package/dist-esm/src/operationsInterfaces/dpsCertificate.js.map +0 -1
  357. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  358. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  359. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  360. package/dist-esm/src/operationsInterfaces/iotDpsResource.js.map +0 -1
  361. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  362. package/dist-esm/src/pagingHelper.js.map +0 -1
  363. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.d.ts +0 -4
  364. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.d.ts.map +0 -1
  365. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.js +0 -123
  366. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.js.map +0 -1
  367. package/rollup.config.js +0 -122
  368. package/src/iotDpsClient.ts +0 -152
  369. package/src/lroImpl.ts +0 -42
  370. package/src/models/index.ts +0 -1108
  371. package/src/models/mappers.ts +0 -1309
  372. package/src/models/parameters.ts +0 -337
  373. package/src/operations/dpsCertificate.ts +0 -374
  374. package/src/operations/iotDpsResource.ts +0 -1674
  375. package/src/operations/operations.ts +0 -149
  376. package/src/operationsInterfaces/dpsCertificate.ts +0 -118
  377. package/src/operationsInterfaces/index.ts +0 -11
  378. package/src/operationsInterfaces/iotDpsResource.ts +0 -351
  379. package/src/operationsInterfaces/operations.ts +0 -22
  380. package/src/pagingHelper.ts +0 -39
  381. package/tsconfig.json +0 -33
  382. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  383. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  384. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  385. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  386. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  387. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  388. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  389. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  390. /package/{dist-esm/src → dist/browser}/operationsInterfaces/dpsCertificate.js +0 -0
  391. /package/{dist-esm/src → dist/browser}/operationsInterfaces/iotDpsResource.js +0 -0
  392. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  393. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  394. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  395. /package/review/{arm-deviceprovisioningservices.api.md → arm-deviceprovisioningservices-node.api.md} +0 -0
@@ -1,1674 +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
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { IotDpsResource } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { IotDpsClient } from "../iotDpsClient";
16
- import {
17
- SimplePollerLike,
18
- OperationState,
19
- createHttpPoller
20
- } from "@azure/core-lro";
21
- import { createLroSpec } from "../lroImpl";
22
- import {
23
- ProvisioningServiceDescription,
24
- IotDpsResourceListBySubscriptionNextOptionalParams,
25
- IotDpsResourceListBySubscriptionOptionalParams,
26
- IotDpsResourceListBySubscriptionResponse,
27
- IotDpsResourceListByResourceGroupNextOptionalParams,
28
- IotDpsResourceListByResourceGroupOptionalParams,
29
- IotDpsResourceListByResourceGroupResponse,
30
- IotDpsSkuDefinition,
31
- IotDpsResourceListValidSkusNextOptionalParams,
32
- IotDpsResourceListValidSkusOptionalParams,
33
- IotDpsResourceListValidSkusResponse,
34
- SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
35
- IotDpsResourceListKeysNextOptionalParams,
36
- IotDpsResourceListKeysOptionalParams,
37
- IotDpsResourceListKeysResponse,
38
- IotDpsResourceGetOptionalParams,
39
- IotDpsResourceGetResponse,
40
- IotDpsResourceCreateOrUpdateOptionalParams,
41
- IotDpsResourceCreateOrUpdateResponse,
42
- TagsResource,
43
- IotDpsResourceUpdateOptionalParams,
44
- IotDpsResourceUpdateResponse,
45
- IotDpsResourceDeleteOptionalParams,
46
- IotDpsResourceGetOperationResultOptionalParams,
47
- IotDpsResourceGetOperationResultResponse,
48
- OperationInputs,
49
- IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams,
50
- IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse,
51
- IotDpsResourceListKeysForKeyNameOptionalParams,
52
- IotDpsResourceListKeysForKeyNameResponse,
53
- IotDpsResourceListPrivateLinkResourcesOptionalParams,
54
- IotDpsResourceListPrivateLinkResourcesResponse,
55
- IotDpsResourceGetPrivateLinkResourcesOptionalParams,
56
- IotDpsResourceGetPrivateLinkResourcesResponse,
57
- IotDpsResourceListPrivateEndpointConnectionsOptionalParams,
58
- IotDpsResourceListPrivateEndpointConnectionsResponse,
59
- IotDpsResourceGetPrivateEndpointConnectionOptionalParams,
60
- IotDpsResourceGetPrivateEndpointConnectionResponse,
61
- PrivateEndpointConnection,
62
- IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams,
63
- IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse,
64
- IotDpsResourceDeletePrivateEndpointConnectionOptionalParams,
65
- IotDpsResourceDeletePrivateEndpointConnectionResponse,
66
- IotDpsResourceListBySubscriptionNextResponse,
67
- IotDpsResourceListByResourceGroupNextResponse,
68
- IotDpsResourceListValidSkusNextResponse,
69
- IotDpsResourceListKeysNextResponse
70
- } from "../models";
71
-
72
- /// <reference lib="esnext.asynciterable" />
73
- /** Class containing IotDpsResource operations. */
74
- export class IotDpsResourceImpl implements IotDpsResource {
75
- private readonly client: IotDpsClient;
76
-
77
- /**
78
- * Initialize a new instance of the class IotDpsResource class.
79
- * @param client Reference to the service client
80
- */
81
- constructor(client: IotDpsClient) {
82
- this.client = client;
83
- }
84
-
85
- /**
86
- * List all the provisioning services for a given subscription id.
87
- * @param options The options parameters.
88
- */
89
- public listBySubscription(
90
- options?: IotDpsResourceListBySubscriptionOptionalParams
91
- ): PagedAsyncIterableIterator<ProvisioningServiceDescription> {
92
- const iter = this.listBySubscriptionPagingAll(options);
93
- return {
94
- next() {
95
- return iter.next();
96
- },
97
- [Symbol.asyncIterator]() {
98
- return this;
99
- },
100
- byPage: (settings?: PageSettings) => {
101
- if (settings?.maxPageSize) {
102
- throw new Error("maxPageSize is not supported by this operation.");
103
- }
104
- return this.listBySubscriptionPagingPage(options, settings);
105
- }
106
- };
107
- }
108
-
109
- private async *listBySubscriptionPagingPage(
110
- options?: IotDpsResourceListBySubscriptionOptionalParams,
111
- settings?: PageSettings
112
- ): AsyncIterableIterator<ProvisioningServiceDescription[]> {
113
- let result: IotDpsResourceListBySubscriptionResponse;
114
- let continuationToken = settings?.continuationToken;
115
- if (!continuationToken) {
116
- result = await this._listBySubscription(options);
117
- let page = result.value || [];
118
- continuationToken = result.nextLink;
119
- setContinuationToken(page, continuationToken);
120
- yield page;
121
- }
122
- while (continuationToken) {
123
- result = await this._listBySubscriptionNext(continuationToken, options);
124
- continuationToken = result.nextLink;
125
- let page = result.value || [];
126
- setContinuationToken(page, continuationToken);
127
- yield page;
128
- }
129
- }
130
-
131
- private async *listBySubscriptionPagingAll(
132
- options?: IotDpsResourceListBySubscriptionOptionalParams
133
- ): AsyncIterableIterator<ProvisioningServiceDescription> {
134
- for await (const page of this.listBySubscriptionPagingPage(options)) {
135
- yield* page;
136
- }
137
- }
138
-
139
- /**
140
- * Get a list of all provisioning services in the given resource group.
141
- * @param resourceGroupName Resource group identifier.
142
- * @param options The options parameters.
143
- */
144
- public listByResourceGroup(
145
- resourceGroupName: string,
146
- options?: IotDpsResourceListByResourceGroupOptionalParams
147
- ): PagedAsyncIterableIterator<ProvisioningServiceDescription> {
148
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
149
- return {
150
- next() {
151
- return iter.next();
152
- },
153
- [Symbol.asyncIterator]() {
154
- return this;
155
- },
156
- byPage: (settings?: PageSettings) => {
157
- if (settings?.maxPageSize) {
158
- throw new Error("maxPageSize is not supported by this operation.");
159
- }
160
- return this.listByResourceGroupPagingPage(
161
- resourceGroupName,
162
- options,
163
- settings
164
- );
165
- }
166
- };
167
- }
168
-
169
- private async *listByResourceGroupPagingPage(
170
- resourceGroupName: string,
171
- options?: IotDpsResourceListByResourceGroupOptionalParams,
172
- settings?: PageSettings
173
- ): AsyncIterableIterator<ProvisioningServiceDescription[]> {
174
- let result: IotDpsResourceListByResourceGroupResponse;
175
- let continuationToken = settings?.continuationToken;
176
- if (!continuationToken) {
177
- result = await this._listByResourceGroup(resourceGroupName, options);
178
- let page = result.value || [];
179
- continuationToken = result.nextLink;
180
- setContinuationToken(page, continuationToken);
181
- yield page;
182
- }
183
- while (continuationToken) {
184
- result = await this._listByResourceGroupNext(
185
- resourceGroupName,
186
- continuationToken,
187
- options
188
- );
189
- continuationToken = result.nextLink;
190
- let page = result.value || [];
191
- setContinuationToken(page, continuationToken);
192
- yield page;
193
- }
194
- }
195
-
196
- private async *listByResourceGroupPagingAll(
197
- resourceGroupName: string,
198
- options?: IotDpsResourceListByResourceGroupOptionalParams
199
- ): AsyncIterableIterator<ProvisioningServiceDescription> {
200
- for await (const page of this.listByResourceGroupPagingPage(
201
- resourceGroupName,
202
- options
203
- )) {
204
- yield* page;
205
- }
206
- }
207
-
208
- /**
209
- * Gets the list of valid SKUs and tiers for a provisioning service.
210
- * @param provisioningServiceName Name of provisioning service.
211
- * @param resourceGroupName Name of resource group.
212
- * @param options The options parameters.
213
- */
214
- public listValidSkus(
215
- provisioningServiceName: string,
216
- resourceGroupName: string,
217
- options?: IotDpsResourceListValidSkusOptionalParams
218
- ): PagedAsyncIterableIterator<IotDpsSkuDefinition> {
219
- const iter = this.listValidSkusPagingAll(
220
- provisioningServiceName,
221
- resourceGroupName,
222
- options
223
- );
224
- return {
225
- next() {
226
- return iter.next();
227
- },
228
- [Symbol.asyncIterator]() {
229
- return this;
230
- },
231
- byPage: (settings?: PageSettings) => {
232
- if (settings?.maxPageSize) {
233
- throw new Error("maxPageSize is not supported by this operation.");
234
- }
235
- return this.listValidSkusPagingPage(
236
- provisioningServiceName,
237
- resourceGroupName,
238
- options,
239
- settings
240
- );
241
- }
242
- };
243
- }
244
-
245
- private async *listValidSkusPagingPage(
246
- provisioningServiceName: string,
247
- resourceGroupName: string,
248
- options?: IotDpsResourceListValidSkusOptionalParams,
249
- settings?: PageSettings
250
- ): AsyncIterableIterator<IotDpsSkuDefinition[]> {
251
- let result: IotDpsResourceListValidSkusResponse;
252
- let continuationToken = settings?.continuationToken;
253
- if (!continuationToken) {
254
- result = await this._listValidSkus(
255
- provisioningServiceName,
256
- resourceGroupName,
257
- options
258
- );
259
- let page = result.value || [];
260
- continuationToken = result.nextLink;
261
- setContinuationToken(page, continuationToken);
262
- yield page;
263
- }
264
- while (continuationToken) {
265
- result = await this._listValidSkusNext(
266
- provisioningServiceName,
267
- resourceGroupName,
268
- continuationToken,
269
- options
270
- );
271
- continuationToken = result.nextLink;
272
- let page = result.value || [];
273
- setContinuationToken(page, continuationToken);
274
- yield page;
275
- }
276
- }
277
-
278
- private async *listValidSkusPagingAll(
279
- provisioningServiceName: string,
280
- resourceGroupName: string,
281
- options?: IotDpsResourceListValidSkusOptionalParams
282
- ): AsyncIterableIterator<IotDpsSkuDefinition> {
283
- for await (const page of this.listValidSkusPagingPage(
284
- provisioningServiceName,
285
- resourceGroupName,
286
- options
287
- )) {
288
- yield* page;
289
- }
290
- }
291
-
292
- /**
293
- * List the primary and secondary keys for a provisioning service.
294
- * @param provisioningServiceName The provisioning service name to get the shared access keys for.
295
- * @param resourceGroupName resource group name
296
- * @param options The options parameters.
297
- */
298
- public listKeys(
299
- provisioningServiceName: string,
300
- resourceGroupName: string,
301
- options?: IotDpsResourceListKeysOptionalParams
302
- ): PagedAsyncIterableIterator<
303
- SharedAccessSignatureAuthorizationRuleAccessRightsDescription
304
- > {
305
- const iter = this.listKeysPagingAll(
306
- provisioningServiceName,
307
- resourceGroupName,
308
- options
309
- );
310
- return {
311
- next() {
312
- return iter.next();
313
- },
314
- [Symbol.asyncIterator]() {
315
- return this;
316
- },
317
- byPage: (settings?: PageSettings) => {
318
- if (settings?.maxPageSize) {
319
- throw new Error("maxPageSize is not supported by this operation.");
320
- }
321
- return this.listKeysPagingPage(
322
- provisioningServiceName,
323
- resourceGroupName,
324
- options,
325
- settings
326
- );
327
- }
328
- };
329
- }
330
-
331
- private async *listKeysPagingPage(
332
- provisioningServiceName: string,
333
- resourceGroupName: string,
334
- options?: IotDpsResourceListKeysOptionalParams,
335
- settings?: PageSettings
336
- ): AsyncIterableIterator<
337
- SharedAccessSignatureAuthorizationRuleAccessRightsDescription[]
338
- > {
339
- let result: IotDpsResourceListKeysResponse;
340
- let continuationToken = settings?.continuationToken;
341
- if (!continuationToken) {
342
- result = await this._listKeys(
343
- provisioningServiceName,
344
- resourceGroupName,
345
- options
346
- );
347
- let page = result.value || [];
348
- continuationToken = result.nextLink;
349
- setContinuationToken(page, continuationToken);
350
- yield page;
351
- }
352
- while (continuationToken) {
353
- result = await this._listKeysNext(
354
- provisioningServiceName,
355
- resourceGroupName,
356
- continuationToken,
357
- options
358
- );
359
- continuationToken = result.nextLink;
360
- let page = result.value || [];
361
- setContinuationToken(page, continuationToken);
362
- yield page;
363
- }
364
- }
365
-
366
- private async *listKeysPagingAll(
367
- provisioningServiceName: string,
368
- resourceGroupName: string,
369
- options?: IotDpsResourceListKeysOptionalParams
370
- ): AsyncIterableIterator<
371
- SharedAccessSignatureAuthorizationRuleAccessRightsDescription
372
- > {
373
- for await (const page of this.listKeysPagingPage(
374
- provisioningServiceName,
375
- resourceGroupName,
376
- options
377
- )) {
378
- yield* page;
379
- }
380
- }
381
-
382
- /**
383
- * Get the metadata of the provisioning service without SAS keys.
384
- * @param resourceGroupName Resource group name.
385
- * @param provisioningServiceName Name of the provisioning service to retrieve.
386
- * @param options The options parameters.
387
- */
388
- get(
389
- resourceGroupName: string,
390
- provisioningServiceName: string,
391
- options?: IotDpsResourceGetOptionalParams
392
- ): Promise<IotDpsResourceGetResponse> {
393
- return this.client.sendOperationRequest(
394
- { resourceGroupName, provisioningServiceName, options },
395
- getOperationSpec
396
- );
397
- }
398
-
399
- /**
400
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
401
- * to retrieve the provisioning service metadata and security metadata, and then combine them with the
402
- * modified values in a new body to update the provisioning service.
403
- * @param resourceGroupName Resource group identifier.
404
- * @param provisioningServiceName Name of provisioning service to create or update.
405
- * @param iotDpsDescription Description of the provisioning service to create or update.
406
- * @param options The options parameters.
407
- */
408
- async beginCreateOrUpdate(
409
- resourceGroupName: string,
410
- provisioningServiceName: string,
411
- iotDpsDescription: ProvisioningServiceDescription,
412
- options?: IotDpsResourceCreateOrUpdateOptionalParams
413
- ): Promise<
414
- SimplePollerLike<
415
- OperationState<IotDpsResourceCreateOrUpdateResponse>,
416
- IotDpsResourceCreateOrUpdateResponse
417
- >
418
- > {
419
- const directSendOperation = async (
420
- args: coreClient.OperationArguments,
421
- spec: coreClient.OperationSpec
422
- ): Promise<IotDpsResourceCreateOrUpdateResponse> => {
423
- return this.client.sendOperationRequest(args, spec);
424
- };
425
- const sendOperationFn = async (
426
- args: coreClient.OperationArguments,
427
- spec: coreClient.OperationSpec
428
- ) => {
429
- let currentRawResponse:
430
- | coreClient.FullOperationResponse
431
- | undefined = undefined;
432
- const providedCallback = args.options?.onResponse;
433
- const callback: coreClient.RawResponseCallback = (
434
- rawResponse: coreClient.FullOperationResponse,
435
- flatResponse: unknown
436
- ) => {
437
- currentRawResponse = rawResponse;
438
- providedCallback?.(rawResponse, flatResponse);
439
- };
440
- const updatedArgs = {
441
- ...args,
442
- options: {
443
- ...args.options,
444
- onResponse: callback
445
- }
446
- };
447
- const flatResponse = await directSendOperation(updatedArgs, spec);
448
- return {
449
- flatResponse,
450
- rawResponse: {
451
- statusCode: currentRawResponse!.status,
452
- body: currentRawResponse!.parsedBody,
453
- headers: currentRawResponse!.headers.toJSON()
454
- }
455
- };
456
- };
457
-
458
- const lro = createLroSpec({
459
- sendOperationFn,
460
- args: {
461
- resourceGroupName,
462
- provisioningServiceName,
463
- iotDpsDescription,
464
- options
465
- },
466
- spec: createOrUpdateOperationSpec
467
- });
468
- const poller = await createHttpPoller<
469
- IotDpsResourceCreateOrUpdateResponse,
470
- OperationState<IotDpsResourceCreateOrUpdateResponse>
471
- >(lro, {
472
- restoreFrom: options?.resumeFrom,
473
- intervalInMs: options?.updateIntervalInMs
474
- });
475
- await poller.poll();
476
- return poller;
477
- }
478
-
479
- /**
480
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
481
- * to retrieve the provisioning service metadata and security metadata, and then combine them with the
482
- * modified values in a new body to update the provisioning service.
483
- * @param resourceGroupName Resource group identifier.
484
- * @param provisioningServiceName Name of provisioning service to create or update.
485
- * @param iotDpsDescription Description of the provisioning service to create or update.
486
- * @param options The options parameters.
487
- */
488
- async beginCreateOrUpdateAndWait(
489
- resourceGroupName: string,
490
- provisioningServiceName: string,
491
- iotDpsDescription: ProvisioningServiceDescription,
492
- options?: IotDpsResourceCreateOrUpdateOptionalParams
493
- ): Promise<IotDpsResourceCreateOrUpdateResponse> {
494
- const poller = await this.beginCreateOrUpdate(
495
- resourceGroupName,
496
- provisioningServiceName,
497
- iotDpsDescription,
498
- options
499
- );
500
- return poller.pollUntilDone();
501
- }
502
-
503
- /**
504
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
505
- * @param resourceGroupName Resource group identifier.
506
- * @param provisioningServiceName Name of provisioning service to create or update.
507
- * @param provisioningServiceTags Updated tag information to set into the provisioning service
508
- * instance.
509
- * @param options The options parameters.
510
- */
511
- async beginUpdate(
512
- resourceGroupName: string,
513
- provisioningServiceName: string,
514
- provisioningServiceTags: TagsResource,
515
- options?: IotDpsResourceUpdateOptionalParams
516
- ): Promise<
517
- SimplePollerLike<
518
- OperationState<IotDpsResourceUpdateResponse>,
519
- IotDpsResourceUpdateResponse
520
- >
521
- > {
522
- const directSendOperation = async (
523
- args: coreClient.OperationArguments,
524
- spec: coreClient.OperationSpec
525
- ): Promise<IotDpsResourceUpdateResponse> => {
526
- return this.client.sendOperationRequest(args, spec);
527
- };
528
- const sendOperationFn = async (
529
- args: coreClient.OperationArguments,
530
- spec: coreClient.OperationSpec
531
- ) => {
532
- let currentRawResponse:
533
- | coreClient.FullOperationResponse
534
- | undefined = undefined;
535
- const providedCallback = args.options?.onResponse;
536
- const callback: coreClient.RawResponseCallback = (
537
- rawResponse: coreClient.FullOperationResponse,
538
- flatResponse: unknown
539
- ) => {
540
- currentRawResponse = rawResponse;
541
- providedCallback?.(rawResponse, flatResponse);
542
- };
543
- const updatedArgs = {
544
- ...args,
545
- options: {
546
- ...args.options,
547
- onResponse: callback
548
- }
549
- };
550
- const flatResponse = await directSendOperation(updatedArgs, spec);
551
- return {
552
- flatResponse,
553
- rawResponse: {
554
- statusCode: currentRawResponse!.status,
555
- body: currentRawResponse!.parsedBody,
556
- headers: currentRawResponse!.headers.toJSON()
557
- }
558
- };
559
- };
560
-
561
- const lro = createLroSpec({
562
- sendOperationFn,
563
- args: {
564
- resourceGroupName,
565
- provisioningServiceName,
566
- provisioningServiceTags,
567
- options
568
- },
569
- spec: updateOperationSpec
570
- });
571
- const poller = await createHttpPoller<
572
- IotDpsResourceUpdateResponse,
573
- OperationState<IotDpsResourceUpdateResponse>
574
- >(lro, {
575
- restoreFrom: options?.resumeFrom,
576
- intervalInMs: options?.updateIntervalInMs
577
- });
578
- await poller.poll();
579
- return poller;
580
- }
581
-
582
- /**
583
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
584
- * @param resourceGroupName Resource group identifier.
585
- * @param provisioningServiceName Name of provisioning service to create or update.
586
- * @param provisioningServiceTags Updated tag information to set into the provisioning service
587
- * instance.
588
- * @param options The options parameters.
589
- */
590
- async beginUpdateAndWait(
591
- resourceGroupName: string,
592
- provisioningServiceName: string,
593
- provisioningServiceTags: TagsResource,
594
- options?: IotDpsResourceUpdateOptionalParams
595
- ): Promise<IotDpsResourceUpdateResponse> {
596
- const poller = await this.beginUpdate(
597
- resourceGroupName,
598
- provisioningServiceName,
599
- provisioningServiceTags,
600
- options
601
- );
602
- return poller.pollUntilDone();
603
- }
604
-
605
- /**
606
- * Deletes the Provisioning Service.
607
- * @param resourceGroupName Resource group identifier.
608
- * @param provisioningServiceName Name of provisioning service to delete.
609
- * @param options The options parameters.
610
- */
611
- async beginDelete(
612
- resourceGroupName: string,
613
- provisioningServiceName: string,
614
- options?: IotDpsResourceDeleteOptionalParams
615
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
616
- const directSendOperation = async (
617
- args: coreClient.OperationArguments,
618
- spec: coreClient.OperationSpec
619
- ): Promise<void> => {
620
- return this.client.sendOperationRequest(args, spec);
621
- };
622
- const sendOperationFn = async (
623
- args: coreClient.OperationArguments,
624
- spec: coreClient.OperationSpec
625
- ) => {
626
- let currentRawResponse:
627
- | coreClient.FullOperationResponse
628
- | undefined = undefined;
629
- const providedCallback = args.options?.onResponse;
630
- const callback: coreClient.RawResponseCallback = (
631
- rawResponse: coreClient.FullOperationResponse,
632
- flatResponse: unknown
633
- ) => {
634
- currentRawResponse = rawResponse;
635
- providedCallback?.(rawResponse, flatResponse);
636
- };
637
- const updatedArgs = {
638
- ...args,
639
- options: {
640
- ...args.options,
641
- onResponse: callback
642
- }
643
- };
644
- const flatResponse = await directSendOperation(updatedArgs, spec);
645
- return {
646
- flatResponse,
647
- rawResponse: {
648
- statusCode: currentRawResponse!.status,
649
- body: currentRawResponse!.parsedBody,
650
- headers: currentRawResponse!.headers.toJSON()
651
- }
652
- };
653
- };
654
-
655
- const lro = createLroSpec({
656
- sendOperationFn,
657
- args: { resourceGroupName, provisioningServiceName, options },
658
- spec: deleteOperationSpec
659
- });
660
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
661
- restoreFrom: options?.resumeFrom,
662
- intervalInMs: options?.updateIntervalInMs
663
- });
664
- await poller.poll();
665
- return poller;
666
- }
667
-
668
- /**
669
- * Deletes the Provisioning Service.
670
- * @param resourceGroupName Resource group identifier.
671
- * @param provisioningServiceName Name of provisioning service to delete.
672
- * @param options The options parameters.
673
- */
674
- async beginDeleteAndWait(
675
- resourceGroupName: string,
676
- provisioningServiceName: string,
677
- options?: IotDpsResourceDeleteOptionalParams
678
- ): Promise<void> {
679
- const poller = await this.beginDelete(
680
- resourceGroupName,
681
- provisioningServiceName,
682
- options
683
- );
684
- return poller.pollUntilDone();
685
- }
686
-
687
- /**
688
- * List all the provisioning services for a given subscription id.
689
- * @param options The options parameters.
690
- */
691
- private _listBySubscription(
692
- options?: IotDpsResourceListBySubscriptionOptionalParams
693
- ): Promise<IotDpsResourceListBySubscriptionResponse> {
694
- return this.client.sendOperationRequest(
695
- { options },
696
- listBySubscriptionOperationSpec
697
- );
698
- }
699
-
700
- /**
701
- * Get a list of all provisioning services in the given resource group.
702
- * @param resourceGroupName Resource group identifier.
703
- * @param options The options parameters.
704
- */
705
- private _listByResourceGroup(
706
- resourceGroupName: string,
707
- options?: IotDpsResourceListByResourceGroupOptionalParams
708
- ): Promise<IotDpsResourceListByResourceGroupResponse> {
709
- return this.client.sendOperationRequest(
710
- { resourceGroupName, options },
711
- listByResourceGroupOperationSpec
712
- );
713
- }
714
-
715
- /**
716
- * Gets the status of a long running operation, such as create, update or delete a provisioning
717
- * service.
718
- * @param operationId Operation id corresponding to long running operation. Use this to poll for the
719
- * status.
720
- * @param resourceGroupName Resource group identifier.
721
- * @param provisioningServiceName Name of provisioning service that the operation is running on.
722
- * @param asyncinfo Async header used to poll on the status of the operation, obtained while creating
723
- * the long running operation.
724
- * @param options The options parameters.
725
- */
726
- getOperationResult(
727
- operationId: string,
728
- resourceGroupName: string,
729
- provisioningServiceName: string,
730
- asyncinfo: string,
731
- options?: IotDpsResourceGetOperationResultOptionalParams
732
- ): Promise<IotDpsResourceGetOperationResultResponse> {
733
- return this.client.sendOperationRequest(
734
- {
735
- operationId,
736
- resourceGroupName,
737
- provisioningServiceName,
738
- asyncinfo,
739
- options
740
- },
741
- getOperationResultOperationSpec
742
- );
743
- }
744
-
745
- /**
746
- * Gets the list of valid SKUs and tiers for a provisioning service.
747
- * @param provisioningServiceName Name of provisioning service.
748
- * @param resourceGroupName Name of resource group.
749
- * @param options The options parameters.
750
- */
751
- private _listValidSkus(
752
- provisioningServiceName: string,
753
- resourceGroupName: string,
754
- options?: IotDpsResourceListValidSkusOptionalParams
755
- ): Promise<IotDpsResourceListValidSkusResponse> {
756
- return this.client.sendOperationRequest(
757
- { provisioningServiceName, resourceGroupName, options },
758
- listValidSkusOperationSpec
759
- );
760
- }
761
-
762
- /**
763
- * Check if a provisioning service name is available. This will validate if the name is syntactically
764
- * valid and if the name is usable
765
- * @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the
766
- * provisioning service to check.
767
- * @param options The options parameters.
768
- */
769
- checkProvisioningServiceNameAvailability(
770
- argumentsParam: OperationInputs,
771
- options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams
772
- ): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse> {
773
- return this.client.sendOperationRequest(
774
- { argumentsParam, options },
775
- checkProvisioningServiceNameAvailabilityOperationSpec
776
- );
777
- }
778
-
779
- /**
780
- * List the primary and secondary keys for a provisioning service.
781
- * @param provisioningServiceName The provisioning service name to get the shared access keys for.
782
- * @param resourceGroupName resource group name
783
- * @param options The options parameters.
784
- */
785
- private _listKeys(
786
- provisioningServiceName: string,
787
- resourceGroupName: string,
788
- options?: IotDpsResourceListKeysOptionalParams
789
- ): Promise<IotDpsResourceListKeysResponse> {
790
- return this.client.sendOperationRequest(
791
- { provisioningServiceName, resourceGroupName, options },
792
- listKeysOperationSpec
793
- );
794
- }
795
-
796
- /**
797
- * List primary and secondary keys for a specific key name
798
- * @param provisioningServiceName Name of the provisioning service.
799
- * @param keyName Logical key name to get key-values for.
800
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
801
- * @param options The options parameters.
802
- */
803
- listKeysForKeyName(
804
- provisioningServiceName: string,
805
- keyName: string,
806
- resourceGroupName: string,
807
- options?: IotDpsResourceListKeysForKeyNameOptionalParams
808
- ): Promise<IotDpsResourceListKeysForKeyNameResponse> {
809
- return this.client.sendOperationRequest(
810
- { provisioningServiceName, keyName, resourceGroupName, options },
811
- listKeysForKeyNameOperationSpec
812
- );
813
- }
814
-
815
- /**
816
- * List private link resources for the given provisioning service
817
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
818
- * @param resourceName The name of the provisioning service.
819
- * @param options The options parameters.
820
- */
821
- listPrivateLinkResources(
822
- resourceGroupName: string,
823
- resourceName: string,
824
- options?: IotDpsResourceListPrivateLinkResourcesOptionalParams
825
- ): Promise<IotDpsResourceListPrivateLinkResourcesResponse> {
826
- return this.client.sendOperationRequest(
827
- { resourceGroupName, resourceName, options },
828
- listPrivateLinkResourcesOperationSpec
829
- );
830
- }
831
-
832
- /**
833
- * Get the specified private link resource for the given provisioning service
834
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
835
- * @param resourceName The name of the provisioning service.
836
- * @param groupId The name of the private link resource
837
- * @param options The options parameters.
838
- */
839
- getPrivateLinkResources(
840
- resourceGroupName: string,
841
- resourceName: string,
842
- groupId: string,
843
- options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams
844
- ): Promise<IotDpsResourceGetPrivateLinkResourcesResponse> {
845
- return this.client.sendOperationRequest(
846
- { resourceGroupName, resourceName, groupId, options },
847
- getPrivateLinkResourcesOperationSpec
848
- );
849
- }
850
-
851
- /**
852
- * List private endpoint connection properties
853
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
854
- * @param resourceName The name of the provisioning service.
855
- * @param options The options parameters.
856
- */
857
- listPrivateEndpointConnections(
858
- resourceGroupName: string,
859
- resourceName: string,
860
- options?: IotDpsResourceListPrivateEndpointConnectionsOptionalParams
861
- ): Promise<IotDpsResourceListPrivateEndpointConnectionsResponse> {
862
- return this.client.sendOperationRequest(
863
- { resourceGroupName, resourceName, options },
864
- listPrivateEndpointConnectionsOperationSpec
865
- );
866
- }
867
-
868
- /**
869
- * Get private endpoint connection properties
870
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
871
- * @param resourceName The name of the provisioning service.
872
- * @param privateEndpointConnectionName The name of the private endpoint connection
873
- * @param options The options parameters.
874
- */
875
- getPrivateEndpointConnection(
876
- resourceGroupName: string,
877
- resourceName: string,
878
- privateEndpointConnectionName: string,
879
- options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams
880
- ): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse> {
881
- return this.client.sendOperationRequest(
882
- {
883
- resourceGroupName,
884
- resourceName,
885
- privateEndpointConnectionName,
886
- options
887
- },
888
- getPrivateEndpointConnectionOperationSpec
889
- );
890
- }
891
-
892
- /**
893
- * Create or update the status of a private endpoint connection with the specified name
894
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
895
- * @param resourceName The name of the provisioning service.
896
- * @param privateEndpointConnectionName The name of the private endpoint connection
897
- * @param privateEndpointConnection The private endpoint connection with updated properties
898
- * @param options The options parameters.
899
- */
900
- async beginCreateOrUpdatePrivateEndpointConnection(
901
- resourceGroupName: string,
902
- resourceName: string,
903
- privateEndpointConnectionName: string,
904
- privateEndpointConnection: PrivateEndpointConnection,
905
- options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams
906
- ): Promise<
907
- SimplePollerLike<
908
- OperationState<
909
- IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
910
- >,
911
- IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
912
- >
913
- > {
914
- const directSendOperation = async (
915
- args: coreClient.OperationArguments,
916
- spec: coreClient.OperationSpec
917
- ): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse> => {
918
- return this.client.sendOperationRequest(args, spec);
919
- };
920
- const sendOperationFn = async (
921
- args: coreClient.OperationArguments,
922
- spec: coreClient.OperationSpec
923
- ) => {
924
- let currentRawResponse:
925
- | coreClient.FullOperationResponse
926
- | undefined = undefined;
927
- const providedCallback = args.options?.onResponse;
928
- const callback: coreClient.RawResponseCallback = (
929
- rawResponse: coreClient.FullOperationResponse,
930
- flatResponse: unknown
931
- ) => {
932
- currentRawResponse = rawResponse;
933
- providedCallback?.(rawResponse, flatResponse);
934
- };
935
- const updatedArgs = {
936
- ...args,
937
- options: {
938
- ...args.options,
939
- onResponse: callback
940
- }
941
- };
942
- const flatResponse = await directSendOperation(updatedArgs, spec);
943
- return {
944
- flatResponse,
945
- rawResponse: {
946
- statusCode: currentRawResponse!.status,
947
- body: currentRawResponse!.parsedBody,
948
- headers: currentRawResponse!.headers.toJSON()
949
- }
950
- };
951
- };
952
-
953
- const lro = createLroSpec({
954
- sendOperationFn,
955
- args: {
956
- resourceGroupName,
957
- resourceName,
958
- privateEndpointConnectionName,
959
- privateEndpointConnection,
960
- options
961
- },
962
- spec: createOrUpdatePrivateEndpointConnectionOperationSpec
963
- });
964
- const poller = await createHttpPoller<
965
- IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse,
966
- OperationState<
967
- IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
968
- >
969
- >(lro, {
970
- restoreFrom: options?.resumeFrom,
971
- intervalInMs: options?.updateIntervalInMs
972
- });
973
- await poller.poll();
974
- return poller;
975
- }
976
-
977
- /**
978
- * Create or update the status of a private endpoint connection with the specified name
979
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
980
- * @param resourceName The name of the provisioning service.
981
- * @param privateEndpointConnectionName The name of the private endpoint connection
982
- * @param privateEndpointConnection The private endpoint connection with updated properties
983
- * @param options The options parameters.
984
- */
985
- async beginCreateOrUpdatePrivateEndpointConnectionAndWait(
986
- resourceGroupName: string,
987
- resourceName: string,
988
- privateEndpointConnectionName: string,
989
- privateEndpointConnection: PrivateEndpointConnection,
990
- options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams
991
- ): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse> {
992
- const poller = await this.beginCreateOrUpdatePrivateEndpointConnection(
993
- resourceGroupName,
994
- resourceName,
995
- privateEndpointConnectionName,
996
- privateEndpointConnection,
997
- options
998
- );
999
- return poller.pollUntilDone();
1000
- }
1001
-
1002
- /**
1003
- * Delete private endpoint connection with the specified name
1004
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
1005
- * @param resourceName The name of the provisioning service.
1006
- * @param privateEndpointConnectionName The name of the private endpoint connection
1007
- * @param options The options parameters.
1008
- */
1009
- async beginDeletePrivateEndpointConnection(
1010
- resourceGroupName: string,
1011
- resourceName: string,
1012
- privateEndpointConnectionName: string,
1013
- options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams
1014
- ): Promise<
1015
- SimplePollerLike<
1016
- OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,
1017
- IotDpsResourceDeletePrivateEndpointConnectionResponse
1018
- >
1019
- > {
1020
- const directSendOperation = async (
1021
- args: coreClient.OperationArguments,
1022
- spec: coreClient.OperationSpec
1023
- ): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse> => {
1024
- return this.client.sendOperationRequest(args, spec);
1025
- };
1026
- const sendOperationFn = async (
1027
- args: coreClient.OperationArguments,
1028
- spec: coreClient.OperationSpec
1029
- ) => {
1030
- let currentRawResponse:
1031
- | coreClient.FullOperationResponse
1032
- | undefined = undefined;
1033
- const providedCallback = args.options?.onResponse;
1034
- const callback: coreClient.RawResponseCallback = (
1035
- rawResponse: coreClient.FullOperationResponse,
1036
- flatResponse: unknown
1037
- ) => {
1038
- currentRawResponse = rawResponse;
1039
- providedCallback?.(rawResponse, flatResponse);
1040
- };
1041
- const updatedArgs = {
1042
- ...args,
1043
- options: {
1044
- ...args.options,
1045
- onResponse: callback
1046
- }
1047
- };
1048
- const flatResponse = await directSendOperation(updatedArgs, spec);
1049
- return {
1050
- flatResponse,
1051
- rawResponse: {
1052
- statusCode: currentRawResponse!.status,
1053
- body: currentRawResponse!.parsedBody,
1054
- headers: currentRawResponse!.headers.toJSON()
1055
- }
1056
- };
1057
- };
1058
-
1059
- const lro = createLroSpec({
1060
- sendOperationFn,
1061
- args: {
1062
- resourceGroupName,
1063
- resourceName,
1064
- privateEndpointConnectionName,
1065
- options
1066
- },
1067
- spec: deletePrivateEndpointConnectionOperationSpec
1068
- });
1069
- const poller = await createHttpPoller<
1070
- IotDpsResourceDeletePrivateEndpointConnectionResponse,
1071
- OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>
1072
- >(lro, {
1073
- restoreFrom: options?.resumeFrom,
1074
- intervalInMs: options?.updateIntervalInMs
1075
- });
1076
- await poller.poll();
1077
- return poller;
1078
- }
1079
-
1080
- /**
1081
- * Delete private endpoint connection with the specified name
1082
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
1083
- * @param resourceName The name of the provisioning service.
1084
- * @param privateEndpointConnectionName The name of the private endpoint connection
1085
- * @param options The options parameters.
1086
- */
1087
- async beginDeletePrivateEndpointConnectionAndWait(
1088
- resourceGroupName: string,
1089
- resourceName: string,
1090
- privateEndpointConnectionName: string,
1091
- options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams
1092
- ): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse> {
1093
- const poller = await this.beginDeletePrivateEndpointConnection(
1094
- resourceGroupName,
1095
- resourceName,
1096
- privateEndpointConnectionName,
1097
- options
1098
- );
1099
- return poller.pollUntilDone();
1100
- }
1101
-
1102
- /**
1103
- * ListBySubscriptionNext
1104
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1105
- * @param options The options parameters.
1106
- */
1107
- private _listBySubscriptionNext(
1108
- nextLink: string,
1109
- options?: IotDpsResourceListBySubscriptionNextOptionalParams
1110
- ): Promise<IotDpsResourceListBySubscriptionNextResponse> {
1111
- return this.client.sendOperationRequest(
1112
- { nextLink, options },
1113
- listBySubscriptionNextOperationSpec
1114
- );
1115
- }
1116
-
1117
- /**
1118
- * ListByResourceGroupNext
1119
- * @param resourceGroupName Resource group identifier.
1120
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1121
- * @param options The options parameters.
1122
- */
1123
- private _listByResourceGroupNext(
1124
- resourceGroupName: string,
1125
- nextLink: string,
1126
- options?: IotDpsResourceListByResourceGroupNextOptionalParams
1127
- ): Promise<IotDpsResourceListByResourceGroupNextResponse> {
1128
- return this.client.sendOperationRequest(
1129
- { resourceGroupName, nextLink, options },
1130
- listByResourceGroupNextOperationSpec
1131
- );
1132
- }
1133
-
1134
- /**
1135
- * ListValidSkusNext
1136
- * @param provisioningServiceName Name of provisioning service.
1137
- * @param resourceGroupName Name of resource group.
1138
- * @param nextLink The nextLink from the previous successful call to the ListValidSkus method.
1139
- * @param options The options parameters.
1140
- */
1141
- private _listValidSkusNext(
1142
- provisioningServiceName: string,
1143
- resourceGroupName: string,
1144
- nextLink: string,
1145
- options?: IotDpsResourceListValidSkusNextOptionalParams
1146
- ): Promise<IotDpsResourceListValidSkusNextResponse> {
1147
- return this.client.sendOperationRequest(
1148
- { provisioningServiceName, resourceGroupName, nextLink, options },
1149
- listValidSkusNextOperationSpec
1150
- );
1151
- }
1152
-
1153
- /**
1154
- * ListKeysNext
1155
- * @param provisioningServiceName The provisioning service name to get the shared access keys for.
1156
- * @param resourceGroupName resource group name
1157
- * @param nextLink The nextLink from the previous successful call to the ListKeys method.
1158
- * @param options The options parameters.
1159
- */
1160
- private _listKeysNext(
1161
- provisioningServiceName: string,
1162
- resourceGroupName: string,
1163
- nextLink: string,
1164
- options?: IotDpsResourceListKeysNextOptionalParams
1165
- ): Promise<IotDpsResourceListKeysNextResponse> {
1166
- return this.client.sendOperationRequest(
1167
- { provisioningServiceName, resourceGroupName, nextLink, options },
1168
- listKeysNextOperationSpec
1169
- );
1170
- }
1171
- }
1172
- // Operation Specifications
1173
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1174
-
1175
- const getOperationSpec: coreClient.OperationSpec = {
1176
- path:
1177
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1178
- httpMethod: "GET",
1179
- responses: {
1180
- 200: {
1181
- bodyMapper: Mappers.ProvisioningServiceDescription
1182
- },
1183
- default: {
1184
- bodyMapper: Mappers.ErrorDetails
1185
- }
1186
- },
1187
- queryParameters: [Parameters.apiVersion],
1188
- urlParameters: [
1189
- Parameters.$host,
1190
- Parameters.subscriptionId,
1191
- Parameters.resourceGroupName,
1192
- Parameters.provisioningServiceName
1193
- ],
1194
- headerParameters: [Parameters.accept],
1195
- serializer
1196
- };
1197
- const createOrUpdateOperationSpec: coreClient.OperationSpec = {
1198
- path:
1199
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1200
- httpMethod: "PUT",
1201
- responses: {
1202
- 200: {
1203
- bodyMapper: Mappers.ProvisioningServiceDescription
1204
- },
1205
- 201: {
1206
- bodyMapper: Mappers.ProvisioningServiceDescription
1207
- },
1208
- 202: {
1209
- bodyMapper: Mappers.ProvisioningServiceDescription
1210
- },
1211
- 204: {
1212
- bodyMapper: Mappers.ProvisioningServiceDescription
1213
- },
1214
- default: {
1215
- bodyMapper: Mappers.ErrorDetails
1216
- }
1217
- },
1218
- requestBody: Parameters.iotDpsDescription,
1219
- queryParameters: [Parameters.apiVersion],
1220
- urlParameters: [
1221
- Parameters.$host,
1222
- Parameters.subscriptionId,
1223
- Parameters.resourceGroupName,
1224
- Parameters.provisioningServiceName
1225
- ],
1226
- headerParameters: [Parameters.accept, Parameters.contentType],
1227
- mediaType: "json",
1228
- serializer
1229
- };
1230
- const updateOperationSpec: coreClient.OperationSpec = {
1231
- path:
1232
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1233
- httpMethod: "PATCH",
1234
- responses: {
1235
- 200: {
1236
- bodyMapper: Mappers.ProvisioningServiceDescription
1237
- },
1238
- 201: {
1239
- bodyMapper: Mappers.ProvisioningServiceDescription
1240
- },
1241
- 202: {
1242
- bodyMapper: Mappers.ProvisioningServiceDescription
1243
- },
1244
- 204: {
1245
- bodyMapper: Mappers.ProvisioningServiceDescription
1246
- }
1247
- },
1248
- requestBody: Parameters.provisioningServiceTags,
1249
- queryParameters: [Parameters.apiVersion],
1250
- urlParameters: [
1251
- Parameters.$host,
1252
- Parameters.subscriptionId,
1253
- Parameters.resourceGroupName,
1254
- Parameters.provisioningServiceName
1255
- ],
1256
- headerParameters: [Parameters.accept, Parameters.contentType],
1257
- mediaType: "json",
1258
- serializer
1259
- };
1260
- const deleteOperationSpec: coreClient.OperationSpec = {
1261
- path:
1262
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1263
- httpMethod: "DELETE",
1264
- responses: {
1265
- 200: {},
1266
- 201: {},
1267
- 202: {},
1268
- 204: {},
1269
- default: {
1270
- bodyMapper: Mappers.ErrorDetails
1271
- }
1272
- },
1273
- queryParameters: [Parameters.apiVersion],
1274
- urlParameters: [
1275
- Parameters.$host,
1276
- Parameters.subscriptionId,
1277
- Parameters.resourceGroupName,
1278
- Parameters.provisioningServiceName
1279
- ],
1280
- headerParameters: [Parameters.accept],
1281
- serializer
1282
- };
1283
- const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
1284
- path:
1285
- "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices",
1286
- httpMethod: "GET",
1287
- responses: {
1288
- 200: {
1289
- bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1290
- },
1291
- default: {
1292
- bodyMapper: Mappers.ErrorDetails
1293
- }
1294
- },
1295
- queryParameters: [Parameters.apiVersion],
1296
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
1297
- headerParameters: [Parameters.accept],
1298
- serializer
1299
- };
1300
- const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
1301
- path:
1302
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices",
1303
- httpMethod: "GET",
1304
- responses: {
1305
- 200: {
1306
- bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1307
- },
1308
- default: {
1309
- bodyMapper: Mappers.ErrorDetails
1310
- }
1311
- },
1312
- queryParameters: [Parameters.apiVersion],
1313
- urlParameters: [
1314
- Parameters.$host,
1315
- Parameters.subscriptionId,
1316
- Parameters.resourceGroupName
1317
- ],
1318
- headerParameters: [Parameters.accept],
1319
- serializer
1320
- };
1321
- const getOperationResultOperationSpec: coreClient.OperationSpec = {
1322
- path:
1323
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}",
1324
- httpMethod: "GET",
1325
- responses: {
1326
- 200: {
1327
- bodyMapper: Mappers.AsyncOperationResult
1328
- },
1329
- default: {
1330
- bodyMapper: Mappers.ErrorDetails
1331
- }
1332
- },
1333
- queryParameters: [Parameters.apiVersion, Parameters.asyncinfo],
1334
- urlParameters: [
1335
- Parameters.$host,
1336
- Parameters.subscriptionId,
1337
- Parameters.resourceGroupName,
1338
- Parameters.provisioningServiceName,
1339
- Parameters.operationId
1340
- ],
1341
- headerParameters: [Parameters.accept],
1342
- serializer
1343
- };
1344
- const listValidSkusOperationSpec: coreClient.OperationSpec = {
1345
- path:
1346
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus",
1347
- httpMethod: "GET",
1348
- responses: {
1349
- 200: {
1350
- bodyMapper: Mappers.IotDpsSkuDefinitionListResult
1351
- },
1352
- default: {
1353
- bodyMapper: Mappers.ErrorDetails
1354
- }
1355
- },
1356
- queryParameters: [Parameters.apiVersion],
1357
- urlParameters: [
1358
- Parameters.$host,
1359
- Parameters.subscriptionId,
1360
- Parameters.resourceGroupName,
1361
- Parameters.provisioningServiceName
1362
- ],
1363
- headerParameters: [Parameters.accept],
1364
- serializer
1365
- };
1366
- const checkProvisioningServiceNameAvailabilityOperationSpec: coreClient.OperationSpec = {
1367
- path:
1368
- "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability",
1369
- httpMethod: "POST",
1370
- responses: {
1371
- 200: {
1372
- bodyMapper: Mappers.NameAvailabilityInfo
1373
- },
1374
- default: {
1375
- bodyMapper: Mappers.ErrorDetails
1376
- }
1377
- },
1378
- requestBody: Parameters.argumentsParam,
1379
- queryParameters: [Parameters.apiVersion],
1380
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
1381
- headerParameters: [Parameters.accept, Parameters.contentType],
1382
- mediaType: "json",
1383
- serializer
1384
- };
1385
- const listKeysOperationSpec: coreClient.OperationSpec = {
1386
- path:
1387
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys",
1388
- httpMethod: "POST",
1389
- responses: {
1390
- 200: {
1391
- bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
1392
- },
1393
- default: {
1394
- bodyMapper: Mappers.ErrorDetails
1395
- }
1396
- },
1397
- queryParameters: [Parameters.apiVersion],
1398
- urlParameters: [
1399
- Parameters.$host,
1400
- Parameters.subscriptionId,
1401
- Parameters.resourceGroupName,
1402
- Parameters.provisioningServiceName
1403
- ],
1404
- headerParameters: [Parameters.accept],
1405
- serializer
1406
- };
1407
- const listKeysForKeyNameOperationSpec: coreClient.OperationSpec = {
1408
- path:
1409
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys",
1410
- httpMethod: "POST",
1411
- responses: {
1412
- 200: {
1413
- bodyMapper:
1414
- Mappers.SharedAccessSignatureAuthorizationRuleAccessRightsDescription
1415
- },
1416
- default: {
1417
- bodyMapper: Mappers.ErrorDetails
1418
- }
1419
- },
1420
- queryParameters: [Parameters.apiVersion],
1421
- urlParameters: [
1422
- Parameters.$host,
1423
- Parameters.subscriptionId,
1424
- Parameters.resourceGroupName,
1425
- Parameters.provisioningServiceName,
1426
- Parameters.keyName
1427
- ],
1428
- headerParameters: [Parameters.accept],
1429
- serializer
1430
- };
1431
- const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
1432
- path:
1433
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources",
1434
- httpMethod: "GET",
1435
- responses: {
1436
- 200: {
1437
- bodyMapper: Mappers.PrivateLinkResources
1438
- },
1439
- default: {
1440
- bodyMapper: Mappers.ErrorDetails
1441
- }
1442
- },
1443
- queryParameters: [Parameters.apiVersion],
1444
- urlParameters: [
1445
- Parameters.$host,
1446
- Parameters.subscriptionId,
1447
- Parameters.resourceGroupName,
1448
- Parameters.resourceName
1449
- ],
1450
- headerParameters: [Parameters.accept],
1451
- serializer
1452
- };
1453
- const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
1454
- path:
1455
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources/{groupId}",
1456
- httpMethod: "GET",
1457
- responses: {
1458
- 200: {
1459
- bodyMapper: Mappers.GroupIdInformation
1460
- },
1461
- default: {
1462
- bodyMapper: Mappers.ErrorDetails
1463
- }
1464
- },
1465
- queryParameters: [Parameters.apiVersion],
1466
- urlParameters: [
1467
- Parameters.$host,
1468
- Parameters.subscriptionId,
1469
- Parameters.resourceGroupName,
1470
- Parameters.resourceName,
1471
- Parameters.groupId
1472
- ],
1473
- headerParameters: [Parameters.accept],
1474
- serializer
1475
- };
1476
- const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = {
1477
- path:
1478
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections",
1479
- httpMethod: "GET",
1480
- responses: {
1481
- 200: {
1482
- bodyMapper: {
1483
- type: {
1484
- name: "Sequence",
1485
- element: {
1486
- type: { name: "Composite", className: "PrivateEndpointConnection" }
1487
- }
1488
- }
1489
- }
1490
- },
1491
- default: {
1492
- bodyMapper: Mappers.ErrorDetails
1493
- }
1494
- },
1495
- queryParameters: [Parameters.apiVersion],
1496
- urlParameters: [
1497
- Parameters.$host,
1498
- Parameters.subscriptionId,
1499
- Parameters.resourceGroupName,
1500
- Parameters.resourceName
1501
- ],
1502
- headerParameters: [Parameters.accept],
1503
- serializer
1504
- };
1505
- const getPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
1506
- path:
1507
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1508
- httpMethod: "GET",
1509
- responses: {
1510
- 200: {
1511
- bodyMapper: Mappers.PrivateEndpointConnection
1512
- },
1513
- default: {
1514
- bodyMapper: Mappers.ErrorDetails
1515
- }
1516
- },
1517
- queryParameters: [Parameters.apiVersion],
1518
- urlParameters: [
1519
- Parameters.$host,
1520
- Parameters.subscriptionId,
1521
- Parameters.resourceGroupName,
1522
- Parameters.resourceName,
1523
- Parameters.privateEndpointConnectionName
1524
- ],
1525
- headerParameters: [Parameters.accept],
1526
- serializer
1527
- };
1528
- const createOrUpdatePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
1529
- path:
1530
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1531
- httpMethod: "PUT",
1532
- responses: {
1533
- 200: {
1534
- bodyMapper: Mappers.PrivateEndpointConnection
1535
- },
1536
- 201: {
1537
- bodyMapper: Mappers.PrivateEndpointConnection
1538
- },
1539
- 202: {
1540
- bodyMapper: Mappers.PrivateEndpointConnection
1541
- },
1542
- 204: {
1543
- bodyMapper: Mappers.PrivateEndpointConnection
1544
- },
1545
- default: {
1546
- bodyMapper: Mappers.ErrorDetails
1547
- }
1548
- },
1549
- requestBody: Parameters.privateEndpointConnection,
1550
- queryParameters: [Parameters.apiVersion],
1551
- urlParameters: [
1552
- Parameters.$host,
1553
- Parameters.subscriptionId,
1554
- Parameters.resourceGroupName,
1555
- Parameters.resourceName,
1556
- Parameters.privateEndpointConnectionName
1557
- ],
1558
- headerParameters: [Parameters.accept, Parameters.contentType],
1559
- mediaType: "json",
1560
- serializer
1561
- };
1562
- const deletePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
1563
- path:
1564
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1565
- httpMethod: "DELETE",
1566
- responses: {
1567
- 200: {
1568
- bodyMapper: Mappers.PrivateEndpointConnection
1569
- },
1570
- 201: {
1571
- bodyMapper: Mappers.PrivateEndpointConnection
1572
- },
1573
- 202: {
1574
- bodyMapper: Mappers.PrivateEndpointConnection
1575
- },
1576
- 204: {
1577
- bodyMapper: Mappers.PrivateEndpointConnection
1578
- },
1579
- default: {
1580
- bodyMapper: Mappers.ErrorDetails
1581
- }
1582
- },
1583
- queryParameters: [Parameters.apiVersion],
1584
- urlParameters: [
1585
- Parameters.$host,
1586
- Parameters.subscriptionId,
1587
- Parameters.resourceGroupName,
1588
- Parameters.resourceName,
1589
- Parameters.privateEndpointConnectionName
1590
- ],
1591
- headerParameters: [Parameters.accept],
1592
- serializer
1593
- };
1594
- const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
1595
- path: "{nextLink}",
1596
- httpMethod: "GET",
1597
- responses: {
1598
- 200: {
1599
- bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1600
- },
1601
- default: {
1602
- bodyMapper: Mappers.ErrorDetails
1603
- }
1604
- },
1605
- urlParameters: [
1606
- Parameters.$host,
1607
- Parameters.nextLink,
1608
- Parameters.subscriptionId
1609
- ],
1610
- headerParameters: [Parameters.accept],
1611
- serializer
1612
- };
1613
- const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
1614
- path: "{nextLink}",
1615
- httpMethod: "GET",
1616
- responses: {
1617
- 200: {
1618
- bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1619
- },
1620
- default: {
1621
- bodyMapper: Mappers.ErrorDetails
1622
- }
1623
- },
1624
- urlParameters: [
1625
- Parameters.$host,
1626
- Parameters.nextLink,
1627
- Parameters.subscriptionId,
1628
- Parameters.resourceGroupName
1629
- ],
1630
- headerParameters: [Parameters.accept],
1631
- serializer
1632
- };
1633
- const listValidSkusNextOperationSpec: coreClient.OperationSpec = {
1634
- path: "{nextLink}",
1635
- httpMethod: "GET",
1636
- responses: {
1637
- 200: {
1638
- bodyMapper: Mappers.IotDpsSkuDefinitionListResult
1639
- },
1640
- default: {
1641
- bodyMapper: Mappers.ErrorDetails
1642
- }
1643
- },
1644
- urlParameters: [
1645
- Parameters.$host,
1646
- Parameters.nextLink,
1647
- Parameters.subscriptionId,
1648
- Parameters.resourceGroupName,
1649
- Parameters.provisioningServiceName
1650
- ],
1651
- headerParameters: [Parameters.accept],
1652
- serializer
1653
- };
1654
- const listKeysNextOperationSpec: coreClient.OperationSpec = {
1655
- path: "{nextLink}",
1656
- httpMethod: "GET",
1657
- responses: {
1658
- 200: {
1659
- bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
1660
- },
1661
- default: {
1662
- bodyMapper: Mappers.ErrorDetails
1663
- }
1664
- },
1665
- urlParameters: [
1666
- Parameters.$host,
1667
- Parameters.nextLink,
1668
- Parameters.subscriptionId,
1669
- Parameters.resourceGroupName,
1670
- Parameters.provisioningServiceName
1671
- ],
1672
- headerParameters: [Parameters.accept],
1673
- serializer
1674
- };