@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
@@ -0,0 +1,183 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
3
+ import { ProvisioningServiceDescription, IotDpsResourceListBySubscriptionOptionalParams, IotDpsResourceListByResourceGroupOptionalParams, IotDpsSkuDefinition, IotDpsResourceListValidSkusOptionalParams, SharedAccessSignatureAuthorizationRuleAccessRightsDescription, IotDpsResourceListKeysOptionalParams, IotDpsResourceGetOptionalParams, IotDpsResourceGetResponse, IotDpsResourceCreateOrUpdateOptionalParams, IotDpsResourceCreateOrUpdateResponse, TagsResource, IotDpsResourceUpdateOptionalParams, IotDpsResourceUpdateResponse, IotDpsResourceDeleteOptionalParams, IotDpsResourceGetOperationResultOptionalParams, IotDpsResourceGetOperationResultResponse, OperationInputs, IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams, IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse, IotDpsResourceListKeysForKeyNameOptionalParams, IotDpsResourceListKeysForKeyNameResponse, IotDpsResourceListPrivateLinkResourcesOptionalParams, IotDpsResourceListPrivateLinkResourcesResponse, IotDpsResourceGetPrivateLinkResourcesOptionalParams, IotDpsResourceGetPrivateLinkResourcesResponse, IotDpsResourceListPrivateEndpointConnectionsOptionalParams, IotDpsResourceListPrivateEndpointConnectionsResponse, IotDpsResourceGetPrivateEndpointConnectionOptionalParams, IotDpsResourceGetPrivateEndpointConnectionResponse, PrivateEndpointConnection, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse, IotDpsResourceDeletePrivateEndpointConnectionOptionalParams, IotDpsResourceDeletePrivateEndpointConnectionResponse } from "../models/index.js";
4
+ /** Interface representing a IotDpsResource. */
5
+ export interface IotDpsResource {
6
+ /**
7
+ * List all the provisioning services for a given subscription id.
8
+ * @param options The options parameters.
9
+ */
10
+ listBySubscription(options?: IotDpsResourceListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ProvisioningServiceDescription>;
11
+ /**
12
+ * Get a list of all provisioning services in the given resource group.
13
+ * @param resourceGroupName Resource group identifier.
14
+ * @param options The options parameters.
15
+ */
16
+ listByResourceGroup(resourceGroupName: string, options?: IotDpsResourceListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ProvisioningServiceDescription>;
17
+ /**
18
+ * Gets the list of valid SKUs and tiers for a provisioning service.
19
+ * @param provisioningServiceName Name of provisioning service.
20
+ * @param resourceGroupName Name of resource group.
21
+ * @param options The options parameters.
22
+ */
23
+ listValidSkus(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceListValidSkusOptionalParams): PagedAsyncIterableIterator<IotDpsSkuDefinition>;
24
+ /**
25
+ * List the primary and secondary keys for a provisioning service.
26
+ * @param provisioningServiceName The provisioning service name to get the shared access keys for.
27
+ * @param resourceGroupName resource group name
28
+ * @param options The options parameters.
29
+ */
30
+ listKeys(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceListKeysOptionalParams): PagedAsyncIterableIterator<SharedAccessSignatureAuthorizationRuleAccessRightsDescription>;
31
+ /**
32
+ * Get the metadata of the provisioning service without SAS keys.
33
+ * @param resourceGroupName Resource group name.
34
+ * @param provisioningServiceName Name of the provisioning service to retrieve.
35
+ * @param options The options parameters.
36
+ */
37
+ get(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceGetOptionalParams): Promise<IotDpsResourceGetResponse>;
38
+ /**
39
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
40
+ * to retrieve the provisioning service metadata and security metadata, and then combine them with the
41
+ * modified values in a new body to update the provisioning service.
42
+ * @param resourceGroupName Resource group identifier.
43
+ * @param provisioningServiceName Name of provisioning service to create or update.
44
+ * @param iotDpsDescription Description of the provisioning service to create or update.
45
+ * @param options The options parameters.
46
+ */
47
+ beginCreateOrUpdate(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdateResponse>, IotDpsResourceCreateOrUpdateResponse>>;
48
+ /**
49
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
50
+ * to retrieve the provisioning service metadata and security metadata, and then combine them with the
51
+ * modified values in a new body to update the provisioning service.
52
+ * @param resourceGroupName Resource group identifier.
53
+ * @param provisioningServiceName Name of provisioning service to create or update.
54
+ * @param iotDpsDescription Description of the provisioning service to create or update.
55
+ * @param options The options parameters.
56
+ */
57
+ beginCreateOrUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<IotDpsResourceCreateOrUpdateResponse>;
58
+ /**
59
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
60
+ * @param resourceGroupName Resource group identifier.
61
+ * @param provisioningServiceName Name of provisioning service to create or update.
62
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
63
+ * instance.
64
+ * @param options The options parameters.
65
+ */
66
+ beginUpdate(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceUpdateResponse>, IotDpsResourceUpdateResponse>>;
67
+ /**
68
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
69
+ * @param resourceGroupName Resource group identifier.
70
+ * @param provisioningServiceName Name of provisioning service to create or update.
71
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
72
+ * instance.
73
+ * @param options The options parameters.
74
+ */
75
+ beginUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<IotDpsResourceUpdateResponse>;
76
+ /**
77
+ * Deletes the Provisioning Service.
78
+ * @param resourceGroupName Resource group identifier.
79
+ * @param provisioningServiceName Name of provisioning service to delete.
80
+ * @param options The options parameters.
81
+ */
82
+ beginDelete(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
83
+ /**
84
+ * Deletes the Provisioning Service.
85
+ * @param resourceGroupName Resource group identifier.
86
+ * @param provisioningServiceName Name of provisioning service to delete.
87
+ * @param options The options parameters.
88
+ */
89
+ beginDeleteAndWait(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>;
90
+ /**
91
+ * Gets the status of a long running operation, such as create, update or delete a provisioning
92
+ * service.
93
+ * @param operationId Operation id corresponding to long running operation. Use this to poll for the
94
+ * status.
95
+ * @param resourceGroupName Resource group identifier.
96
+ * @param provisioningServiceName Name of provisioning service that the operation is running on.
97
+ * @param asyncinfo Async header used to poll on the status of the operation, obtained while creating
98
+ * the long running operation.
99
+ * @param options The options parameters.
100
+ */
101
+ getOperationResult(operationId: string, resourceGroupName: string, provisioningServiceName: string, asyncinfo: string, options?: IotDpsResourceGetOperationResultOptionalParams): Promise<IotDpsResourceGetOperationResultResponse>;
102
+ /**
103
+ * Check if a provisioning service name is available. This will validate if the name is syntactically
104
+ * valid and if the name is usable
105
+ * @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the
106
+ * provisioning service to check.
107
+ * @param options The options parameters.
108
+ */
109
+ checkProvisioningServiceNameAvailability(argumentsParam: OperationInputs, options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse>;
110
+ /**
111
+ * List primary and secondary keys for a specific key name
112
+ * @param provisioningServiceName Name of the provisioning service.
113
+ * @param keyName Logical key name to get key-values for.
114
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
115
+ * @param options The options parameters.
116
+ */
117
+ listKeysForKeyName(provisioningServiceName: string, keyName: string, resourceGroupName: string, options?: IotDpsResourceListKeysForKeyNameOptionalParams): Promise<IotDpsResourceListKeysForKeyNameResponse>;
118
+ /**
119
+ * List private link resources for the given provisioning service
120
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
121
+ * @param resourceName The name of the provisioning service.
122
+ * @param options The options parameters.
123
+ */
124
+ listPrivateLinkResources(resourceGroupName: string, resourceName: string, options?: IotDpsResourceListPrivateLinkResourcesOptionalParams): Promise<IotDpsResourceListPrivateLinkResourcesResponse>;
125
+ /**
126
+ * Get the specified private link resource for the given provisioning service
127
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
128
+ * @param resourceName The name of the provisioning service.
129
+ * @param groupId The name of the private link resource
130
+ * @param options The options parameters.
131
+ */
132
+ getPrivateLinkResources(resourceGroupName: string, resourceName: string, groupId: string, options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams): Promise<IotDpsResourceGetPrivateLinkResourcesResponse>;
133
+ /**
134
+ * List private endpoint connection properties
135
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
136
+ * @param resourceName The name of the provisioning service.
137
+ * @param options The options parameters.
138
+ */
139
+ listPrivateEndpointConnections(resourceGroupName: string, resourceName: string, options?: IotDpsResourceListPrivateEndpointConnectionsOptionalParams): Promise<IotDpsResourceListPrivateEndpointConnectionsResponse>;
140
+ /**
141
+ * Get private endpoint connection properties
142
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
143
+ * @param resourceName The name of the provisioning service.
144
+ * @param privateEndpointConnectionName The name of the private endpoint connection
145
+ * @param options The options parameters.
146
+ */
147
+ getPrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse>;
148
+ /**
149
+ * Create or update the status of a private endpoint connection with the specified name
150
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
151
+ * @param resourceName The name of the provisioning service.
152
+ * @param privateEndpointConnectionName The name of the private endpoint connection
153
+ * @param privateEndpointConnection The private endpoint connection with updated properties
154
+ * @param options The options parameters.
155
+ */
156
+ beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>>;
157
+ /**
158
+ * Create or update the status of a private endpoint connection with the specified name
159
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
160
+ * @param resourceName The name of the provisioning service.
161
+ * @param privateEndpointConnectionName The name of the private endpoint connection
162
+ * @param privateEndpointConnection The private endpoint connection with updated properties
163
+ * @param options The options parameters.
164
+ */
165
+ beginCreateOrUpdatePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>;
166
+ /**
167
+ * Delete private endpoint connection with the specified name
168
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
169
+ * @param resourceName The name of the provisioning service.
170
+ * @param privateEndpointConnectionName The name of the private endpoint connection
171
+ * @param options The options parameters.
172
+ */
173
+ beginDeletePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>, IotDpsResourceDeletePrivateEndpointConnectionResponse>>;
174
+ /**
175
+ * Delete private endpoint connection with the specified name
176
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
177
+ * @param resourceName The name of the provisioning service.
178
+ * @param privateEndpointConnectionName The name of the private endpoint connection
179
+ * @param options The options parameters.
180
+ */
181
+ beginDeletePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse>;
182
+ }
183
+ //# sourceMappingURL=iotDpsResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iotDpsResource.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/iotDpsResource.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,8BAA8B,EAC9B,8CAA8C,EAC9C,+CAA+C,EAC/C,mBAAmB,EACnB,yCAAyC,EACzC,6DAA6D,EAC7D,oCAAoC,EACpC,+BAA+B,EAC/B,yBAAyB,EACzB,0CAA0C,EAC1C,oCAAoC,EACpC,YAAY,EACZ,kCAAkC,EAClC,4BAA4B,EAC5B,kCAAkC,EAClC,8CAA8C,EAC9C,wCAAwC,EACxC,eAAe,EACf,oEAAoE,EACpE,8DAA8D,EAC9D,8CAA8C,EAC9C,wCAAwC,EACxC,oDAAoD,EACpD,8CAA8C,EAC9C,mDAAmD,EACnD,6CAA6C,EAC7C,0DAA0D,EAC1D,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OAAO,CAAC,6DAA6D,CAAC,CAAC;IAC1E;;;;;;OAMG;IACH,oCAAoC,CAClC,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2DAA2D,GACpE,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,qDAAqD,CAAC,EACrE,qDAAqD,CACtD,CACF,CAAC;IACF;;;;;;OAMG;IACH,2CAA2C,CACzC,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2DAA2D,GACpE,OAAO,CAAC,qDAAqD,CAAC,CAAC;CACnE"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=iotDpsResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iotDpsResource.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/iotDpsResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n ProvisioningServiceDescription,\n IotDpsResourceListBySubscriptionOptionalParams,\n IotDpsResourceListByResourceGroupOptionalParams,\n IotDpsSkuDefinition,\n IotDpsResourceListValidSkusOptionalParams,\n SharedAccessSignatureAuthorizationRuleAccessRightsDescription,\n IotDpsResourceListKeysOptionalParams,\n IotDpsResourceGetOptionalParams,\n IotDpsResourceGetResponse,\n IotDpsResourceCreateOrUpdateOptionalParams,\n IotDpsResourceCreateOrUpdateResponse,\n TagsResource,\n IotDpsResourceUpdateOptionalParams,\n IotDpsResourceUpdateResponse,\n IotDpsResourceDeleteOptionalParams,\n IotDpsResourceGetOperationResultOptionalParams,\n IotDpsResourceGetOperationResultResponse,\n OperationInputs,\n IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams,\n IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse,\n IotDpsResourceListKeysForKeyNameOptionalParams,\n IotDpsResourceListKeysForKeyNameResponse,\n IotDpsResourceListPrivateLinkResourcesOptionalParams,\n IotDpsResourceListPrivateLinkResourcesResponse,\n IotDpsResourceGetPrivateLinkResourcesOptionalParams,\n IotDpsResourceGetPrivateLinkResourcesResponse,\n IotDpsResourceListPrivateEndpointConnectionsOptionalParams,\n IotDpsResourceListPrivateEndpointConnectionsResponse,\n IotDpsResourceGetPrivateEndpointConnectionOptionalParams,\n IotDpsResourceGetPrivateEndpointConnectionResponse,\n PrivateEndpointConnection,\n IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams,\n IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse,\n IotDpsResourceDeletePrivateEndpointConnectionOptionalParams,\n IotDpsResourceDeletePrivateEndpointConnectionResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a IotDpsResource. */\nexport interface IotDpsResource {\n /**\n * List all the provisioning services for a given subscription id.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: IotDpsResourceListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ProvisioningServiceDescription>;\n /**\n * Get a list of all provisioning services in the given resource group.\n * @param resourceGroupName Resource group identifier.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: IotDpsResourceListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ProvisioningServiceDescription>;\n /**\n * Gets the list of valid SKUs and tiers for a provisioning service.\n * @param provisioningServiceName Name of provisioning service.\n * @param resourceGroupName Name of resource group.\n * @param options The options parameters.\n */\n listValidSkus(\n provisioningServiceName: string,\n resourceGroupName: string,\n options?: IotDpsResourceListValidSkusOptionalParams\n ): PagedAsyncIterableIterator<IotDpsSkuDefinition>;\n /**\n * List the primary and secondary keys for a provisioning service.\n * @param provisioningServiceName The provisioning service name to get the shared access keys for.\n * @param resourceGroupName resource group name\n * @param options The options parameters.\n */\n listKeys(\n provisioningServiceName: string,\n resourceGroupName: string,\n options?: IotDpsResourceListKeysOptionalParams\n ): PagedAsyncIterableIterator<\n SharedAccessSignatureAuthorizationRuleAccessRightsDescription\n >;\n /**\n * Get the metadata of the provisioning service without SAS keys.\n * @param resourceGroupName Resource group name.\n * @param provisioningServiceName Name of the provisioning service to retrieve.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n provisioningServiceName: string,\n options?: IotDpsResourceGetOptionalParams\n ): Promise<IotDpsResourceGetResponse>;\n /**\n * Create or update the metadata of the provisioning service. The usual pattern to modify a property is\n * to retrieve the provisioning service metadata and security metadata, and then combine them with the\n * modified values in a new body to update the provisioning service.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to create or update.\n * @param iotDpsDescription Description of the provisioning service to create or update.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n provisioningServiceName: string,\n iotDpsDescription: ProvisioningServiceDescription,\n options?: IotDpsResourceCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<IotDpsResourceCreateOrUpdateResponse>,\n IotDpsResourceCreateOrUpdateResponse\n >\n >;\n /**\n * Create or update the metadata of the provisioning service. The usual pattern to modify a property is\n * to retrieve the provisioning service metadata and security metadata, and then combine them with the\n * modified values in a new body to update the provisioning service.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to create or update.\n * @param iotDpsDescription Description of the provisioning service to create or update.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n provisioningServiceName: string,\n iotDpsDescription: ProvisioningServiceDescription,\n options?: IotDpsResourceCreateOrUpdateOptionalParams\n ): Promise<IotDpsResourceCreateOrUpdateResponse>;\n /**\n * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to create or update.\n * @param provisioningServiceTags Updated tag information to set into the provisioning service\n * instance.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n provisioningServiceName: string,\n provisioningServiceTags: TagsResource,\n options?: IotDpsResourceUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<IotDpsResourceUpdateResponse>,\n IotDpsResourceUpdateResponse\n >\n >;\n /**\n * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to create or update.\n * @param provisioningServiceTags Updated tag information to set into the provisioning service\n * instance.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n provisioningServiceName: string,\n provisioningServiceTags: TagsResource,\n options?: IotDpsResourceUpdateOptionalParams\n ): Promise<IotDpsResourceUpdateResponse>;\n /**\n * Deletes the Provisioning Service.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to delete.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n provisioningServiceName: string,\n options?: IotDpsResourceDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Deletes the Provisioning Service.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to delete.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n provisioningServiceName: string,\n options?: IotDpsResourceDeleteOptionalParams\n ): Promise<void>;\n /**\n * Gets the status of a long running operation, such as create, update or delete a provisioning\n * service.\n * @param operationId Operation id corresponding to long running operation. Use this to poll for the\n * status.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service that the operation is running on.\n * @param asyncinfo Async header used to poll on the status of the operation, obtained while creating\n * the long running operation.\n * @param options The options parameters.\n */\n getOperationResult(\n operationId: string,\n resourceGroupName: string,\n provisioningServiceName: string,\n asyncinfo: string,\n options?: IotDpsResourceGetOperationResultOptionalParams\n ): Promise<IotDpsResourceGetOperationResultResponse>;\n /**\n * Check if a provisioning service name is available. This will validate if the name is syntactically\n * valid and if the name is usable\n * @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the\n * provisioning service to check.\n * @param options The options parameters.\n */\n checkProvisioningServiceNameAvailability(\n argumentsParam: OperationInputs,\n options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams\n ): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse>;\n /**\n * List primary and secondary keys for a specific key name\n * @param provisioningServiceName Name of the provisioning service.\n * @param keyName Logical key name to get key-values for.\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param options The options parameters.\n */\n listKeysForKeyName(\n provisioningServiceName: string,\n keyName: string,\n resourceGroupName: string,\n options?: IotDpsResourceListKeysForKeyNameOptionalParams\n ): Promise<IotDpsResourceListKeysForKeyNameResponse>;\n /**\n * List private link resources for the given provisioning service\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param options The options parameters.\n */\n listPrivateLinkResources(\n resourceGroupName: string,\n resourceName: string,\n options?: IotDpsResourceListPrivateLinkResourcesOptionalParams\n ): Promise<IotDpsResourceListPrivateLinkResourcesResponse>;\n /**\n * Get the specified private link resource for the given provisioning service\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param groupId The name of the private link resource\n * @param options The options parameters.\n */\n getPrivateLinkResources(\n resourceGroupName: string,\n resourceName: string,\n groupId: string,\n options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams\n ): Promise<IotDpsResourceGetPrivateLinkResourcesResponse>;\n /**\n * List private endpoint connection properties\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param options The options parameters.\n */\n listPrivateEndpointConnections(\n resourceGroupName: string,\n resourceName: string,\n options?: IotDpsResourceListPrivateEndpointConnectionsOptionalParams\n ): Promise<IotDpsResourceListPrivateEndpointConnectionsResponse>;\n /**\n * Get private endpoint connection properties\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param options The options parameters.\n */\n getPrivateEndpointConnection(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams\n ): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse>;\n /**\n * Create or update the status of a private endpoint connection with the specified name\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param privateEndpointConnection The private endpoint connection with updated properties\n * @param options The options parameters.\n */\n beginCreateOrUpdatePrivateEndpointConnection(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<\n IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse\n >,\n IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse\n >\n >;\n /**\n * Create or update the status of a private endpoint connection with the specified name\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param privateEndpointConnection The private endpoint connection with updated properties\n * @param options The options parameters.\n */\n beginCreateOrUpdatePrivateEndpointConnectionAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams\n ): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>;\n /**\n * Delete private endpoint connection with the specified name\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param options The options parameters.\n */\n beginDeletePrivateEndpointConnection(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,\n IotDpsResourceDeletePrivateEndpointConnectionResponse\n >\n >;\n /**\n * Delete private endpoint connection with the specified name\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param options The options parameters.\n */\n beginDeletePrivateEndpointConnectionAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams\n ): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse>;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all of the available Microsoft.Devices REST API operations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all of the available Microsoft.Devices REST API operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,30 @@
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
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
+ * that point later.
13
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
14
+ * @returns The continuation token that can be passed into byPage() during future calls.
15
+ */
16
+ export function getContinuationToken(page) {
17
+ if (typeof page !== "object" || page === null) {
18
+ return undefined;
19
+ }
20
+ return pageMap.get(page)?.continuationToken;
21
+ }
22
+ export function setContinuationToken(page, continuationToken) {
23
+ if (typeof page !== "object" || page === null || !continuationToken) {
24
+ return;
25
+ }
26
+ const pageInfo = pageMap.get(page) ?? {};
27
+ pageInfo.continuationToken = continuationToken;
28
+ pageMap.set(page, pageInfo);
29
+ }
30
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { IotDpsClient } from "./iotDpsClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,13 @@
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
+ /// <reference lib="esnext.asynciterable" />
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { IotDpsClient } from "./iotDpsClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { IotDpsClient } from \"./iotDpsClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations, DpsCertificate, IotDpsResource } from "./operationsInterfaces/index.js";
4
+ import { IotDpsClientOptionalParams } from "./models/index.js";
5
+ export declare class IotDpsClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the IotDpsClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The subscription identifier.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: IotDpsClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ operations: Operations;
19
+ dpsCertificate: DpsCertificate;
20
+ iotDpsResource: IotDpsResource;
21
+ }
22
+ //# sourceMappingURL=iotDpsClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iotDpsClient.d.ts","sourceRoot":"","sources":["../../src/iotDpsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,qBAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0BAA0B;IA8EtC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;CAChC"}
@@ -0,0 +1,110 @@
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 * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { OperationsImpl, DpsCertificateImpl, IotDpsResourceImpl } from "./operations/index.js";
11
+ export class IotDpsClient extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ subscriptionId;
15
+ /**
16
+ * Initializes a new instance of the IotDpsClient class.
17
+ * @param credentials Subscription credentials which uniquely identify client subscription.
18
+ * @param subscriptionId The subscription identifier.
19
+ * @param options The parameter options
20
+ */
21
+ constructor(credentials, subscriptionId, options) {
22
+ if (credentials === undefined) {
23
+ throw new Error("'credentials' cannot be null");
24
+ }
25
+ if (subscriptionId === undefined) {
26
+ throw new Error("'subscriptionId' cannot be null");
27
+ }
28
+ // Initializing default values for options
29
+ if (!options) {
30
+ options = {};
31
+ }
32
+ const defaults = {
33
+ requestContentType: "application/json; charset=utf-8",
34
+ credential: credentials
35
+ };
36
+ const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.2`;
37
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
+ : `${packageDetails}`;
40
+ const optionsWithDefaults = {
41
+ ...defaults,
42
+ ...options,
43
+ userAgentOptions: {
44
+ userAgentPrefix
45
+ },
46
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
47
+ };
48
+ super(optionsWithDefaults);
49
+ let bearerTokenAuthenticationPolicyFound = false;
50
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
51
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
52
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
53
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
54
+ }
55
+ if (!options ||
56
+ !options.pipeline ||
57
+ options.pipeline.getOrderedPolicies().length == 0 ||
58
+ !bearerTokenAuthenticationPolicyFound) {
59
+ this.pipeline.removePolicy({
60
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
61
+ });
62
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
63
+ credential: credentials,
64
+ scopes: optionsWithDefaults.credentialScopes ??
65
+ `${optionsWithDefaults.endpoint}/.default`,
66
+ challengeCallbacks: {
67
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
68
+ }
69
+ }));
70
+ }
71
+ // Parameter assignments
72
+ this.subscriptionId = subscriptionId;
73
+ // Assigning values to Constant parameters
74
+ this.$host = options.$host || "https://management.azure.com";
75
+ this.apiVersion = options.apiVersion || "2023-03-01-preview";
76
+ this.operations = new OperationsImpl(this);
77
+ this.dpsCertificate = new DpsCertificateImpl(this);
78
+ this.iotDpsResource = new IotDpsResourceImpl(this);
79
+ this.addCustomApiVersionPolicy(options.apiVersion);
80
+ }
81
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
82
+ addCustomApiVersionPolicy(apiVersion) {
83
+ if (!apiVersion) {
84
+ return;
85
+ }
86
+ const apiVersionPolicy = {
87
+ name: "CustomApiVersionPolicy",
88
+ async sendRequest(request, next) {
89
+ const param = request.url.split("?");
90
+ if (param.length > 1) {
91
+ const newParams = param[1].split("&").map((item) => {
92
+ if (item.indexOf("api-version") > -1) {
93
+ return "api-version=" + apiVersion;
94
+ }
95
+ else {
96
+ return item;
97
+ }
98
+ });
99
+ request.url = param[0] + "?" + newParams.join("&");
100
+ }
101
+ return next(request);
102
+ }
103
+ };
104
+ this.pipeline.addPolicy(apiVersionPolicy);
105
+ }
106
+ operations;
107
+ dpsCertificate;
108
+ iotDpsResource;
109
+ }
110
+ //# sourceMappingURL=iotDpsClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iotDpsClient.js","sourceRoot":"","sources":["../../src/iotDpsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,OAAO,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoC;QAEpC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA+B;YAC3C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,sDAAsD,CAAC;QAC9E,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG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AAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,cAAc,CAAiB;IAC/B,cAAc,CAAiB;CAChC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n DpsCertificateImpl,\n IotDpsResourceImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n DpsCertificate,\n IotDpsResource\n} from \"./operationsInterfaces/index.js\";\nimport { IotDpsClientOptionalParams } from \"./models/index.js\";\n\nexport class IotDpsClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the IotDpsClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: IotDpsClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: IotDpsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-03-01-preview\";\n this.operations = new OperationsImpl(this);\n this.dpsCertificate = new DpsCertificateImpl(this);\n this.iotDpsResource = new IotDpsResourceImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n dpsCertificate: DpsCertificate;\n iotDpsResource: IotDpsResource;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare function createLroSpec<T>(inputs: {
3
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
4
+ args: Record<string, unknown>;
5
+ spec: {
6
+ readonly requestBody?: unknown;
7
+ readonly path?: string;
8
+ readonly httpMethod: string;
9
+ } & Record<string, any>;
10
+ }): LongRunningOperation<T>;
11
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
@@ -0,0 +1,18 @@
1
+ export function createLroSpec(inputs) {
2
+ const { args, spec, sendOperationFn } = inputs;
3
+ return {
4
+ requestMethod: spec.httpMethod,
5
+ requestPath: spec.path,
6
+ sendInitialRequest: () => sendOperationFn(args, spec),
7
+ sendPollRequest: (path, options) => {
8
+ const { requestBody, ...restSpec } = spec;
9
+ return sendOperationFn(args, {
10
+ ...restSpec,
11
+ httpMethod: "GET",
12
+ path,
13
+ abortSignal: options?.abortSignal
14
+ });
15
+ }
16
+ };
17
+ }
18
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}