@azure/arm-digitaltwins 3.3.1-alpha.20250115.1 → 3.3.1-alpha.20250120.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. package/{dist-esm/src → dist/browser}/azureDigitalTwinsManagementClient.d.ts +2 -2
  2. package/dist/browser/azureDigitalTwinsManagementClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/azureDigitalTwinsManagementClient.js +15 -18
  4. package/dist/browser/azureDigitalTwinsManagementClient.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/lroImpl.js.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  13. package/dist/browser/models/parameters.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/digitalTwins.d.ts +3 -3
  15. package/dist/browser/operations/digitalTwins.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/digitalTwins.js +118 -130
  17. package/dist/browser/operations/digitalTwins.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/digitalTwinsEndpoint.d.ts +3 -3
  19. package/dist/browser/operations/digitalTwinsEndpoint.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/digitalTwinsEndpoint.js +83 -91
  21. package/dist/browser/operations/digitalTwinsEndpoint.js.map +1 -0
  22. package/dist/browser/operations/index.d.ts +7 -0
  23. package/dist/browser/operations/index.d.ts.map +1 -0
  24. package/dist/browser/operations/index.js +14 -0
  25. package/dist/browser/operations/index.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  27. package/dist/browser/operations/operations.d.ts.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  29. package/dist/browser/operations/operations.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +3 -3
  31. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +86 -95
  33. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +3 -3
  35. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +2 -2
  37. package/dist/browser/operations/privateLinkResources.js.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/timeSeriesDatabaseConnections.d.ts +3 -3
  39. package/dist/browser/operations/timeSeriesDatabaseConnections.d.ts.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operations/timeSeriesDatabaseConnections.js +88 -96
  41. package/dist/browser/operations/timeSeriesDatabaseConnections.js.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operationsInterfaces/digitalTwins.d.ts +1 -1
  43. package/dist/browser/operationsInterfaces/digitalTwins.d.ts.map +1 -0
  44. package/dist/browser/operationsInterfaces/digitalTwins.js.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operationsInterfaces/digitalTwinsEndpoint.d.ts +1 -1
  46. package/dist/browser/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
  47. package/dist/browser/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
  48. package/dist/browser/operationsInterfaces/index.d.ts +7 -0
  49. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist/browser/operationsInterfaces/index.js +14 -0
  51. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  52. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  53. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  54. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  55. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
  56. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  57. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  58. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +1 -1
  59. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  60. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
  61. package/{dist-esm/src → dist/browser}/operationsInterfaces/timeSeriesDatabaseConnections.d.ts +1 -1
  62. package/dist/browser/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -0
  63. package/dist/browser/operationsInterfaces/timeSeriesDatabaseConnections.js.map +1 -0
  64. package/dist/browser/package.json +3 -0
  65. package/dist/browser/pagingHelper.js.map +1 -0
  66. package/dist/commonjs/azureDigitalTwinsManagementClient.d.ts +25 -0
  67. package/dist/commonjs/azureDigitalTwinsManagementClient.d.ts.map +1 -0
  68. package/dist/commonjs/azureDigitalTwinsManagementClient.js +107 -0
  69. package/dist/commonjs/azureDigitalTwinsManagementClient.js.map +1 -0
  70. package/dist/commonjs/index.d.ts +5 -0
  71. package/dist/commonjs/index.d.ts.map +1 -0
  72. package/dist/commonjs/index.js +19 -0
  73. package/dist/commonjs/index.js.map +1 -0
  74. package/dist/commonjs/lroImpl.d.ts +11 -0
  75. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  76. package/dist/commonjs/lroImpl.js +24 -0
  77. package/dist/commonjs/lroImpl.js.map +1 -0
  78. package/{types/arm-digitaltwins.d.ts → dist/commonjs/models/index.d.ts} +1014 -1438
  79. package/dist/commonjs/models/index.d.ts.map +1 -0
  80. package/dist/commonjs/models/index.js +205 -0
  81. package/dist/commonjs/models/index.js.map +1 -0
  82. package/dist/commonjs/models/mappers.d.ts +46 -0
  83. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  84. package/dist/commonjs/models/mappers.js +1192 -0
  85. package/dist/commonjs/models/mappers.js.map +1 -0
  86. package/dist/commonjs/models/parameters.d.ts +22 -0
  87. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  88. package/dist/commonjs/models/parameters.js +202 -0
  89. package/dist/commonjs/models/parameters.js.map +1 -0
  90. package/dist/commonjs/operations/digitalTwins.d.ts +119 -0
  91. package/dist/commonjs/operations/digitalTwins.d.ts.map +1 -0
  92. package/dist/commonjs/operations/digitalTwins.js +584 -0
  93. package/dist/commonjs/operations/digitalTwins.js.map +1 -0
  94. package/dist/commonjs/operations/digitalTwinsEndpoint.d.ts +81 -0
  95. package/dist/commonjs/operations/digitalTwinsEndpoint.d.ts.map +1 -0
  96. package/dist/commonjs/operations/digitalTwinsEndpoint.js +366 -0
  97. package/dist/commonjs/operations/digitalTwinsEndpoint.js.map +1 -0
  98. package/dist/commonjs/operations/index.d.ts +7 -0
  99. package/dist/commonjs/operations/index.d.ts.map +1 -0
  100. package/dist/commonjs/operations/index.js +17 -0
  101. package/dist/commonjs/operations/index.js.map +1 -0
  102. package/dist/commonjs/operations/operations.d.ts +32 -0
  103. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  104. package/dist/commonjs/operations/operations.js +137 -0
  105. package/dist/commonjs/operations/operations.js.map +1 -0
  106. package/dist/commonjs/operations/privateEndpointConnections.d.ts +63 -0
  107. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  108. package/dist/commonjs/operations/privateEndpointConnections.js +272 -0
  109. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  110. package/dist/commonjs/operations/privateLinkResources.d.ts +28 -0
  111. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
  112. package/dist/commonjs/operations/privateLinkResources.js +90 -0
  113. package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
  114. package/dist/commonjs/operations/timeSeriesDatabaseConnections.d.ts +81 -0
  115. package/dist/commonjs/operations/timeSeriesDatabaseConnections.d.ts.map +1 -0
  116. package/dist/commonjs/operations/timeSeriesDatabaseConnections.js +379 -0
  117. package/dist/commonjs/operations/timeSeriesDatabaseConnections.js.map +1 -0
  118. package/dist/commonjs/operationsInterfaces/digitalTwins.d.ts +83 -0
  119. package/dist/commonjs/operationsInterfaces/digitalTwins.d.ts.map +1 -0
  120. package/dist/commonjs/operationsInterfaces/digitalTwins.js +10 -0
  121. package/dist/commonjs/operationsInterfaces/digitalTwins.js.map +1 -0
  122. package/dist/commonjs/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
  123. package/dist/commonjs/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
  124. package/dist/commonjs/operationsInterfaces/digitalTwinsEndpoint.js +10 -0
  125. package/dist/commonjs/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
  126. package/dist/commonjs/operationsInterfaces/index.d.ts +7 -0
  127. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  128. package/dist/commonjs/operationsInterfaces/index.js +17 -0
  129. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  130. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  131. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  132. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  133. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  134. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +55 -0
  135. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  136. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  137. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  138. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +20 -0
  139. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  140. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
  141. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
  142. package/dist/commonjs/operationsInterfaces/timeSeriesDatabaseConnections.d.ts +56 -0
  143. package/dist/commonjs/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -0
  144. package/dist/commonjs/operationsInterfaces/timeSeriesDatabaseConnections.js +10 -0
  145. package/dist/commonjs/operationsInterfaces/timeSeriesDatabaseConnections.js.map +1 -0
  146. package/dist/commonjs/package.json +3 -0
  147. package/dist/commonjs/pagingHelper.d.ts +13 -0
  148. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  149. package/dist/commonjs/pagingHelper.js +36 -0
  150. package/dist/commonjs/pagingHelper.js.map +1 -0
  151. package/dist/esm/azureDigitalTwinsManagementClient.d.ts +25 -0
  152. package/dist/esm/azureDigitalTwinsManagementClient.d.ts.map +1 -0
  153. package/dist/esm/azureDigitalTwinsManagementClient.js +102 -0
  154. package/dist/esm/azureDigitalTwinsManagementClient.js.map +1 -0
  155. package/dist/esm/index.d.ts +5 -0
  156. package/dist/esm/index.d.ts.map +1 -0
  157. package/{src/index.ts → dist/esm/index.js} +5 -5
  158. package/dist/esm/index.js.map +1 -0
  159. package/dist/esm/lroImpl.d.ts +11 -0
  160. package/dist/esm/lroImpl.d.ts.map +1 -0
  161. package/dist/esm/lroImpl.js +21 -0
  162. package/dist/esm/lroImpl.js.map +1 -0
  163. package/dist/esm/models/index.d.ts +1014 -0
  164. package/dist/esm/models/index.d.ts.map +1 -0
  165. package/dist/esm/models/index.js +202 -0
  166. package/dist/esm/models/index.js.map +1 -0
  167. package/dist/esm/models/mappers.d.ts +46 -0
  168. package/dist/esm/models/mappers.d.ts.map +1 -0
  169. package/dist/esm/models/mappers.js +1189 -0
  170. package/dist/esm/models/mappers.js.map +1 -0
  171. package/dist/esm/models/parameters.d.ts +22 -0
  172. package/dist/esm/models/parameters.d.ts.map +1 -0
  173. package/dist/esm/models/parameters.js +199 -0
  174. package/dist/esm/models/parameters.js.map +1 -0
  175. package/dist/esm/operations/digitalTwins.d.ts +119 -0
  176. package/dist/esm/operations/digitalTwins.d.ts.map +1 -0
  177. package/dist/esm/operations/digitalTwins.js +580 -0
  178. package/dist/esm/operations/digitalTwins.js.map +1 -0
  179. package/dist/esm/operations/digitalTwinsEndpoint.d.ts +81 -0
  180. package/dist/esm/operations/digitalTwinsEndpoint.d.ts.map +1 -0
  181. package/dist/esm/operations/digitalTwinsEndpoint.js +362 -0
  182. package/dist/esm/operations/digitalTwinsEndpoint.js.map +1 -0
  183. package/dist/esm/operations/index.d.ts +7 -0
  184. package/dist/esm/operations/index.d.ts.map +1 -0
  185. package/dist/esm/operations/index.js +14 -0
  186. package/dist/esm/operations/index.js.map +1 -0
  187. package/dist/esm/operations/operations.d.ts +32 -0
  188. package/dist/esm/operations/operations.d.ts.map +1 -0
  189. package/dist/esm/operations/operations.js +133 -0
  190. package/dist/esm/operations/operations.js.map +1 -0
  191. package/dist/esm/operations/privateEndpointConnections.d.ts +63 -0
  192. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  193. package/dist/esm/operations/privateEndpointConnections.js +267 -0
  194. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  195. package/dist/esm/operations/privateLinkResources.d.ts +28 -0
  196. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
  197. package/dist/esm/operations/privateLinkResources.js +85 -0
  198. package/dist/esm/operations/privateLinkResources.js.map +1 -0
  199. package/dist/esm/operations/timeSeriesDatabaseConnections.d.ts +81 -0
  200. package/dist/esm/operations/timeSeriesDatabaseConnections.d.ts.map +1 -0
  201. package/dist/esm/operations/timeSeriesDatabaseConnections.js +375 -0
  202. package/dist/esm/operations/timeSeriesDatabaseConnections.js.map +1 -0
  203. package/dist/esm/operationsInterfaces/digitalTwins.d.ts +83 -0
  204. package/dist/esm/operationsInterfaces/digitalTwins.d.ts.map +1 -0
  205. package/dist/esm/operationsInterfaces/digitalTwins.js +9 -0
  206. package/dist/esm/operationsInterfaces/digitalTwins.js.map +1 -0
  207. package/dist/esm/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
  208. package/dist/esm/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
  209. package/dist/esm/operationsInterfaces/digitalTwinsEndpoint.js +9 -0
  210. package/dist/esm/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
  211. package/dist/esm/operationsInterfaces/index.d.ts +7 -0
  212. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  213. package/dist/esm/operationsInterfaces/index.js +14 -0
  214. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  215. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  216. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  217. package/dist/esm/operationsInterfaces/operations.js +9 -0
  218. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  219. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +55 -0
  220. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  221. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  222. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  223. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +20 -0
  224. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  225. package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
  226. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  227. package/dist/esm/operationsInterfaces/timeSeriesDatabaseConnections.d.ts +56 -0
  228. package/dist/esm/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -0
  229. package/dist/esm/operationsInterfaces/timeSeriesDatabaseConnections.js +9 -0
  230. package/dist/esm/operationsInterfaces/timeSeriesDatabaseConnections.js.map +1 -0
  231. package/dist/esm/package.json +3 -0
  232. package/dist/esm/pagingHelper.d.ts +13 -0
  233. package/dist/esm/pagingHelper.d.ts.map +1 -0
  234. package/dist/esm/pagingHelper.js +32 -0
  235. package/dist/esm/pagingHelper.js.map +1 -0
  236. package/dist/react-native/azureDigitalTwinsManagementClient.d.ts +25 -0
  237. package/dist/react-native/azureDigitalTwinsManagementClient.d.ts.map +1 -0
  238. package/dist/react-native/azureDigitalTwinsManagementClient.js +102 -0
  239. package/dist/react-native/azureDigitalTwinsManagementClient.js.map +1 -0
  240. package/dist/react-native/index.d.ts +5 -0
  241. package/dist/react-native/index.d.ts.map +1 -0
  242. package/dist/react-native/index.js +13 -0
  243. package/dist/react-native/index.js.map +1 -0
  244. package/dist/react-native/lroImpl.d.ts +11 -0
  245. package/dist/react-native/lroImpl.d.ts.map +1 -0
  246. package/dist/react-native/lroImpl.js +21 -0
  247. package/dist/react-native/lroImpl.js.map +1 -0
  248. package/dist/react-native/models/index.d.ts +1014 -0
  249. package/dist/react-native/models/index.d.ts.map +1 -0
  250. package/dist/react-native/models/index.js +202 -0
  251. package/dist/react-native/models/index.js.map +1 -0
  252. package/dist/react-native/models/mappers.d.ts +46 -0
  253. package/dist/react-native/models/mappers.d.ts.map +1 -0
  254. package/dist/react-native/models/mappers.js +1189 -0
  255. package/dist/react-native/models/mappers.js.map +1 -0
  256. package/dist/react-native/models/parameters.d.ts +22 -0
  257. package/dist/react-native/models/parameters.d.ts.map +1 -0
  258. package/dist/react-native/models/parameters.js +199 -0
  259. package/dist/react-native/models/parameters.js.map +1 -0
  260. package/dist/react-native/operations/digitalTwins.d.ts +119 -0
  261. package/dist/react-native/operations/digitalTwins.d.ts.map +1 -0
  262. package/dist/react-native/operations/digitalTwins.js +580 -0
  263. package/dist/react-native/operations/digitalTwins.js.map +1 -0
  264. package/dist/react-native/operations/digitalTwinsEndpoint.d.ts +81 -0
  265. package/dist/react-native/operations/digitalTwinsEndpoint.d.ts.map +1 -0
  266. package/dist/react-native/operations/digitalTwinsEndpoint.js +362 -0
  267. package/dist/react-native/operations/digitalTwinsEndpoint.js.map +1 -0
  268. package/dist/react-native/operations/index.d.ts +7 -0
  269. package/dist/react-native/operations/index.d.ts.map +1 -0
  270. package/dist/react-native/operations/index.js +14 -0
  271. package/dist/react-native/operations/index.js.map +1 -0
  272. package/dist/react-native/operations/operations.d.ts +32 -0
  273. package/dist/react-native/operations/operations.d.ts.map +1 -0
  274. package/dist/react-native/operations/operations.js +133 -0
  275. package/dist/react-native/operations/operations.js.map +1 -0
  276. package/dist/react-native/operations/privateEndpointConnections.d.ts +63 -0
  277. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  278. package/dist/react-native/operations/privateEndpointConnections.js +267 -0
  279. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  280. package/dist/react-native/operations/privateLinkResources.d.ts +28 -0
  281. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
  282. package/dist/react-native/operations/privateLinkResources.js +85 -0
  283. package/dist/react-native/operations/privateLinkResources.js.map +1 -0
  284. package/dist/react-native/operations/timeSeriesDatabaseConnections.d.ts +81 -0
  285. package/dist/react-native/operations/timeSeriesDatabaseConnections.d.ts.map +1 -0
  286. package/dist/react-native/operations/timeSeriesDatabaseConnections.js +375 -0
  287. package/dist/react-native/operations/timeSeriesDatabaseConnections.js.map +1 -0
  288. package/dist/react-native/operationsInterfaces/digitalTwins.d.ts +83 -0
  289. package/dist/react-native/operationsInterfaces/digitalTwins.d.ts.map +1 -0
  290. package/dist/react-native/operationsInterfaces/digitalTwins.js +9 -0
  291. package/dist/react-native/operationsInterfaces/digitalTwins.js.map +1 -0
  292. package/dist/react-native/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
  293. package/dist/react-native/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
  294. package/dist/react-native/operationsInterfaces/digitalTwinsEndpoint.js +9 -0
  295. package/dist/react-native/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
  296. package/dist/react-native/operationsInterfaces/index.d.ts +7 -0
  297. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  298. package/dist/react-native/operationsInterfaces/index.js +14 -0
  299. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  300. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  301. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  302. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  303. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  304. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +55 -0
  305. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  306. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  307. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  308. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +20 -0
  309. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  310. package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
  311. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
  312. package/dist/react-native/operationsInterfaces/timeSeriesDatabaseConnections.d.ts +56 -0
  313. package/dist/react-native/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -0
  314. package/dist/react-native/operationsInterfaces/timeSeriesDatabaseConnections.js +9 -0
  315. package/dist/react-native/operationsInterfaces/timeSeriesDatabaseConnections.js.map +1 -0
  316. package/dist/react-native/package.json +3 -0
  317. package/dist/react-native/pagingHelper.d.ts +13 -0
  318. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  319. package/dist/react-native/pagingHelper.js +32 -0
  320. package/dist/react-native/pagingHelper.js.map +1 -0
  321. package/package.json +58 -28
  322. package/dist/index.js +0 -3619
  323. package/dist/index.js.map +0 -1
  324. package/dist/index.min.js +0 -1
  325. package/dist/index.min.js.map +0 -1
  326. package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.d.ts +0 -2
  327. package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.d.ts.map +0 -1
  328. package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.js +0 -42
  329. package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.js.map +0 -1
  330. package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.d.ts +0 -2
  331. package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.d.ts.map +0 -1
  332. package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.js +0 -91
  333. package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.js.map +0 -1
  334. package/dist-esm/samples-dev/digitalTwinsDeleteSample.d.ts +0 -2
  335. package/dist-esm/samples-dev/digitalTwinsDeleteSample.d.ts.map +0 -1
  336. package/dist-esm/samples-dev/digitalTwinsDeleteSample.js +0 -58
  337. package/dist-esm/samples-dev/digitalTwinsDeleteSample.js.map +0 -1
  338. package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.d.ts +0 -2
  339. package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.d.ts.map +0 -1
  340. package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.js +0 -108
  341. package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.js.map +0 -1
  342. package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.d.ts +0 -2
  343. package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.d.ts.map +0 -1
  344. package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.js +0 -60
  345. package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.js.map +0 -1
  346. package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.d.ts +0 -2
  347. package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.d.ts.map +0 -1
  348. package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.js +0 -60
  349. package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.js.map +0 -1
  350. package/dist-esm/samples-dev/digitalTwinsEndpointListSample.d.ts +0 -2
  351. package/dist-esm/samples-dev/digitalTwinsEndpointListSample.d.ts.map +0 -1
  352. package/dist-esm/samples-dev/digitalTwinsEndpointListSample.js +0 -90
  353. package/dist-esm/samples-dev/digitalTwinsEndpointListSample.js.map +0 -1
  354. package/dist-esm/samples-dev/digitalTwinsGetSample.d.ts +0 -2
  355. package/dist-esm/samples-dev/digitalTwinsGetSample.d.ts.map +0 -1
  356. package/dist-esm/samples-dev/digitalTwinsGetSample.js +0 -77
  357. package/dist-esm/samples-dev/digitalTwinsGetSample.js.map +0 -1
  358. package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.d.ts +0 -2
  359. package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.d.ts.map +0 -1
  360. package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.js +0 -54
  361. package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.js.map +0 -1
  362. package/dist-esm/samples-dev/digitalTwinsListSample.d.ts +0 -2
  363. package/dist-esm/samples-dev/digitalTwinsListSample.d.ts.map +0 -1
  364. package/dist-esm/samples-dev/digitalTwinsListSample.js +0 -53
  365. package/dist-esm/samples-dev/digitalTwinsListSample.js.map +0 -1
  366. package/dist-esm/samples-dev/digitalTwinsUpdateSample.d.ts +0 -2
  367. package/dist-esm/samples-dev/digitalTwinsUpdateSample.d.ts.map +0 -1
  368. package/dist-esm/samples-dev/digitalTwinsUpdateSample.js +0 -86
  369. package/dist-esm/samples-dev/digitalTwinsUpdateSample.js.map +0 -1
  370. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  371. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  372. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  373. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  374. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +0 -2
  375. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +0 -1
  376. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +0 -48
  377. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +0 -1
  378. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  379. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  380. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -40
  381. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  382. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  383. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  384. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -40
  385. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  386. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +0 -2
  387. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +0 -1
  388. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +0 -39
  389. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +0 -1
  390. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +0 -2
  391. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +0 -1
  392. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +0 -40
  393. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +0 -1
  394. package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts +0 -2
  395. package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts.map +0 -1
  396. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +0 -39
  397. package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +0 -1
  398. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.d.ts +0 -2
  399. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.d.ts.map +0 -1
  400. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.js +0 -91
  401. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.js.map +0 -1
  402. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.d.ts +0 -2
  403. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.d.ts.map +0 -1
  404. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.js +0 -40
  405. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.js.map +0 -1
  406. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.d.ts +0 -2
  407. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.d.ts.map +0 -1
  408. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.js +0 -40
  409. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.js.map +0 -1
  410. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.d.ts +0 -2
  411. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.d.ts.map +0 -1
  412. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.js +0 -55
  413. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.js.map +0 -1
  414. package/dist-esm/src/azureDigitalTwinsManagementClient.d.ts.map +0 -1
  415. package/dist-esm/src/azureDigitalTwinsManagementClient.js.map +0 -1
  416. package/dist-esm/src/index.d.ts +0 -5
  417. package/dist-esm/src/index.js.map +0 -1
  418. package/dist-esm/src/lroImpl.js.map +0 -1
  419. package/dist-esm/src/models/index.js.map +0 -1
  420. package/dist-esm/src/models/mappers.js.map +0 -1
  421. package/dist-esm/src/models/parameters.js.map +0 -1
  422. package/dist-esm/src/operations/digitalTwins.d.ts.map +0 -1
  423. package/dist-esm/src/operations/digitalTwins.js.map +0 -1
  424. package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts.map +0 -1
  425. package/dist-esm/src/operations/digitalTwinsEndpoint.js.map +0 -1
  426. package/dist-esm/src/operations/index.d.ts +0 -7
  427. package/dist-esm/src/operations/index.d.ts.map +0 -1
  428. package/dist-esm/src/operations/index.js +0 -14
  429. package/dist-esm/src/operations/index.js.map +0 -1
  430. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  431. package/dist-esm/src/operations/operations.js.map +0 -1
  432. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  433. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  434. package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
  435. package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
  436. package/dist-esm/src/operations/timeSeriesDatabaseConnections.d.ts.map +0 -1
  437. package/dist-esm/src/operations/timeSeriesDatabaseConnections.js.map +0 -1
  438. package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts.map +0 -1
  439. package/dist-esm/src/operationsInterfaces/digitalTwins.js.map +0 -1
  440. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +0 -1
  441. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.js.map +0 -1
  442. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
  443. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  444. package/dist-esm/src/operationsInterfaces/index.js +0 -14
  445. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  446. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  447. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  448. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  449. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  450. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
  451. package/dist-esm/src/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +0 -1
  452. package/dist-esm/src/operationsInterfaces/timeSeriesDatabaseConnections.js.map +0 -1
  453. package/dist-esm/src/pagingHelper.js.map +0 -1
  454. package/dist-esm/test/digitaltwins_examples.spec.d.ts +0 -4
  455. package/dist-esm/test/digitaltwins_examples.spec.d.ts.map +0 -1
  456. package/dist-esm/test/digitaltwins_examples.spec.js +0 -112
  457. package/dist-esm/test/digitaltwins_examples.spec.js.map +0 -1
  458. package/src/azureDigitalTwinsManagementClient.ts +0 -166
  459. package/src/lroImpl.ts +0 -42
  460. package/src/models/index.ts +0 -1151
  461. package/src/models/mappers.ts +0 -1277
  462. package/src/models/parameters.ts +0 -231
  463. package/src/operations/digitalTwins.ts +0 -784
  464. package/src/operations/digitalTwinsEndpoint.ts +0 -515
  465. package/src/operations/index.ts +0 -14
  466. package/src/operations/operations.ts +0 -149
  467. package/src/operations/privateEndpointConnections.ts +0 -388
  468. package/src/operations/privateLinkResources.ts +0 -116
  469. package/src/operations/timeSeriesDatabaseConnections.ts +0 -529
  470. package/src/operationsInterfaces/digitalTwins.ts +0 -164
  471. package/src/operationsInterfaces/digitalTwinsEndpoint.ts +0 -115
  472. package/src/operationsInterfaces/index.ts +0 -14
  473. package/src/operationsInterfaces/operations.ts +0 -22
  474. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -108
  475. package/src/operationsInterfaces/privateLinkResources.ts +0 -42
  476. package/src/operationsInterfaces/timeSeriesDatabaseConnections.ts +0 -115
  477. package/src/pagingHelper.ts +0 -39
  478. package/tsconfig.json +0 -33
  479. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  480. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  481. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  482. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  483. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  484. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  485. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  486. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  487. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  488. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  489. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  490. /package/{dist-esm/src → dist/browser}/operationsInterfaces/digitalTwins.js +0 -0
  491. /package/{dist-esm/src → dist/browser}/operationsInterfaces/digitalTwinsEndpoint.js +0 -0
  492. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  493. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
  494. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
  495. /package/{dist-esm/src → dist/browser}/operationsInterfaces/timeSeriesDatabaseConnections.js +0 -0
  496. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  497. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  498. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  499. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js DELETED
