@azure/arm-chaos 1.1.1-alpha.20250110.1 → 1.1.1-alpha.20250113.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 (544) hide show
  1. package/{dist-esm/src → dist/browser}/chaosManagementClient.d.ts +2 -2
  2. package/dist/browser/chaosManagementClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/chaosManagementClient.js +15 -18
  4. package/dist/browser/chaosManagementClient.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/capabilities.d.ts +3 -3
  15. package/dist/browser/operations/capabilities.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/capabilities.js +3 -3
  17. package/dist/browser/operations/capabilities.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/capabilityTypes.d.ts +3 -3
  19. package/dist/browser/operations/capabilityTypes.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/capabilityTypes.js +3 -3
  21. package/dist/browser/operations/capabilityTypes.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/experiments.d.ts +3 -3
  23. package/dist/browser/operations/experiments.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/experiments.js +190 -210
  25. package/dist/browser/operations/experiments.js.map +1 -0
  26. package/dist/browser/operations/index.d.ts +8 -0
  27. package/dist/browser/operations/index.d.ts.map +1 -0
  28. package/dist/browser/operations/index.js +15 -0
  29. package/dist/browser/operations/index.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/operationStatuses.d.ts +3 -3
  31. package/dist/browser/operations/operationStatuses.d.ts.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/operationStatuses.js +2 -2
  33. package/dist/browser/operations/operationStatuses.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  35. package/dist/browser/operations/operations.d.ts.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  37. package/dist/browser/operations/operations.js.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/targetTypes.d.ts +3 -3
  39. package/dist/browser/operations/targetTypes.d.ts.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operations/targetTypes.js +3 -3
  41. package/dist/browser/operations/targetTypes.js.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operations/targets.d.ts +3 -3
  43. package/dist/browser/operations/targets.d.ts.map +1 -0
  44. package/{dist-esm/src → dist/browser}/operations/targets.js +3 -3
  45. package/dist/browser/operations/targets.js.map +1 -0
  46. package/{dist-esm/src → dist/browser}/operationsInterfaces/capabilities.d.ts +1 -1
  47. package/dist/browser/operationsInterfaces/capabilities.d.ts.map +1 -0
  48. package/dist/browser/operationsInterfaces/capabilities.js.map +1 -0
  49. package/{dist-esm/src → dist/browser}/operationsInterfaces/capabilityTypes.d.ts +1 -1
  50. package/dist/browser/operationsInterfaces/capabilityTypes.d.ts.map +1 -0
  51. package/dist/browser/operationsInterfaces/capabilityTypes.js.map +1 -0
  52. package/{dist-esm/src → dist/browser}/operationsInterfaces/experiments.d.ts +1 -1
  53. package/dist/browser/operationsInterfaces/experiments.d.ts.map +1 -0
  54. package/dist/browser/operationsInterfaces/experiments.js.map +1 -0
  55. package/dist/browser/operationsInterfaces/index.d.ts +8 -0
  56. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  57. package/dist/browser/operationsInterfaces/index.js +15 -0
  58. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  59. package/{dist-esm/src → dist/browser}/operationsInterfaces/operationStatuses.d.ts +1 -1
  60. package/{dist-esm/src → dist/browser}/operationsInterfaces/operationStatuses.d.ts.map +1 -1
  61. package/dist/browser/operationsInterfaces/operationStatuses.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/targetTypes.d.ts +1 -1
  66. package/dist/browser/operationsInterfaces/targetTypes.d.ts.map +1 -0
  67. package/dist/browser/operationsInterfaces/targetTypes.js.map +1 -0
  68. package/{dist-esm/src → dist/browser}/operationsInterfaces/targets.d.ts +1 -1
  69. package/dist/browser/operationsInterfaces/targets.d.ts.map +1 -0
  70. package/dist/browser/operationsInterfaces/targets.js.map +1 -0
  71. package/dist/browser/package.json +3 -0
  72. package/dist/browser/pagingHelper.js.map +1 -0
  73. package/dist/commonjs/chaosManagementClient.d.ts +27 -0
  74. package/dist/commonjs/chaosManagementClient.d.ts.map +1 -0
  75. package/dist/commonjs/chaosManagementClient.js +106 -0
  76. package/dist/commonjs/chaosManagementClient.js.map +1 -0
  77. package/dist/commonjs/index.d.ts +5 -0
  78. package/dist/commonjs/index.d.ts.map +1 -0
  79. package/dist/commonjs/index.js +19 -0
  80. package/dist/commonjs/index.js.map +1 -0
  81. package/dist/commonjs/lroImpl.d.ts +11 -0
  82. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  83. package/dist/commonjs/lroImpl.js +24 -0
  84. package/dist/commonjs/lroImpl.js.map +1 -0
  85. package/{types/arm-chaos.d.ts → dist/commonjs/models/index.d.ts} +1118 -1551
  86. package/dist/commonjs/models/index.d.ts.map +1 -0
  87. package/dist/commonjs/models/index.js +75 -0
  88. package/dist/commonjs/models/index.js.map +1 -0
  89. package/dist/commonjs/models/mappers.d.ts +62 -0
  90. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  91. package/dist/commonjs/models/mappers.js +1706 -0
  92. package/dist/commonjs/models/mappers.js.map +1 -0
  93. package/dist/commonjs/models/parameters.d.ts +27 -0
  94. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  95. package/dist/commonjs/models/parameters.js +281 -0
  96. package/dist/commonjs/models/parameters.js.map +1 -0
  97. package/dist/commonjs/operations/capabilities.d.ts +81 -0
  98. package/dist/commonjs/operations/capabilities.d.ts.map +1 -0
  99. package/dist/commonjs/operations/capabilities.js +325 -0
  100. package/dist/commonjs/operations/capabilities.js.map +1 -0
  101. package/dist/commonjs/operations/capabilityTypes.d.ts +46 -0
  102. package/dist/commonjs/operations/capabilityTypes.d.ts.map +1 -0
  103. package/dist/commonjs/operations/capabilityTypes.js +186 -0
  104. package/dist/commonjs/operations/capabilityTypes.js.map +1 -0
  105. package/dist/commonjs/operations/experiments.d.ts +175 -0
  106. package/dist/commonjs/operations/experiments.d.ts.map +1 -0
  107. package/dist/commonjs/operations/experiments.js +882 -0
  108. package/dist/commonjs/operations/experiments.js.map +1 -0
  109. package/dist/commonjs/operations/index.d.ts +8 -0
  110. package/dist/commonjs/operations/index.d.ts.map +1 -0
  111. package/dist/commonjs/operations/index.js +18 -0
  112. package/dist/commonjs/operations/index.js.map +1 -0
  113. package/dist/commonjs/operations/operationStatuses.d.ts +20 -0
  114. package/dist/commonjs/operations/operationStatuses.d.ts.map +1 -0
  115. package/dist/commonjs/operations/operationStatuses.js +58 -0
  116. package/dist/commonjs/operations/operationStatuses.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 +137 -0
  120. package/dist/commonjs/operations/operations.js.map +1 -0
  121. package/dist/commonjs/operations/targetTypes.d.ts +42 -0
  122. package/dist/commonjs/operations/targetTypes.d.ts.map +1 -0
  123. package/dist/commonjs/operations/targetTypes.js +179 -0
  124. package/dist/commonjs/operations/targetTypes.js.map +1 -0
  125. package/dist/commonjs/operations/targets.d.ts +75 -0
  126. package/dist/commonjs/operations/targets.d.ts.map +1 -0
  127. package/dist/commonjs/operations/targets.js +309 -0
  128. package/dist/commonjs/operations/targets.js.map +1 -0
  129. package/dist/commonjs/operationsInterfaces/capabilities.d.ts +50 -0
  130. package/dist/commonjs/operationsInterfaces/capabilities.d.ts.map +1 -0
  131. package/dist/commonjs/operationsInterfaces/capabilities.js +10 -0
  132. package/dist/commonjs/operationsInterfaces/capabilities.js.map +1 -0
  133. package/dist/commonjs/operationsInterfaces/capabilityTypes.d.ts +21 -0
  134. package/dist/commonjs/operationsInterfaces/capabilityTypes.d.ts.map +1 -0
  135. package/dist/commonjs/operationsInterfaces/capabilityTypes.js +10 -0
  136. package/dist/commonjs/operationsInterfaces/capabilityTypes.js.map +1 -0
  137. package/dist/commonjs/operationsInterfaces/experiments.d.ts +122 -0
  138. package/dist/commonjs/operationsInterfaces/experiments.d.ts.map +1 -0
  139. package/dist/commonjs/operationsInterfaces/experiments.js +10 -0
  140. package/dist/commonjs/operationsInterfaces/experiments.js.map +1 -0
  141. package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
  142. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  143. package/dist/commonjs/operationsInterfaces/index.js +18 -0
  144. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  145. package/dist/commonjs/operationsInterfaces/operationStatuses.d.ts +12 -0
  146. package/dist/commonjs/operationsInterfaces/operationStatuses.d.ts.map +1 -0
  147. package/dist/commonjs/operationsInterfaces/operationStatuses.js +10 -0
  148. package/dist/commonjs/operationsInterfaces/operationStatuses.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/targetTypes.d.ts +19 -0
  154. package/dist/commonjs/operationsInterfaces/targetTypes.d.ts.map +1 -0
  155. package/dist/commonjs/operationsInterfaces/targetTypes.js +10 -0
  156. package/dist/commonjs/operationsInterfaces/targetTypes.js.map +1 -0
  157. package/dist/commonjs/operationsInterfaces/targets.d.ts +46 -0
  158. package/dist/commonjs/operationsInterfaces/targets.d.ts.map +1 -0
  159. package/dist/commonjs/operationsInterfaces/targets.js +10 -0
  160. package/dist/commonjs/operationsInterfaces/targets.js.map +1 -0
  161. package/dist/commonjs/package.json +3 -0
  162. package/dist/commonjs/pagingHelper.d.ts +13 -0
  163. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  164. package/dist/commonjs/pagingHelper.js +36 -0
  165. package/dist/commonjs/pagingHelper.js.map +1 -0
  166. package/dist/esm/chaosManagementClient.d.ts +27 -0
  167. package/dist/esm/chaosManagementClient.d.ts.map +1 -0
  168. package/dist/esm/chaosManagementClient.js +101 -0
  169. package/dist/esm/chaosManagementClient.js.map +1 -0
  170. package/dist/esm/index.d.ts +5 -0
  171. package/dist/esm/index.d.ts.map +1 -0
  172. package/{src/index.ts → dist/esm/index.js} +5 -5
  173. package/dist/esm/index.js.map +1 -0
  174. package/dist/esm/lroImpl.d.ts +11 -0
  175. package/dist/esm/lroImpl.d.ts.map +1 -0
  176. package/dist/esm/lroImpl.js +21 -0
  177. package/dist/esm/lroImpl.js.map +1 -0
  178. package/dist/esm/models/index.d.ts +1118 -0
  179. package/dist/esm/models/index.d.ts.map +1 -0
  180. package/dist/esm/models/index.js +72 -0
  181. package/dist/esm/models/index.js.map +1 -0
  182. package/dist/esm/models/mappers.d.ts +62 -0
  183. package/dist/esm/models/mappers.d.ts.map +1 -0
  184. package/dist/esm/models/mappers.js +1703 -0
  185. package/dist/esm/models/mappers.js.map +1 -0
  186. package/dist/esm/models/parameters.d.ts +27 -0
  187. package/dist/esm/models/parameters.d.ts.map +1 -0
  188. package/dist/esm/models/parameters.js +278 -0
  189. package/dist/esm/models/parameters.js.map +1 -0
  190. package/dist/esm/operations/capabilities.d.ts +81 -0
  191. package/dist/esm/operations/capabilities.d.ts.map +1 -0
  192. package/dist/esm/operations/capabilities.js +321 -0
  193. package/dist/esm/operations/capabilities.js.map +1 -0
  194. package/dist/esm/operations/capabilityTypes.d.ts +46 -0
  195. package/dist/esm/operations/capabilityTypes.d.ts.map +1 -0
  196. package/dist/esm/operations/capabilityTypes.js +182 -0
  197. package/dist/esm/operations/capabilityTypes.js.map +1 -0
  198. package/dist/esm/operations/experiments.d.ts +175 -0
  199. package/dist/esm/operations/experiments.d.ts.map +1 -0
  200. package/dist/esm/operations/experiments.js +878 -0
  201. package/dist/esm/operations/experiments.js.map +1 -0
  202. package/dist/esm/operations/index.d.ts +8 -0
  203. package/dist/esm/operations/index.d.ts.map +1 -0
  204. package/dist/esm/operations/index.js +15 -0
  205. package/dist/esm/operations/index.js.map +1 -0
  206. package/dist/esm/operations/operationStatuses.d.ts +20 -0
  207. package/dist/esm/operations/operationStatuses.d.ts.map +1 -0
  208. package/dist/esm/operations/operationStatuses.js +53 -0
  209. package/dist/esm/operations/operationStatuses.js.map +1 -0
  210. package/dist/esm/operations/operations.d.ts +32 -0
  211. package/dist/esm/operations/operations.d.ts.map +1 -0
  212. package/dist/esm/operations/operations.js +133 -0
  213. package/dist/esm/operations/operations.js.map +1 -0
  214. package/dist/esm/operations/targetTypes.d.ts +42 -0
  215. package/dist/esm/operations/targetTypes.d.ts.map +1 -0
  216. package/dist/esm/operations/targetTypes.js +175 -0
  217. package/dist/esm/operations/targetTypes.js.map +1 -0
  218. package/dist/esm/operations/targets.d.ts +75 -0
  219. package/dist/esm/operations/targets.d.ts.map +1 -0
  220. package/dist/esm/operations/targets.js +305 -0
  221. package/dist/esm/operations/targets.js.map +1 -0
  222. package/dist/esm/operationsInterfaces/capabilities.d.ts +50 -0
  223. package/dist/esm/operationsInterfaces/capabilities.d.ts.map +1 -0
  224. package/dist/esm/operationsInterfaces/capabilities.js +9 -0
  225. package/dist/esm/operationsInterfaces/capabilities.js.map +1 -0
  226. package/dist/esm/operationsInterfaces/capabilityTypes.d.ts +21 -0
  227. package/dist/esm/operationsInterfaces/capabilityTypes.d.ts.map +1 -0
  228. package/dist/esm/operationsInterfaces/capabilityTypes.js +9 -0
  229. package/dist/esm/operationsInterfaces/capabilityTypes.js.map +1 -0
  230. package/dist/esm/operationsInterfaces/experiments.d.ts +122 -0
  231. package/dist/esm/operationsInterfaces/experiments.d.ts.map +1 -0
  232. package/dist/esm/operationsInterfaces/experiments.js +9 -0
  233. package/dist/esm/operationsInterfaces/experiments.js.map +1 -0
  234. package/dist/esm/operationsInterfaces/index.d.ts +8 -0
  235. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  236. package/dist/esm/operationsInterfaces/index.js +15 -0
  237. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  238. package/dist/esm/operationsInterfaces/operationStatuses.d.ts +12 -0
  239. package/dist/esm/operationsInterfaces/operationStatuses.d.ts.map +1 -0
  240. package/dist/esm/operationsInterfaces/operationStatuses.js +9 -0
  241. package/dist/esm/operationsInterfaces/operationStatuses.js.map +1 -0
  242. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  243. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  244. package/dist/esm/operationsInterfaces/operations.js +9 -0
  245. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  246. package/dist/esm/operationsInterfaces/targetTypes.d.ts +19 -0
  247. package/dist/esm/operationsInterfaces/targetTypes.d.ts.map +1 -0
  248. package/dist/esm/operationsInterfaces/targetTypes.js +9 -0
  249. package/dist/esm/operationsInterfaces/targetTypes.js.map +1 -0
  250. package/dist/esm/operationsInterfaces/targets.d.ts +46 -0
  251. package/dist/esm/operationsInterfaces/targets.d.ts.map +1 -0
  252. package/dist/esm/operationsInterfaces/targets.js +9 -0
  253. package/dist/esm/operationsInterfaces/targets.js.map +1 -0
  254. package/dist/esm/package.json +3 -0
  255. package/dist/esm/pagingHelper.d.ts +13 -0
  256. package/dist/esm/pagingHelper.d.ts.map +1 -0
  257. package/dist/esm/pagingHelper.js +32 -0
  258. package/dist/esm/pagingHelper.js.map +1 -0
  259. package/dist/react-native/chaosManagementClient.d.ts +27 -0
  260. package/dist/react-native/chaosManagementClient.d.ts.map +1 -0
  261. package/dist/react-native/chaosManagementClient.js +101 -0
  262. package/dist/react-native/chaosManagementClient.js.map +1 -0
  263. package/dist/react-native/index.d.ts +5 -0
  264. package/dist/react-native/index.d.ts.map +1 -0
  265. package/dist/react-native/index.js +13 -0
  266. package/dist/react-native/index.js.map +1 -0
  267. package/dist/react-native/lroImpl.d.ts +11 -0
  268. package/dist/react-native/lroImpl.d.ts.map +1 -0
  269. package/dist/react-native/lroImpl.js +21 -0
  270. package/dist/react-native/lroImpl.js.map +1 -0
  271. package/dist/react-native/models/index.d.ts +1118 -0
  272. package/dist/react-native/models/index.d.ts.map +1 -0
  273. package/dist/react-native/models/index.js +72 -0
  274. package/dist/react-native/models/index.js.map +1 -0
  275. package/dist/react-native/models/mappers.d.ts +62 -0
  276. package/dist/react-native/models/mappers.d.ts.map +1 -0
  277. package/dist/react-native/models/mappers.js +1703 -0
  278. package/dist/react-native/models/mappers.js.map +1 -0
  279. package/dist/react-native/models/parameters.d.ts +27 -0
  280. package/dist/react-native/models/parameters.d.ts.map +1 -0
  281. package/dist/react-native/models/parameters.js +278 -0
  282. package/dist/react-native/models/parameters.js.map +1 -0
  283. package/dist/react-native/operations/capabilities.d.ts +81 -0
  284. package/dist/react-native/operations/capabilities.d.ts.map +1 -0
  285. package/dist/react-native/operations/capabilities.js +321 -0
  286. package/dist/react-native/operations/capabilities.js.map +1 -0
  287. package/dist/react-native/operations/capabilityTypes.d.ts +46 -0
  288. package/dist/react-native/operations/capabilityTypes.d.ts.map +1 -0
  289. package/dist/react-native/operations/capabilityTypes.js +182 -0
  290. package/dist/react-native/operations/capabilityTypes.js.map +1 -0
  291. package/dist/react-native/operations/experiments.d.ts +175 -0
  292. package/dist/react-native/operations/experiments.d.ts.map +1 -0
  293. package/dist/react-native/operations/experiments.js +878 -0
  294. package/dist/react-native/operations/experiments.js.map +1 -0
  295. package/dist/react-native/operations/index.d.ts +8 -0
  296. package/dist/react-native/operations/index.d.ts.map +1 -0
  297. package/dist/react-native/operations/index.js +15 -0
  298. package/dist/react-native/operations/index.js.map +1 -0
  299. package/dist/react-native/operations/operationStatuses.d.ts +20 -0
  300. package/dist/react-native/operations/operationStatuses.d.ts.map +1 -0
  301. package/dist/react-native/operations/operationStatuses.js +53 -0
  302. package/dist/react-native/operations/operationStatuses.js.map +1 -0
  303. package/dist/react-native/operations/operations.d.ts +32 -0
  304. package/dist/react-native/operations/operations.d.ts.map +1 -0
  305. package/dist/react-native/operations/operations.js +133 -0
  306. package/dist/react-native/operations/operations.js.map +1 -0
  307. package/dist/react-native/operations/targetTypes.d.ts +42 -0
  308. package/dist/react-native/operations/targetTypes.d.ts.map +1 -0
  309. package/dist/react-native/operations/targetTypes.js +175 -0
  310. package/dist/react-native/operations/targetTypes.js.map +1 -0
  311. package/dist/react-native/operations/targets.d.ts +75 -0
  312. package/dist/react-native/operations/targets.d.ts.map +1 -0
  313. package/dist/react-native/operations/targets.js +305 -0
  314. package/dist/react-native/operations/targets.js.map +1 -0
  315. package/dist/react-native/operationsInterfaces/capabilities.d.ts +50 -0
  316. package/dist/react-native/operationsInterfaces/capabilities.d.ts.map +1 -0
  317. package/dist/react-native/operationsInterfaces/capabilities.js +9 -0
  318. package/dist/react-native/operationsInterfaces/capabilities.js.map +1 -0
  319. package/dist/react-native/operationsInterfaces/capabilityTypes.d.ts +21 -0
  320. package/dist/react-native/operationsInterfaces/capabilityTypes.d.ts.map +1 -0
  321. package/dist/react-native/operationsInterfaces/capabilityTypes.js +9 -0
  322. package/dist/react-native/operationsInterfaces/capabilityTypes.js.map +1 -0
  323. package/dist/react-native/operationsInterfaces/experiments.d.ts +122 -0
  324. package/dist/react-native/operationsInterfaces/experiments.d.ts.map +1 -0
  325. package/dist/react-native/operationsInterfaces/experiments.js +9 -0
  326. package/dist/react-native/operationsInterfaces/experiments.js.map +1 -0
  327. package/dist/react-native/operationsInterfaces/index.d.ts +8 -0
  328. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  329. package/dist/react-native/operationsInterfaces/index.js +15 -0
  330. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  331. package/dist/react-native/operationsInterfaces/operationStatuses.d.ts +12 -0
  332. package/dist/react-native/operationsInterfaces/operationStatuses.d.ts.map +1 -0
  333. package/dist/react-native/operationsInterfaces/operationStatuses.js +9 -0
  334. package/dist/react-native/operationsInterfaces/operationStatuses.js.map +1 -0
  335. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  336. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  337. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  338. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  339. package/dist/react-native/operationsInterfaces/targetTypes.d.ts +19 -0
  340. package/dist/react-native/operationsInterfaces/targetTypes.d.ts.map +1 -0
  341. package/dist/react-native/operationsInterfaces/targetTypes.js +9 -0
  342. package/dist/react-native/operationsInterfaces/targetTypes.js.map +1 -0
  343. package/dist/react-native/operationsInterfaces/targets.d.ts +46 -0
  344. package/dist/react-native/operationsInterfaces/targets.d.ts.map +1 -0
  345. package/dist/react-native/operationsInterfaces/targets.js +9 -0
  346. package/dist/react-native/operationsInterfaces/targets.js.map +1 -0
  347. package/dist/react-native/package.json +3 -0
  348. package/dist/react-native/pagingHelper.d.ts +13 -0
  349. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  350. package/dist/react-native/pagingHelper.js +32 -0
  351. package/dist/react-native/pagingHelper.js.map +1 -0
  352. package/package.json +58 -28
  353. package/dist/index.js +0 -4322
  354. package/dist/index.js.map +0 -1
  355. package/dist/index.min.js +0 -1
  356. package/dist/index.min.js.map +0 -1
  357. package/dist-esm/samples-dev/capabilitiesCreateOrUpdateSample.d.ts +0 -2
  358. package/dist-esm/samples-dev/capabilitiesCreateOrUpdateSample.d.ts.map +0 -1
  359. package/dist-esm/samples-dev/capabilitiesCreateOrUpdateSample.js +0 -44
  360. package/dist-esm/samples-dev/capabilitiesCreateOrUpdateSample.js.map +0 -1
  361. package/dist-esm/samples-dev/capabilitiesDeleteSample.d.ts +0 -2
  362. package/dist-esm/samples-dev/capabilitiesDeleteSample.d.ts.map +0 -1
  363. package/dist-esm/samples-dev/capabilitiesDeleteSample.js +0 -43
  364. package/dist-esm/samples-dev/capabilitiesDeleteSample.js.map +0 -1
  365. package/dist-esm/samples-dev/capabilitiesGetSample.d.ts +0 -2
  366. package/dist-esm/samples-dev/capabilitiesGetSample.d.ts.map +0 -1
  367. package/dist-esm/samples-dev/capabilitiesGetSample.js +0 -43
  368. package/dist-esm/samples-dev/capabilitiesGetSample.js.map +0 -1
  369. package/dist-esm/samples-dev/capabilitiesListSample.d.ts +0 -2
  370. package/dist-esm/samples-dev/capabilitiesListSample.d.ts.map +0 -1
  371. package/dist-esm/samples-dev/capabilitiesListSample.js +0 -58
  372. package/dist-esm/samples-dev/capabilitiesListSample.js.map +0 -1
  373. package/dist-esm/samples-dev/capabilityTypesGetSample.d.ts +0 -2
  374. package/dist-esm/samples-dev/capabilityTypesGetSample.d.ts.map +0 -1
  375. package/dist-esm/samples-dev/capabilityTypesGetSample.js +0 -40
  376. package/dist-esm/samples-dev/capabilityTypesGetSample.js.map +0 -1
  377. package/dist-esm/samples-dev/capabilityTypesListSample.d.ts +0 -2
  378. package/dist-esm/samples-dev/capabilityTypesListSample.d.ts.map +0 -1
  379. package/dist-esm/samples-dev/capabilityTypesListSample.js +0 -55
  380. package/dist-esm/samples-dev/capabilityTypesListSample.js.map +0 -1
  381. package/dist-esm/samples-dev/experimentsCancelSample.d.ts +0 -2
  382. package/dist-esm/samples-dev/experimentsCancelSample.d.ts.map +0 -1
  383. package/dist-esm/samples-dev/experimentsCancelSample.js +0 -39
  384. package/dist-esm/samples-dev/experimentsCancelSample.js.map +0 -1
  385. package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.d.ts +0 -2
  386. package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.d.ts.map +0 -1
  387. package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.js +0 -74
  388. package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.js.map +0 -1
  389. package/dist-esm/samples-dev/experimentsDeleteSample.d.ts +0 -2
  390. package/dist-esm/samples-dev/experimentsDeleteSample.d.ts.map +0 -1
  391. package/dist-esm/samples-dev/experimentsDeleteSample.js +0 -39
  392. package/dist-esm/samples-dev/experimentsDeleteSample.js.map +0 -1
  393. package/dist-esm/samples-dev/experimentsExecutionDetailsSample.d.ts +0 -2
  394. package/dist-esm/samples-dev/experimentsExecutionDetailsSample.d.ts.map +0 -1
  395. package/dist-esm/samples-dev/experimentsExecutionDetailsSample.js +0 -40
  396. package/dist-esm/samples-dev/experimentsExecutionDetailsSample.js.map +0 -1
  397. package/dist-esm/samples-dev/experimentsGetExecutionSample.d.ts +0 -2
  398. package/dist-esm/samples-dev/experimentsGetExecutionSample.d.ts.map +0 -1
  399. package/dist-esm/samples-dev/experimentsGetExecutionSample.js +0 -40
  400. package/dist-esm/samples-dev/experimentsGetExecutionSample.js.map +0 -1
  401. package/dist-esm/samples-dev/experimentsGetSample.d.ts +0 -2
  402. package/dist-esm/samples-dev/experimentsGetSample.d.ts.map +0 -1
  403. package/dist-esm/samples-dev/experimentsGetSample.js +0 -39
  404. package/dist-esm/samples-dev/experimentsGetSample.js.map +0 -1
  405. package/dist-esm/samples-dev/experimentsListAllExecutionsSample.d.ts +0 -2
  406. package/dist-esm/samples-dev/experimentsListAllExecutionsSample.d.ts.map +0 -1
  407. package/dist-esm/samples-dev/experimentsListAllExecutionsSample.js +0 -55
  408. package/dist-esm/samples-dev/experimentsListAllExecutionsSample.js.map +0 -1
  409. package/dist-esm/samples-dev/experimentsListAllSample.d.ts +0 -2
  410. package/dist-esm/samples-dev/experimentsListAllSample.d.ts.map +0 -1
  411. package/dist-esm/samples-dev/experimentsListAllSample.js +0 -55
  412. package/dist-esm/samples-dev/experimentsListAllSample.js.map +0 -1
  413. package/dist-esm/samples-dev/experimentsListSample.d.ts +0 -2
  414. package/dist-esm/samples-dev/experimentsListSample.d.ts.map +0 -1
  415. package/dist-esm/samples-dev/experimentsListSample.js +0 -56
  416. package/dist-esm/samples-dev/experimentsListSample.js.map +0 -1
  417. package/dist-esm/samples-dev/experimentsStartSample.d.ts +0 -2
  418. package/dist-esm/samples-dev/experimentsStartSample.d.ts.map +0 -1
  419. package/dist-esm/samples-dev/experimentsStartSample.js +0 -39
  420. package/dist-esm/samples-dev/experimentsStartSample.js.map +0 -1
  421. package/dist-esm/samples-dev/experimentsUpdateSample.d.ts +0 -2
  422. package/dist-esm/samples-dev/experimentsUpdateSample.d.ts.map +0 -1
  423. package/dist-esm/samples-dev/experimentsUpdateSample.js +0 -48
  424. package/dist-esm/samples-dev/experimentsUpdateSample.js.map +0 -1
  425. package/dist-esm/samples-dev/operationStatusesGetSample.d.ts +0 -2
  426. package/dist-esm/samples-dev/operationStatusesGetSample.d.ts.map +0 -1
  427. package/dist-esm/samples-dev/operationStatusesGetSample.js +0 -39
  428. package/dist-esm/samples-dev/operationStatusesGetSample.js.map +0 -1
  429. package/dist-esm/samples-dev/targetTypesGetSample.d.ts +0 -2
  430. package/dist-esm/samples-dev/targetTypesGetSample.d.ts.map +0 -1
  431. package/dist-esm/samples-dev/targetTypesGetSample.js +0 -39
  432. package/dist-esm/samples-dev/targetTypesGetSample.js.map +0 -1
  433. package/dist-esm/samples-dev/targetTypesListSample.d.ts +0 -2
  434. package/dist-esm/samples-dev/targetTypesListSample.d.ts.map +0 -1
  435. package/dist-esm/samples-dev/targetTypesListSample.js +0 -56
  436. package/dist-esm/samples-dev/targetTypesListSample.js.map +0 -1
  437. package/dist-esm/samples-dev/targetsCreateOrUpdateSample.d.ts +0 -2
  438. package/dist-esm/samples-dev/targetsCreateOrUpdateSample.d.ts.map +0 -1
  439. package/dist-esm/samples-dev/targetsCreateOrUpdateSample.js +0 -49
  440. package/dist-esm/samples-dev/targetsCreateOrUpdateSample.js.map +0 -1
  441. package/dist-esm/samples-dev/targetsDeleteSample.d.ts +0 -2
  442. package/dist-esm/samples-dev/targetsDeleteSample.d.ts.map +0 -1
  443. package/dist-esm/samples-dev/targetsDeleteSample.js +0 -42
  444. package/dist-esm/samples-dev/targetsDeleteSample.js.map +0 -1
  445. package/dist-esm/samples-dev/targetsGetSample.d.ts +0 -2
  446. package/dist-esm/samples-dev/targetsGetSample.d.ts.map +0 -1
  447. package/dist-esm/samples-dev/targetsGetSample.js +0 -42
  448. package/dist-esm/samples-dev/targetsGetSample.js.map +0 -1
  449. package/dist-esm/samples-dev/targetsListSample.d.ts +0 -2
  450. package/dist-esm/samples-dev/targetsListSample.d.ts.map +0 -1
  451. package/dist-esm/samples-dev/targetsListSample.js +0 -59
  452. package/dist-esm/samples-dev/targetsListSample.js.map +0 -1
  453. package/dist-esm/src/chaosManagementClient.d.ts.map +0 -1
  454. package/dist-esm/src/chaosManagementClient.js.map +0 -1
  455. package/dist-esm/src/index.d.ts +0 -5
  456. package/dist-esm/src/index.js.map +0 -1
  457. package/dist-esm/src/lroImpl.js.map +0 -1
  458. package/dist-esm/src/models/index.js.map +0 -1
  459. package/dist-esm/src/models/mappers.js.map +0 -1
  460. package/dist-esm/src/models/parameters.js.map +0 -1
  461. package/dist-esm/src/operations/capabilities.d.ts.map +0 -1
  462. package/dist-esm/src/operations/capabilities.js.map +0 -1
  463. package/dist-esm/src/operations/capabilityTypes.d.ts.map +0 -1
  464. package/dist-esm/src/operations/capabilityTypes.js.map +0 -1
  465. package/dist-esm/src/operations/experiments.d.ts.map +0 -1
  466. package/dist-esm/src/operations/experiments.js.map +0 -1
  467. package/dist-esm/src/operations/index.d.ts +0 -8
  468. package/dist-esm/src/operations/index.d.ts.map +0 -1
  469. package/dist-esm/src/operations/index.js +0 -15
  470. package/dist-esm/src/operations/index.js.map +0 -1
  471. package/dist-esm/src/operations/operationStatuses.d.ts.map +0 -1
  472. package/dist-esm/src/operations/operationStatuses.js.map +0 -1
  473. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  474. package/dist-esm/src/operations/operations.js.map +0 -1
  475. package/dist-esm/src/operations/targetTypes.d.ts.map +0 -1
  476. package/dist-esm/src/operations/targetTypes.js.map +0 -1
  477. package/dist-esm/src/operations/targets.d.ts.map +0 -1
  478. package/dist-esm/src/operations/targets.js.map +0 -1
  479. package/dist-esm/src/operationsInterfaces/capabilities.d.ts.map +0 -1
  480. package/dist-esm/src/operationsInterfaces/capabilities.js.map +0 -1
  481. package/dist-esm/src/operationsInterfaces/capabilityTypes.d.ts.map +0 -1
  482. package/dist-esm/src/operationsInterfaces/capabilityTypes.js.map +0 -1
  483. package/dist-esm/src/operationsInterfaces/experiments.d.ts.map +0 -1
  484. package/dist-esm/src/operationsInterfaces/experiments.js.map +0 -1
  485. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
  486. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  487. package/dist-esm/src/operationsInterfaces/index.js +0 -15
  488. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  489. package/dist-esm/src/operationsInterfaces/operationStatuses.js.map +0 -1
  490. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  491. package/dist-esm/src/operationsInterfaces/targetTypes.d.ts.map +0 -1
  492. package/dist-esm/src/operationsInterfaces/targetTypes.js.map +0 -1
  493. package/dist-esm/src/operationsInterfaces/targets.d.ts.map +0 -1
  494. package/dist-esm/src/operationsInterfaces/targets.js.map +0 -1
  495. package/dist-esm/src/pagingHelper.js.map +0 -1
  496. package/dist-esm/test/chaos_examples.spec.d.ts +0 -4
  497. package/dist-esm/test/chaos_examples.spec.d.ts.map +0 -1
  498. package/dist-esm/test/chaos_examples.spec.js +0 -275
  499. package/dist-esm/test/chaos_examples.spec.js.map +0 -1
  500. package/src/chaosManagementClient.ts +0 -183
  501. package/src/lroImpl.ts +0 -42
  502. package/src/models/index.ts +0 -1265
  503. package/src/models/mappers.ts +0 -1848
  504. package/src/models/parameters.ts +0 -317
  505. package/src/operations/capabilities.ts +0 -444
  506. package/src/operations/capabilityTypes.ts +0 -236
  507. package/src/operations/experiments.ts +0 -1172
  508. package/src/operations/index.ts +0 -15
  509. package/src/operations/operationStatuses.ts +0 -71
  510. package/src/operations/operations.ts +0 -149
  511. package/src/operations/targetTypes.ts +0 -209
  512. package/src/operations/targets.ts +0 -415
  513. package/src/operationsInterfaces/capabilities.ts +0 -99
  514. package/src/operationsInterfaces/capabilityTypes.ts +0 -44
  515. package/src/operationsInterfaces/experiments.ts +0 -228
  516. package/src/operationsInterfaces/index.ts +0 -15
  517. package/src/operationsInterfaces/operationStatuses.ts +0 -27
  518. package/src/operationsInterfaces/operations.ts +0 -22
  519. package/src/operationsInterfaces/targetTypes.ts +0 -40
  520. package/src/operationsInterfaces/targets.ts +0 -91
  521. package/src/pagingHelper.ts +0 -39
  522. package/tsconfig.json +0 -33
  523. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  524. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  525. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  526. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  527. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  528. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  529. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  530. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  531. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  532. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  533. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  534. /package/{dist-esm/src → dist/browser}/operationsInterfaces/capabilities.js +0 -0
  535. /package/{dist-esm/src → dist/browser}/operationsInterfaces/capabilityTypes.js +0 -0
  536. /package/{dist-esm/src → dist/browser}/operationsInterfaces/experiments.js +0 -0
  537. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operationStatuses.js +0 -0
  538. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  539. /package/{dist-esm/src → dist/browser}/operationsInterfaces/targetTypes.js +0 -0
  540. /package/{dist-esm/src → dist/browser}/operationsInterfaces/targets.js +0 -0
  541. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  542. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  543. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  544. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -1,1172 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { Experiments } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { ChaosManagementClient } from "../chaosManagementClient";
