@azure/arm-timeseriesinsights 2.1.0-beta.2 → 2.1.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (564) hide show
  1. package/CHANGELOG.md +13 -3
  2. package/LICENSE +4 -4
  3. package/README.md +26 -17
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +4 -4
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/lroImpl.js +13 -9
  9. package/dist/browser/lroImpl.js.map +1 -0
  10. package/{dist-esm/src → dist/browser}/models/index.d.ts +47 -47
  11. package/dist/browser/models/index.d.ts.map +1 -0
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/mappers.js +366 -164
  14. package/dist/browser/models/mappers.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  16. package/dist/browser/models/parameters.js.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/accessPolicies.d.ts +3 -3
  18. package/dist/browser/operations/accessPolicies.d.ts.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/accessPolicies.js +3 -2
  20. package/dist/browser/operations/accessPolicies.js.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/environments.d.ts +3 -3
  22. package/dist/browser/operations/environments.d.ts.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/environments.js +83 -81
  24. package/dist/browser/operations/environments.js.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operations/eventSources.d.ts +3 -3
  26. package/dist/browser/operations/eventSources.d.ts.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/eventSources.js +3 -2
  28. package/dist/browser/operations/eventSources.js.map +1 -0
  29. package/dist/browser/operations/index.d.ts +8 -0
  30. package/dist/browser/operations/index.d.ts.map +1 -0
  31. package/dist/browser/operations/index.js +15 -0
  32. package/dist/browser/operations/index.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  34. package/dist/browser/operations/operations.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/operations.js +26 -41
  36. package/dist/browser/operations/operations.js.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +3 -3
  38. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +3 -2
  40. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +3 -3
  42. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +12 -27
  44. package/dist/browser/operations/privateLinkResources.js.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operations/referenceDataSets.d.ts +3 -3
  46. package/dist/browser/operations/referenceDataSets.d.ts.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operations/referenceDataSets.js +3 -2
  48. package/dist/browser/operations/referenceDataSets.js.map +1 -0
  49. package/{dist-esm/src → dist/browser}/operationsInterfaces/accessPolicies.d.ts +1 -1
  50. package/dist/browser/operationsInterfaces/accessPolicies.d.ts.map +1 -0
  51. package/dist/browser/operationsInterfaces/accessPolicies.js.map +1 -0
  52. package/{dist-esm/src → dist/browser}/operationsInterfaces/environments.d.ts +1 -1
  53. package/dist/browser/operationsInterfaces/environments.d.ts.map +1 -0
  54. package/dist/browser/operationsInterfaces/environments.js.map +1 -0
  55. package/{dist-esm/src → dist/browser}/operationsInterfaces/eventSources.d.ts +1 -1
  56. package/dist/browser/operationsInterfaces/eventSources.d.ts.map +1 -0
  57. package/dist/browser/operationsInterfaces/eventSources.js.map +1 -0
  58. package/dist/browser/operationsInterfaces/index.d.ts +8 -0
  59. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  60. package/dist/browser/operationsInterfaces/index.js +15 -0
  61. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  62. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  63. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  64. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  65. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
  66. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  67. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  68. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +1 -1
  69. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  70. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
  71. package/{dist-esm/src → dist/browser}/operationsInterfaces/referenceDataSets.d.ts +1 -1
  72. package/dist/browser/operationsInterfaces/referenceDataSets.d.ts.map +1 -0
  73. package/dist/browser/operationsInterfaces/referenceDataSets.js.map +1 -0
  74. package/dist/browser/package.json +3 -0
  75. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  76. package/dist/browser/pagingHelper.js.map +1 -0
  77. package/{dist-esm/src → dist/browser}/timeSeriesInsightsClient.d.ts +2 -2
  78. package/dist/browser/timeSeriesInsightsClient.d.ts.map +1 -0
  79. package/{dist-esm/src → dist/browser}/timeSeriesInsightsClient.js +36 -24
  80. package/dist/browser/timeSeriesInsightsClient.js.map +1 -0
  81. package/dist/commonjs/index.d.ts +5 -0
  82. package/dist/commonjs/index.d.ts.map +1 -0
  83. package/dist/commonjs/index.js +19 -0
  84. package/dist/commonjs/index.js.map +1 -0
  85. package/dist/commonjs/lroImpl.d.ts +16 -0
  86. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  87. package/dist/commonjs/lroImpl.js +37 -0
  88. package/dist/commonjs/lroImpl.js.map +1 -0
  89. package/{types/arm-timeseriesinsights.d.ts → dist/commonjs/models/index.d.ts} +1320 -1830
  90. package/dist/commonjs/models/index.d.ts.map +1 -0
  91. package/dist/commonjs/models/index.js +183 -0
  92. package/dist/commonjs/models/index.js.map +1 -0
  93. package/dist/commonjs/models/mappers.d.ts +100 -0
  94. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  95. package/dist/commonjs/models/mappers.js +2372 -0
  96. package/dist/commonjs/models/mappers.js.map +1 -0
  97. package/dist/commonjs/models/parameters.d.ts +28 -0
  98. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  99. package/dist/commonjs/models/parameters.js +242 -0
  100. package/dist/commonjs/models/parameters.js.map +1 -0
  101. package/dist/commonjs/operations/accessPolicies.d.ts +65 -0
  102. package/dist/commonjs/operations/accessPolicies.d.ts.map +1 -0
  103. package/dist/commonjs/operations/accessPolicies.js +218 -0
  104. package/dist/commonjs/operations/accessPolicies.js.map +1 -0
  105. package/dist/commonjs/operations/environments.d.ts +78 -0
  106. package/dist/commonjs/operations/environments.d.ts.map +1 -0
  107. package/dist/commonjs/operations/environments.js +325 -0
  108. package/dist/commonjs/operations/environments.js.map +1 -0
  109. package/dist/commonjs/operations/eventSources.d.ts +66 -0
  110. package/dist/commonjs/operations/eventSources.d.ts.map +1 -0
  111. package/dist/commonjs/operations/eventSources.js +219 -0
  112. package/dist/commonjs/operations/eventSources.js.map +1 -0
  113. package/dist/commonjs/operations/index.d.ts +8 -0
  114. package/dist/commonjs/operations/index.d.ts.map +1 -0
  115. package/dist/commonjs/operations/index.js +18 -0
  116. package/dist/commonjs/operations/index.js.map +1 -0
  117. package/dist/commonjs/operations/operations.d.ts +32 -0
  118. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  119. package/dist/commonjs/operations/operations.js +121 -0
  120. package/dist/commonjs/operations/operations.js.map +1 -0
  121. package/dist/commonjs/operations/privateEndpointConnections.d.ts +52 -0
  122. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  123. package/dist/commonjs/operations/privateEndpointConnections.js +183 -0
  124. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  125. package/dist/commonjs/operations/privateLinkResources.d.ts +32 -0
  126. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
  127. package/dist/commonjs/operations/privateLinkResources.js +95 -0
  128. package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
  129. package/dist/commonjs/operations/referenceDataSets.d.ts +66 -0
  130. package/dist/commonjs/operations/referenceDataSets.d.ts.map +1 -0
  131. package/dist/commonjs/operations/referenceDataSets.js +219 -0
  132. package/dist/commonjs/operations/referenceDataSets.js.map +1 -0
  133. package/dist/commonjs/operationsInterfaces/accessPolicies.d.ts +57 -0
  134. package/dist/commonjs/operationsInterfaces/accessPolicies.d.ts.map +1 -0
  135. package/dist/commonjs/operationsInterfaces/accessPolicies.js +10 -0
  136. package/dist/commonjs/operationsInterfaces/accessPolicies.js.map +1 -0
  137. package/dist/commonjs/operationsInterfaces/environments.d.ts +70 -0
  138. package/dist/commonjs/operationsInterfaces/environments.d.ts.map +1 -0
  139. package/dist/commonjs/operationsInterfaces/environments.js +10 -0
  140. package/dist/commonjs/operationsInterfaces/environments.js.map +1 -0
  141. package/dist/commonjs/operationsInterfaces/eventSources.d.ts +58 -0
  142. package/dist/commonjs/operationsInterfaces/eventSources.d.ts.map +1 -0
  143. package/dist/commonjs/operationsInterfaces/eventSources.js +10 -0
  144. package/dist/commonjs/operationsInterfaces/eventSources.js.map +1 -0
  145. package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
  146. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  147. package/dist/commonjs/operationsInterfaces/index.js +18 -0
  148. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  149. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  150. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  151. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  152. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  153. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +44 -0
  154. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  155. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  156. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  157. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +14 -0
  158. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  159. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
  160. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
  161. package/dist/commonjs/operationsInterfaces/referenceDataSets.d.ts +58 -0
  162. package/dist/commonjs/operationsInterfaces/referenceDataSets.d.ts.map +1 -0
  163. package/dist/commonjs/operationsInterfaces/referenceDataSets.js +10 -0
  164. package/dist/commonjs/operationsInterfaces/referenceDataSets.js.map +1 -0
  165. package/dist/commonjs/package.json +3 -0
  166. package/dist/commonjs/pagingHelper.d.ts +13 -0
  167. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  168. package/dist/commonjs/pagingHelper.js +34 -0
  169. package/dist/commonjs/pagingHelper.js.map +1 -0
  170. package/dist/commonjs/timeSeriesInsightsClient.d.ts +26 -0
  171. package/dist/commonjs/timeSeriesInsightsClient.d.ts.map +1 -0
  172. package/dist/commonjs/timeSeriesInsightsClient.js +123 -0
  173. package/dist/commonjs/timeSeriesInsightsClient.js.map +1 -0
  174. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  175. package/dist/esm/index.d.ts +5 -0
  176. package/dist/esm/index.d.ts.map +1 -0
  177. package/{src/index.ts → dist/esm/index.js} +5 -5
  178. package/dist/esm/index.js.map +1 -0
  179. package/dist/esm/lroImpl.d.ts +16 -0
  180. package/dist/esm/lroImpl.d.ts.map +1 -0
  181. package/dist/esm/lroImpl.js +33 -0
  182. package/dist/esm/lroImpl.js.map +1 -0
  183. package/dist/esm/models/index.d.ts +1320 -0
  184. package/dist/esm/models/index.d.ts.map +1 -0
  185. package/dist/esm/models/index.js +180 -0
  186. package/dist/esm/models/index.js.map +1 -0
  187. package/dist/esm/models/mappers.d.ts +100 -0
  188. package/dist/esm/models/mappers.d.ts.map +1 -0
  189. package/dist/esm/models/mappers.js +2368 -0
  190. package/dist/esm/models/mappers.js.map +1 -0
  191. package/dist/esm/models/parameters.d.ts +28 -0
  192. package/dist/esm/models/parameters.d.ts.map +1 -0
  193. package/dist/esm/models/parameters.js +239 -0
  194. package/dist/esm/models/parameters.js.map +1 -0
  195. package/dist/esm/operations/accessPolicies.d.ts +65 -0
  196. package/dist/esm/operations/accessPolicies.d.ts.map +1 -0
  197. package/dist/esm/operations/accessPolicies.js +213 -0
  198. package/dist/esm/operations/accessPolicies.js.map +1 -0
  199. package/dist/esm/operations/environments.d.ts +78 -0
  200. package/dist/esm/operations/environments.d.ts.map +1 -0
  201. package/dist/esm/operations/environments.js +320 -0
  202. package/dist/esm/operations/environments.js.map +1 -0
  203. package/dist/esm/operations/eventSources.d.ts +66 -0
  204. package/dist/esm/operations/eventSources.d.ts.map +1 -0
  205. package/dist/esm/operations/eventSources.js +214 -0
  206. package/dist/esm/operations/eventSources.js.map +1 -0
  207. package/dist/esm/operations/index.d.ts +8 -0
  208. package/dist/esm/operations/index.d.ts.map +1 -0
  209. package/dist/esm/operations/index.js +15 -0
  210. package/dist/esm/operations/index.js.map +1 -0
  211. package/dist/esm/operations/operations.d.ts +32 -0
  212. package/dist/esm/operations/operations.d.ts.map +1 -0
  213. package/dist/esm/operations/operations.js +116 -0
  214. package/dist/esm/operations/operations.js.map +1 -0
  215. package/dist/esm/operations/privateEndpointConnections.d.ts +52 -0
  216. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  217. package/dist/esm/operations/privateEndpointConnections.js +178 -0
  218. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  219. package/dist/esm/operations/privateLinkResources.d.ts +32 -0
  220. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
  221. package/dist/esm/operations/privateLinkResources.js +90 -0
  222. package/dist/esm/operations/privateLinkResources.js.map +1 -0
  223. package/dist/esm/operations/referenceDataSets.d.ts +66 -0
  224. package/dist/esm/operations/referenceDataSets.d.ts.map +1 -0
  225. package/dist/esm/operations/referenceDataSets.js +214 -0
  226. package/dist/esm/operations/referenceDataSets.js.map +1 -0
  227. package/dist/esm/operationsInterfaces/accessPolicies.d.ts +57 -0
  228. package/dist/esm/operationsInterfaces/accessPolicies.d.ts.map +1 -0
  229. package/dist/esm/operationsInterfaces/accessPolicies.js +9 -0
  230. package/dist/esm/operationsInterfaces/accessPolicies.js.map +1 -0
  231. package/dist/esm/operationsInterfaces/environments.d.ts +70 -0
  232. package/dist/esm/operationsInterfaces/environments.d.ts.map +1 -0
  233. package/dist/esm/operationsInterfaces/environments.js +9 -0
  234. package/dist/esm/operationsInterfaces/environments.js.map +1 -0
  235. package/dist/esm/operationsInterfaces/eventSources.d.ts +58 -0
  236. package/dist/esm/operationsInterfaces/eventSources.d.ts.map +1 -0
  237. package/dist/esm/operationsInterfaces/eventSources.js +9 -0
  238. package/dist/esm/operationsInterfaces/eventSources.js.map +1 -0
  239. package/dist/esm/operationsInterfaces/index.d.ts +8 -0
  240. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  241. package/dist/esm/operationsInterfaces/index.js +15 -0
  242. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  243. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  244. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  245. package/dist/esm/operationsInterfaces/operations.js +9 -0
  246. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  247. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +44 -0
  248. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  249. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  250. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  251. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +14 -0
  252. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  253. package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
  254. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  255. package/dist/esm/operationsInterfaces/referenceDataSets.d.ts +58 -0
  256. package/dist/esm/operationsInterfaces/referenceDataSets.d.ts.map +1 -0
  257. package/dist/esm/operationsInterfaces/referenceDataSets.js +9 -0
  258. package/dist/esm/operationsInterfaces/referenceDataSets.js.map +1 -0
  259. package/dist/esm/package.json +3 -0
  260. package/dist/esm/pagingHelper.d.ts +13 -0
  261. package/dist/esm/pagingHelper.d.ts.map +1 -0
  262. package/dist/esm/pagingHelper.js +30 -0
  263. package/dist/esm/pagingHelper.js.map +1 -0
  264. package/dist/esm/timeSeriesInsightsClient.d.ts +26 -0
  265. package/dist/esm/timeSeriesInsightsClient.d.ts.map +1 -0
  266. package/dist/esm/timeSeriesInsightsClient.js +118 -0
  267. package/dist/esm/timeSeriesInsightsClient.js.map +1 -0
  268. package/dist/react-native/index.d.ts +5 -0
  269. package/dist/react-native/index.d.ts.map +1 -0
  270. package/dist/react-native/index.js +13 -0
  271. package/dist/react-native/index.js.map +1 -0
  272. package/dist/react-native/lroImpl.d.ts +16 -0
  273. package/dist/react-native/lroImpl.d.ts.map +1 -0
  274. package/dist/react-native/lroImpl.js +33 -0
  275. package/dist/react-native/lroImpl.js.map +1 -0
  276. package/dist/react-native/models/index.d.ts +1320 -0
  277. package/dist/react-native/models/index.d.ts.map +1 -0
  278. package/dist/react-native/models/index.js +180 -0
  279. package/dist/react-native/models/index.js.map +1 -0
  280. package/dist/react-native/models/mappers.d.ts +100 -0
  281. package/dist/react-native/models/mappers.d.ts.map +1 -0
  282. package/dist/react-native/models/mappers.js +2368 -0
  283. package/dist/react-native/models/mappers.js.map +1 -0
  284. package/dist/react-native/models/parameters.d.ts +28 -0
  285. package/dist/react-native/models/parameters.d.ts.map +1 -0
  286. package/dist/react-native/models/parameters.js +239 -0
  287. package/dist/react-native/models/parameters.js.map +1 -0
  288. package/dist/react-native/operations/accessPolicies.d.ts +65 -0
  289. package/dist/react-native/operations/accessPolicies.d.ts.map +1 -0
  290. package/dist/react-native/operations/accessPolicies.js +213 -0
  291. package/dist/react-native/operations/accessPolicies.js.map +1 -0
  292. package/dist/react-native/operations/environments.d.ts +78 -0
  293. package/dist/react-native/operations/environments.d.ts.map +1 -0
  294. package/dist/react-native/operations/environments.js +320 -0
  295. package/dist/react-native/operations/environments.js.map +1 -0
  296. package/dist/react-native/operations/eventSources.d.ts +66 -0
  297. package/dist/react-native/operations/eventSources.d.ts.map +1 -0
  298. package/dist/react-native/operations/eventSources.js +214 -0
  299. package/dist/react-native/operations/eventSources.js.map +1 -0
  300. package/dist/react-native/operations/index.d.ts +8 -0
  301. package/dist/react-native/operations/index.d.ts.map +1 -0
  302. package/dist/react-native/operations/index.js +15 -0
  303. package/dist/react-native/operations/index.js.map +1 -0
  304. package/dist/react-native/operations/operations.d.ts +32 -0
  305. package/dist/react-native/operations/operations.d.ts.map +1 -0
  306. package/dist/react-native/operations/operations.js +116 -0
  307. package/dist/react-native/operations/operations.js.map +1 -0
  308. package/dist/react-native/operations/privateEndpointConnections.d.ts +52 -0
  309. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  310. package/dist/react-native/operations/privateEndpointConnections.js +178 -0
  311. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  312. package/dist/react-native/operations/privateLinkResources.d.ts +32 -0
  313. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
  314. package/dist/react-native/operations/privateLinkResources.js +90 -0
  315. package/dist/react-native/operations/privateLinkResources.js.map +1 -0
  316. package/dist/react-native/operations/referenceDataSets.d.ts +66 -0
  317. package/dist/react-native/operations/referenceDataSets.d.ts.map +1 -0
  318. package/dist/react-native/operations/referenceDataSets.js +214 -0
  319. package/dist/react-native/operations/referenceDataSets.js.map +1 -0
  320. package/dist/react-native/operationsInterfaces/accessPolicies.d.ts +57 -0
  321. package/dist/react-native/operationsInterfaces/accessPolicies.d.ts.map +1 -0
  322. package/dist/react-native/operationsInterfaces/accessPolicies.js +9 -0
  323. package/dist/react-native/operationsInterfaces/accessPolicies.js.map +1 -0
  324. package/dist/react-native/operationsInterfaces/environments.d.ts +70 -0
  325. package/dist/react-native/operationsInterfaces/environments.d.ts.map +1 -0
  326. package/dist/react-native/operationsInterfaces/environments.js +9 -0
  327. package/dist/react-native/operationsInterfaces/environments.js.map +1 -0
  328. package/dist/react-native/operationsInterfaces/eventSources.d.ts +58 -0
  329. package/dist/react-native/operationsInterfaces/eventSources.d.ts.map +1 -0
  330. package/dist/react-native/operationsInterfaces/eventSources.js +9 -0
  331. package/dist/react-native/operationsInterfaces/eventSources.js.map +1 -0
  332. package/dist/react-native/operationsInterfaces/index.d.ts +8 -0
  333. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  334. package/dist/react-native/operationsInterfaces/index.js +15 -0
  335. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  336. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  337. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  338. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  339. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  340. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +44 -0
  341. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  342. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  343. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  344. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +14 -0
  345. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  346. package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
  347. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
  348. package/dist/react-native/operationsInterfaces/referenceDataSets.d.ts +58 -0
  349. package/dist/react-native/operationsInterfaces/referenceDataSets.d.ts.map +1 -0
  350. package/dist/react-native/operationsInterfaces/referenceDataSets.js +9 -0
  351. package/dist/react-native/operationsInterfaces/referenceDataSets.js.map +1 -0
  352. package/dist/react-native/package.json +3 -0
  353. package/dist/react-native/pagingHelper.d.ts +13 -0
  354. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  355. package/dist/react-native/pagingHelper.js +30 -0
  356. package/dist/react-native/pagingHelper.js.map +1 -0
  357. package/dist/react-native/timeSeriesInsightsClient.d.ts +26 -0
  358. package/dist/react-native/timeSeriesInsightsClient.d.ts.map +1 -0
  359. package/dist/react-native/timeSeriesInsightsClient.js +118 -0
  360. package/dist/react-native/timeSeriesInsightsClient.js.map +1 -0
  361. package/package.json +84 -73
  362. package/dist/index.js +0 -4204
  363. package/dist/index.js.map +0 -1
  364. package/dist/index.min.js +0 -1
  365. package/dist/index.min.js.map +0 -1
  366. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.d.ts +0 -2
  367. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.d.ts.map +0 -1
  368. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.js +0 -44
  369. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.js.map +0 -1
  370. package/dist-esm/samples-dev/accessPoliciesDeleteSample.d.ts +0 -2
  371. package/dist-esm/samples-dev/accessPoliciesDeleteSample.d.ts.map +0 -1
  372. package/dist-esm/samples-dev/accessPoliciesDeleteSample.js +0 -39
  373. package/dist-esm/samples-dev/accessPoliciesDeleteSample.js.map +0 -1
  374. package/dist-esm/samples-dev/accessPoliciesGetSample.d.ts +0 -2
  375. package/dist-esm/samples-dev/accessPoliciesGetSample.d.ts.map +0 -1
  376. package/dist-esm/samples-dev/accessPoliciesGetSample.js +0 -39
  377. package/dist-esm/samples-dev/accessPoliciesGetSample.js.map +0 -1
  378. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.d.ts +0 -2
  379. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.d.ts.map +0 -1
  380. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.js +0 -38
  381. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.js.map +0 -1
  382. package/dist-esm/samples-dev/accessPoliciesUpdateSample.d.ts +0 -2
  383. package/dist-esm/samples-dev/accessPoliciesUpdateSample.d.ts.map +0 -1
  384. package/dist-esm/samples-dev/accessPoliciesUpdateSample.js +0 -42
  385. package/dist-esm/samples-dev/accessPoliciesUpdateSample.js.map +0 -1
  386. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.d.ts +0 -2
  387. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.d.ts.map +0 -1
  388. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.js +0 -45
  389. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.js.map +0 -1
  390. package/dist-esm/samples-dev/environmentsDeleteSample.d.ts +0 -2
  391. package/dist-esm/samples-dev/environmentsDeleteSample.d.ts.map +0 -1
  392. package/dist-esm/samples-dev/environmentsDeleteSample.js +0 -38
  393. package/dist-esm/samples-dev/environmentsDeleteSample.js.map +0 -1
  394. package/dist-esm/samples-dev/environmentsGetSample.d.ts +0 -2
  395. package/dist-esm/samples-dev/environmentsGetSample.d.ts.map +0 -1
  396. package/dist-esm/samples-dev/environmentsGetSample.js +0 -38
  397. package/dist-esm/samples-dev/environmentsGetSample.js.map +0 -1
  398. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.d.ts +0 -2
  399. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.d.ts.map +0 -1
  400. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.js +0 -37
  401. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.js.map +0 -1
  402. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.d.ts +0 -2
  403. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.d.ts.map +0 -1
  404. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.js +0 -36
  405. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.js.map +0 -1
  406. package/dist-esm/samples-dev/environmentsUpdateSample.d.ts +0 -2
  407. package/dist-esm/samples-dev/environmentsUpdateSample.d.ts.map +0 -1
  408. package/dist-esm/samples-dev/environmentsUpdateSample.js +0 -42
  409. package/dist-esm/samples-dev/environmentsUpdateSample.js.map +0 -1
  410. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.d.ts +0 -2
  411. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.d.ts.map +0 -1
  412. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.js +0 -87
  413. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.js.map +0 -1
  414. package/dist-esm/samples-dev/eventSourcesDeleteSample.d.ts +0 -2
  415. package/dist-esm/samples-dev/eventSourcesDeleteSample.d.ts.map +0 -1
  416. package/dist-esm/samples-dev/eventSourcesDeleteSample.js +0 -39
  417. package/dist-esm/samples-dev/eventSourcesDeleteSample.js.map +0 -1
  418. package/dist-esm/samples-dev/eventSourcesGetSample.d.ts +0 -2
  419. package/dist-esm/samples-dev/eventSourcesGetSample.d.ts.map +0 -1
  420. package/dist-esm/samples-dev/eventSourcesGetSample.js +0 -39
  421. package/dist-esm/samples-dev/eventSourcesGetSample.js.map +0 -1
  422. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.d.ts +0 -2
  423. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.d.ts.map +0 -1
  424. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.js +0 -38
  425. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.js.map +0 -1
  426. package/dist-esm/samples-dev/eventSourcesUpdateSample.d.ts +0 -2
  427. package/dist-esm/samples-dev/eventSourcesUpdateSample.d.ts.map +0 -1
  428. package/dist-esm/samples-dev/eventSourcesUpdateSample.js +0 -43
  429. package/dist-esm/samples-dev/eventSourcesUpdateSample.js.map +0 -1
  430. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  431. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  432. package/dist-esm/samples-dev/operationsListSample.js +0 -51
  433. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  434. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +0 -2
  435. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +0 -1
  436. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +0 -45
  437. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +0 -1
  438. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  439. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  440. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -39
  441. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  442. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  443. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  444. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -39
  445. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  446. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.d.ts +0 -2
  447. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.d.ts.map +0 -1
  448. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.js +0 -38
  449. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.js.map +0 -1
  450. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.d.ts +0 -2
  451. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.d.ts.map +0 -1
  452. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +0 -52
  453. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +0 -1
  454. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.d.ts +0 -2
  455. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.d.ts.map +0 -1
  456. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.js +0 -46
  457. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.js.map +0 -1
  458. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.d.ts +0 -2
  459. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.d.ts.map +0 -1
  460. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.js +0 -39
  461. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.js.map +0 -1
  462. package/dist-esm/samples-dev/referenceDataSetsGetSample.d.ts +0 -2
  463. package/dist-esm/samples-dev/referenceDataSetsGetSample.d.ts.map +0 -1
  464. package/dist-esm/samples-dev/referenceDataSetsGetSample.js +0 -39
  465. package/dist-esm/samples-dev/referenceDataSetsGetSample.js.map +0 -1
  466. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.d.ts +0 -2
  467. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.d.ts.map +0 -1
  468. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.js +0 -38
  469. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.js.map +0 -1
  470. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.d.ts +0 -2
  471. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.d.ts.map +0 -1
  472. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.js +0 -42
  473. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.js.map +0 -1
  474. package/dist-esm/src/index.d.ts +0 -6
  475. package/dist-esm/src/index.d.ts.map +0 -1
  476. package/dist-esm/src/index.js.map +0 -1
  477. package/dist-esm/src/lroImpl.js.map +0 -1
  478. package/dist-esm/src/models/index.d.ts.map +0 -1
  479. package/dist-esm/src/models/index.js.map +0 -1
  480. package/dist-esm/src/models/mappers.js.map +0 -1
  481. package/dist-esm/src/models/parameters.js.map +0 -1
  482. package/dist-esm/src/operations/accessPolicies.d.ts.map +0 -1
  483. package/dist-esm/src/operations/accessPolicies.js.map +0 -1
  484. package/dist-esm/src/operations/environments.d.ts.map +0 -1
  485. package/dist-esm/src/operations/environments.js.map +0 -1
  486. package/dist-esm/src/operations/eventSources.d.ts.map +0 -1
  487. package/dist-esm/src/operations/eventSources.js.map +0 -1
  488. package/dist-esm/src/operations/index.d.ts +0 -8
  489. package/dist-esm/src/operations/index.d.ts.map +0 -1
  490. package/dist-esm/src/operations/index.js +0 -15
  491. package/dist-esm/src/operations/index.js.map +0 -1
  492. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  493. package/dist-esm/src/operations/operations.js.map +0 -1
  494. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  495. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  496. package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
  497. package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
  498. package/dist-esm/src/operations/referenceDataSets.d.ts.map +0 -1
  499. package/dist-esm/src/operations/referenceDataSets.js.map +0 -1
  500. package/dist-esm/src/operationsInterfaces/accessPolicies.d.ts.map +0 -1
  501. package/dist-esm/src/operationsInterfaces/accessPolicies.js.map +0 -1
  502. package/dist-esm/src/operationsInterfaces/environments.d.ts.map +0 -1
  503. package/dist-esm/src/operationsInterfaces/environments.js.map +0 -1
  504. package/dist-esm/src/operationsInterfaces/eventSources.d.ts.map +0 -1
  505. package/dist-esm/src/operationsInterfaces/eventSources.js.map +0 -1
  506. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
  507. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  508. package/dist-esm/src/operationsInterfaces/index.js +0 -15
  509. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  510. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  511. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  512. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  513. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  514. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
  515. package/dist-esm/src/operationsInterfaces/referenceDataSets.d.ts.map +0 -1
  516. package/dist-esm/src/operationsInterfaces/referenceDataSets.js.map +0 -1
  517. package/dist-esm/src/pagingHelper.js.map +0 -1
  518. package/dist-esm/src/timeSeriesInsightsClient.d.ts.map +0 -1
  519. package/dist-esm/src/timeSeriesInsightsClient.js.map +0 -1
  520. package/dist-esm/test/sampleTest.d.ts +0 -2
  521. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  522. package/dist-esm/test/sampleTest.js +0 -38
  523. package/dist-esm/test/sampleTest.js.map +0 -1
  524. package/rollup.config.js +0 -122
  525. package/src/lroImpl.ts +0 -34
  526. package/src/models/index.ts +0 -1527
  527. package/src/models/mappers.ts +0 -2456
  528. package/src/models/parameters.ts +0 -280
  529. package/src/operations/accessPolicies.ts +0 -282
  530. package/src/operations/environments.ts +0 -451
  531. package/src/operations/eventSources.ts +0 -283
  532. package/src/operations/index.ts +0 -15
  533. package/src/operations/operations.ts +0 -149
  534. package/src/operations/privateEndpointConnections.ts +0 -234
  535. package/src/operations/privateLinkResources.ts +0 -143
  536. package/src/operations/referenceDataSets.ts +0 -283
  537. package/src/operationsInterfaces/accessPolicies.ts +0 -103
  538. package/src/operationsInterfaces/environments.ts +0 -135
  539. package/src/operationsInterfaces/eventSources.ts +0 -104
  540. package/src/operationsInterfaces/index.ts +0 -15
  541. package/src/operationsInterfaces/operations.ts +0 -22
  542. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -81
  543. package/src/operationsInterfaces/privateLinkResources.ts +0 -30
  544. package/src/operationsInterfaces/referenceDataSets.ts +0 -104
  545. package/src/pagingHelper.ts +0 -39
  546. package/src/timeSeriesInsightsClient.ts +0 -168
  547. package/tsconfig.json +0 -33
  548. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  549. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  550. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  551. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  552. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  553. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  554. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  555. /package/{dist-esm/src → dist/browser}/operationsInterfaces/accessPolicies.js +0 -0
  556. /package/{dist-esm/src → dist/browser}/operationsInterfaces/environments.js +0 -0
  557. /package/{dist-esm/src → dist/browser}/operationsInterfaces/eventSources.js +0 -0
  558. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  559. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
  560. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
  561. /package/{dist-esm/src → dist/browser}/operationsInterfaces/referenceDataSets.js +0 -0
  562. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  563. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  564. /package/review/{arm-timeseriesinsights.api.md → arm-timeseriesinsights-node.api.md} +0 -0
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.AccessPoliciesImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
+ /** Class containing AccessPolicies operations. */
16
+ class AccessPoliciesImpl {
17
+ client;
18
+ /**
19
+ * Initialize a new instance of the class AccessPolicies class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Create or update an access policy in the specified environment.
27
+ * @param resourceGroupName Name of an Azure Resource group.
28
+ * @param environmentName The name of the Time Series Insights environment associated with the
29
+ * specified resource group.
30
+ * @param accessPolicyName Name of the access policy.
31
+ * @param parameters Parameters for creating an access policy.
32
+ * @param options The options parameters.
33
+ */
34
+ createOrUpdate(resourceGroupName, environmentName, accessPolicyName, parameters, options) {
35
+ return this.client.sendOperationRequest({
36
+ resourceGroupName,
37
+ environmentName,
38
+ accessPolicyName,
39
+ parameters,
40
+ options
41
+ }, createOrUpdateOperationSpec);
42
+ }
43
+ /**
44
+ * Gets the access policy with the specified name in the specified environment.
45
+ * @param resourceGroupName Name of an Azure Resource group.
46
+ * @param environmentName The name of the Time Series Insights environment associated with the
47
+ * specified resource group.
48
+ * @param accessPolicyName The name of the Time Series Insights access policy associated with the
49
+ * specified environment.
50
+ * @param options The options parameters.
51
+ */
52
+ get(resourceGroupName, environmentName, accessPolicyName, options) {
53
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, accessPolicyName, options }, getOperationSpec);
54
+ }
55
+ /**
56
+ * Updates the access policy with the specified name in the specified subscription, resource group, and
57
+ * environment.
58
+ * @param resourceGroupName Name of an Azure Resource group.
59
+ * @param environmentName The name of the Time Series Insights environment associated with the
60
+ * specified resource group.
61
+ * @param accessPolicyName The name of the Time Series Insights access policy associated with the
62
+ * specified environment.
63
+ * @param accessPolicyUpdateParameters Request object that contains the updated information for the
64
+ * access policy.
65
+ * @param options The options parameters.
66
+ */
67
+ update(resourceGroupName, environmentName, accessPolicyName, accessPolicyUpdateParameters, options) {
68
+ return this.client.sendOperationRequest({
69
+ resourceGroupName,
70
+ environmentName,
71
+ accessPolicyName,
72
+ accessPolicyUpdateParameters,
73
+ options
74
+ }, updateOperationSpec);
75
+ }
76
+ /**
77
+ * Deletes the access policy with the specified name in the specified subscription, resource group, and
78
+ * environment
79
+ * @param resourceGroupName Name of an Azure Resource group.
80
+ * @param environmentName The name of the Time Series Insights environment associated with the
81
+ * specified resource group.
82
+ * @param accessPolicyName The name of the Time Series Insights access policy associated with the
83
+ * specified environment.
84
+ * @param options The options parameters.
85
+ */
86
+ delete(resourceGroupName, environmentName, accessPolicyName, options) {
87
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, accessPolicyName, options }, deleteOperationSpec);
88
+ }
89
+ /**
90
+ * Lists all the available access policies associated with the environment.
91
+ * @param resourceGroupName Name of an Azure Resource group.
92
+ * @param environmentName The name of the Time Series Insights environment associated with the
93
+ * specified resource group.
94
+ * @param options The options parameters.
95
+ */
96
+ listByEnvironment(resourceGroupName, environmentName, options) {
97
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec);
98
+ }
99
+ }
100
+ exports.AccessPoliciesImpl = AccessPoliciesImpl;
101
+ // Operation Specifications
102
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
103
+ const createOrUpdateOperationSpec = {
104
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
105
+ httpMethod: "PUT",
106
+ responses: {
107
+ 200: {
108
+ bodyMapper: Mappers.AccessPolicyResource
109
+ },
110
+ 201: {
111
+ bodyMapper: Mappers.AccessPolicyResource
112
+ },
113
+ default: {
114
+ bodyMapper: Mappers.CloudError
115
+ }
116
+ },
117
+ requestBody: Parameters.parameters3,
118
+ queryParameters: [Parameters.apiVersion],
119
+ urlParameters: [
120
+ Parameters.$host,
121
+ Parameters.subscriptionId,
122
+ Parameters.resourceGroupName,
123
+ Parameters.environmentName1,
124
+ Parameters.accessPolicyName
125
+ ],
126
+ headerParameters: [Parameters.accept, Parameters.contentType],
127
+ mediaType: "json",
128
+ serializer
129
+ };
130
+ const getOperationSpec = {
131
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
132
+ httpMethod: "GET",
133
+ responses: {
134
+ 200: {
135
+ bodyMapper: Mappers.AccessPolicyResource
136
+ },
137
+ default: {
138
+ bodyMapper: Mappers.CloudError
139
+ }
140
+ },
141
+ queryParameters: [Parameters.apiVersion],
142
+ urlParameters: [
143
+ Parameters.$host,
144
+ Parameters.subscriptionId,
145
+ Parameters.resourceGroupName,
146
+ Parameters.environmentName1,
147
+ Parameters.accessPolicyName1
148
+ ],
149
+ headerParameters: [Parameters.accept],
150
+ serializer
151
+ };
152
+ const updateOperationSpec = {
153
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
154
+ httpMethod: "PATCH",
155
+ responses: {
156
+ 200: {
157
+ bodyMapper: Mappers.AccessPolicyResource
158
+ },
159
+ default: {
160
+ bodyMapper: Mappers.CloudError
161
+ }
162
+ },
163
+ requestBody: Parameters.accessPolicyUpdateParameters,
164
+ queryParameters: [Parameters.apiVersion],
165
+ urlParameters: [
166
+ Parameters.$host,
167
+ Parameters.subscriptionId,
168
+ Parameters.resourceGroupName,
169
+ Parameters.environmentName1,
170
+ Parameters.accessPolicyName1
171
+ ],
172
+ headerParameters: [Parameters.accept, Parameters.contentType],
173
+ mediaType: "json",
174
+ serializer
175
+ };
176
+ const deleteOperationSpec = {
177
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
178
+ httpMethod: "DELETE",
179
+ responses: {
180
+ 200: {},
181
+ 204: {},
182
+ default: {
183
+ bodyMapper: Mappers.CloudError
184
+ }
185
+ },
186
+ queryParameters: [Parameters.apiVersion],
187
+ urlParameters: [
188
+ Parameters.$host,
189
+ Parameters.subscriptionId,
190
+ Parameters.resourceGroupName,
191
+ Parameters.environmentName1,
192
+ Parameters.accessPolicyName1
193
+ ],
194
+ headerParameters: [Parameters.accept],
195
+ serializer
196
+ };
197
+ const listByEnvironmentOperationSpec = {
198
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies",
199
+ httpMethod: "GET",
200
+ responses: {
201
+ 200: {
202
+ bodyMapper: Mappers.AccessPolicyListResponse
203
+ },
204
+ default: {
205
+ bodyMapper: Mappers.CloudError
206
+ }
207
+ },
208
+ queryParameters: [Parameters.apiVersion],
209
+ urlParameters: [
210
+ Parameters.$host,
211
+ Parameters.subscriptionId,
212
+ Parameters.resourceGroupName,
213
+ Parameters.environmentName1
214
+ ],
215
+ headerParameters: [Parameters.accept],
216
+ serializer
217
+ };
218
+ //# sourceMappingURL=accessPolicies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessPolicies.js","sourceRoot":"","sources":["../../../src/operations/accessPolicies.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { AccessPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TimeSeriesInsightsClient } from \"../timeSeriesInsightsClient.js\";\nimport {\n AccessPolicyCreateOrUpdateParameters,\n AccessPoliciesCreateOrUpdateOptionalParams,\n AccessPoliciesCreateOrUpdateResponse,\n AccessPoliciesGetOptionalParams,\n AccessPoliciesGetResponse,\n AccessPolicyUpdateParameters,\n AccessPoliciesUpdateOptionalParams,\n AccessPoliciesUpdateResponse,\n AccessPoliciesDeleteOptionalParams,\n AccessPoliciesListByEnvironmentOptionalParams,\n AccessPoliciesListByEnvironmentResponse\n} from \"../models/index.js\";\n\n/** Class containing AccessPolicies operations. */\nexport class AccessPoliciesImpl implements AccessPolicies {\n private readonly client: TimeSeriesInsightsClient;\n\n /**\n * Initialize a new instance of the class AccessPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: TimeSeriesInsightsClient) {\n this.client = client;\n }\n\n /**\n * Create or update an access policy in the specified environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param accessPolicyName Name of the access policy.\n * @param parameters Parameters for creating an access policy.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n accessPolicyName: string,\n parameters: AccessPolicyCreateOrUpdateParameters,\n options?: AccessPoliciesCreateOrUpdateOptionalParams\n ): Promise<AccessPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n accessPolicyName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets the access policy with the specified name in the specified environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param accessPolicyName The name of the Time Series Insights access policy associated with the\n * specified environment.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n accessPolicyName: string,\n options?: AccessPoliciesGetOptionalParams\n ): Promise<AccessPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, accessPolicyName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates the access policy with the specified name in the specified subscription, resource group, and\n * environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param accessPolicyName The name of the Time Series Insights access policy associated with the\n * specified environment.\n * @param accessPolicyUpdateParameters Request object that contains the updated information for the\n * access policy.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n environmentName: string,\n accessPolicyName: string,\n accessPolicyUpdateParameters: AccessPolicyUpdateParameters,\n options?: AccessPoliciesUpdateOptionalParams\n ): Promise<AccessPoliciesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n accessPolicyName,\n accessPolicyUpdateParameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes the access policy with the specified name in the specified subscription, resource group, and\n * environment\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param accessPolicyName The name of the Time Series Insights access policy associated with the\n * specified environment.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n accessPolicyName: string,\n options?: AccessPoliciesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, accessPolicyName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists all the available access policies associated with the environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param options The options parameters.\n */\n listByEnvironment(\n resourceGroupName: string,\n environmentName: string,\n options?: AccessPoliciesListByEnvironmentOptionalParams\n ): Promise<AccessPoliciesListByEnvironmentResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listByEnvironmentOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyResource\n },\n 201: {\n bodyMapper: Mappers.AccessPolicyResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.accessPolicyName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.accessPolicyName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.accessPolicyUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.accessPolicyName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.accessPolicyName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByEnvironmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,78 @@
1
+ import { Environments } from "../operationsInterfaces/index.js";
2
+ import { TimeSeriesInsightsClient } from "../timeSeriesInsightsClient.js";
3
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
4
+ import { EnvironmentCreateOrUpdateParametersUnion, EnvironmentsCreateOrUpdateOptionalParams, EnvironmentsCreateOrUpdateResponse, EnvironmentsGetOptionalParams, EnvironmentsGetResponse, EnvironmentUpdateParametersUnion, EnvironmentsUpdateOptionalParams, EnvironmentsUpdateResponse, EnvironmentsDeleteOptionalParams, EnvironmentsListByResourceGroupOptionalParams, EnvironmentsListByResourceGroupResponse, EnvironmentsListBySubscriptionOptionalParams, EnvironmentsListBySubscriptionResponse } from "../models/index.js";
5
+ /** Class containing Environments operations. */
6
+ export declare class EnvironmentsImpl implements Environments {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Environments class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: TimeSeriesInsightsClient);
13
+ /**
14
+ * Create or update an environment in the specified subscription and resource group.
15
+ * @param resourceGroupName Name of an Azure Resource group.
16
+ * @param environmentName Name of the environment
17
+ * @param parameters Parameters for creating an environment resource.
18
+ * @param options The options parameters.
19
+ */
20
+ beginCreateOrUpdate(resourceGroupName: string, environmentName: string, parameters: EnvironmentCreateOrUpdateParametersUnion, options?: EnvironmentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<EnvironmentsCreateOrUpdateResponse>, EnvironmentsCreateOrUpdateResponse>>;
21
+ /**
22
+ * Create or update an environment in the specified subscription and resource group.
23
+ * @param resourceGroupName Name of an Azure Resource group.
24
+ * @param environmentName Name of the environment
25
+ * @param parameters Parameters for creating an environment resource.
26
+ * @param options The options parameters.
27
+ */
28
+ beginCreateOrUpdateAndWait(resourceGroupName: string, environmentName: string, parameters: EnvironmentCreateOrUpdateParametersUnion, options?: EnvironmentsCreateOrUpdateOptionalParams): Promise<EnvironmentsCreateOrUpdateResponse>;
29
+ /**
30
+ * Gets the environment with the specified name in the specified subscription and resource group.
31
+ * @param resourceGroupName Name of an Azure Resource group.
32
+ * @param environmentName The name of the Time Series Insights environment associated with the
33
+ * specified resource group.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName: string, environmentName: string, options?: EnvironmentsGetOptionalParams): Promise<EnvironmentsGetResponse>;
37
+ /**
38
+ * Updates the environment with the specified name in the specified subscription and resource group.
39
+ * @param resourceGroupName Name of an Azure Resource group.
40
+ * @param environmentName The name of the Time Series Insights environment associated with the
41
+ * specified resource group.
42
+ * @param environmentUpdateParameters Request object that contains the updated information for the
43
+ * environment.
44
+ * @param options The options parameters.
45
+ */
46
+ beginUpdate(resourceGroupName: string, environmentName: string, environmentUpdateParameters: EnvironmentUpdateParametersUnion, options?: EnvironmentsUpdateOptionalParams): Promise<PollerLike<PollOperationState<EnvironmentsUpdateResponse>, EnvironmentsUpdateResponse>>;
47
+ /**
48
+ * Updates the environment with the specified name in the specified subscription and resource group.
49
+ * @param resourceGroupName Name of an Azure Resource group.
50
+ * @param environmentName The name of the Time Series Insights environment associated with the
51
+ * specified resource group.
52
+ * @param environmentUpdateParameters Request object that contains the updated information for the
53
+ * environment.
54
+ * @param options The options parameters.
55
+ */
56
+ beginUpdateAndWait(resourceGroupName: string, environmentName: string, environmentUpdateParameters: EnvironmentUpdateParametersUnion, options?: EnvironmentsUpdateOptionalParams): Promise<EnvironmentsUpdateResponse>;
57
+ /**
58
+ * Deletes the environment with the specified name in the specified subscription and resource group.
59
+ * @param resourceGroupName Name of an Azure Resource group.
60
+ * @param environmentName The name of the Time Series Insights environment associated with the
61
+ * specified resource group.
62
+ * @param options The options parameters.
63
+ */
64
+ delete(resourceGroupName: string, environmentName: string, options?: EnvironmentsDeleteOptionalParams): Promise<void>;
65
+ /**
66
+ * Lists all the available environments associated with the subscription and within the specified
67
+ * resource group.
68
+ * @param resourceGroupName Name of an Azure Resource group.
69
+ * @param options The options parameters.
70
+ */
71
+ listByResourceGroup(resourceGroupName: string, options?: EnvironmentsListByResourceGroupOptionalParams): Promise<EnvironmentsListByResourceGroupResponse>;
72
+ /**
73
+ * Lists all the available environments within a subscription, irrespective of the resource groups.
74
+ * @param options The options parameters.
75
+ */
76
+ listBySubscription(options?: EnvironmentsListBySubscriptionOptionalParams): Promise<EnvironmentsListBySubscriptionResponse>;
77
+ }
78
+ //# sourceMappingURL=environments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../../../src/operations/environments.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIhE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,wCAAwC,EACxC,wCAAwC,EACxC,kCAAkC,EAClC,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,6CAA6C,EAC7C,uCAAuC,EACvC,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAE5B,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;;;;OAMG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,wCAAwC,EACpD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,kCAAkC,CAAC,EACtD,kCAAkC,CACnC,CACF;IAqDD;;;;;;OAMG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,wCAAwC,EACpD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAU9C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,2BAA2B,EAAE,gCAAgC,EAC7D,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,0BAA0B,CAAC,EAC9C,0BAA0B,CAC3B,CACF;IA0DD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,2BAA2B,EAAE,gCAAgC,EAC7D,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAUtC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;IAOnD;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;CAMnD"}
@@ -0,0 +1,325 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.EnvironmentsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
+ const core_lro_1 = require("@azure/core-lro");
16
+ const lroImpl_js_1 = require("../lroImpl.js");
17
+ /** Class containing Environments operations. */
18
+ class EnvironmentsImpl {
19
+ client;
20
+ /**
21
+ * Initialize a new instance of the class Environments class.
22
+ * @param client Reference to the service client
23
+ */
24
+ constructor(client) {
25
+ this.client = client;
26
+ }
27
+ /**
28
+ * Create or update an environment in the specified subscription and resource group.
29
+ * @param resourceGroupName Name of an Azure Resource group.
30
+ * @param environmentName Name of the environment
31
+ * @param parameters Parameters for creating an environment resource.
32
+ * @param options The options parameters.
33
+ */
34
+ async beginCreateOrUpdate(resourceGroupName, environmentName, parameters, options) {
35
+ const directSendOperation = async (args, spec) => {
36
+ return this.client.sendOperationRequest(args, spec);
37
+ };
38
+ const sendOperation = async (args, spec) => {
39
+ let currentRawResponse = undefined;
40
+ const providedCallback = args.options?.onResponse;
41
+ const callback = (rawResponse, flatResponse) => {
42
+ currentRawResponse = rawResponse;
43
+ providedCallback?.(rawResponse, flatResponse);
44
+ };
45
+ const updatedArgs = {
46
+ ...args,
47
+ options: {
48
+ ...args.options,
49
+ onResponse: callback
50
+ }
51
+ };
52
+ const flatResponse = await directSendOperation(updatedArgs, spec);
53
+ return {
54
+ flatResponse,
55
+ rawResponse: {
56
+ statusCode: currentRawResponse.status,
57
+ body: currentRawResponse.parsedBody,
58
+ headers: currentRawResponse.headers.toJSON()
59
+ }
60
+ };
61
+ };
62
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, environmentName, parameters, options }, createOrUpdateOperationSpec);
63
+ const poller = new core_lro_1.LroEngine(lro, {
64
+ resumeFrom: options?.resumeFrom,
65
+ intervalInMs: options?.updateIntervalInMs
66
+ });
67
+ await poller.poll();
68
+ return poller;
69
+ }
70
+ /**
71
+ * Create or update an environment in the specified subscription and resource group.
72
+ * @param resourceGroupName Name of an Azure Resource group.
73
+ * @param environmentName Name of the environment
74
+ * @param parameters Parameters for creating an environment resource.
75
+ * @param options The options parameters.
76
+ */
77
+ async beginCreateOrUpdateAndWait(resourceGroupName, environmentName, parameters, options) {
78
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, environmentName, parameters, options);
79
+ return poller.pollUntilDone();
80
+ }
81
+ /**
82
+ * Gets the environment with the specified name in the specified subscription and resource group.
83
+ * @param resourceGroupName Name of an Azure Resource group.
84
+ * @param environmentName The name of the Time Series Insights environment associated with the
85
+ * specified resource group.
86
+ * @param options The options parameters.
87
+ */
88
+ get(resourceGroupName, environmentName, options) {
89
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, getOperationSpec);
90
+ }
91
+ /**
92
+ * Updates the environment with the specified name in the specified subscription and resource group.
93
+ * @param resourceGroupName Name of an Azure Resource group.
94
+ * @param environmentName The name of the Time Series Insights environment associated with the
95
+ * specified resource group.
96
+ * @param environmentUpdateParameters Request object that contains the updated information for the
97
+ * environment.
98
+ * @param options The options parameters.
99
+ */
100
+ async beginUpdate(resourceGroupName, environmentName, environmentUpdateParameters, options) {
101
+ const directSendOperation = async (args, spec) => {
102
+ return this.client.sendOperationRequest(args, spec);
103
+ };
104
+ const sendOperation = async (args, spec) => {
105
+ let currentRawResponse = undefined;
106
+ const providedCallback = args.options?.onResponse;
107
+ const callback = (rawResponse, flatResponse) => {
108
+ currentRawResponse = rawResponse;
109
+ providedCallback?.(rawResponse, flatResponse);
110
+ };
111
+ const updatedArgs = {
112
+ ...args,
113
+ options: {
114
+ ...args.options,
115
+ onResponse: callback
116
+ }
117
+ };
118
+ const flatResponse = await directSendOperation(updatedArgs, spec);
119
+ return {
120
+ flatResponse,
121
+ rawResponse: {
122
+ statusCode: currentRawResponse.status,
123
+ body: currentRawResponse.parsedBody,
124
+ headers: currentRawResponse.headers.toJSON()
125
+ }
126
+ };
127
+ };
128
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, {
129
+ resourceGroupName,
130
+ environmentName,
131
+ environmentUpdateParameters,
132
+ options
133
+ }, updateOperationSpec);
134
+ const poller = new core_lro_1.LroEngine(lro, {
135
+ resumeFrom: options?.resumeFrom,
136
+ intervalInMs: options?.updateIntervalInMs
137
+ });
138
+ await poller.poll();
139
+ return poller;
140
+ }
141
+ /**
142
+ * Updates the environment with the specified name in the specified subscription and resource group.
143
+ * @param resourceGroupName Name of an Azure Resource group.
144
+ * @param environmentName The name of the Time Series Insights environment associated with the
145
+ * specified resource group.
146
+ * @param environmentUpdateParameters Request object that contains the updated information for the
147
+ * environment.
148
+ * @param options The options parameters.
149
+ */
150
+ async beginUpdateAndWait(resourceGroupName, environmentName, environmentUpdateParameters, options) {
151
+ const poller = await this.beginUpdate(resourceGroupName, environmentName, environmentUpdateParameters, options);
152
+ return poller.pollUntilDone();
153
+ }
154
+ /**
155
+ * Deletes the environment with the specified name in the specified subscription and resource group.
156
+ * @param resourceGroupName Name of an Azure Resource group.
157
+ * @param environmentName The name of the Time Series Insights environment associated with the
158
+ * specified resource group.
159
+ * @param options The options parameters.
160
+ */
161
+ delete(resourceGroupName, environmentName, options) {
162
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, deleteOperationSpec);
163
+ }
164
+ /**
165
+ * Lists all the available environments associated with the subscription and within the specified
166
+ * resource group.
167
+ * @param resourceGroupName Name of an Azure Resource group.
168
+ * @param options The options parameters.
169
+ */
170
+ listByResourceGroup(resourceGroupName, options) {
171
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
172
+ }
173
+ /**
174
+ * Lists all the available environments within a subscription, irrespective of the resource groups.
175
+ * @param options The options parameters.
176
+ */
177
+ listBySubscription(options) {
178
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
179
+ }
180
+ }
181
+ exports.EnvironmentsImpl = EnvironmentsImpl;
182
+ // Operation Specifications
183
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
184
+ const createOrUpdateOperationSpec = {
185
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
186
+ httpMethod: "PUT",
187
+ responses: {
188
+ 200: {
189
+ bodyMapper: Mappers.EnvironmentResource
190
+ },
191
+ 201: {
192
+ bodyMapper: Mappers.EnvironmentResource
193
+ },
194
+ 202: {
195
+ bodyMapper: Mappers.EnvironmentResource
196
+ },
197
+ 204: {
198
+ bodyMapper: Mappers.EnvironmentResource
199
+ },
200
+ default: {
201
+ bodyMapper: Mappers.CloudError
202
+ }
203
+ },
204
+ requestBody: Parameters.parameters,
205
+ queryParameters: [Parameters.apiVersion],
206
+ urlParameters: [
207
+ Parameters.$host,
208
+ Parameters.subscriptionId,
209
+ Parameters.resourceGroupName,
210
+ Parameters.environmentName
211
+ ],
212
+ headerParameters: [Parameters.accept, Parameters.contentType],
213
+ mediaType: "json",
214
+ serializer
215
+ };
216
+ const getOperationSpec = {
217
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
218
+ httpMethod: "GET",
219
+ responses: {
220
+ 200: {
221
+ bodyMapper: Mappers.EnvironmentResource
222
+ },
223
+ default: {
224
+ bodyMapper: Mappers.CloudError
225
+ }
226
+ },
227
+ queryParameters: [Parameters.apiVersion, Parameters.expand],
228
+ urlParameters: [
229
+ Parameters.$host,
230
+ Parameters.subscriptionId,
231
+ Parameters.resourceGroupName,
232
+ Parameters.environmentName1
233
+ ],
234
+ headerParameters: [Parameters.accept],
235
+ serializer
236
+ };
237
+ const updateOperationSpec = {
238
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
239
+ httpMethod: "PATCH",
240
+ responses: {
241
+ 200: {
242
+ bodyMapper: Mappers.EnvironmentResource
243
+ },
244
+ 201: {
245
+ bodyMapper: Mappers.EnvironmentResource
246
+ },
247
+ 202: {
248
+ bodyMapper: Mappers.EnvironmentResource
249
+ },
250
+ 204: {
251
+ bodyMapper: Mappers.EnvironmentResource
252
+ },
253
+ default: {
254
+ bodyMapper: Mappers.CloudError
255
+ }
256
+ },
257
+ requestBody: Parameters.environmentUpdateParameters,
258
+ queryParameters: [Parameters.apiVersion],
259
+ urlParameters: [
260
+ Parameters.$host,
261
+ Parameters.subscriptionId,
262
+ Parameters.resourceGroupName,
263
+ Parameters.environmentName1
264
+ ],
265
+ headerParameters: [Parameters.accept, Parameters.contentType],
266
+ mediaType: "json",
267
+ serializer
268
+ };
269
+ const deleteOperationSpec = {
270
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
271
+ httpMethod: "DELETE",
272
+ responses: {
273
+ 200: {},
274
+ 204: {},
275
+ default: {
276
+ bodyMapper: Mappers.CloudError
277
+ }
278
+ },
279
+ queryParameters: [Parameters.apiVersion],
280
+ urlParameters: [
281
+ Parameters.$host,
282
+ Parameters.subscriptionId,
283
+ Parameters.resourceGroupName,
284
+ Parameters.environmentName1
285
+ ],
286
+ headerParameters: [Parameters.accept],
287
+ serializer
288
+ };
289
+ const listByResourceGroupOperationSpec = {
290
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments",
291
+ httpMethod: "GET",
292
+ responses: {
293
+ 200: {
294
+ bodyMapper: Mappers.EnvironmentListResponse
295
+ },
296
+ default: {
297
+ bodyMapper: Mappers.CloudError
298
+ }
299
+ },
300
+ queryParameters: [Parameters.apiVersion],
301
+ urlParameters: [
302
+ Parameters.$host,
303
+ Parameters.subscriptionId,
304
+ Parameters.resourceGroupName
305
+ ],
306
+ headerParameters: [Parameters.accept],
307
+ serializer
308
+ };
309
+ const listBySubscriptionOperationSpec = {
310
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.TimeSeriesInsights/environments",
311
+ httpMethod: "GET",
312
+ responses: {
313
+ 200: {
314
+ bodyMapper: Mappers.EnvironmentListResponse
315
+ },
316
+ default: {
317
+ bodyMapper: Mappers.CloudError
318
+ }
319
+ },
320
+ queryParameters: [Parameters.apiVersion],
321
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
322
+ headerParameters: [Parameters.accept],
323
+ serializer
324
+ };
325
+ //# sourceMappingURL=environments.js.map