@@ -1,3619 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link ProvisioningState} that the service accepts. */
70
- exports.KnownProvisioningState = void 0;
71
- (function (KnownProvisioningState) {
72
- /** Provisioning */
73
- KnownProvisioningState["Provisioning"] = "Provisioning";
74
- /** Deleting */
75
- KnownProvisioningState["Deleting"] = "Deleting";
76
- /** Updating */
77
- KnownProvisioningState["Updating"] = "Updating";
78
- /** Succeeded */
79
- KnownProvisioningState["Succeeded"] = "Succeeded";
80
- /** Failed */
81
- KnownProvisioningState["Failed"] = "Failed";
82
- /** Canceled */
83
- KnownProvisioningState["Canceled"] = "Canceled";
84
- /** Deleted */
85
- KnownProvisioningState["Deleted"] = "Deleted";
86
- /** Warning */
87
- KnownProvisioningState["Warning"] = "Warning";
88
- /** Suspending */
89
- KnownProvisioningState["Suspending"] = "Suspending";
90
- /** Restoring */
91
- KnownProvisioningState["Restoring"] = "Restoring";
92
- /** Moving */
93
- KnownProvisioningState["Moving"] = "Moving";
94
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
95
- /** Known values of {@link ConnectionPropertiesProvisioningState} that the service accepts. */
96
- exports.KnownConnectionPropertiesProvisioningState = void 0;
97
- (function (KnownConnectionPropertiesProvisioningState) {
98
- /** Pending */
99
- KnownConnectionPropertiesProvisioningState["Pending"] = "Pending";
100
- /** Approved */
101
- KnownConnectionPropertiesProvisioningState["Approved"] = "Approved";
102
- /** Rejected */
103
- KnownConnectionPropertiesProvisioningState["Rejected"] = "Rejected";
104
- /** Disconnected */
105
- KnownConnectionPropertiesProvisioningState["Disconnected"] = "Disconnected";
106
- })(exports.KnownConnectionPropertiesProvisioningState || (exports.KnownConnectionPropertiesProvisioningState = {}));
107
- /** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
108
- exports.KnownPrivateLinkServiceConnectionStatus = void 0;
109
- (function (KnownPrivateLinkServiceConnectionStatus) {
110
- /** Pending */
111
- KnownPrivateLinkServiceConnectionStatus["Pending"] = "Pending";
112
- /** Approved */
113
- KnownPrivateLinkServiceConnectionStatus["Approved"] = "Approved";
114
- /** Rejected */
115
- KnownPrivateLinkServiceConnectionStatus["Rejected"] = "Rejected";
116
- /** Disconnected */
117
- KnownPrivateLinkServiceConnectionStatus["Disconnected"] = "Disconnected";
118
- })(exports.KnownPrivateLinkServiceConnectionStatus || (exports.KnownPrivateLinkServiceConnectionStatus = {}));
119
- /** Known values of {@link CreatedByType} that the service accepts. */
120
- exports.KnownCreatedByType = void 0;
121
- (function (KnownCreatedByType) {
122
- /** User */
123
- KnownCreatedByType["User"] = "User";
124
- /** Application */
125
- KnownCreatedByType["Application"] = "Application";
126
- /** ManagedIdentity */
127
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
128
- /** Key */
129
- KnownCreatedByType["Key"] = "Key";
130
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
131
- /** Known values of {@link PublicNetworkAccess} that the service accepts. */
132
- exports.KnownPublicNetworkAccess = void 0;
133
- (function (KnownPublicNetworkAccess) {
134
- /** Enabled */
135
- KnownPublicNetworkAccess["Enabled"] = "Enabled";
136
- /** Disabled */
137
- KnownPublicNetworkAccess["Disabled"] = "Disabled";
138
- })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
139
- /** Known values of {@link DigitalTwinsIdentityType} that the service accepts. */
140
- exports.KnownDigitalTwinsIdentityType = void 0;
141
- (function (KnownDigitalTwinsIdentityType) {
142
- /** None */
143
- KnownDigitalTwinsIdentityType["None"] = "None";
144
- /** SystemAssigned */
145
- KnownDigitalTwinsIdentityType["SystemAssigned"] = "SystemAssigned";
146
- /** UserAssigned */
147
- KnownDigitalTwinsIdentityType["UserAssigned"] = "UserAssigned";
148
- /** SystemAssignedUserAssigned */
149
- KnownDigitalTwinsIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
150
- })(exports.KnownDigitalTwinsIdentityType || (exports.KnownDigitalTwinsIdentityType = {}));
151
- /** Known values of {@link EndpointType} that the service accepts. */
152
- exports.KnownEndpointType = void 0;
153
- (function (KnownEndpointType) {
154
- /** EventHub */
155
- KnownEndpointType["EventHub"] = "EventHub";
156
- /** EventGrid */
157
- KnownEndpointType["EventGrid"] = "EventGrid";
158
- /** ServiceBus */
159
- KnownEndpointType["ServiceBus"] = "ServiceBus";
160
- })(exports.KnownEndpointType || (exports.KnownEndpointType = {}));
161
- /** Known values of {@link EndpointProvisioningState} that the service accepts. */
162
- exports.KnownEndpointProvisioningState = void 0;
163
- (function (KnownEndpointProvisioningState) {
164
- /** Provisioning */
165
- KnownEndpointProvisioningState["Provisioning"] = "Provisioning";
166
- /** Deleting */
167
- KnownEndpointProvisioningState["Deleting"] = "Deleting";
168
- /** Updating */
169
- KnownEndpointProvisioningState["Updating"] = "Updating";
170
- /** Succeeded */
171
- KnownEndpointProvisioningState["Succeeded"] = "Succeeded";
172
- /** Failed */
173
- KnownEndpointProvisioningState["Failed"] = "Failed";
174
- /** Canceled */
175
- KnownEndpointProvisioningState["Canceled"] = "Canceled";
176
- /** Deleted */
177
- KnownEndpointProvisioningState["Deleted"] = "Deleted";
178
- /** Warning */
179
- KnownEndpointProvisioningState["Warning"] = "Warning";
180
- /** Suspending */
181
- KnownEndpointProvisioningState["Suspending"] = "Suspending";
182
- /** Restoring */
183
- KnownEndpointProvisioningState["Restoring"] = "Restoring";
184
- /** Moving */
185
- KnownEndpointProvisioningState["Moving"] = "Moving";
186
- /** Disabled */
187
- KnownEndpointProvisioningState["Disabled"] = "Disabled";
188
- })(exports.KnownEndpointProvisioningState || (exports.KnownEndpointProvisioningState = {}));
189
- /** Known values of {@link AuthenticationType} that the service accepts. */
190
- exports.KnownAuthenticationType = void 0;
191
- (function (KnownAuthenticationType) {
192
- /** KeyBased */
193
- KnownAuthenticationType["KeyBased"] = "KeyBased";
194
- /** IdentityBased */
195
- KnownAuthenticationType["IdentityBased"] = "IdentityBased";
196
- })(exports.KnownAuthenticationType || (exports.KnownAuthenticationType = {}));
197
- /** Known values of {@link IdentityType} that the service accepts. */
198
- exports.KnownIdentityType = void 0;
199
- (function (KnownIdentityType) {
200
- /** SystemAssigned */
201
- KnownIdentityType["SystemAssigned"] = "SystemAssigned";
202
- /** UserAssigned */
203
- KnownIdentityType["UserAssigned"] = "UserAssigned";
204
- })(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
205
- /** Known values of {@link Reason} that the service accepts. */
206
- exports.KnownReason = void 0;
207
- (function (KnownReason) {
208
- /** Invalid */
209
- KnownReason["Invalid"] = "Invalid";
210
- /** AlreadyExists */
211
- KnownReason["AlreadyExists"] = "AlreadyExists";
212
- })(exports.KnownReason || (exports.KnownReason = {}));
213
- /** Known values of {@link ConnectionType} that the service accepts. */
214
- exports.KnownConnectionType = void 0;
215
- (function (KnownConnectionType) {
216
- /** AzureDataExplorer */
217
- KnownConnectionType["AzureDataExplorer"] = "AzureDataExplorer";
218
- })(exports.KnownConnectionType || (exports.KnownConnectionType = {}));
219
- /** Known values of {@link TimeSeriesDatabaseConnectionState} that the service accepts. */
220
- exports.KnownTimeSeriesDatabaseConnectionState = void 0;
221
- (function (KnownTimeSeriesDatabaseConnectionState) {
222
- /** Provisioning */
223
- KnownTimeSeriesDatabaseConnectionState["Provisioning"] = "Provisioning";
224
- /** Deleting */
225
- KnownTimeSeriesDatabaseConnectionState["Deleting"] = "Deleting";
226
- /** Updating */
227
- KnownTimeSeriesDatabaseConnectionState["Updating"] = "Updating";
228
- /** Succeeded */
229
- KnownTimeSeriesDatabaseConnectionState["Succeeded"] = "Succeeded";
230
- /** Failed */
231
- KnownTimeSeriesDatabaseConnectionState["Failed"] = "Failed";
232
- /** Canceled */
233
- KnownTimeSeriesDatabaseConnectionState["Canceled"] = "Canceled";
234
- /** Deleted */
235
- KnownTimeSeriesDatabaseConnectionState["Deleted"] = "Deleted";
236
- /** Warning */
237
- KnownTimeSeriesDatabaseConnectionState["Warning"] = "Warning";
238
- /** Suspending */
239
- KnownTimeSeriesDatabaseConnectionState["Suspending"] = "Suspending";
240
- /** Restoring */
241
- KnownTimeSeriesDatabaseConnectionState["Restoring"] = "Restoring";
242
- /** Moving */
243
- KnownTimeSeriesDatabaseConnectionState["Moving"] = "Moving";
244
- /** Disabled */
245
- KnownTimeSeriesDatabaseConnectionState["Disabled"] = "Disabled";
246
- })(exports.KnownTimeSeriesDatabaseConnectionState || (exports.KnownTimeSeriesDatabaseConnectionState = {}));
247
- /** Known values of {@link CleanupConnectionArtifacts} that the service accepts. */
248
- exports.KnownCleanupConnectionArtifacts = void 0;
249
- (function (KnownCleanupConnectionArtifacts) {
250
- /** True */
251
- KnownCleanupConnectionArtifacts["True"] = "true";
252
- /** False */
253
- KnownCleanupConnectionArtifacts["False"] = "false";
254
- })(exports.KnownCleanupConnectionArtifacts || (exports.KnownCleanupConnectionArtifacts = {}));
255
- /** Known values of {@link RecordPropertyAndItemRemovals} that the service accepts. */
256
- exports.KnownRecordPropertyAndItemRemovals = void 0;
257
- (function (KnownRecordPropertyAndItemRemovals) {
258
- /** True */
259
- KnownRecordPropertyAndItemRemovals["True"] = "true";
260
- /** False */
261
- KnownRecordPropertyAndItemRemovals["False"] = "false";
262
- })(exports.KnownRecordPropertyAndItemRemovals || (exports.KnownRecordPropertyAndItemRemovals = {}));
263
-
264
- /*
265
- * Copyright (c) Microsoft Corporation.
266
- * Licensed under the MIT License.
267
- *
268
- * Code generated by Microsoft (R) AutoRest Code Generator.
269
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
270
- */
271
- const PrivateEndpointConnection = {
272
- type: {
273
- name: "Composite",
274
- className: "PrivateEndpointConnection",
275
- modelProperties: {
276
- id: {
277
- serializedName: "id",
278
- readOnly: true,
279
- type: {
280
- name: "String"
281
- }
282
- },
283
- name: {
284
- constraints: {
285
- Pattern: new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")
286
- },
287
- serializedName: "name",
288
- readOnly: true,
289
- type: {
290
- name: "String"
291
- }
292
- },
293
- type: {
294
- serializedName: "type",
295
- readOnly: true,
296
- type: {
297
- name: "String"
298
- }
299
- },
300
- properties: {
301
- serializedName: "properties",
302
- type: {
303
- name: "Composite",
304
- className: "ConnectionProperties"
305
- }
306
- },
307
- systemData: {
308
- serializedName: "systemData",
309
- type: {
310
- name: "Composite",
311
- className: "SystemData"
312
- }
313
- }
314
- }
315
- }
316
- };
317
- const ConnectionProperties = {
318
- type: {
319
- name: "Composite",
320
- className: "ConnectionProperties",
321
- modelProperties: {
322
- provisioningState: {
323
- serializedName: "provisioningState",
324
- readOnly: true,
325
- nullable: true,
326
- type: {
327
- name: "String"
328
- }
329
- },
330
- privateEndpoint: {
331
- serializedName: "privateEndpoint",
332
- type: {
333
- name: "Composite",
334
- className: "PrivateEndpoint"
335
- }
336
- },
337
- groupIds: {
338
- serializedName: "groupIds",
339
- type: {
340
- name: "Sequence",
341
- element: {
342
- type: {
343
- name: "String"
344
- }
345
- }
346
- }
347
- },
348
- privateLinkServiceConnectionState: {
349
- serializedName: "privateLinkServiceConnectionState",
350
- type: {
351
- name: "Composite",
352
- className: "ConnectionPropertiesPrivateLinkServiceConnectionState"
353
- }
354
- }
355
- }
356
- }
357
- };
358
- const PrivateEndpoint = {
359
- type: {
360
- name: "Composite",
361
- className: "PrivateEndpoint",
362
- modelProperties: {
363
- id: {
364
- serializedName: "id",
365
- readOnly: true,
366
- type: {
367
- name: "String"
368
- }
369
- }
370
- }
371
- }
372
- };
373
- const ConnectionState = {
374
- type: {
375
- name: "Composite",
376
- className: "ConnectionState",
377
- modelProperties: {
378
- status: {
379
- serializedName: "status",
380
- required: true,
381
- type: {
382
- name: "String"
383
- }
384
- },
385
- description: {
386
- serializedName: "description",
387
- required: true,
388
- type: {
389
- name: "String"
390
- }
391
- },
392
- actionsRequired: {
393
- serializedName: "actionsRequired",
394
- type: {
395
- name: "String"
396
- }
397
- }
398
- }
399
- }
400
- };
401
- const SystemData = {
402
- type: {
403
- name: "Composite",
404
- className: "SystemData",
405
- modelProperties: {
406
- createdBy: {
407
- serializedName: "createdBy",
408
- nullable: true,
409
- type: {
410
- name: "String"
411
- }
412
- },
413
- createdByType: {
414
- serializedName: "createdByType",
415
- nullable: true,
416
- type: {
417
- name: "String"
418
- }
419
- },
420
- createdAt: {
421
- serializedName: "createdAt",
422
- nullable: true,
423
- type: {
424
- name: "DateTime"
425
- }
426
- },
427
- lastModifiedBy: {
428
- serializedName: "lastModifiedBy",
429
- nullable: true,
430
- type: {
431
- name: "String"
432
- }
433
- },
434
- lastModifiedByType: {
435
- serializedName: "lastModifiedByType",
436
- nullable: true,
437
- type: {
438
- name: "String"
439
- }
440
- },
441
- lastModifiedAt: {
442
- serializedName: "lastModifiedAt",
443
- nullable: true,
444
- type: {
445
- name: "DateTime"
446
- }
447
- }
448
- }
449
- }
450
- };
451
- const DigitalTwinsResource = {
452
- type: {
453
- name: "Composite",
454
- className: "DigitalTwinsResource",
455
- modelProperties: {
456
- id: {
457
- serializedName: "id",
458
- readOnly: true,
459
- type: {
460
- name: "String"
461
- }
462
- },
463
- name: {
464
- constraints: {
465
- Pattern: new RegExp("^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$")
466
- },
467
- serializedName: "name",
468
- readOnly: true,
469
- type: {
470
- name: "String"
471
- }
472
- },
473
- type: {
474
- serializedName: "type",
475
- readOnly: true,
476
- type: {
477
- name: "String"
478
- }
479
- },
480
- location: {
481
- serializedName: "location",
482
- required: true,
483
- type: {
484
- name: "String"
485
- }
486
- },
487
- tags: {
488
- serializedName: "tags",
489
- nullable: true,
490
- type: {
491
- name: "Dictionary",
492
- value: { type: { name: "String" } }
493
- }
494
- },
495
- identity: {
496
- serializedName: "identity",
497
- type: {
498
- name: "Composite",
499
- className: "DigitalTwinsIdentity"
500
- }
501
- },
502
- systemData: {
503
- serializedName: "systemData",
504
- type: {
505
- name: "Composite",
506
- className: "SystemData"
507
- }
508
- }
509
- }
510
- }
511
- };
512
- const DigitalTwinsIdentity = {
513
- type: {
514
- name: "Composite",
515
- className: "DigitalTwinsIdentity",
516
- modelProperties: {
517
- type: {
518
- serializedName: "type",
519
- type: {
520
- name: "String"
521
- }
522
- },
523
- principalId: {
524
- serializedName: "principalId",
525
- readOnly: true,
526
- nullable: true,
527
- type: {
528
- name: "String"
529
- }
530
- },
531
- tenantId: {
532
- serializedName: "tenantId",
533
- readOnly: true,
534
- nullable: true,
535
- type: {
536
- name: "String"
537
- }
538
- },
539
- userAssignedIdentities: {
540
- serializedName: "userAssignedIdentities",
541
- nullable: true,
542
- type: {
543
- name: "Dictionary",
544
- value: {
545
- type: { name: "Composite", className: "UserAssignedIdentity" }
546
- }
547
- }
548
- }
549
- }
550
- }
551
- };
552
- const UserAssignedIdentity = {
553
- type: {
554
- name: "Composite",
555
- className: "UserAssignedIdentity",
556
- modelProperties: {
557
- clientId: {
558
- serializedName: "clientId",
559
- readOnly: true,
560
- type: {
561
- name: "String"
562
- }
563
- },
564
- principalId: {
565
- serializedName: "principalId",
566
- readOnly: true,
567
- type: {
568
- name: "String"
569
- }
570
- }
571
- }
572
- }
573
- };
574
- const ErrorResponse = {
575
- type: {
576
- name: "Composite",
577
- className: "ErrorResponse",
578
- modelProperties: {
579
- error: {
580
- serializedName: "error",
581
- type: {
582
- name: "Composite",
583
- className: "ErrorDefinition"
584
- }
585
- }
586
- }
587
- }
588
- };
589
- const ErrorDefinition = {
590
- type: {
591
- name: "Composite",
592
- className: "ErrorDefinition",
593
- modelProperties: {
594
- code: {
595
- serializedName: "code",
596
- readOnly: true,
597
- type: {
598
- name: "String"
599
- }
600
- },
601
- message: {
602
- serializedName: "message",
603
- readOnly: true,
604
- type: {
605
- name: "String"
606
- }
607
- },
608
- details: {
609
- serializedName: "details",
610
- readOnly: true,
611
- nullable: true,
612
- type: {
613
- name: "Sequence",
614
- element: {
615
- type: {
616
- name: "Composite",
617
- className: "ErrorDefinition"
618
- }
619
- }
620
- }
621
- }
622
- }
623
- }
624
- };
625
- const DigitalTwinsPatchDescription = {
626
- type: {
627
- name: "Composite",
628
- className: "DigitalTwinsPatchDescription",
629
- modelProperties: {
630
- tags: {
631
- serializedName: "tags",
632
- nullable: true,
633
- type: {
634
- name: "Dictionary",
635
- value: { type: { name: "String" } }
636
- }
637
- },
638
- identity: {
639
- serializedName: "identity",
640
- type: {
641
- name: "Composite",
642
- className: "DigitalTwinsIdentity"
643
- }
644
- },
645
- properties: {
646
- serializedName: "properties",
647
- type: {
648
- name: "Composite",
649
- className: "DigitalTwinsPatchProperties"
650
- }
651
- }
652
- }
653
- }
654
- };
655
- const DigitalTwinsPatchProperties = {
656
- type: {
657
- name: "Composite",
658
- className: "DigitalTwinsPatchProperties",
659
- modelProperties: {
660
- publicNetworkAccess: {
661
- serializedName: "publicNetworkAccess",
662
- nullable: true,
663
- type: {
664
- name: "String"
665
- }
666
- }
667
- }
668
- }
669
- };
670
- const DigitalTwinsEndpointResourceListResult = {
671
- type: {
672
- name: "Composite",
673
- className: "DigitalTwinsEndpointResourceListResult",
674
- modelProperties: {
675
- nextLink: {
676
- serializedName: "nextLink",
677
- nullable: true,
678
- type: {
679
- name: "String"
680
- }
681
- },
682
- value: {
683
- serializedName: "value",
684
- type: {
685
- name: "Sequence",
686
- element: {
687
- type: {
688
- name: "Composite",
689
- className: "DigitalTwinsEndpointResource"
690
- }
691
- }
692
- }
693
- }
694
- }
695
- }
696
- };
697
- const DigitalTwinsEndpointResourceProperties = {
698
- type: {
699
- name: "Composite",
700
- className: "DigitalTwinsEndpointResourceProperties",
701
- uberParent: "DigitalTwinsEndpointResourceProperties",
702
- polymorphicDiscriminator: {
703
- serializedName: "endpointType",
704
- clientName: "endpointType"
705
- },
706
- modelProperties: {
707
- endpointType: {
708
- serializedName: "endpointType",
709
- required: true,
710
- type: {
711
- name: "String"
712
- }
713
- },
714
- provisioningState: {
715
- serializedName: "provisioningState",
716
- readOnly: true,
717
- nullable: true,
718
- type: {
719
- name: "String"
720
- }
721
- },
722
- createdTime: {
723
- serializedName: "createdTime",
724
- readOnly: true,
725
- nullable: true,
726
- type: {
727
- name: "DateTime"
728
- }
729
- },
730
- authenticationType: {
731
- serializedName: "authenticationType",
732
- type: {
733
- name: "String"
734
- }
735
- },
736
- deadLetterSecret: {
737
- serializedName: "deadLetterSecret",
738
- nullable: true,
739
- type: {
740
- name: "String"
741
- }
742
- },
743
- deadLetterUri: {
744
- serializedName: "deadLetterUri",
745
- nullable: true,
746
- type: {
747
- name: "String"
748
- }
749
- },
750
- identity: {
751
- serializedName: "identity",
752
- type: {
753
- name: "Composite",
754
- className: "ManagedIdentityReference"
755
- }
756
- }
757
- }
758
- }
759
- };
760
- const ManagedIdentityReference = {
761
- type: {
762
- name: "Composite",
763
- className: "ManagedIdentityReference",
764
- modelProperties: {
765
- type: {
766
- serializedName: "type",
767
- type: {
768
- name: "String"
769
- }
770
- },
771
- userAssignedIdentity: {
772
- serializedName: "userAssignedIdentity",
773
- nullable: true,
774
- type: {
775
- name: "String"
776
- }
777
- }
778
- }
779
- }
780
- };
781
- const ExternalResource = {
782
- type: {
783
- name: "Composite",
784
- className: "ExternalResource",
785
- modelProperties: {
786
- id: {
787
- serializedName: "id",
788
- readOnly: true,
789
- type: {
790
- name: "String"
791
- }
792
- },
793
- name: {
794
- constraints: {
795
- Pattern: new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")
796
- },
797
- serializedName: "name",
798
- readOnly: true,
799
- type: {
800
- name: "String"
801
- }
802
- },
803
- type: {
804
- serializedName: "type",
805
- readOnly: true,
806
- type: {
807
- name: "String"
808
- }
809
- },
810
- systemData: {
811
- serializedName: "systemData",
812
- type: {
813
- name: "Composite",
814
- className: "SystemData"
815
- }
816
- }
817
- }
818
- }
819
- };
820
- const DigitalTwinsDescriptionListResult = {
821
- type: {
822
- name: "Composite",
823
- className: "DigitalTwinsDescriptionListResult",
824
- modelProperties: {
825
- nextLink: {
826
- serializedName: "nextLink",
827
- nullable: true,
828
- type: {
829
- name: "String"
830
- }
831
- },
832
- value: {
833
- serializedName: "value",
834
- type: {
835
- name: "Sequence",
836
- element: {
837
- type: {
838
- name: "Composite",
839
- className: "DigitalTwinsDescription"
840
- }
841
- }
842
- }
843
- }
844
- }
845
- }
846
- };
847
- const OperationListResult = {
848
- type: {
849
- name: "Composite",
850
- className: "OperationListResult",
851
- modelProperties: {
852
- nextLink: {
853
- serializedName: "nextLink",
854
- nullable: true,
855
- type: {
856
- name: "String"
857
- }
858
- },
859
- value: {
860
- serializedName: "value",
861
- readOnly: true,
862
- type: {
863
- name: "Sequence",
864
- element: {
865
- type: {
866
- name: "Composite",
867
- className: "Operation"
868
- }
869
- }
870
- }
871
- }
872
- }
873
- }
874
- };
875
- const Operation = {
876
- type: {
877
- name: "Composite",
878
- className: "Operation",
879
- modelProperties: {
880
- name: {
881
- serializedName: "name",
882
- readOnly: true,
883
- type: {
884
- name: "String"
885
- }
886
- },
887
- display: {
888
- serializedName: "display",
889
- type: {
890
- name: "Composite",
891
- className: "OperationDisplay"
892
- }
893
- },
894
- origin: {
895
- serializedName: "origin",
896
- readOnly: true,
897
- nullable: true,
898
- type: {
899
- name: "String"
900
- }
901
- },
902
- isDataAction: {
903
- serializedName: "isDataAction",
904
- readOnly: true,
905
- type: {
906
- name: "Boolean"
907
- }
908
- },
909
- properties: {
910
- serializedName: "properties",
911
- readOnly: true,
912
- nullable: true,
913
- type: {
914
- name: "Dictionary",
915
- value: {
916
- type: { name: "Dictionary", value: { type: { name: "any" } } }
917
- }
918
- }
919
- }
920
- }
921
- }
922
- };
923
- const OperationDisplay = {
924
- type: {
925
- name: "Composite",
926
- className: "OperationDisplay",
927
- modelProperties: {
928
- provider: {
929
- serializedName: "provider",
930
- readOnly: true,
931
- type: {
932
- name: "String"
933
- }
934
- },
935
- resource: {
936
- serializedName: "resource",
937
- readOnly: true,
938
- type: {
939
- name: "String"
940
- }
941
- },
942
- operation: {
943
- serializedName: "operation",
944
- readOnly: true,
945
- type: {
946
- name: "String"
947
- }
948
- },
949
- description: {
950
- serializedName: "description",
951
- readOnly: true,
952
- type: {
953
- name: "String"
954
- }
955
- }
956
- }
957
- }
958
- };
959
- const CheckNameRequest = {
960
- type: {
961
- name: "Composite",
962
- className: "CheckNameRequest",
963
- modelProperties: {
964
- name: {
965
- serializedName: "name",
966
- required: true,
967
- type: {
968
- name: "String"
969
- }
970
- },
971
- type: {
972
- defaultValue: "Microsoft.DigitalTwins/digitalTwinsInstances",
973
- isConstant: true,
974
- serializedName: "type",
975
- type: {
976
- name: "String"
977
- }
978
- }
979
- }
980
- }
981
- };
982
- const CheckNameResult = {
983
- type: {
984
- name: "Composite",
985
- className: "CheckNameResult",
986
- modelProperties: {
987
- nameAvailable: {
988
- serializedName: "nameAvailable",
989
- type: {
990
- name: "Boolean"
991
- }
992
- },
993
- message: {
994
- serializedName: "message",
995
- nullable: true,
996
- type: {
997
- name: "String"
998
- }
999
- },
1000
- reason: {
1001
- serializedName: "reason",
1002
- nullable: true,
1003
- type: {
1004
- name: "String"
1005
- }
1006
- }
1007
- }
1008
- }
1009
- };
1010
- const GroupIdInformationResponse = {
1011
- type: {
1012
- name: "Composite",
1013
- className: "GroupIdInformationResponse",
1014
- modelProperties: {
1015
- value: {
1016
- serializedName: "value",
1017
- type: {
1018
- name: "Sequence",
1019
- element: {
1020
- type: {
1021
- name: "Composite",
1022
- className: "GroupIdInformation"
1023
- }
1024
- }
1025
- }
1026
- }
1027
- }
1028
- }
1029
- };
1030
- const GroupIdInformation = {
1031
- type: {
1032
- name: "Composite",
1033
- className: "GroupIdInformation",
1034
- modelProperties: {
1035
- properties: {
1036
- serializedName: "properties",
1037
- type: {
1038
- name: "Composite",
1039
- className: "GroupIdInformationProperties"
1040
- }
1041
- },
1042
- id: {
1043
- serializedName: "id",
1044
- type: {
1045
- name: "String"
1046
- }
1047
- },
1048
- name: {
1049
- constraints: {
1050
- Pattern: new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")
1051
- },
1052
- serializedName: "name",
1053
- readOnly: true,
1054
- type: {
1055
- name: "String"
1056
- }
1057
- },
1058
- type: {
1059
- serializedName: "type",
1060
- readOnly: true,
1061
- type: {
1062
- name: "String"
1063
- }
1064
- }
1065
- }
1066
- }
1067
- };
1068
- const GroupIdInformationProperties = {
1069
- type: {
1070
- name: "Composite",
1071
- className: "GroupIdInformationProperties",
1072
- modelProperties: {
1073
- groupId: {
1074
- serializedName: "groupId",
1075
- type: {
1076
- name: "String"
1077
- }
1078
- },
1079
- requiredMembers: {
1080
- serializedName: "requiredMembers",
1081
- type: {
1082
- name: "Sequence",
1083
- element: {
1084
- type: {
1085
- name: "String"
1086
- }
1087
- }
1088
- }
1089
- },
1090
- requiredZoneNames: {
1091
- serializedName: "requiredZoneNames",
1092
- type: {
1093
- name: "Sequence",
1094
- element: {
1095
- type: {
1096
- name: "String"
1097
- }
1098
- }
1099
- }
1100
- }
1101
- }
1102
- }
1103
- };
1104
- const PrivateEndpointConnectionsResponse = {
1105
- type: {
1106
- name: "Composite",
1107
- className: "PrivateEndpointConnectionsResponse",
1108
- modelProperties: {
1109
- value: {
1110
- serializedName: "value",
1111
- type: {
1112
- name: "Sequence",
1113
- element: {
1114
- type: {
1115
- name: "Composite",
1116
- className: "PrivateEndpointConnection"
1117
- }
1118
- }
1119
- }
1120
- }
1121
- }
1122
- }
1123
- };
1124
- const TimeSeriesDatabaseConnectionListResult = {
1125
- type: {
1126
- name: "Composite",
1127
- className: "TimeSeriesDatabaseConnectionListResult",
1128
- modelProperties: {
1129
- nextLink: {
1130
- serializedName: "nextLink",
1131
- nullable: true,
1132
- type: {
1133
- name: "String"
1134
- }
1135
- },
1136
- value: {
1137
- serializedName: "value",
1138
- type: {
1139
- name: "Sequence",
1140
- element: {
1141
- type: {
1142
- name: "Composite",
1143
- className: "TimeSeriesDatabaseConnection"
1144
- }
1145
- }
1146
- }
1147
- }
1148
- }
1149
- }
1150
- };
1151
- const TimeSeriesDatabaseConnectionProperties = {
1152
- type: {
1153
- name: "Composite",
1154
- className: "TimeSeriesDatabaseConnectionProperties",
1155
- uberParent: "TimeSeriesDatabaseConnectionProperties",
1156
- polymorphicDiscriminator: {
1157
- serializedName: "connectionType",
1158
- clientName: "connectionType"
1159
- },
1160
- modelProperties: {
1161
- connectionType: {
1162
- serializedName: "connectionType",
1163
- required: true,
1164
- type: {
1165
- name: "String"
1166
- }
1167
- },
1168
- provisioningState: {
1169
- serializedName: "provisioningState",
1170
- readOnly: true,
1171
- type: {
1172
- name: "String"
1173
- }
1174
- },
1175
- identity: {
1176
- serializedName: "identity",
1177
- type: {
1178
- name: "Composite",
1179
- className: "ManagedIdentityReference"
1180
- }
1181
- }
1182
- }
1183
- }
1184
- };
1185
- const ConnectionPropertiesPrivateLinkServiceConnectionState = {
1186
- type: {
1187
- name: "Composite",
1188
- className: "ConnectionPropertiesPrivateLinkServiceConnectionState",
1189
- modelProperties: Object.assign({}, ConnectionState.type.modelProperties)
1190
- }
1191
- };
1192
- const DigitalTwinsDescription = {
1193
- type: {
1194
- name: "Composite",
1195
- className: "DigitalTwinsDescription",
1196
- modelProperties: Object.assign(Object.assign({}, DigitalTwinsResource.type.modelProperties), { createdTime: {
1197
- serializedName: "properties.createdTime",
1198
- readOnly: true,
1199
- type: {
1200
- name: "DateTime"
1201
- }
1202
- }, lastUpdatedTime: {
1203
- serializedName: "properties.lastUpdatedTime",
1204
- readOnly: true,
1205
- type: {
1206
- name: "DateTime"
1207
- }
1208
- }, provisioningState: {
1209
- serializedName: "properties.provisioningState",
1210
- readOnly: true,
1211
- type: {
1212
- name: "String"
1213
- }
1214
- }, hostName: {
1215
- serializedName: "properties.hostName",
1216
- readOnly: true,
1217
- nullable: true,
1218
- type: {
1219
- name: "String"
1220
- }
1221
- }, privateEndpointConnections: {
1222
- serializedName: "properties.privateEndpointConnections",
1223
- nullable: true,
1224
- type: {
1225
- name: "Sequence",
1226
- element: {
1227
- type: {
1228
- name: "Composite",
1229
- className: "PrivateEndpointConnection"
1230
- }
1231
- }
1232
- }
1233
- }, publicNetworkAccess: {
1234
- serializedName: "properties.publicNetworkAccess",
1235
- nullable: true,
1236
- type: {
1237
- name: "String"
1238
- }
1239
- } })
1240
- }
1241
- };
1242
- const ServiceBus = {
1243
- serializedName: "ServiceBus",
1244
- type: {
1245
- name: "Composite",
1246
- className: "ServiceBus",
1247
- uberParent: "DigitalTwinsEndpointResourceProperties",
1248
- polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
1249
- modelProperties: Object.assign(Object.assign({}, DigitalTwinsEndpointResourceProperties.type.modelProperties), { primaryConnectionString: {
1250
- serializedName: "primaryConnectionString",
1251
- nullable: true,
1252
- type: {
1253
- name: "String"
1254
- }
1255
- }, secondaryConnectionString: {
1256
- serializedName: "secondaryConnectionString",
1257
- nullable: true,
1258
- type: {
1259
- name: "String"
1260
- }
1261
- }, endpointUri: {
1262
- serializedName: "endpointUri",
1263
- nullable: true,
1264
- type: {
1265
- name: "String"
1266
- }
1267
- }, entityPath: {
1268
- serializedName: "entityPath",
1269
- nullable: true,
1270
- type: {
1271
- name: "String"
1272
- }
1273
- } })
1274
- }
1275
- };
1276
- const EventHub = {
1277
- serializedName: "EventHub",
1278
- type: {
1279
- name: "Composite",
1280
- className: "EventHub",
1281
- uberParent: "DigitalTwinsEndpointResourceProperties",
1282
- polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
1283
- modelProperties: Object.assign(Object.assign({}, DigitalTwinsEndpointResourceProperties.type.modelProperties), { connectionStringPrimaryKey: {
1284
- serializedName: "connectionStringPrimaryKey",
1285
- nullable: true,
1286
- type: {
1287
- name: "String"
1288
- }
1289
- }, connectionStringSecondaryKey: {
1290
- serializedName: "connectionStringSecondaryKey",
1291
- nullable: true,
1292
- type: {
1293
- name: "String"
1294
- }
1295
- }, endpointUri: {
1296
- serializedName: "endpointUri",
1297
- nullable: true,
1298
- type: {
1299
- name: "String"
1300
- }
1301
- }, entityPath: {
1302
- serializedName: "entityPath",
1303
- nullable: true,
1304
- type: {
1305
- name: "String"
1306
- }
1307
- } })
1308
- }
1309
- };
1310
- const EventGrid = {
1311
- serializedName: "EventGrid",
1312
- type: {
1313
- name: "Composite",
1314
- className: "EventGrid",
1315
- uberParent: "DigitalTwinsEndpointResourceProperties",
1316
- polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
1317
- modelProperties: Object.assign(Object.assign({}, DigitalTwinsEndpointResourceProperties.type.modelProperties), { topicEndpoint: {
1318
- serializedName: "TopicEndpoint",
1319
- required: true,
1320
- type: {
1321
- name: "String"
1322
- }
1323
- }, accessKey1: {
1324
- serializedName: "accessKey1",
1325
- required: true,
1326
- nullable: true,
1327
- type: {
1328
- name: "String"
1329
- }
1330
- }, accessKey2: {
1331
- serializedName: "accessKey2",
1332
- nullable: true,
1333
- type: {
1334
- name: "String"
1335
- }
1336
- } })
1337
- }
1338
- };
1339
- const DigitalTwinsEndpointResource = {
1340
- type: {
1341
- name: "Composite",
1342
- className: "DigitalTwinsEndpointResource",
1343
- modelProperties: Object.assign(Object.assign({}, ExternalResource.type.modelProperties), { properties: {
1344
- serializedName: "properties",
1345
- type: {
1346
- name: "Composite",
1347
- className: "DigitalTwinsEndpointResourceProperties"
1348
- }
1349
- } })
1350
- }
1351
- };
1352
- const TimeSeriesDatabaseConnection = {
1353
- type: {
1354
- name: "Composite",
1355
- className: "TimeSeriesDatabaseConnection",
1356
- modelProperties: Object.assign(Object.assign({}, ExternalResource.type.modelProperties), { properties: {
1357
- serializedName: "properties",
1358
- type: {
1359
- name: "Composite",
1360
- className: "TimeSeriesDatabaseConnectionProperties"
1361
- }
1362
- } })
1363
- }
1364
- };
1365
- const AzureDataExplorerConnectionProperties = {
1366
- serializedName: "AzureDataExplorer",
1367
- type: {
1368
- name: "Composite",
1369
- className: "AzureDataExplorerConnectionProperties",
1370
- uberParent: "TimeSeriesDatabaseConnectionProperties",
1371
- polymorphicDiscriminator: TimeSeriesDatabaseConnectionProperties.type.polymorphicDiscriminator,
1372
- modelProperties: Object.assign(Object.assign({}, TimeSeriesDatabaseConnectionProperties.type.modelProperties), { adxResourceId: {
1373
- serializedName: "adxResourceId",
1374
- required: true,
1375
- type: {
1376
- name: "String"
1377
- }
1378
- }, adxEndpointUri: {
1379
- serializedName: "adxEndpointUri",
1380
- required: true,
1381
- type: {
1382
- name: "String"
1383
- }
1384
- }, adxDatabaseName: {
1385
- serializedName: "adxDatabaseName",
1386
- required: true,
1387
- type: {
1388
- name: "String"
1389
- }
1390
- }, adxTableName: {
1391
- defaultValue: "AdtPropertyEvents",
1392
- serializedName: "adxTableName",
1393
- nullable: true,
1394
- type: {
1395
- name: "String"
1396
- }
1397
- }, adxTwinLifecycleEventsTableName: {
1398
- serializedName: "adxTwinLifecycleEventsTableName",
1399
- nullable: true,
1400
- type: {
1401
- name: "String"
1402
- }
1403
- }, adxRelationshipLifecycleEventsTableName: {
1404
- serializedName: "adxRelationshipLifecycleEventsTableName",
1405
- nullable: true,
1406
- type: {
1407
- name: "String"
1408
- }
1409
- }, eventHubEndpointUri: {
1410
- serializedName: "eventHubEndpointUri",
1411
- required: true,
1412
- type: {
1413
- name: "String"
1414
- }
1415
- }, eventHubEntityPath: {
1416
- serializedName: "eventHubEntityPath",
1417
- required: true,
1418
- type: {
1419
- name: "String"
1420
- }
1421
- }, eventHubNamespaceResourceId: {
1422
- serializedName: "eventHubNamespaceResourceId",
1423
- required: true,
1424
- type: {
1425
- name: "String"
1426
- }
1427
- }, eventHubConsumerGroup: {
1428
- defaultValue: "$Default",
1429
- serializedName: "eventHubConsumerGroup",
1430
- nullable: true,
1431
- type: {
1432
- name: "String"
1433
- }
1434
- }, recordPropertyAndItemRemovals: {
1435
- defaultValue: "false",
1436
- serializedName: "recordPropertyAndItemRemovals",
1437
- nullable: true,
1438
- type: {
1439
- name: "String"
1440
- }
1441
- } })
1442
- }
1443
- };
1444
- let discriminators = {
1445
- DigitalTwinsEndpointResourceProperties: DigitalTwinsEndpointResourceProperties,
1446
- TimeSeriesDatabaseConnectionProperties: TimeSeriesDatabaseConnectionProperties,
1447
- "DigitalTwinsEndpointResourceProperties.ServiceBus": ServiceBus,
1448
- "DigitalTwinsEndpointResourceProperties.EventHub": EventHub,
1449
- "DigitalTwinsEndpointResourceProperties.EventGrid": EventGrid,
1450
- "TimeSeriesDatabaseConnectionProperties.AzureDataExplorer": AzureDataExplorerConnectionProperties
1451
- };
1452
-
1453
- var Mappers = /*#__PURE__*/Object.freeze({
1454
- __proto__: null,
1455
- AzureDataExplorerConnectionProperties: AzureDataExplorerConnectionProperties,
1456
- CheckNameRequest: CheckNameRequest,
1457
- CheckNameResult: CheckNameResult,
1458
- ConnectionProperties: ConnectionProperties,
1459
- ConnectionPropertiesPrivateLinkServiceConnectionState: ConnectionPropertiesPrivateLinkServiceConnectionState,
1460
- ConnectionState: ConnectionState,
1461
- DigitalTwinsDescription: DigitalTwinsDescription,
1462
- DigitalTwinsDescriptionListResult: DigitalTwinsDescriptionListResult,
1463
- DigitalTwinsEndpointResource: DigitalTwinsEndpointResource,
1464
- DigitalTwinsEndpointResourceListResult: DigitalTwinsEndpointResourceListResult,
1465
- DigitalTwinsEndpointResourceProperties: DigitalTwinsEndpointResourceProperties,
1466
- DigitalTwinsIdentity: DigitalTwinsIdentity,
1467
- DigitalTwinsPatchDescription: DigitalTwinsPatchDescription,
1468
- DigitalTwinsPatchProperties: DigitalTwinsPatchProperties,
1469
- DigitalTwinsResource: DigitalTwinsResource,
1470
- ErrorDefinition: ErrorDefinition,
1471
- ErrorResponse: ErrorResponse,
1472
- EventGrid: EventGrid,
1473
- EventHub: EventHub,
1474
- ExternalResource: ExternalResource,
1475
- GroupIdInformation: GroupIdInformation,
1476
- GroupIdInformationProperties: GroupIdInformationProperties,
1477
- GroupIdInformationResponse: GroupIdInformationResponse,
1478
- ManagedIdentityReference: ManagedIdentityReference,
1479
- Operation: Operation,
1480
- OperationDisplay: OperationDisplay,
1481
- OperationListResult: OperationListResult,
1482
- PrivateEndpoint: PrivateEndpoint,
1483
- PrivateEndpointConnection: PrivateEndpointConnection,
1484
- PrivateEndpointConnectionsResponse: PrivateEndpointConnectionsResponse,
1485
- ServiceBus: ServiceBus,
1486
- SystemData: SystemData,
1487
- TimeSeriesDatabaseConnection: TimeSeriesDatabaseConnection,
1488
- TimeSeriesDatabaseConnectionListResult: TimeSeriesDatabaseConnectionListResult,
1489
- TimeSeriesDatabaseConnectionProperties: TimeSeriesDatabaseConnectionProperties,
1490
- UserAssignedIdentity: UserAssignedIdentity,
1491
- discriminators: discriminators
1492
- });
1493
-
1494
- /*
1495
- * Copyright (c) Microsoft Corporation.
1496
- * Licensed under the MIT License.
1497
- *
1498
- * Code generated by Microsoft (R) AutoRest Code Generator.
1499
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1500
- */
1501
- const accept = {
1502
- parameterPath: "accept",
1503
- mapper: {
1504
- defaultValue: "application/json",
1505
- isConstant: true,
1506
- serializedName: "Accept",
1507
- type: {
1508
- name: "String"
1509
- }
1510
- }
1511
- };
1512
- const $host = {
1513
- parameterPath: "$host",
1514
- mapper: {
1515
- serializedName: "$host",
1516
- required: true,
1517
- type: {
1518
- name: "String"
1519
- }
1520
- },
1521
- skipEncoding: true
1522
- };
1523
- const apiVersion = {
1524
- parameterPath: "apiVersion",
1525
- mapper: {
1526
- defaultValue: "2023-01-31",
1527
- isConstant: true,
1528
- serializedName: "api-version",
1529
- type: {
1530
- name: "String"
1531
- }
1532
- }
1533
- };
1534
- const subscriptionId = {
1535
- parameterPath: "subscriptionId",
1536
- mapper: {
1537
- serializedName: "subscriptionId",
1538
- required: true,
1539
- type: {
1540
- name: "String"
1541
- }
1542
- }
1543
- };
1544
- const resourceGroupName = {
1545
- parameterPath: "resourceGroupName",
1546
- mapper: {
1547
- constraints: {
1548
- MaxLength: 90,
1549
- MinLength: 1
1550
- },
1551
- serializedName: "resourceGroupName",
1552
- required: true,
1553
- type: {
1554
- name: "String"
1555
- }
1556
- }
1557
- };
1558
- const resourceName = {
1559
- parameterPath: "resourceName",
1560
- mapper: {
1561
- constraints: {
1562
- Pattern: new RegExp("^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$"),
1563
- MaxLength: 63,
1564
- MinLength: 3
1565
- },
1566
- serializedName: "resourceName",
1567
- required: true,
1568
- type: {
1569
- name: "String"
1570
- }
1571
- }
1572
- };
1573
- const contentType = {
1574
- parameterPath: ["options", "contentType"],
1575
- mapper: {
1576
- defaultValue: "application/json",
1577
- isConstant: true,
1578
- serializedName: "Content-Type",
1579
- type: {
1580
- name: "String"
1581
- }
1582
- }
1583
- };
1584
- const digitalTwinsCreate = {
1585
- parameterPath: "digitalTwinsCreate",
1586
- mapper: DigitalTwinsDescription
1587
- };
1588
- const digitalTwinsPatchDescription = {
1589
- parameterPath: "digitalTwinsPatchDescription",
1590
- mapper: DigitalTwinsPatchDescription
1591
- };
1592
- const digitalTwinsInstanceCheckName = {
1593
- parameterPath: "digitalTwinsInstanceCheckName",
1594
- mapper: CheckNameRequest
1595
- };
1596
- const location = {
1597
- parameterPath: "location",
1598
- mapper: {
1599
- constraints: {
1600
- MinLength: 3
1601
- },
1602
- serializedName: "location",
1603
- required: true,
1604
- type: {
1605
- name: "String"
1606
- }
1607
- }
1608
- };
1609
- const nextLink = {
1610
- parameterPath: "nextLink",
1611
- mapper: {
1612
- serializedName: "nextLink",
1613
- required: true,
1614
- type: {
1615
- name: "String"
1616
- }
1617
- },
1618
- skipEncoding: true
1619
- };
1620
- const endpointName = {
1621
- parameterPath: "endpointName",
1622
- mapper: {
1623
- constraints: {
1624
- Pattern: new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$"),
1625
- MaxLength: 49,
1626
- MinLength: 2
1627
- },
1628
- serializedName: "endpointName",
1629
- required: true,
1630
- type: {
1631
- name: "String"
1632
- }
1633
- }
1634
- };
1635
- const endpointDescription = {
1636
- parameterPath: "endpointDescription",
1637
- mapper: DigitalTwinsEndpointResource
1638
- };
1639
- const resourceId = {
1640
- parameterPath: "resourceId",
1641
- mapper: {
1642
- serializedName: "resourceId",
1643
- required: true,
1644
- type: {
1645
- name: "String"
1646
- }
1647
- }
1648
- };
1649
- const privateEndpointConnectionName = {
1650
- parameterPath: "privateEndpointConnectionName",
1651
- mapper: {
1652
- serializedName: "privateEndpointConnectionName",
1653
- required: true,
1654
- type: {
1655
- name: "String"
1656
- }
1657
- }
1658
- };
1659
- const privateEndpointConnection = {
1660
- parameterPath: "privateEndpointConnection",
1661
- mapper: PrivateEndpointConnection
1662
- };
1663
- const timeSeriesDatabaseConnectionName = {
1664
- parameterPath: "timeSeriesDatabaseConnectionName",
1665
- mapper: {
1666
- constraints: {
1667
- Pattern: new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$"),
1668
- MaxLength: 49,
1669
- MinLength: 2
1670
- },
1671
- serializedName: "timeSeriesDatabaseConnectionName",
1672
- required: true,
1673
- type: {
1674
- name: "String"
1675
- }
1676
- }
1677
- };
1678
- const timeSeriesDatabaseConnectionDescription = {
1679
- parameterPath: "timeSeriesDatabaseConnectionDescription",
1680
- mapper: TimeSeriesDatabaseConnection
1681
- };
1682
- const cleanupConnectionArtifacts = {
1683
- parameterPath: ["options", "cleanupConnectionArtifacts"],
1684
- mapper: {
1685
- serializedName: "cleanupConnectionArtifacts",
1686
- type: {
1687
- name: "String"
1688
- }
1689
- }
1690
- };
1691
-
1692
- /*
1693
- * Copyright (c) Microsoft Corporation.
1694
- * Licensed under the MIT License.
1695
- *
1696
- * Code generated by Microsoft (R) AutoRest Code Generator.
1697
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1698
- */
1699
- function createLroSpec(inputs) {
1700
- const { args, spec, sendOperationFn } = inputs;
1701
- return {
1702
- requestMethod: spec.httpMethod,
1703
- requestPath: spec.path,
1704
- sendInitialRequest: () => sendOperationFn(args, spec),
1705
- sendPollRequest: (path, options) => {
1706
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1707
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
1708
- }
1709
- };
1710
- }
1711
-
1712
- /*
1713
- * Copyright (c) Microsoft Corporation.
1714
- * Licensed under the MIT License.
1715
- *
1716
- * Code generated by Microsoft (R) AutoRest Code Generator.
1717
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1718
- */
1719
- /// <reference lib="esnext.asynciterable" />
1720
- /** Class containing DigitalTwins operations. */
1721
- class DigitalTwinsImpl {
1722
- /**
1723
- * Initialize a new instance of the class DigitalTwins class.
1724
- * @param client Reference to the service client
1725
- */
1726
- constructor(client) {
1727
- this.client = client;
1728
- }
1729
- /**
1730
- * Get all the DigitalTwinsInstances in a subscription.
1731
- * @param options The options parameters.
1732
- */
1733
- list(options) {
1734
- const iter = this.listPagingAll(options);
1735
- return {
1736
- next() {
1737
- return iter.next();
1738
- },
1739
- [Symbol.asyncIterator]() {
1740
- return this;
1741
- },
1742
- byPage: (settings) => {
1743
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1744
- throw new Error("maxPageSize is not supported by this operation.");
1745
- }
1746
- return this.listPagingPage(options, settings);
1747
- }
1748
- };
1749
- }
1750
- listPagingPage(options, settings) {
1751
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1752
- let result;
1753
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1754
- if (!continuationToken) {
1755
- result = yield tslib.__await(this._list(options));
1756
- let page = result.value || [];
1757
- continuationToken = result.nextLink;
1758
- setContinuationToken(page, continuationToken);
1759
- yield yield tslib.__await(page);
1760
- }
1761
- while (continuationToken) {
1762
- result = yield tslib.__await(this._listNext(continuationToken, options));
1763
- continuationToken = result.nextLink;
1764
- let page = result.value || [];
1765
- setContinuationToken(page, continuationToken);
1766
- yield yield tslib.__await(page);
1767
- }
1768
- });
1769
- }
1770
- listPagingAll(options) {
1771
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1772
- var _a, e_1, _b, _c;
1773
- try {
1774
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1775
- _c = _f.value;
1776
- _d = false;
1777
- const page = _c;
1778
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1779
- }
1780
- }
1781
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1782
- finally {
1783
- try {
1784
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1785
- }
1786
- finally { if (e_1) throw e_1.error; }
1787
- }
1788
- });
1789
- }
1790
- /**
1791
- * Get all the DigitalTwinsInstances in a resource group.
1792
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
1793
- * @param options The options parameters.
1794
- */
1795
- listByResourceGroup(resourceGroupName, options) {
1796
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1797
- return {
1798
- next() {
1799
- return iter.next();
1800
- },
1801
- [Symbol.asyncIterator]() {
1802
- return this;
1803
- },
1804
- byPage: (settings) => {
1805
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1806
- throw new Error("maxPageSize is not supported by this operation.");
1807
- }
1808
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1809
- }
1810
- };
1811
- }
1812
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1813
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1814
- let result;
1815
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1816
- if (!continuationToken) {
1817
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1818
- let page = result.value || [];
1819
- continuationToken = result.nextLink;
1820
- setContinuationToken(page, continuationToken);
1821
- yield yield tslib.__await(page);
1822
- }
1823
- while (continuationToken) {
1824
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1825
- continuationToken = result.nextLink;
1826
- let page = result.value || [];
1827
- setContinuationToken(page, continuationToken);
1828
- yield yield tslib.__await(page);
1829
- }
1830
- });
1831
- }
1832
- listByResourceGroupPagingAll(resourceGroupName, options) {
1833
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1834
- var _a, e_2, _b, _c;
1835
- try {
1836
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1837
- _c = _f.value;
1838
- _d = false;
1839
- const page = _c;
1840
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1841
- }
1842
- }
1843
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1844
- finally {
1845
- try {
1846
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1847
- }
1848
- finally { if (e_2) throw e_2.error; }
1849
- }
1850
- });
1851
- }
1852
- /**
1853
- * Get DigitalTwinsInstances resource.
1854
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
1855
- * @param resourceName The name of the DigitalTwinsInstance.
1856
- * @param options The options parameters.
1857
- */
1858
- get(resourceGroupName, resourceName, options) {
1859
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$4);
1860
- }
1861
- /**
1862
- * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
1863
- * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
1864
- * values in a new body to update the DigitalTwinsInstance.
1865
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
1866
- * @param resourceName The name of the DigitalTwinsInstance.
1867
- * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
1868
- * @param options The options parameters.
1869
- */
1870
- beginCreateOrUpdate(resourceGroupName, resourceName, digitalTwinsCreate, options) {
1871
- return tslib.__awaiter(this, undefined, undefined, function* () {
1872
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1873
- return this.client.sendOperationRequest(args, spec);
1874
- });
1875
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1876
- var _a;
1877
- let currentRawResponse = undefined;
1878
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1879
- const callback = (rawResponse, flatResponse) => {
1880
- currentRawResponse = rawResponse;
1881
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1882
- };
1883
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1884
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1885
- return {
1886
- flatResponse,
1887
- rawResponse: {
1888
- statusCode: currentRawResponse.status,
1889
- body: currentRawResponse.parsedBody,
1890
- headers: currentRawResponse.headers.toJSON()
1891
- }
1892
- };
1893
- });
1894
- const lro = createLroSpec({
1895
- sendOperationFn,
1896
- args: { resourceGroupName, resourceName, digitalTwinsCreate, options },
1897
- spec: createOrUpdateOperationSpec$3
1898
- });
1899
- const poller = yield coreLro.createHttpPoller(lro, {
1900
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1901
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
1902
- });
1903
- yield poller.poll();
1904
- return poller;
1905
- });
1906
- }
1907
- /**
1908
- * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
1909
- * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
1910
- * values in a new body to update the DigitalTwinsInstance.
1911
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
1912
- * @param resourceName The name of the DigitalTwinsInstance.
1913
- * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
1914
- * @param options The options parameters.
1915
- */
1916
- beginCreateOrUpdateAndWait(resourceGroupName, resourceName, digitalTwinsCreate, options) {
1917
- return tslib.__awaiter(this, undefined, undefined, function* () {
1918
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, digitalTwinsCreate, options);
1919
- return poller.pollUntilDone();
1920
- });
1921
- }
1922
- /**
1923
- * Update metadata of DigitalTwinsInstance.
1924
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
1925
- * @param resourceName The name of the DigitalTwinsInstance.
1926
- * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
1927
- * @param options The options parameters.
1928
- */
1929
- beginUpdate(resourceGroupName, resourceName, digitalTwinsPatchDescription, options) {
1930
- return tslib.__awaiter(this, undefined, undefined, function* () {
1931
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1932
- return this.client.sendOperationRequest(args, spec);
1933
- });
1934
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1935
- var _a;
1936
- let currentRawResponse = undefined;
1937
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1938
- const callback = (rawResponse, flatResponse) => {
1939
- currentRawResponse = rawResponse;
1940
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1941
- };
1942
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1943
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1944
- return {
1945
- flatResponse,
1946
- rawResponse: {
1947
- statusCode: currentRawResponse.status,
1948
- body: currentRawResponse.parsedBody,
1949
- headers: currentRawResponse.headers.toJSON()
1950
- }
1951
- };
1952
- });
1953
- const lro = createLroSpec({
1954
- sendOperationFn,
1955
- args: {
1956
- resourceGroupName,
1957
- resourceName,
1958
- digitalTwinsPatchDescription,
1959
- options
1960
- },
1961
- spec: updateOperationSpec
1962
- });
1963
- const poller = yield coreLro.createHttpPoller(lro, {
1964
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1965
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
1966
- });
1967
- yield poller.poll();
1968
- return poller;
1969
- });
1970
- }
1971
- /**
1972
- * Update metadata of DigitalTwinsInstance.
1973
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
1974
- * @param resourceName The name of the DigitalTwinsInstance.
1975
- * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
1976
- * @param options The options parameters.
1977
- */
1978
- beginUpdateAndWait(resourceGroupName, resourceName, digitalTwinsPatchDescription, options) {
1979
- return tslib.__awaiter(this, undefined, undefined, function* () {
1980
- const poller = yield this.beginUpdate(resourceGroupName, resourceName, digitalTwinsPatchDescription, options);
1981
- return poller.pollUntilDone();
1982
- });
1983
- }
1984
- /**
1985
- * Delete a DigitalTwinsInstance.
1986
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
1987
- * @param resourceName The name of the DigitalTwinsInstance.
1988
- * @param options The options parameters.
1989
- */
1990
- beginDelete(resourceGroupName, resourceName, options) {
1991
- return tslib.__awaiter(this, undefined, undefined, function* () {
1992
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1993
- return this.client.sendOperationRequest(args, spec);
1994
- });
1995
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1996
- var _a;
1997
- let currentRawResponse = undefined;
1998
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1999
- const callback = (rawResponse, flatResponse) => {
2000
- currentRawResponse = rawResponse;
2001
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2002
- };
2003
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2004
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2005
- return {
2006
- flatResponse,
2007
- rawResponse: {
2008
- statusCode: currentRawResponse.status,
2009
- body: currentRawResponse.parsedBody,
2010
- headers: currentRawResponse.headers.toJSON()
2011
- }
2012
- };
2013
- });
2014
- const lro = createLroSpec({
2015
- sendOperationFn,
2016
- args: { resourceGroupName, resourceName, options },
2017
- spec: deleteOperationSpec$3
2018
- });
2019
- const poller = yield coreLro.createHttpPoller(lro, {
2020
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2021
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2022
- });
2023
- yield poller.poll();
2024
- return poller;
2025
- });
2026
- }
2027
- /**
2028
- * Delete a DigitalTwinsInstance.
2029
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2030
- * @param resourceName The name of the DigitalTwinsInstance.
2031
- * @param options The options parameters.
2032
- */
2033
- beginDeleteAndWait(resourceGroupName, resourceName, options) {
2034
- return tslib.__awaiter(this, undefined, undefined, function* () {
2035
- const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
2036
- return poller.pollUntilDone();
2037
- });
2038
- }
2039
- /**
2040
- * Get all the DigitalTwinsInstances in a subscription.
2041
- * @param options The options parameters.
2042
- */
2043
- _list(options) {
2044
- return this.client.sendOperationRequest({ options }, listOperationSpec$5);
2045
- }
2046
- /**
2047
- * Get all the DigitalTwinsInstances in a resource group.
2048
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2049
- * @param options The options parameters.
2050
- */
2051
- _listByResourceGroup(resourceGroupName, options) {
2052
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2053
- }
2054
- /**
2055
- * Check if a DigitalTwinsInstance name is available.
2056
- * @param location Location of DigitalTwinsInstance.
2057
- * @param digitalTwinsInstanceCheckName Set the name parameter in the DigitalTwinsInstanceCheckName
2058
- * structure to the name of the DigitalTwinsInstance to check.
2059
- * @param options The options parameters.
2060
- */
2061
- checkNameAvailability(location, digitalTwinsInstanceCheckName, options) {
2062
- return this.client.sendOperationRequest({ location, digitalTwinsInstanceCheckName, options }, checkNameAvailabilityOperationSpec);
2063
- }
2064
- /**
2065
- * ListNext
2066
- * @param nextLink The nextLink from the previous successful call to the List method.
2067
- * @param options The options parameters.
2068
- */
2069
- _listNext(nextLink, options) {
2070
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
2071
- }
2072
- /**
2073
- * ListByResourceGroupNext
2074
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2075
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2076
- * @param options The options parameters.
2077
- */
2078
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2079
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2080
- }
2081
- }
2082
- // Operation Specifications
2083
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2084
- const getOperationSpec$4 = {
2085
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
2086
- httpMethod: "GET",
2087
- responses: {
2088
- 200: {
2089
- bodyMapper: DigitalTwinsDescription
2090
- },
2091
- default: {
2092
- bodyMapper: ErrorResponse
2093
- }
2094
- },
2095
- queryParameters: [apiVersion],
2096
- urlParameters: [
2097
- $host,
2098
- subscriptionId,
2099
- resourceGroupName,
2100
- resourceName
2101
- ],
2102
- headerParameters: [accept],
2103
- serializer: serializer$5
2104
- };
2105
- const createOrUpdateOperationSpec$3 = {
2106
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
2107
- httpMethod: "PUT",
2108
- responses: {
2109
- 200: {
2110
- bodyMapper: DigitalTwinsDescription
2111
- },
2112
- 201: {
2113
- bodyMapper: DigitalTwinsDescription
2114
- },
2115
- 202: {
2116
- bodyMapper: DigitalTwinsDescription
2117
- },
2118
- 204: {
2119
- bodyMapper: DigitalTwinsDescription
2120
- },
2121
- default: {
2122
- bodyMapper: ErrorResponse
2123
- }
2124
- },
2125
- requestBody: digitalTwinsCreate,
2126
- queryParameters: [apiVersion],
2127
- urlParameters: [
2128
- $host,
2129
- subscriptionId,
2130
- resourceGroupName,
2131
- resourceName
2132
- ],
2133
- headerParameters: [accept, contentType],
2134
- mediaType: "json",
2135
- serializer: serializer$5
2136
- };
2137
- const updateOperationSpec = {
2138
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
2139
- httpMethod: "PATCH",
2140
- responses: {
2141
- 200: {
2142
- bodyMapper: DigitalTwinsDescription
2143
- },
2144
- 201: {
2145
- bodyMapper: DigitalTwinsDescription
2146
- },
2147
- 202: {
2148
- bodyMapper: DigitalTwinsDescription
2149
- },
2150
- 204: {
2151
- bodyMapper: DigitalTwinsDescription
2152
- },
2153
- default: {
2154
- bodyMapper: ErrorResponse
2155
- }
2156
- },
2157
- requestBody: digitalTwinsPatchDescription,
2158
- queryParameters: [apiVersion],
2159
- urlParameters: [
2160
- $host,
2161
- subscriptionId,
2162
- resourceGroupName,
2163
- resourceName
2164
- ],
2165
- headerParameters: [accept, contentType],
2166
- mediaType: "json",
2167
- serializer: serializer$5
2168
- };
2169
- const deleteOperationSpec$3 = {
2170
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
2171
- httpMethod: "DELETE",
2172
- responses: {
2173
- 200: {
2174
- bodyMapper: DigitalTwinsDescription
2175
- },
2176
- 201: {
2177
- bodyMapper: DigitalTwinsDescription
2178
- },
2179
- 202: {
2180
- bodyMapper: DigitalTwinsDescription
2181
- },
2182
- 204: {
2183
- bodyMapper: DigitalTwinsDescription
2184
- },
2185
- default: {
2186
- bodyMapper: ErrorResponse
2187
- }
2188
- },
2189
- queryParameters: [apiVersion],
2190
- urlParameters: [
2191
- $host,
2192
- subscriptionId,
2193
- resourceGroupName,
2194
- resourceName
2195
- ],
2196
- headerParameters: [accept],
2197
- serializer: serializer$5
2198
- };
2199
- const listOperationSpec$5 = {
2200
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",
2201
- httpMethod: "GET",
2202
- responses: {
2203
- 200: {
2204
- bodyMapper: DigitalTwinsDescriptionListResult
2205
- },
2206
- default: {
2207
- bodyMapper: ErrorResponse
2208
- }
2209
- },
2210
- queryParameters: [apiVersion],
2211
- urlParameters: [$host, subscriptionId],
2212
- headerParameters: [accept],
2213
- serializer: serializer$5
2214
- };
2215
- const listByResourceGroupOperationSpec = {
2216
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",
2217
- httpMethod: "GET",
2218
- responses: {
2219
- 200: {
2220
- bodyMapper: DigitalTwinsDescriptionListResult
2221
- },
2222
- default: {
2223
- bodyMapper: ErrorResponse
2224
- }
2225
- },
2226
- queryParameters: [apiVersion],
2227
- urlParameters: [
2228
- $host,
2229
- subscriptionId,
2230
- resourceGroupName
2231
- ],
2232
- headerParameters: [accept],
2233
- serializer: serializer$5
2234
- };
2235
- const checkNameAvailabilityOperationSpec = {
2236
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability",
2237
- httpMethod: "POST",
2238
- responses: {
2239
- 200: {
2240
- bodyMapper: CheckNameResult
2241
- },
2242
- default: {
2243
- bodyMapper: ErrorResponse
2244
- }
2245
- },
2246
- requestBody: digitalTwinsInstanceCheckName,
2247
- queryParameters: [apiVersion],
2248
- urlParameters: [
2249
- $host,
2250
- subscriptionId,
2251
- location
2252
- ],
2253
- headerParameters: [accept, contentType],
2254
- mediaType: "json",
2255
- serializer: serializer$5
2256
- };
2257
- const listNextOperationSpec$3 = {
2258
- path: "{nextLink}",
2259
- httpMethod: "GET",
2260
- responses: {
2261
- 200: {
2262
- bodyMapper: DigitalTwinsDescriptionListResult
2263
- },
2264
- default: {
2265
- bodyMapper: ErrorResponse
2266
- }
2267
- },
2268
- urlParameters: [
2269
- $host,
2270
- subscriptionId,
2271
- nextLink
2272
- ],
2273
- headerParameters: [accept],
2274
- serializer: serializer$5
2275
- };
2276
- const listByResourceGroupNextOperationSpec = {
2277
- path: "{nextLink}",
2278
- httpMethod: "GET",
2279
- responses: {
2280
- 200: {
2281
- bodyMapper: DigitalTwinsDescriptionListResult
2282
- },
2283
- default: {
2284
- bodyMapper: ErrorResponse
2285
- }
2286
- },
2287
- urlParameters: [
2288
- $host,
2289
- subscriptionId,
2290
- resourceGroupName,
2291
- nextLink
2292
- ],
2293
- headerParameters: [accept],
2294
- serializer: serializer$5
2295
- };
2296
-
2297
- /*
2298
- * Copyright (c) Microsoft Corporation.
2299
- * Licensed under the MIT License.
2300
- *
2301
- * Code generated by Microsoft (R) AutoRest Code Generator.
2302
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2303
- */
2304
- /// <reference lib="esnext.asynciterable" />
2305
- /** Class containing DigitalTwinsEndpoint operations. */
2306
- class DigitalTwinsEndpointImpl {
2307
- /**
2308
- * Initialize a new instance of the class DigitalTwinsEndpoint class.
2309
- * @param client Reference to the service client
2310
- */
2311
- constructor(client) {
2312
- this.client = client;
2313
- }
2314
- /**
2315
- * Get DigitalTwinsInstance Endpoints.
2316
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2317
- * @param resourceName The name of the DigitalTwinsInstance.
2318
- * @param options The options parameters.
2319
- */
2320
- list(resourceGroupName, resourceName, options) {
2321
- const iter = this.listPagingAll(resourceGroupName, resourceName, options);
2322
- return {
2323
- next() {
2324
- return iter.next();
2325
- },
2326
- [Symbol.asyncIterator]() {
2327
- return this;
2328
- },
2329
- byPage: (settings) => {
2330
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2331
- throw new Error("maxPageSize is not supported by this operation.");
2332
- }
2333
- return this.listPagingPage(resourceGroupName, resourceName, options, settings);
2334
- }
2335
- };
2336
- }
2337
- listPagingPage(resourceGroupName, resourceName, options, settings) {
2338
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2339
- let result;
2340
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2341
- if (!continuationToken) {
2342
- result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
2343
- let page = result.value || [];
2344
- continuationToken = result.nextLink;
2345
- setContinuationToken(page, continuationToken);
2346
- yield yield tslib.__await(page);
2347
- }
2348
- while (continuationToken) {
2349
- result = yield tslib.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
2350
- continuationToken = result.nextLink;
2351
- let page = result.value || [];
2352
- setContinuationToken(page, continuationToken);
2353
- yield yield tslib.__await(page);
2354
- }
2355
- });
2356
- }
2357
- listPagingAll(resourceGroupName, resourceName, options) {
2358
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2359
- var _a, e_1, _b, _c;
2360
- try {
2361
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2362
- _c = _f.value;
2363
- _d = false;
2364
- const page = _c;
2365
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2366
- }
2367
- }
2368
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2369
- finally {
2370
- try {
2371
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2372
- }
2373
- finally { if (e_1) throw e_1.error; }
2374
- }
2375
- });
2376
- }
2377
- /**
2378
- * Get DigitalTwinsInstance Endpoints.
2379
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2380
- * @param resourceName The name of the DigitalTwinsInstance.
2381
- * @param options The options parameters.
2382
- */
2383
- _list(resourceGroupName, resourceName, options) {
2384
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
2385
- }
2386
- /**
2387
- * Get DigitalTwinsInstances Endpoint.
2388
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2389
- * @param resourceName The name of the DigitalTwinsInstance.
2390
- * @param endpointName Name of Endpoint Resource.
2391
- * @param options The options parameters.
2392
- */
2393
- get(resourceGroupName, resourceName, endpointName, options) {
2394
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, endpointName, options }, getOperationSpec$3);
2395
- }
2396
- /**
2397
- * Create or update DigitalTwinsInstance endpoint.
2398
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2399
- * @param resourceName The name of the DigitalTwinsInstance.
2400
- * @param endpointName Name of Endpoint Resource.
2401
- * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.
2402
- * @param options The options parameters.
2403
- */
2404
- beginCreateOrUpdate(resourceGroupName, resourceName, endpointName, endpointDescription, options) {
2405
- return tslib.__awaiter(this, undefined, undefined, function* () {
2406
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2407
- return this.client.sendOperationRequest(args, spec);
2408
- });
2409
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2410
- var _a;
2411
- let currentRawResponse = undefined;
2412
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2413
- const callback = (rawResponse, flatResponse) => {
2414
- currentRawResponse = rawResponse;
2415
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2416
- };
2417
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2418
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2419
- return {
2420
- flatResponse,
2421
- rawResponse: {
2422
- statusCode: currentRawResponse.status,
2423
- body: currentRawResponse.parsedBody,
2424
- headers: currentRawResponse.headers.toJSON()
2425
- }
2426
- };
2427
- });
2428
- const lro = createLroSpec({
2429
- sendOperationFn,
2430
- args: {
2431
- resourceGroupName,
2432
- resourceName,
2433
- endpointName,
2434
- endpointDescription,
2435
- options
2436
- },
2437
- spec: createOrUpdateOperationSpec$2
2438
- });
2439
- const poller = yield coreLro.createHttpPoller(lro, {
2440
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2441
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2442
- });
2443
- yield poller.poll();
2444
- return poller;
2445
- });
2446
- }
2447
- /**
2448
- * Create or update DigitalTwinsInstance endpoint.
2449
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2450
- * @param resourceName The name of the DigitalTwinsInstance.
2451
- * @param endpointName Name of Endpoint Resource.
2452
- * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.
2453
- * @param options The options parameters.
2454
- */
2455
- beginCreateOrUpdateAndWait(resourceGroupName, resourceName, endpointName, endpointDescription, options) {
2456
- return tslib.__awaiter(this, undefined, undefined, function* () {
2457
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, endpointName, endpointDescription, options);
2458
- return poller.pollUntilDone();
2459
- });
2460
- }
2461
- /**
2462
- * Delete a DigitalTwinsInstance endpoint.
2463
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2464
- * @param resourceName The name of the DigitalTwinsInstance.
2465
- * @param endpointName Name of Endpoint Resource.
2466
- * @param options The options parameters.
2467
- */
2468
- beginDelete(resourceGroupName, resourceName, endpointName, options) {
2469
- return tslib.__awaiter(this, undefined, undefined, function* () {
2470
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2471
- return this.client.sendOperationRequest(args, spec);
2472
- });
2473
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2474
- var _a;
2475
- let currentRawResponse = undefined;
2476
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2477
- const callback = (rawResponse, flatResponse) => {
2478
- currentRawResponse = rawResponse;
2479
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2480
- };
2481
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2482
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2483
- return {
2484
- flatResponse,
2485
- rawResponse: {
2486
- statusCode: currentRawResponse.status,
2487
- body: currentRawResponse.parsedBody,
2488
- headers: currentRawResponse.headers.toJSON()
2489
- }
2490
- };
2491
- });
2492
- const lro = createLroSpec({
2493
- sendOperationFn,
2494
- args: { resourceGroupName, resourceName, endpointName, options },
2495
- spec: deleteOperationSpec$2
2496
- });
2497
- const poller = yield coreLro.createHttpPoller(lro, {
2498
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2499
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2500
- });
2501
- yield poller.poll();
2502
- return poller;
2503
- });
2504
- }
2505
- /**
2506
- * Delete a DigitalTwinsInstance endpoint.
2507
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2508
- * @param resourceName The name of the DigitalTwinsInstance.
2509
- * @param endpointName Name of Endpoint Resource.
2510
- * @param options The options parameters.
2511
- */
2512
- beginDeleteAndWait(resourceGroupName, resourceName, endpointName, options) {
2513
- return tslib.__awaiter(this, undefined, undefined, function* () {
2514
- const poller = yield this.beginDelete(resourceGroupName, resourceName, endpointName, options);
2515
- return poller.pollUntilDone();
2516
- });
2517
- }
2518
- /**
2519
- * ListNext
2520
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2521
- * @param resourceName The name of the DigitalTwinsInstance.
2522
- * @param nextLink The nextLink from the previous successful call to the List method.
2523
- * @param options The options parameters.
2524
- */
2525
- _listNext(resourceGroupName, resourceName, nextLink, options) {
2526
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$2);
2527
- }
2528
- }
2529
- // Operation Specifications
2530
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2531
- const listOperationSpec$4 = {
2532
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints",
2533
- httpMethod: "GET",
2534
- responses: {
2535
- 200: {
2536
- bodyMapper: DigitalTwinsEndpointResourceListResult
2537
- },
2538
- default: {
2539
- bodyMapper: ErrorResponse
2540
- }
2541
- },
2542
- queryParameters: [apiVersion],
2543
- urlParameters: [
2544
- $host,
2545
- subscriptionId,
2546
- resourceGroupName,
2547
- resourceName
2548
- ],
2549
- headerParameters: [accept],
2550
- serializer: serializer$4
2551
- };
2552
- const getOperationSpec$3 = {
2553
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",
2554
- httpMethod: "GET",
2555
- responses: {
2556
- 200: {
2557
- bodyMapper: DigitalTwinsEndpointResource
2558
- },
2559
- default: {
2560
- bodyMapper: ErrorResponse
2561
- }
2562
- },
2563
- queryParameters: [apiVersion],
2564
- urlParameters: [
2565
- $host,
2566
- subscriptionId,
2567
- resourceGroupName,
2568
- resourceName,
2569
- endpointName
2570
- ],
2571
- headerParameters: [accept],
2572
- serializer: serializer$4
2573
- };
2574
- const createOrUpdateOperationSpec$2 = {
2575
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",
2576
- httpMethod: "PUT",
2577
- responses: {
2578
- 200: {
2579
- bodyMapper: DigitalTwinsEndpointResource
2580
- },
2581
- 201: {
2582
- bodyMapper: DigitalTwinsEndpointResource
2583
- },
2584
- 202: {
2585
- bodyMapper: DigitalTwinsEndpointResource
2586
- },
2587
- 204: {
2588
- bodyMapper: DigitalTwinsEndpointResource
2589
- },
2590
- default: {
2591
- bodyMapper: ErrorResponse
2592
- }
2593
- },
2594
- requestBody: endpointDescription,
2595
- queryParameters: [apiVersion],
2596
- urlParameters: [
2597
- $host,
2598
- subscriptionId,
2599
- resourceGroupName,
2600
- resourceName,
2601
- endpointName
2602
- ],
2603
- headerParameters: [accept, contentType],
2604
- mediaType: "json",
2605
- serializer: serializer$4
2606
- };
2607
- const deleteOperationSpec$2 = {
2608
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",
2609
- httpMethod: "DELETE",
2610
- responses: {
2611
- 200: {
2612
- bodyMapper: DigitalTwinsEndpointResource
2613
- },
2614
- 201: {
2615
- bodyMapper: DigitalTwinsEndpointResource
2616
- },
2617
- 202: {
2618
- bodyMapper: DigitalTwinsEndpointResource
2619
- },
2620
- 204: {
2621
- bodyMapper: DigitalTwinsEndpointResource
2622
- },
2623
- default: {
2624
- bodyMapper: ErrorResponse
2625
- }
2626
- },
2627
- queryParameters: [apiVersion],
2628
- urlParameters: [
2629
- $host,
2630
- subscriptionId,
2631
- resourceGroupName,
2632
- resourceName,
2633
- endpointName
2634
- ],
2635
- headerParameters: [accept],
2636
- serializer: serializer$4
2637
- };
2638
- const listNextOperationSpec$2 = {
2639
- path: "{nextLink}",
2640
- httpMethod: "GET",
2641
- responses: {
2642
- 200: {
2643
- bodyMapper: DigitalTwinsEndpointResourceListResult
2644
- },
2645
- default: {
2646
- bodyMapper: ErrorResponse
2647
- }
2648
- },
2649
- urlParameters: [
2650
- $host,
2651
- subscriptionId,
2652
- resourceGroupName,
2653
- resourceName,
2654
- nextLink
2655
- ],
2656
- headerParameters: [accept],
2657
- serializer: serializer$4
2658
- };
2659
-
2660
- /*
2661
- * Copyright (c) Microsoft Corporation.
2662
- * Licensed under the MIT License.
2663
- *
2664
- * Code generated by Microsoft (R) AutoRest Code Generator.
2665
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2666
- */
2667
- /// <reference lib="esnext.asynciterable" />
2668
- /** Class containing Operations operations. */
2669
- class OperationsImpl {
2670
- /**
2671
- * Initialize a new instance of the class Operations class.
2672
- * @param client Reference to the service client
2673
- */
2674
- constructor(client) {
2675
- this.client = client;
2676
- }
2677
- /**
2678
- * Lists all of the available DigitalTwins service REST API operations.
2679
- * @param options The options parameters.
2680
- */
2681
- list(options) {
2682
- const iter = this.listPagingAll(options);
2683
- return {
2684
- next() {
2685
- return iter.next();
2686
- },
2687
- [Symbol.asyncIterator]() {
2688
- return this;
2689
- },
2690
- byPage: (settings) => {
2691
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2692
- throw new Error("maxPageSize is not supported by this operation.");
2693
- }
2694
- return this.listPagingPage(options, settings);
2695
- }
2696
- };
2697
- }
2698
- listPagingPage(options, settings) {
2699
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2700
- let result;
2701
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2702
- if (!continuationToken) {
2703
- result = yield tslib.__await(this._list(options));
2704
- let page = result.value || [];
2705
- continuationToken = result.nextLink;
2706
- setContinuationToken(page, continuationToken);
2707
- yield yield tslib.__await(page);
2708
- }
2709
- while (continuationToken) {
2710
- result = yield tslib.__await(this._listNext(continuationToken, options));
2711
- continuationToken = result.nextLink;
2712
- let page = result.value || [];
2713
- setContinuationToken(page, continuationToken);
2714
- yield yield tslib.__await(page);
2715
- }
2716
- });
2717
- }
2718
- listPagingAll(options) {
2719
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2720
- var _a, e_1, _b, _c;
2721
- try {
2722
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2723
- _c = _f.value;
2724
- _d = false;
2725
- const page = _c;
2726
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2727
- }
2728
- }
2729
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2730
- finally {
2731
- try {
2732
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2733
- }
2734
- finally { if (e_1) throw e_1.error; }
2735
- }
2736
- });
2737
- }
2738
- /**
2739
- * Lists all of the available DigitalTwins service REST API operations.
2740
- * @param options The options parameters.
2741
- */
2742
- _list(options) {
2743
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
2744
- }
2745
- /**
2746
- * ListNext
2747
- * @param nextLink The nextLink from the previous successful call to the List method.
2748
- * @param options The options parameters.
2749
- */
2750
- _listNext(nextLink, options) {
2751
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
2752
- }
2753
- }
2754
- // Operation Specifications
2755
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2756
- const listOperationSpec$3 = {
2757
- path: "/providers/Microsoft.DigitalTwins/operations",
2758
- httpMethod: "GET",
2759
- responses: {
2760
- 200: {
2761
- bodyMapper: OperationListResult
2762
- },
2763
- default: {
2764
- bodyMapper: ErrorResponse
2765
- }
2766
- },
2767
- queryParameters: [apiVersion],
2768
- urlParameters: [$host],
2769
- headerParameters: [accept],
2770
- serializer: serializer$3
2771
- };
2772
- const listNextOperationSpec$1 = {
2773
- path: "{nextLink}",
2774
- httpMethod: "GET",
2775
- responses: {
2776
- 200: {
2777
- bodyMapper: OperationListResult
2778
- },
2779
- default: {
2780
- bodyMapper: ErrorResponse
2781
- }
2782
- },
2783
- urlParameters: [$host, nextLink],
2784
- headerParameters: [accept],
2785
- serializer: serializer$3
2786
- };
2787
-
2788
- /*
2789
- * Copyright (c) Microsoft Corporation.
2790
- * Licensed under the MIT License.
2791
- *
2792
- * Code generated by Microsoft (R) AutoRest Code Generator.
2793
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2794
- */
2795
- /** Class containing PrivateLinkResources operations. */
2796
- class PrivateLinkResourcesImpl {
2797
- /**
2798
- * Initialize a new instance of the class PrivateLinkResources class.
2799
- * @param client Reference to the service client
2800
- */
2801
- constructor(client) {
2802
- this.client = client;
2803
- }
2804
- /**
2805
- * List private link resources for given Digital Twin.
2806
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2807
- * @param resourceName The name of the DigitalTwinsInstance.
2808
- * @param options The options parameters.
2809
- */
2810
- list(resourceGroupName, resourceName, options) {
2811
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$2);
2812
- }
2813
- /**
2814
- * Get the specified private link resource for the given Digital Twin.
2815
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2816
- * @param resourceName The name of the DigitalTwinsInstance.
2817
- * @param resourceId The name of the private link resource.
2818
- * @param options The options parameters.
2819
- */
2820
- get(resourceGroupName, resourceName, resourceId, options) {
2821
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, resourceId, options }, getOperationSpec$2);
2822
- }
2823
- }
2824
- // Operation Specifications
2825
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2826
- const listOperationSpec$2 = {
2827
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources",
2828
- httpMethod: "GET",
2829
- responses: {
2830
- 200: {
2831
- bodyMapper: GroupIdInformationResponse
2832
- },
2833
- default: {
2834
- bodyMapper: ErrorResponse
2835
- }
2836
- },
2837
- queryParameters: [apiVersion],
2838
- urlParameters: [
2839
- $host,
2840
- subscriptionId,
2841
- resourceGroupName,
2842
- resourceName
2843
- ],
2844
- headerParameters: [accept],
2845
- serializer: serializer$2
2846
- };
2847
- const getOperationSpec$2 = {
2848
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources/{resourceId}",
2849
- httpMethod: "GET",
2850
- responses: {
2851
- 200: {
2852
- bodyMapper: GroupIdInformation
2853
- },
2854
- default: {
2855
- bodyMapper: ErrorResponse
2856
- }
2857
- },
2858
- queryParameters: [apiVersion],
2859
- urlParameters: [
2860
- $host,
2861
- subscriptionId,
2862
- resourceGroupName,
2863
- resourceName,
2864
- resourceId
2865
- ],
2866
- headerParameters: [accept],
2867
- serializer: serializer$2
2868
- };
2869
-
2870
- /*
2871
- * Copyright (c) Microsoft Corporation.
2872
- * Licensed under the MIT License.
2873
- *
2874
- * Code generated by Microsoft (R) AutoRest Code Generator.
2875
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2876
- */
2877
- /** Class containing PrivateEndpointConnections operations. */
2878
- class PrivateEndpointConnectionsImpl {
2879
- /**
2880
- * Initialize a new instance of the class PrivateEndpointConnections class.
2881
- * @param client Reference to the service client
2882
- */
2883
- constructor(client) {
2884
- this.client = client;
2885
- }
2886
- /**
2887
- * List private endpoint connection properties.
2888
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2889
- * @param resourceName The name of the DigitalTwinsInstance.
2890
- * @param options The options parameters.
2891
- */
2892
- list(resourceGroupName, resourceName, options) {
2893
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$1);
2894
- }
2895
- /**
2896
- * Get private endpoint connection properties for the given private endpoint.
2897
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2898
- * @param resourceName The name of the DigitalTwinsInstance.
2899
- * @param privateEndpointConnectionName The name of the private endpoint connection.
2900
- * @param options The options parameters.
2901
- */
2902
- get(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
2903
- return this.client.sendOperationRequest({
2904
- resourceGroupName,
2905
- resourceName,
2906
- privateEndpointConnectionName,
2907
- options
2908
- }, getOperationSpec$1);
2909
- }
2910
- /**
2911
- * Delete private endpoint connection with the specified name.
2912
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2913
- * @param resourceName The name of the DigitalTwinsInstance.
2914
- * @param privateEndpointConnectionName The name of the private endpoint connection.
2915
- * @param options The options parameters.
2916
- */
2917
- beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
2918
- return tslib.__awaiter(this, undefined, undefined, function* () {
2919
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2920
- return this.client.sendOperationRequest(args, spec);
2921
- });
2922
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2923
- var _a;
2924
- let currentRawResponse = undefined;
2925
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2926
- const callback = (rawResponse, flatResponse) => {
2927
- currentRawResponse = rawResponse;
2928
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2929
- };
2930
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2931
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2932
- return {
2933
- flatResponse,
2934
- rawResponse: {
2935
- statusCode: currentRawResponse.status,
2936
- body: currentRawResponse.parsedBody,
2937
- headers: currentRawResponse.headers.toJSON()
2938
- }
2939
- };
2940
- });
2941
- const lro = createLroSpec({
2942
- sendOperationFn,
2943
- args: {
2944
- resourceGroupName,
2945
- resourceName,
2946
- privateEndpointConnectionName,
2947
- options
2948
- },
2949
- spec: deleteOperationSpec$1
2950
- });
2951
- const poller = yield coreLro.createHttpPoller(lro, {
2952
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2953
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2954
- });
2955
- yield poller.poll();
2956
- return poller;
2957
- });
2958
- }
2959
- /**
2960
- * Delete private endpoint connection with the specified name.
2961
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2962
- * @param resourceName The name of the DigitalTwinsInstance.
2963
- * @param privateEndpointConnectionName The name of the private endpoint connection.
2964
- * @param options The options parameters.
2965
- */
2966
- beginDeleteAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
2967
- return tslib.__awaiter(this, undefined, undefined, function* () {
2968
- const poller = yield this.beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options);
2969
- return poller.pollUntilDone();
2970
- });
2971
- }
2972
- /**
2973
- * Update the status of a private endpoint connection with the given name.
2974
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
2975
- * @param resourceName The name of the DigitalTwinsInstance.
2976
- * @param privateEndpointConnectionName The name of the private endpoint connection.
2977
- * @param privateEndpointConnection The private endpoint connection with updated properties.
2978
- * @param options The options parameters.
2979
- */
2980
- beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
2981
- return tslib.__awaiter(this, undefined, undefined, function* () {
2982
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2983
- return this.client.sendOperationRequest(args, spec);
2984
- });
2985
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2986
- var _a;
2987
- let currentRawResponse = undefined;
2988
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2989
- const callback = (rawResponse, flatResponse) => {
2990
- currentRawResponse = rawResponse;
2991
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2992
- };
2993
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2994
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2995
- return {
2996
- flatResponse,
2997
- rawResponse: {
2998
- statusCode: currentRawResponse.status,
2999
- body: currentRawResponse.parsedBody,
3000
- headers: currentRawResponse.headers.toJSON()
3001
- }
3002
- };
3003
- });
3004
- const lro = createLroSpec({
3005
- sendOperationFn,
3006
- args: {
3007
- resourceGroupName,
3008
- resourceName,
3009
- privateEndpointConnectionName,
3010
- privateEndpointConnection,
3011
- options
3012
- },
3013
- spec: createOrUpdateOperationSpec$1
3014
- });
3015
- const poller = yield coreLro.createHttpPoller(lro, {
3016
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3017
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3018
- });
3019
- yield poller.poll();
3020
- return poller;
3021
- });
3022
- }
3023
- /**
3024
- * Update the status of a private endpoint connection with the given name.
3025
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3026
- * @param resourceName The name of the DigitalTwinsInstance.
3027
- * @param privateEndpointConnectionName The name of the private endpoint connection.
3028
- * @param privateEndpointConnection The private endpoint connection with updated properties.
3029
- * @param options The options parameters.
3030
- */
3031
- beginCreateOrUpdateAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
3032
- return tslib.__awaiter(this, undefined, undefined, function* () {
3033
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options);
3034
- return poller.pollUntilDone();
3035
- });
3036
- }
3037
- }
3038
- // Operation Specifications
3039
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3040
- const listOperationSpec$1 = {
3041
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections",
3042
- httpMethod: "GET",
3043
- responses: {
3044
- 200: {
3045
- bodyMapper: PrivateEndpointConnectionsResponse
3046
- },
3047
- default: {
3048
- bodyMapper: ErrorResponse
3049
- }
3050
- },
3051
- queryParameters: [apiVersion],
3052
- urlParameters: [
3053
- $host,
3054
- subscriptionId,
3055
- resourceGroupName,
3056
- resourceName
3057
- ],
3058
- headerParameters: [accept],
3059
- serializer: serializer$1
3060
- };
3061
- const getOperationSpec$1 = {
3062
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3063
- httpMethod: "GET",
3064
- responses: {
3065
- 200: {
3066
- bodyMapper: PrivateEndpointConnection
3067
- },
3068
- default: {
3069
- bodyMapper: ErrorResponse
3070
- }
3071
- },
3072
- queryParameters: [apiVersion],
3073
- urlParameters: [
3074
- $host,
3075
- subscriptionId,
3076
- resourceGroupName,
3077
- resourceName,
3078
- privateEndpointConnectionName
3079
- ],
3080
- headerParameters: [accept],
3081
- serializer: serializer$1
3082
- };
3083
- const deleteOperationSpec$1 = {
3084
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3085
- httpMethod: "DELETE",
3086
- responses: {
3087
- 200: {},
3088
- 201: {},
3089
- 202: {},
3090
- 204: {},
3091
- default: {
3092
- bodyMapper: ErrorResponse
3093
- }
3094
- },
3095
- queryParameters: [apiVersion],
3096
- urlParameters: [
3097
- $host,
3098
- subscriptionId,
3099
- resourceGroupName,
3100
- resourceName,
3101
- privateEndpointConnectionName
3102
- ],
3103
- headerParameters: [accept],
3104
- serializer: serializer$1
3105
- };
3106
- const createOrUpdateOperationSpec$1 = {
3107
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3108
- httpMethod: "PUT",
3109
- responses: {
3110
- 200: {
3111
- bodyMapper: PrivateEndpointConnection
3112
- },
3113
- 201: {
3114
- bodyMapper: PrivateEndpointConnection
3115
- },
3116
- 202: {
3117
- bodyMapper: PrivateEndpointConnection
3118
- },
3119
- 204: {
3120
- bodyMapper: PrivateEndpointConnection
3121
- },
3122
- default: {
3123
- bodyMapper: ErrorResponse
3124
- }
3125
- },
3126
- requestBody: privateEndpointConnection,
3127
- queryParameters: [apiVersion],
3128
- urlParameters: [
3129
- $host,
3130
- subscriptionId,
3131
- resourceGroupName,
3132
- resourceName,
3133
- privateEndpointConnectionName
3134
- ],
3135
- headerParameters: [accept, contentType],
3136
- mediaType: "json",
3137
- serializer: serializer$1
3138
- };
3139
-
3140
- /*
3141
- * Copyright (c) Microsoft Corporation.
3142
- * Licensed under the MIT License.
3143
- *
3144
- * Code generated by Microsoft (R) AutoRest Code Generator.
3145
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3146
- */
3147
- /// <reference lib="esnext.asynciterable" />
3148
- /** Class containing TimeSeriesDatabaseConnections operations. */
3149
- class TimeSeriesDatabaseConnectionsImpl {
3150
- /**
3151
- * Initialize a new instance of the class TimeSeriesDatabaseConnections class.
3152
- * @param client Reference to the service client
3153
- */
3154
- constructor(client) {
3155
- this.client = client;
3156
- }
3157
- /**
3158
- * Get all existing time series database connections for this DigitalTwins instance.
3159
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3160
- * @param resourceName The name of the DigitalTwinsInstance.
3161
- * @param options The options parameters.
3162
- */
3163
- list(resourceGroupName, resourceName, options) {
3164
- const iter = this.listPagingAll(resourceGroupName, resourceName, options);
3165
- return {
3166
- next() {
3167
- return iter.next();
3168
- },
3169
- [Symbol.asyncIterator]() {
3170
- return this;
3171
- },
3172
- byPage: (settings) => {
3173
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3174
- throw new Error("maxPageSize is not supported by this operation.");
3175
- }
3176
- return this.listPagingPage(resourceGroupName, resourceName, options, settings);
3177
- }
3178
- };
3179
- }
3180
- listPagingPage(resourceGroupName, resourceName, options, settings) {
3181
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3182
- let result;
3183
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3184
- if (!continuationToken) {
3185
- result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
3186
- let page = result.value || [];
3187
- continuationToken = result.nextLink;
3188
- setContinuationToken(page, continuationToken);
3189
- yield yield tslib.__await(page);
3190
- }
3191
- while (continuationToken) {
3192
- result = yield tslib.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
3193
- continuationToken = result.nextLink;
3194
- let page = result.value || [];
3195
- setContinuationToken(page, continuationToken);
3196
- yield yield tslib.__await(page);
3197
- }
3198
- });
3199
- }
3200
- listPagingAll(resourceGroupName, resourceName, options) {
3201
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3202
- var _a, e_1, _b, _c;
3203
- try {
3204
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3205
- _c = _f.value;
3206
- _d = false;
3207
- const page = _c;
3208
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3209
- }
3210
- }
3211
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3212
- finally {
3213
- try {
3214
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3215
- }
3216
- finally { if (e_1) throw e_1.error; }
3217
- }
3218
- });
3219
- }
3220
- /**
3221
- * Get all existing time series database connections for this DigitalTwins instance.
3222
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3223
- * @param resourceName The name of the DigitalTwinsInstance.
3224
- * @param options The options parameters.
3225
- */
3226
- _list(resourceGroupName, resourceName, options) {
3227
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec);
3228
- }
3229
- /**
3230
- * Get the description of an existing time series database connection.
3231
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3232
- * @param resourceName The name of the DigitalTwinsInstance.
3233
- * @param timeSeriesDatabaseConnectionName Name of time series database connection.
3234
- * @param options The options parameters.
3235
- */
3236
- get(resourceGroupName, resourceName, timeSeriesDatabaseConnectionName, options) {
3237
- return this.client.sendOperationRequest({
3238
- resourceGroupName,
3239
- resourceName,
3240
- timeSeriesDatabaseConnectionName,
3241
- options
3242
- }, getOperationSpec);
3243
- }
3244
- /**
3245
- * Create or update a time series database connection.
3246
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3247
- * @param resourceName The name of the DigitalTwinsInstance.
3248
- * @param timeSeriesDatabaseConnectionName Name of time series database connection.
3249
- * @param timeSeriesDatabaseConnectionDescription The time series database connection description.
3250
- * @param options The options parameters.
3251
- */
3252
- beginCreateOrUpdate(resourceGroupName, resourceName, timeSeriesDatabaseConnectionName, timeSeriesDatabaseConnectionDescription, options) {
3253
- return tslib.__awaiter(this, undefined, undefined, function* () {
3254
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3255
- return this.client.sendOperationRequest(args, spec);
3256
- });
3257
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3258
- var _a;
3259
- let currentRawResponse = undefined;
3260
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3261
- const callback = (rawResponse, flatResponse) => {
3262
- currentRawResponse = rawResponse;
3263
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3264
- };
3265
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3266
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3267
- return {
3268
- flatResponse,
3269
- rawResponse: {
3270
- statusCode: currentRawResponse.status,
3271
- body: currentRawResponse.parsedBody,
3272
- headers: currentRawResponse.headers.toJSON()
3273
- }
3274
- };
3275
- });
3276
- const lro = createLroSpec({
3277
- sendOperationFn,
3278
- args: {
3279
- resourceGroupName,
3280
- resourceName,
3281
- timeSeriesDatabaseConnectionName,
3282
- timeSeriesDatabaseConnectionDescription,
3283
- options
3284
- },
3285
- spec: createOrUpdateOperationSpec
3286
- });
3287
- const poller = yield coreLro.createHttpPoller(lro, {
3288
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3289
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3290
- });
3291
- yield poller.poll();
3292
- return poller;
3293
- });
3294
- }
3295
- /**
3296
- * Create or update a time series database connection.
3297
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3298
- * @param resourceName The name of the DigitalTwinsInstance.
3299
- * @param timeSeriesDatabaseConnectionName Name of time series database connection.
3300
- * @param timeSeriesDatabaseConnectionDescription The time series database connection description.
3301
- * @param options The options parameters.
3302
- */
3303
- beginCreateOrUpdateAndWait(resourceGroupName, resourceName, timeSeriesDatabaseConnectionName, timeSeriesDatabaseConnectionDescription, options) {
3304
- return tslib.__awaiter(this, undefined, undefined, function* () {
3305
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, timeSeriesDatabaseConnectionName, timeSeriesDatabaseConnectionDescription, options);
3306
- return poller.pollUntilDone();
3307
- });
3308
- }
3309
- /**
3310
- * Delete a time series database connection.
3311
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3312
- * @param resourceName The name of the DigitalTwinsInstance.
3313
- * @param timeSeriesDatabaseConnectionName Name of time series database connection.
3314
- * @param options The options parameters.
3315
- */
3316
- beginDelete(resourceGroupName, resourceName, timeSeriesDatabaseConnectionName, options) {
3317
- return tslib.__awaiter(this, undefined, undefined, function* () {
3318
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3319
- return this.client.sendOperationRequest(args, spec);
3320
- });
3321
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3322
- var _a;
3323
- let currentRawResponse = undefined;
3324
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3325
- const callback = (rawResponse, flatResponse) => {
3326
- currentRawResponse = rawResponse;
3327
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3328
- };
3329
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3330
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3331
- return {
3332
- flatResponse,
3333
- rawResponse: {
3334
- statusCode: currentRawResponse.status,
3335
- body: currentRawResponse.parsedBody,
3336
- headers: currentRawResponse.headers.toJSON()
3337
- }
3338
- };
3339
- });
3340
- const lro = createLroSpec({
3341
- sendOperationFn,
3342
- args: {
3343
- resourceGroupName,
3344
- resourceName,
3345
- timeSeriesDatabaseConnectionName,
3346
- options
3347
- },
3348
- spec: deleteOperationSpec
3349
- });
3350
- const poller = yield coreLro.createHttpPoller(lro, {
3351
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3352
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3353
- });
3354
- yield poller.poll();
3355
- return poller;
3356
- });
3357
- }
3358
- /**
3359
- * Delete a time series database connection.
3360
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3361
- * @param resourceName The name of the DigitalTwinsInstance.
3362
- * @param timeSeriesDatabaseConnectionName Name of time series database connection.
3363
- * @param options The options parameters.
3364
- */
3365
- beginDeleteAndWait(resourceGroupName, resourceName, timeSeriesDatabaseConnectionName, options) {
3366
- return tslib.__awaiter(this, undefined, undefined, function* () {
3367
- const poller = yield this.beginDelete(resourceGroupName, resourceName, timeSeriesDatabaseConnectionName, options);
3368
- return poller.pollUntilDone();
3369
- });
3370
- }
3371
- /**
3372
- * ListNext
3373
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
3374
- * @param resourceName The name of the DigitalTwinsInstance.
3375
- * @param nextLink The nextLink from the previous successful call to the List method.
3376
- * @param options The options parameters.
3377
- */
3378
- _listNext(resourceGroupName, resourceName, nextLink, options) {
3379
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec);
3380
- }
3381
- }
3382
- // Operation Specifications
3383
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3384
- const listOperationSpec = {
3385
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/timeSeriesDatabaseConnections",
3386
- httpMethod: "GET",
3387
- responses: {
3388
- 200: {
3389
- bodyMapper: TimeSeriesDatabaseConnectionListResult
3390
- },
3391
- default: {
3392
- bodyMapper: ErrorResponse
3393
- }
3394
- },
3395
- queryParameters: [apiVersion],
3396
- urlParameters: [
3397
- $host,
3398
- subscriptionId,
3399
- resourceGroupName,
3400
- resourceName
3401
- ],
3402
- headerParameters: [accept],
3403
- serializer
3404
- };
3405
- const getOperationSpec = {
3406
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/timeSeriesDatabaseConnections/{timeSeriesDatabaseConnectionName}",
3407
- httpMethod: "GET",
3408
- responses: {
3409
- 200: {
3410
- bodyMapper: TimeSeriesDatabaseConnection
3411
- },
3412
- default: {
3413
- bodyMapper: ErrorResponse
3414
- }
3415
- },
3416
- queryParameters: [apiVersion],
3417
- urlParameters: [
3418
- $host,
3419
- subscriptionId,
3420
- resourceGroupName,
3421
- resourceName,
3422
- timeSeriesDatabaseConnectionName
3423
- ],
3424
- headerParameters: [accept],
3425
- serializer
3426
- };
3427
- const createOrUpdateOperationSpec = {
3428
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/timeSeriesDatabaseConnections/{timeSeriesDatabaseConnectionName}",
3429
- httpMethod: "PUT",
3430
- responses: {
3431
- 200: {
3432
- bodyMapper: TimeSeriesDatabaseConnection
3433
- },
3434
- 201: {
3435
- bodyMapper: TimeSeriesDatabaseConnection
3436
- },
3437
- 202: {
3438
- bodyMapper: TimeSeriesDatabaseConnection
3439
- },
3440
- 204: {
3441
- bodyMapper: TimeSeriesDatabaseConnection
3442
- },
3443
- default: {
3444
- bodyMapper: ErrorResponse
3445
- }
3446
- },
3447
- requestBody: timeSeriesDatabaseConnectionDescription,
3448
- queryParameters: [apiVersion],
3449
- urlParameters: [
3450
- $host,
3451
- subscriptionId,
3452
- resourceGroupName,
3453
- resourceName,
3454
- timeSeriesDatabaseConnectionName
3455
- ],
3456
- headerParameters: [accept, contentType],
3457
- mediaType: "json",
3458
- serializer
3459
- };
3460
- const deleteOperationSpec = {
3461
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/timeSeriesDatabaseConnections/{timeSeriesDatabaseConnectionName}",
3462
- httpMethod: "DELETE",
3463
- responses: {
3464
- 200: {
3465
- bodyMapper: TimeSeriesDatabaseConnection
3466
- },
3467
- 201: {
3468
- bodyMapper: TimeSeriesDatabaseConnection
3469
- },
3470
- 202: {
3471
- bodyMapper: TimeSeriesDatabaseConnection
3472
- },
3473
- 204: {
3474
- bodyMapper: TimeSeriesDatabaseConnection
3475
- },
3476
- default: {
3477
- bodyMapper: ErrorResponse
3478
- }
3479
- },
3480
- queryParameters: [
3481
- apiVersion,
3482
- cleanupConnectionArtifacts
3483
- ],
3484
- urlParameters: [
3485
- $host,
3486
- subscriptionId,
3487
- resourceGroupName,
3488
- resourceName,
3489
- timeSeriesDatabaseConnectionName
3490
- ],
3491
- headerParameters: [accept],
3492
- serializer
3493
- };
3494
- const listNextOperationSpec = {
3495
- path: "{nextLink}",
3496
- httpMethod: "GET",
3497
- responses: {
3498
- 200: {
3499
- bodyMapper: TimeSeriesDatabaseConnectionListResult
3500
- },
3501
- default: {
3502
- bodyMapper: ErrorResponse
3503
- }
3504
- },
3505
- urlParameters: [
3506
- $host,
3507
- subscriptionId,
3508
- resourceGroupName,
3509
- resourceName,
3510
- nextLink
3511
- ],
3512
- headerParameters: [accept],
3513
- serializer
3514
- };
3515
-
3516
- /*
3517
- * Copyright (c) Microsoft Corporation.
3518
- * Licensed under the MIT License.
3519
- *
3520
- * Code generated by Microsoft (R) AutoRest Code Generator.
3521
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3522
- */
3523
- class AzureDigitalTwinsManagementClient extends coreClient__namespace.ServiceClient {
3524
- /**
3525
- * Initializes a new instance of the AzureDigitalTwinsManagementClient class.
3526
- * @param credentials Subscription credentials which uniquely identify client subscription.
3527
- * @param subscriptionId The subscription identifier.
3528
- * @param options The parameter options
3529
- */
3530
- constructor(credentials, subscriptionId, options) {
3531
- var _a, _b, _c;
3532
- if (credentials === undefined) {
3533
- throw new Error("'credentials' cannot be null");
3534
- }
3535
- if (subscriptionId === undefined) {
3536
- throw new Error("'subscriptionId' cannot be null");
3537
- }
3538
- // Initializing default values for options
3539
- if (!options) {
3540
- options = {};
3541
- }
3542
- const defaults = {
3543
- requestContentType: "application/json; charset=utf-8",
3544
- credential: credentials
3545
- };
3546
- const packageDetails = `azsdk-js-arm-digitaltwins/3.3.1`;
3547
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3548
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3549
- : `${packageDetails}`;
3550
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3551
- userAgentPrefix
3552
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
3553
- super(optionsWithDefaults);
3554
- let bearerTokenAuthenticationPolicyFound = false;
3555
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3556
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3557
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3558
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3559
- }
3560
- if (!options ||
3561
- !options.pipeline ||
3562
- options.pipeline.getOrderedPolicies().length == 0 ||
3563
- !bearerTokenAuthenticationPolicyFound) {
3564
- this.pipeline.removePolicy({
3565
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3566
- });
3567
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3568
- credential: credentials,
3569
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
3570
- challengeCallbacks: {
3571
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3572
- }
3573
- }));
3574
- }
3575
- // Parameter assignments
3576
- this.subscriptionId = subscriptionId;
3577
- // Assigning values to Constant parameters
3578
- this.$host = options.$host || "https://management.azure.com";
3579
- this.apiVersion = options.apiVersion || "2023-01-31";
3580
- this.digitalTwins = new DigitalTwinsImpl(this);
3581
- this.digitalTwinsEndpoint = new DigitalTwinsEndpointImpl(this);
3582
- this.operations = new OperationsImpl(this);
3583
- this.privateLinkResources = new PrivateLinkResourcesImpl(this);
3584
- this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
3585
- this.timeSeriesDatabaseConnections = new TimeSeriesDatabaseConnectionsImpl(this);
3586
- this.addCustomApiVersionPolicy(options.apiVersion);
3587
- }
3588
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
3589
- addCustomApiVersionPolicy(apiVersion) {
3590
- if (!apiVersion) {
3591
- return;
3592
- }
3593
- const apiVersionPolicy = {
3594
- name: "CustomApiVersionPolicy",
3595
- sendRequest(request, next) {
3596
- return tslib.__awaiter(this, undefined, undefined, function* () {
3597
- const param = request.url.split("?");
3598
- if (param.length > 1) {
3599
- const newParams = param[1].split("&").map((item) => {
3600
- if (item.indexOf("api-version") > -1) {
3601
- return "api-version=" + apiVersion;
3602
- }
3603
- else {
3604
- return item;
3605
- }
3606
- });
3607
- request.url = param[0] + "?" + newParams.join("&");
3608
- }
3609
- return next(request);
3610
- });
3611
- }
3612
- };
3613
- this.pipeline.addPolicy(apiVersionPolicy);
3614
- }
3615
- }
3616
-
3617
- exports.AzureDigitalTwinsManagementClient = AzureDigitalTwinsManagementClient;
3618
- exports.getContinuationToken = getContinuationToken;
3619
- //# sourceMappingURL=index.js.map