16
- import {
17
- SimplePollerLike,
18
- OperationState,
19
- createHttpPoller,
20
- } from "@azure/core-lro";
21
- import { createLroSpec } from "../lroImpl";
22
- import {
23
- Experiment,
24
- ExperimentsListAllNextOptionalParams,
25
- ExperimentsListAllOptionalParams,
26
- ExperimentsListAllResponse,
27
- ExperimentsListNextOptionalParams,
28
- ExperimentsListOptionalParams,
29
- ExperimentsListResponse,
30
- ExperimentExecution,
31
- ExperimentsListAllExecutionsNextOptionalParams,
32
- ExperimentsListAllExecutionsOptionalParams,
33
- ExperimentsListAllExecutionsResponse,
34
- ExperimentsDeleteOptionalParams,
35
- ExperimentsGetOptionalParams,
36
- ExperimentsGetResponse,
37
- ExperimentsCreateOrUpdateOptionalParams,
38
- ExperimentsCreateOrUpdateResponse,
39
- ExperimentUpdate,
40
- ExperimentsUpdateOptionalParams,
41
- ExperimentsUpdateResponse,
42
- ExperimentsCancelOptionalParams,
43
- ExperimentsStartOptionalParams,
44
- ExperimentsGetExecutionOptionalParams,
45
- ExperimentsGetExecutionResponse,
46
- ExperimentsExecutionDetailsOptionalParams,
47
- ExperimentsExecutionDetailsResponse,
48
- ExperimentsListAllNextResponse,
49
- ExperimentsListNextResponse,
50
- ExperimentsListAllExecutionsNextResponse,
51
- } from "../models";
52
-
53
- /// <reference lib="esnext.asynciterable" />
54
- /** Class containing Experiments operations. */
55
- export class ExperimentsImpl implements Experiments {
56
- private readonly client: ChaosManagementClient;
57
-
58
- /**
59
- * Initialize a new instance of the class Experiments class.
60
- * @param client Reference to the service client
61
- */
62
- constructor(client: ChaosManagementClient) {
63
- this.client = client;
64
- }
65
-
66
- /**
67
- * Get a list of Experiment resources in a subscription.
68
- * @param options The options parameters.
69
- */
70
- public listAll(
71
- options?: ExperimentsListAllOptionalParams,
72
- ): PagedAsyncIterableIterator<Experiment> {
73
- const iter = this.listAllPagingAll(options);
74
- return {
75
- next() {
76
- return iter.next();
77
- },
78
- [Symbol.asyncIterator]() {
79
- return this;
80
- },
81
- byPage: (settings?: PageSettings) => {
82
- if (settings?.maxPageSize) {
83
- throw new Error("maxPageSize is not supported by this operation.");
84
- }
85
- return this.listAllPagingPage(options, settings);
86
- },
87
- };
88
- }
89
-
90
- private async *listAllPagingPage(
91
- options?: ExperimentsListAllOptionalParams,
92
- settings?: PageSettings,
93
- ): AsyncIterableIterator<Experiment[]> {
94
- let result: ExperimentsListAllResponse;
95
- let continuationToken = settings?.continuationToken;
96
- if (!continuationToken) {
97
- result = await this._listAll(options);
98
- let page = result.value || [];
99
- continuationToken = result.nextLink;
100
- setContinuationToken(page, continuationToken);
101
- yield page;
102
- }
103
- while (continuationToken) {
104
- result = await this._listAllNext(continuationToken, options);
105
- continuationToken = result.nextLink;
106
- let page = result.value || [];
107
- setContinuationToken(page, continuationToken);
108
- yield page;
109
- }
110
- }
111
-
112
- private async *listAllPagingAll(
113
- options?: ExperimentsListAllOptionalParams,
114
- ): AsyncIterableIterator<Experiment> {
115
- for await (const page of this.listAllPagingPage(options)) {
116
- yield* page;
117
- }
118
- }
119
-
120
- /**
121
- * Get a list of Experiment resources in a resource group.
122
- * @param resourceGroupName String that represents an Azure resource group.
123
- * @param options The options parameters.
124
- */
125
- public list(
126
- resourceGroupName: string,
127
- options?: ExperimentsListOptionalParams,
128
- ): PagedAsyncIterableIterator<Experiment> {
129
- const iter = this.listPagingAll(resourceGroupName, options);
130
- return {
131
- next() {
132
- return iter.next();
133
- },
134
- [Symbol.asyncIterator]() {
135
- return this;
136
- },
137
- byPage: (settings?: PageSettings) => {
138
- if (settings?.maxPageSize) {
139
- throw new Error("maxPageSize is not supported by this operation.");
140
- }
141
- return this.listPagingPage(resourceGroupName, options, settings);
142
- },
143
- };
144
- }
145
-
146
- private async *listPagingPage(
147
- resourceGroupName: string,
148
- options?: ExperimentsListOptionalParams,
149
- settings?: PageSettings,
150
- ): AsyncIterableIterator<Experiment[]> {
151
- let result: ExperimentsListResponse;
152
- let continuationToken = settings?.continuationToken;
153
- if (!continuationToken) {
154
- result = await this._list(resourceGroupName, options);
155
- let page = result.value || [];
156
- continuationToken = result.nextLink;
157
- setContinuationToken(page, continuationToken);
158
- yield page;
159
- }
160
- while (continuationToken) {
161
- result = await this._listNext(
162
- resourceGroupName,
163
- continuationToken,
164
- options,
165
- );
166
- continuationToken = result.nextLink;
167
- let page = result.value || [];
168
- setContinuationToken(page, continuationToken);
169
- yield page;
170
- }
171
- }
172
-
173
- private async *listPagingAll(
174
- resourceGroupName: string,
175
- options?: ExperimentsListOptionalParams,
176
- ): AsyncIterableIterator<Experiment> {
177
- for await (const page of this.listPagingPage(resourceGroupName, options)) {
178
- yield* page;
179
- }
180
- }
181
-
182
- /**
183
- * Get a list of executions of an Experiment resource.
184
- * @param resourceGroupName String that represents an Azure resource group.
185
- * @param experimentName String that represents a Experiment resource name.
186
- * @param options The options parameters.
187
- */
188
- public listAllExecutions(
189
- resourceGroupName: string,
190
- experimentName: string,
191
- options?: ExperimentsListAllExecutionsOptionalParams,
192
- ): PagedAsyncIterableIterator<ExperimentExecution> {
193
- const iter = this.listAllExecutionsPagingAll(
194
- resourceGroupName,
195
- experimentName,
196
- options,
197
- );
198
- return {
199
- next() {
200
- return iter.next();
201
- },
202
- [Symbol.asyncIterator]() {
203
- return this;
204
- },
205
- byPage: (settings?: PageSettings) => {
206
- if (settings?.maxPageSize) {
207
- throw new Error("maxPageSize is not supported by this operation.");
208
- }
209
- return this.listAllExecutionsPagingPage(
210
- resourceGroupName,
211
- experimentName,
212
- options,
213
- settings,
214
- );
215
- },
216
- };
217
- }
218
-
219
- private async *listAllExecutionsPagingPage(
220
- resourceGroupName: string,
221
- experimentName: string,
222
- options?: ExperimentsListAllExecutionsOptionalParams,
223
- settings?: PageSettings,
224
- ): AsyncIterableIterator<ExperimentExecution[]> {
225
- let result: ExperimentsListAllExecutionsResponse;
226
- let continuationToken = settings?.continuationToken;
227
- if (!continuationToken) {
228
- result = await this._listAllExecutions(
229
- resourceGroupName,
230
- experimentName,
231
- options,
232
- );
233
- let page = result.value || [];
234
- continuationToken = result.nextLink;
235
- setContinuationToken(page, continuationToken);
236
- yield page;
237
- }
238
- while (continuationToken) {
239
- result = await this._listAllExecutionsNext(
240
- resourceGroupName,
241
- experimentName,
242
- continuationToken,
243
- options,
244
- );
245
- continuationToken = result.nextLink;
246
- let page = result.value || [];
247
- setContinuationToken(page, continuationToken);
248
- yield page;
249
- }
250
- }
251
-
252
- private async *listAllExecutionsPagingAll(
253
- resourceGroupName: string,
254
- experimentName: string,
255
- options?: ExperimentsListAllExecutionsOptionalParams,
256
- ): AsyncIterableIterator<ExperimentExecution> {
257
- for await (const page of this.listAllExecutionsPagingPage(
258
- resourceGroupName,
259
- experimentName,
260
- options,
261
- )) {
262
- yield* page;
263
- }
264
- }
265
-
266
- /**
267
- * Get a list of Experiment resources in a subscription.
268
- * @param options The options parameters.
269
- */
270
- private _listAll(
271
- options?: ExperimentsListAllOptionalParams,
272
- ): Promise<ExperimentsListAllResponse> {
273
- return this.client.sendOperationRequest({ options }, listAllOperationSpec);
274
- }
275
-
276
- /**
277
- * Get a list of Experiment resources in a resource group.
278
- * @param resourceGroupName String that represents an Azure resource group.
279
- * @param options The options parameters.
280
- */
281
- private _list(
282
- resourceGroupName: string,
283
- options?: ExperimentsListOptionalParams,
284
- ): Promise<ExperimentsListResponse> {
285
- return this.client.sendOperationRequest(
286
- { resourceGroupName, options },
287
- listOperationSpec,
288
- );
289
- }
290
-
291
- /**
292
- * Delete a Experiment resource.
293
- * @param resourceGroupName String that represents an Azure resource group.
294
- * @param experimentName String that represents a Experiment resource name.
295
- * @param options The options parameters.
296
- */
297
- async beginDelete(
298
- resourceGroupName: string,
299
- experimentName: string,
300
- options?: ExperimentsDeleteOptionalParams,
301
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
302
- const directSendOperation = async (
303
- args: coreClient.OperationArguments,
304
- spec: coreClient.OperationSpec,
305
- ): Promise<void> => {
306
- return this.client.sendOperationRequest(args, spec);
307
- };
308
- const sendOperationFn = async (
309
- args: coreClient.OperationArguments,
310
- spec: coreClient.OperationSpec,
311
- ) => {
312
- let currentRawResponse: coreClient.FullOperationResponse | undefined =
313
- undefined;
314
- const providedCallback = args.options?.onResponse;
315
- const callback: coreClient.RawResponseCallback = (
316
- rawResponse: coreClient.FullOperationResponse,
317
- flatResponse: unknown,
318
- ) => {
319
- currentRawResponse = rawResponse;
320
- providedCallback?.(rawResponse, flatResponse);
321
- };
322
- const updatedArgs = {
323
- ...args,
324
- options: {
325
- ...args.options,
326
- onResponse: callback,
327
- },
328
- };
329
- const flatResponse = await directSendOperation(updatedArgs, spec);
330
- return {
331
- flatResponse,
332
- rawResponse: {
333
- statusCode: currentRawResponse!.status,
334
- body: currentRawResponse!.parsedBody,
335
- headers: currentRawResponse!.headers.toJSON(),
336
- },
337
- };
338
- };
339
-
340
- const lro = createLroSpec({
341
- sendOperationFn,
342
- args: { resourceGroupName, experimentName, options },
343
- spec: deleteOperationSpec,
344
- });
345
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
346
- restoreFrom: options?.resumeFrom,
347
- intervalInMs: options?.updateIntervalInMs,
348
- resourceLocationConfig: "location",
349
- });
350
- await poller.poll();
351
- return poller;
352
- }
353
-
354
- /**
355
- * Delete a Experiment resource.
356
- * @param resourceGroupName String that represents an Azure resource group.
357
- * @param experimentName String that represents a Experiment resource name.
358
- * @param options The options parameters.
359
- */
360
- async beginDeleteAndWait(
361
- resourceGroupName: string,
362
- experimentName: string,
363
- options?: ExperimentsDeleteOptionalParams,
364
- ): Promise<void> {
365
- const poller = await this.beginDelete(
366
- resourceGroupName,
367
- experimentName,
368
- options,
369
- );
370
- return poller.pollUntilDone();
371
- }
372
-
373
- /**
374
- * Get a Experiment resource.
375
- * @param resourceGroupName String that represents an Azure resource group.
376
- * @param experimentName String that represents a Experiment resource name.
377
- * @param options The options parameters.
378
- */
379
- get(
380
- resourceGroupName: string,
381
- experimentName: string,
382
- options?: ExperimentsGetOptionalParams,
383
- ): Promise<ExperimentsGetResponse> {
384
- return this.client.sendOperationRequest(
385
- { resourceGroupName, experimentName, options },
386
- getOperationSpec,
387
- );
388
- }
389
-
390
- /**
391
- * Create or update a Experiment resource.
392
- * @param resourceGroupName String that represents an Azure resource group.
393
- * @param experimentName String that represents a Experiment resource name.
394
- * @param experiment Experiment resource to be created or updated.
395
- * @param options The options parameters.
396
- */
397
- async beginCreateOrUpdate(
398
- resourceGroupName: string,
399
- experimentName: string,
400
- experiment: Experiment,
401
- options?: ExperimentsCreateOrUpdateOptionalParams,
402
- ): Promise<
403
- SimplePollerLike<
404
- OperationState<ExperimentsCreateOrUpdateResponse>,
405
- ExperimentsCreateOrUpdateResponse
406
- >
407
- > {
408
- const directSendOperation = async (
409
- args: coreClient.OperationArguments,
410
- spec: coreClient.OperationSpec,
411
- ): Promise<ExperimentsCreateOrUpdateResponse> => {
412
- return this.client.sendOperationRequest(args, spec);
413
- };
414
- const sendOperationFn = async (
415
- args: coreClient.OperationArguments,
416
- spec: coreClient.OperationSpec,
417
- ) => {
418
- let currentRawResponse: coreClient.FullOperationResponse | undefined =
419
- undefined;
420
- const providedCallback = args.options?.onResponse;
421
- const callback: coreClient.RawResponseCallback = (
422
- rawResponse: coreClient.FullOperationResponse,
423
- flatResponse: unknown,
424
- ) => {
425
- currentRawResponse = rawResponse;
426
- providedCallback?.(rawResponse, flatResponse);
427
- };
428
- const updatedArgs = {
429
- ...args,
430
- options: {
431
- ...args.options,
432
- onResponse: callback,
433
- },
434
- };
435
- const flatResponse = await directSendOperation(updatedArgs, spec);
436
- return {
437
- flatResponse,
438
- rawResponse: {
439
- statusCode: currentRawResponse!.status,
440
- body: currentRawResponse!.parsedBody,
441
- headers: currentRawResponse!.headers.toJSON(),
442
- },
443
- };
444
- };
445
-
446
- const lro = createLroSpec({
447
- sendOperationFn,
448
- args: { resourceGroupName, experimentName, experiment, options },
449
- spec: createOrUpdateOperationSpec,
450
- });
451
- const poller = await createHttpPoller<
452
- ExperimentsCreateOrUpdateResponse,
453
- OperationState<ExperimentsCreateOrUpdateResponse>
454
- >(lro, {
455
- restoreFrom: options?.resumeFrom,
456
- intervalInMs: options?.updateIntervalInMs,
457
- resourceLocationConfig: "azure-async-operation",
458
- });
459
- await poller.poll();
460
- return poller;
461
- }
462
-
463
- /**
464
- * Create or update a Experiment resource.
465
- * @param resourceGroupName String that represents an Azure resource group.
466
- * @param experimentName String that represents a Experiment resource name.
467
- * @param experiment Experiment resource to be created or updated.
468
- * @param options The options parameters.
469
- */
470
- async beginCreateOrUpdateAndWait(
471
- resourceGroupName: string,
472
- experimentName: string,
473
- experiment: Experiment,
474
- options?: ExperimentsCreateOrUpdateOptionalParams,
475
- ): Promise<ExperimentsCreateOrUpdateResponse> {
476
- const poller = await this.beginCreateOrUpdate(
477
- resourceGroupName,
478
- experimentName,
479
- experiment,
480
- options,
481
- );
482
- return poller.pollUntilDone();
483
- }
484
-
485
- /**
486
- * The operation to update an experiment.
487
- * @param resourceGroupName String that represents an Azure resource group.
488
- * @param experimentName String that represents a Experiment resource name.
489
- * @param experiment Parameters supplied to the Update experiment operation.
490
- * @param options The options parameters.
491
- */
492
- async beginUpdate(
493
- resourceGroupName: string,
494
- experimentName: string,
495
- experiment: ExperimentUpdate,
496
- options?: ExperimentsUpdateOptionalParams,
497
- ): Promise<
498
- SimplePollerLike<
499
- OperationState<ExperimentsUpdateResponse>,
500
- ExperimentsUpdateResponse
501
- >
502
- > {
503
- const directSendOperation = async (
504
- args: coreClient.OperationArguments,
505
- spec: coreClient.OperationSpec,
506
- ): Promise<ExperimentsUpdateResponse> => {
507
- return this.client.sendOperationRequest(args, spec);
508
- };
509
- const sendOperationFn = async (
510
- args: coreClient.OperationArguments,
511
- spec: coreClient.OperationSpec,
512
- ) => {
513
- let currentRawResponse: coreClient.FullOperationResponse | undefined =
514
- undefined;
515
- const providedCallback = args.options?.onResponse;
516
- const callback: coreClient.RawResponseCallback = (
517
- rawResponse: coreClient.FullOperationResponse,
518
- flatResponse: unknown,
519
- ) => {
520
- currentRawResponse = rawResponse;
521
- providedCallback?.(rawResponse, flatResponse);
522
- };
523
- const updatedArgs = {
524
- ...args,
525
- options: {
526
- ...args.options,
527
- onResponse: callback,
528
- },
529
- };
530
- const flatResponse = await directSendOperation(updatedArgs, spec);
531
- return {
532
- flatResponse,
533
- rawResponse: {
534
- statusCode: currentRawResponse!.status,
535
- body: currentRawResponse!.parsedBody,
536
- headers: currentRawResponse!.headers.toJSON(),
537
- },
538
- };
539
- };
540
-
541
- const lro = createLroSpec({
542
- sendOperationFn,
543
- args: { resourceGroupName, experimentName, experiment, options },
544
- spec: updateOperationSpec,
545
- });
546
- const poller = await createHttpPoller<
547
- ExperimentsUpdateResponse,
548
- OperationState<ExperimentsUpdateResponse>
549
- >(lro, {
550
- restoreFrom: options?.resumeFrom,
551
- intervalInMs: options?.updateIntervalInMs,
552
- resourceLocationConfig: "location",
553
- });
554
- await poller.poll();
555
- return poller;
556
- }
557
-
558
- /**
559
- * The operation to update an experiment.
560
- * @param resourceGroupName String that represents an Azure resource group.
561
- * @param experimentName String that represents a Experiment resource name.
562
- * @param experiment Parameters supplied to the Update experiment operation.
563
- * @param options The options parameters.
564
- */
565
- async beginUpdateAndWait(
566
- resourceGroupName: string,
567
- experimentName: string,
568
- experiment: ExperimentUpdate,
569
- options?: ExperimentsUpdateOptionalParams,
570
- ): Promise<ExperimentsUpdateResponse> {
571
- const poller = await this.beginUpdate(
572
- resourceGroupName,
573
- experimentName,
574
- experiment,
575
- options,
576
- );
577
- return poller.pollUntilDone();
578
- }
579
-
580
- /**
581
- * Cancel a running Experiment resource.
582
- * @param resourceGroupName String that represents an Azure resource group.
583
- * @param experimentName String that represents a Experiment resource name.
584
- * @param options The options parameters.
585
- */
586
- async beginCancel(
587
- resourceGroupName: string,
588
- experimentName: string,
589
- options?: ExperimentsCancelOptionalParams,
590
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
591
- const directSendOperation = async (
592
- args: coreClient.OperationArguments,
593
- spec: coreClient.OperationSpec,
594
- ): Promise<void> => {
595
- return this.client.sendOperationRequest(args, spec);
596
- };
597
- const sendOperationFn = async (
598
- args: coreClient.OperationArguments,
599
- spec: coreClient.OperationSpec,
600
- ) => {
601
- let currentRawResponse: coreClient.FullOperationResponse | undefined =
602
- undefined;
603
- const providedCallback = args.options?.onResponse;
604
- const callback: coreClient.RawResponseCallback = (
605
- rawResponse: coreClient.FullOperationResponse,
606
- flatResponse: unknown,
607
- ) => {
608
- currentRawResponse = rawResponse;
609
- providedCallback?.(rawResponse, flatResponse);
610
- };
611
- const updatedArgs = {
612
- ...args,
613
- options: {
614
- ...args.options,
615
- onResponse: callback,
616
- },
617
- };
618
- const flatResponse = await directSendOperation(updatedArgs, spec);
619
- return {
620
- flatResponse,
621
- rawResponse: {
622
- statusCode: currentRawResponse!.status,
623
- body: currentRawResponse!.parsedBody,
624
- headers: currentRawResponse!.headers.toJSON(),
625
- },
626
- };
627
- };
628
-
629
- const lro = createLroSpec({
630
- sendOperationFn,
631
- args: { resourceGroupName, experimentName, options },
632
- spec: cancelOperationSpec,
633
- });
634
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
635
- restoreFrom: options?.resumeFrom,
636
- intervalInMs: options?.updateIntervalInMs,
637
- resourceLocationConfig: "location",
638
- });
639
- await poller.poll();
640
- return poller;
641
- }
642
-
643
- /**
644
- * Cancel a running Experiment resource.
645
- * @param resourceGroupName String that represents an Azure resource group.
646
- * @param experimentName String that represents a Experiment resource name.
647
- * @param options The options parameters.
648
- */
649
- async beginCancelAndWait(
650
- resourceGroupName: string,
651
- experimentName: string,
652
- options?: ExperimentsCancelOptionalParams,
653
- ): Promise<void> {
654
- const poller = await this.beginCancel(
655
- resourceGroupName,
656
- experimentName,
657
- options,
658
- );
659
- return poller.pollUntilDone();
660
- }
661
-
662
- /**
663
- * Start a Experiment resource.
664
- * @param resourceGroupName String that represents an Azure resource group.
665
- * @param experimentName String that represents a Experiment resource name.
666
- * @param options The options parameters.
667
- */
668
- async beginStart(
669
- resourceGroupName: string,
670
- experimentName: string,
671
- options?: ExperimentsStartOptionalParams,
672
- ): Promise<SimplePollerLike<OperationState<void>, void>> {
673
- const directSendOperation = async (
674
- args: coreClient.OperationArguments,
675
- spec: coreClient.OperationSpec,
676
- ): Promise<void> => {
677
- return this.client.sendOperationRequest(args, spec);
678
- };
679
- const sendOperationFn = async (
680
- args: coreClient.OperationArguments,
681
- spec: coreClient.OperationSpec,
682
- ) => {
683
- let currentRawResponse: coreClient.FullOperationResponse | undefined =
684
- undefined;
685
- const providedCallback = args.options?.onResponse;
686
- const callback: coreClient.RawResponseCallback = (
687
- rawResponse: coreClient.FullOperationResponse,
688
- flatResponse: unknown,
689
- ) => {
690
- currentRawResponse = rawResponse;
691
- providedCallback?.(rawResponse, flatResponse);
692
- };
693
- const updatedArgs = {
694
- ...args,
695
- options: {
696
- ...args.options,
697
- onResponse: callback,
698
- },
699
- };
700
- const flatResponse = await directSendOperation(updatedArgs, spec);
701
- return {
702
- flatResponse,
703
- rawResponse: {
704
- statusCode: currentRawResponse!.status,
705
- body: currentRawResponse!.parsedBody,
706
- headers: currentRawResponse!.headers.toJSON(),
707
- },
708
- };
709
- };
710
-
711
- const lro = createLroSpec({
712
- sendOperationFn,
713
- args: { resourceGroupName, experimentName, options },
714
- spec: startOperationSpec,
715
- });
716
- const poller = await createHttpPoller<void, OperationState<void>>(lro, {
717
- restoreFrom: options?.resumeFrom,
718
- intervalInMs: options?.updateIntervalInMs,
719
- resourceLocationConfig: "location",
720
- });
721
- await poller.poll();
722
- return poller;
723
- }
724
-
725
- /**
726
- * Start a Experiment resource.
727
- * @param resourceGroupName String that represents an Azure resource group.
728
- * @param experimentName String that represents a Experiment resource name.
729
- * @param options The options parameters.
730
- */
731
- async beginStartAndWait(
732
- resourceGroupName: string,
733
- experimentName: string,
734
- options?: ExperimentsStartOptionalParams,
735
- ): Promise<void> {
736
- const poller = await this.beginStart(
737
- resourceGroupName,
738
- experimentName,
739
- options,
740
- );
741
- return poller.pollUntilDone();
742
- }
743
-
744
- /**
745
- * Get a list of executions of an Experiment resource.
746
- * @param resourceGroupName String that represents an Azure resource group.
747
- * @param experimentName String that represents a Experiment resource name.
748
- * @param options The options parameters.
749
- */
750
- private _listAllExecutions(
751
- resourceGroupName: string,
752
- experimentName: string,
753
- options?: ExperimentsListAllExecutionsOptionalParams,
754
- ): Promise<ExperimentsListAllExecutionsResponse> {
755
- return this.client.sendOperationRequest(
756
- { resourceGroupName, experimentName, options },
757
- listAllExecutionsOperationSpec,
758
- );
759
- }
760
-
761
- /**
762
- * Get an execution of an Experiment resource.
763
- * @param resourceGroupName String that represents an Azure resource group.
764
- * @param experimentName String that represents a Experiment resource name.
765
- * @param executionId GUID that represents a Experiment execution detail.
766
- * @param options The options parameters.
767
- */
768
- getExecution(
769
- resourceGroupName: string,
770
- experimentName: string,
771
- executionId: string,
772
- options?: ExperimentsGetExecutionOptionalParams,
773
- ): Promise<ExperimentsGetExecutionResponse> {
774
- return this.client.sendOperationRequest(
775
- { resourceGroupName, experimentName, executionId, options },
776
- getExecutionOperationSpec,
777
- );
778
- }
779
-
780
- /**
781
- * Execution details of an experiment resource.
782
- * @param resourceGroupName String that represents an Azure resource group.
783
- * @param experimentName String that represents a Experiment resource name.
784
- * @param executionId GUID that represents a Experiment execution detail.
785
- * @param options The options parameters.
786
- */
787
- executionDetails(
788
- resourceGroupName: string,
789
- experimentName: string,
790
- executionId: string,
791
- options?: ExperimentsExecutionDetailsOptionalParams,
792
- ): Promise<ExperimentsExecutionDetailsResponse> {
793
- return this.client.sendOperationRequest(
794
- { resourceGroupName, experimentName, executionId, options },
795
- executionDetailsOperationSpec,
796
- );
797
- }
798
-
799
- /**
800
- * ListAllNext
801
- * @param nextLink The nextLink from the previous successful call to the ListAll method.
802
- * @param options The options parameters.
803
- */
804
- private _listAllNext(
805
- nextLink: string,
806
- options?: ExperimentsListAllNextOptionalParams,
807
- ): Promise<ExperimentsListAllNextResponse> {
808
- return this.client.sendOperationRequest(
809
- { nextLink, options },
810
- listAllNextOperationSpec,
811
- );
812
- }
813
-
814
- /**
815
- * ListNext
816
- * @param resourceGroupName String that represents an Azure resource group.
817
- * @param nextLink The nextLink from the previous successful call to the List method.
818
- * @param options The options parameters.
819
- */
820
- private _listNext(
821
- resourceGroupName: string,
822
- nextLink: string,
823
- options?: ExperimentsListNextOptionalParams,
824
- ): Promise<ExperimentsListNextResponse> {
825
- return this.client.sendOperationRequest(
826
- { resourceGroupName, nextLink, options },
827
- listNextOperationSpec,
828
- );
829
- }
830
-
831
- /**
832
- * ListAllExecutionsNext
833
- * @param resourceGroupName String that represents an Azure resource group.
834
- * @param experimentName String that represents a Experiment resource name.
835
- * @param nextLink The nextLink from the previous successful call to the ListAllExecutions method.
836
- * @param options The options parameters.
837
- */
838
- private _listAllExecutionsNext(
839
- resourceGroupName: string,
840
- experimentName: string,
841
- nextLink: string,
842
- options?: ExperimentsListAllExecutionsNextOptionalParams,
843
- ): Promise<ExperimentsListAllExecutionsNextResponse> {
844
- return this.client.sendOperationRequest(
845
- { resourceGroupName, experimentName, nextLink, options },
846
- listAllExecutionsNextOperationSpec,
847
- );
848
- }
849
- }
850
- // Operation Specifications
851
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
852
-
853
- const listAllOperationSpec: coreClient.OperationSpec = {
854
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/experiments",
855
- httpMethod: "GET",
856
- responses: {
857
- 200: {
858
- bodyMapper: Mappers.ExperimentListResult,
859
- },
860
- default: {
861
- bodyMapper: Mappers.ErrorResponse,
862
- },
863
- },
864
- queryParameters: [
865
- Parameters.apiVersion,
866
- Parameters.continuationToken,
867
- Parameters.running,
868
- ],
869
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
870
- headerParameters: [Parameters.accept],
871
- serializer,
872
- };
873
- const listOperationSpec: coreClient.OperationSpec = {
874
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments",
875
- httpMethod: "GET",
876
- responses: {
877
- 200: {
878
- bodyMapper: Mappers.ExperimentListResult,
879
- },
880
- default: {
881
- bodyMapper: Mappers.ErrorResponse,
882
- },
883
- },
884
- queryParameters: [
885
- Parameters.apiVersion,
886
- Parameters.continuationToken,
887
- Parameters.running,
888
- ],
889
- urlParameters: [
890
- Parameters.$host,
891
- Parameters.subscriptionId,
892
- Parameters.resourceGroupName,
893
- ],
894
- headerParameters: [Parameters.accept],
895
- serializer,
896
- };
897
- const deleteOperationSpec: coreClient.OperationSpec = {
898
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}",
899
- httpMethod: "DELETE",
900
- responses: {
901
- 200: {},
902
- 201: {},
903
- 202: {},
904
- 204: {},
905
- default: {
906
- bodyMapper: Mappers.ErrorResponse,
907
- },
908
- },
909
- queryParameters: [Parameters.apiVersion],
910
- urlParameters: [
911
- Parameters.$host,
912
- Parameters.subscriptionId,
913
- Parameters.resourceGroupName,
914
- Parameters.experimentName,
915
- ],
916
- headerParameters: [Parameters.accept],
917
- serializer,
918
- };
919
- const getOperationSpec: coreClient.OperationSpec = {
920
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}",
921
- httpMethod: "GET",
922
- responses: {
923
- 200: {
924
- bodyMapper: Mappers.Experiment,
925
- },
926
- default: {
927
- bodyMapper: Mappers.ErrorResponse,
928
- },
929
- },
930
- queryParameters: [Parameters.apiVersion],
931
- urlParameters: [
932
- Parameters.$host,
933
- Parameters.subscriptionId,
934
- Parameters.resourceGroupName,
935
- Parameters.experimentName,
936
- ],
937
- headerParameters: [Parameters.accept],
938
- serializer,
939
- };
940
- const createOrUpdateOperationSpec: coreClient.OperationSpec = {
941
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}",
942
- httpMethod: "PUT",
943
- responses: {
944
- 200: {
945
- bodyMapper: Mappers.Experiment,
946
- },
947
- 201: {
948
- bodyMapper: Mappers.Experiment,
949
- },
950
- 202: {
951
- bodyMapper: Mappers.Experiment,
952
- },
953
- 204: {
954
- bodyMapper: Mappers.Experiment,
955
- },
956
- default: {
957
- bodyMapper: Mappers.ErrorResponse,
958
- },
959
- },
960
- requestBody: Parameters.experiment,
961
- queryParameters: [Parameters.apiVersion],
962
- urlParameters: [
963
- Parameters.$host,
964
- Parameters.subscriptionId,
965
- Parameters.resourceGroupName,
966
- Parameters.experimentName,
967
- ],
968
- headerParameters: [Parameters.accept, Parameters.contentType],
969
- mediaType: "json",
970
- serializer,
971
- };
972
- const updateOperationSpec: coreClient.OperationSpec = {
973
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}",
974
- httpMethod: "PATCH",
975
- responses: {
976
- 200: {
977
- bodyMapper: Mappers.Experiment,
978
- },
979
- 201: {
980
- bodyMapper: Mappers.Experiment,
981
- },
982
- 202: {
983
- bodyMapper: Mappers.Experiment,
984
- },
985
- 204: {
986
- bodyMapper: Mappers.Experiment,
987
- },
988
- default: {
989
- bodyMapper: Mappers.ErrorResponse,
990
- },
991
- },
992
- requestBody: Parameters.experiment1,
993
- queryParameters: [Parameters.apiVersion],
994
- urlParameters: [
995
- Parameters.$host,
996
- Parameters.subscriptionId,
997
- Parameters.resourceGroupName,
998
- Parameters.experimentName,
999
- ],
1000
- headerParameters: [Parameters.accept, Parameters.contentType],
1001
- mediaType: "json",
1002
- serializer,
1003
- };
1004
- const cancelOperationSpec: coreClient.OperationSpec = {
1005
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/cancel",
1006
- httpMethod: "POST",
1007
- responses: {
1008
- 200: {},
1009
- 201: {},
1010
- 202: {},
1011
- 204: {},
1012
- default: {
1013
- bodyMapper: Mappers.ErrorResponse,
1014
- },
1015
- },
1016
- queryParameters: [Parameters.apiVersion],
1017
- urlParameters: [
1018
- Parameters.$host,
1019
- Parameters.subscriptionId,
1020
- Parameters.resourceGroupName,
1021
- Parameters.experimentName,
1022
- ],
1023
- headerParameters: [Parameters.accept],
1024
- serializer,
1025
- };
1026
- const startOperationSpec: coreClient.OperationSpec = {
1027
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/start",
1028
- httpMethod: "POST",
1029
- responses: {
1030
- 200: {},
1031
- 201: {},
1032
- 202: {},
1033
- 204: {},
1034
- default: {
1035
- bodyMapper: Mappers.ErrorResponse,
1036
- },
1037
- },
1038
- queryParameters: [Parameters.apiVersion],
1039
- urlParameters: [
1040
- Parameters.$host,
1041
- Parameters.subscriptionId,
1042
- Parameters.resourceGroupName,
1043
- Parameters.experimentName,
1044
- ],
1045
- headerParameters: [Parameters.accept],
1046
- serializer,
1047
- };
1048
- const listAllExecutionsOperationSpec: coreClient.OperationSpec = {
1049
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions",
1050
- httpMethod: "GET",
1051
- responses: {
1052
- 200: {
1053
- bodyMapper: Mappers.ExperimentExecutionListResult,
1054
- },
1055
- default: {
1056
- bodyMapper: Mappers.ErrorResponse,
1057
- },
1058
- },
1059
- queryParameters: [Parameters.apiVersion],
1060
- urlParameters: [
1061
- Parameters.$host,
1062
- Parameters.subscriptionId,
1063
- Parameters.resourceGroupName,
1064
- Parameters.experimentName,
1065
- ],
1066
- headerParameters: [Parameters.accept],
1067
- serializer,
1068
- };
1069
- const getExecutionOperationSpec: coreClient.OperationSpec = {
1070
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions/{executionId}",
1071
- httpMethod: "GET",
1072
- responses: {
1073
- 200: {
1074
- bodyMapper: Mappers.ExperimentExecution,
1075
- },
1076
- default: {
1077
- bodyMapper: Mappers.ErrorResponse,
1078
- },
1079
- },
1080
- queryParameters: [Parameters.apiVersion],
1081
- urlParameters: [
1082
- Parameters.$host,
1083
- Parameters.subscriptionId,
1084
- Parameters.resourceGroupName,
1085
- Parameters.experimentName,
1086
- Parameters.executionId,
1087
- ],
1088
- headerParameters: [Parameters.accept],
1089
- serializer,
1090
- };
1091
- const executionDetailsOperationSpec: coreClient.OperationSpec = {
1092
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions/{executionId}/getExecutionDetails",
1093
- httpMethod: "POST",
1094
- responses: {
1095
- 200: {
1096
- bodyMapper: Mappers.ExperimentExecutionDetails,
1097
- },
1098
- default: {
1099
- bodyMapper: Mappers.ErrorResponse,
1100
- },
1101
- },
1102
- queryParameters: [Parameters.apiVersion],
1103
- urlParameters: [
1104
- Parameters.$host,
1105
- Parameters.subscriptionId,
1106
- Parameters.resourceGroupName,
1107
- Parameters.experimentName,
1108
- Parameters.executionId,
1109
- ],
1110
- headerParameters: [Parameters.accept],
1111
- serializer,
1112
- };
1113
- const listAllNextOperationSpec: coreClient.OperationSpec = {
1114
- path: "{nextLink}",
1115
- httpMethod: "GET",
1116
- responses: {
1117
- 200: {
1118
- bodyMapper: Mappers.ExperimentListResult,
1119
- },
1120
- default: {
1121
- bodyMapper: Mappers.ErrorResponse,
1122
- },
1123
- },
1124
- urlParameters: [
1125
- Parameters.$host,
1126
- Parameters.subscriptionId,
1127
- Parameters.nextLink,
1128
- ],
1129
- headerParameters: [Parameters.accept],
1130
- serializer,
1131
- };
1132
- const listNextOperationSpec: coreClient.OperationSpec = {
1133
- path: "{nextLink}",
1134
- httpMethod: "GET",
1135
- responses: {
1136
- 200: {
1137
- bodyMapper: Mappers.ExperimentListResult,
1138
- },
1139
- default: {
1140
- bodyMapper: Mappers.ErrorResponse,
1141
- },
1142
- },
1143
- urlParameters: [
1144
- Parameters.$host,
1145
- Parameters.subscriptionId,
1146
- Parameters.resourceGroupName,
1147
- Parameters.nextLink,
1148
- ],
1149
- headerParameters: [Parameters.accept],
1150
- serializer,
1151
- };
1152
- const listAllExecutionsNextOperationSpec: coreClient.OperationSpec = {
1153
- path: "{nextLink}",
1154
- httpMethod: "GET",
1155
- responses: {
1156
- 200: {
1157
- bodyMapper: Mappers.ExperimentExecutionListResult,
1158
- },
1159
- default: {
1160
- bodyMapper: Mappers.ErrorResponse,
1161
- },
1162
- },
1163
- urlParameters: [
1164
- Parameters.$host,
1165
- Parameters.subscriptionId,
1166
- Parameters.resourceGroupName,
1167
- Parameters.nextLink,
1168
- Parameters.experimentName,
1169
- ],
1170
- headerParameters: [Parameters.accept],
1171
- serializer,
1172
- };